full screen (backlight?) flicker on i915/crocus (i7-4500U Haswell)
System information
System:
Host: localhost.localdomain Kernel: 5.18.16-200.fc36.x86_64 arch: x86_64
bits: 64 compiler: gcc v: 2.37-27.fc36 Desktop: MATE v: 1.26.0 wm: marco
dm: LightDM Distro: Fedora release 36 (Thirty Six)
CPU:
Info: dual core model: Intel Core i7-4500U bits: 64 type: MT MCP
arch: Haswell rev: 1 cache: L1: 128 KiB L2: 512 KiB L3: 4 MiB
Speed (MHz): avg: 1727 high: 1796 min/max: 800/3000 cores: 1: 1796
2: 1723 3: 1596 4: 1796 bogomips: 19155
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
Device-1: Intel Haswell-ULT Integrated Graphics vendor: Sony driver: i915
v: kernel arch: Gen7.5 ports: active: HDMI-A-1,eDP-1 empty: none
bus-ID: 00:02.0 chip-ID: 8086:0a16
Device-2: Microsoft Microsoft LifeCam Studio type: USB
driver: hid-generic,snd-usb-audio,usbhid,uvcvideo bus-ID: 2-1.3:13
chip-ID: 045e:0811
Device-3: Chicony Front Camera type: USB driver: uvcvideo bus-ID: 2-5:3
chip-ID: 04f2:b42a
Display: x11 server: X.Org v: 1.20.14 compositor: marco v: 1.26.0 driver:
X: loaded: modesetting gpu: i915 display-ID: :0 screens: 1
Screen-1: 0 s-res: 5360x1440 s-dpi: 96
Monitor-1: HDMI-A-1 mapped: HDMI-1 pos: primary,right model: Dell U3421WE
res: 3440x1440 dpi: 109 diag: 867mm (34.1")
Monitor-2: eDP-1 pos: primary,left model: Panasonic VVX13F009G00
res: 1920x1080 dpi: 168 diag: 336mm (13.2")
OpenGL: renderer: Mesa Intel HD Graphics 4400 (HSW GT2)
v: 4.6 Mesa 22.1.5 direct render: Yes
Describe the issue
Full screen (backlight?) flicker of the built-in display. First occurrences around 60% battery level, but very occasional. Correlated with screen activity. The effect starts occurring frequently below 25% battery level. Never happens when on A/C power.
I was asked by @armurthy in drm/intel#6325 to open a ticket in mesa tracker. I copied relevant information from there for convenience.
Regression
Unknown. I have a vague recollection it didn't occur a couple of years ago, but no solid data.
Log files as attachment
See drm/intel#6325 (comment 1451334) .
Screenshots/video files (if applicable)
Here's a video recording at 20% battery level, just refreshing https://getfedora.org/ in Firefox:
See drm/intel#6325 (comment 1472285) . Gitlab doesn't seem to allow linking to attachments uploaded to an issue in another project.
Any extra information would be greatly appreciated
The issue doesn't occur when decoding H.264 video with mpv via VA-API. Decoding VP9 via VA-API (using intel-hybrid-driver) or rendering web pages using Firefox does trigger the issue.
I've been using video playback to drain the battery and around 42% battery level I've started getting flicker during full-screen video playback (VP9, accelerated via VA-API), with no user interaction.
Here's the video for reference, by the way: https://www.youtube.com/watch?v=G5RpJwCJDqc . I'm using the 1080p versions (VP9 and H.264) for testing. Interestingly, playing the H.264-encoded version of the same video, also VA-API accelerated, doesn't trigger the flicker.
mpv --hwdec=vaapi --hwdec-codecs=mpeg2video,h264,vc1,vp9 --vo=gpu