[i915] Screen flickering in Ubuntu 22.04 (until i915.enable_dc=0 intel_idle.max_cstate=2 are added) (fixed in 5.17.7 and later)

Bug #1958191 reported by lotuspsychje
296
This bug affects 58 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
High
Unassigned
Lunar
Won't Fix
Undecided
Unassigned
linux-hwe-5.19 (Ubuntu)
Fix Released
High
Unassigned
Lunar
Invalid
Undecided
Unassigned
linux-hwe-6.2 (Ubuntu)
Confirmed
High
Unassigned
Lunar
Invalid
Undecided
Unassigned

Bug Description

Ubuntu 22.04 development branch on kernel 5.15.0-17-generic @ 18/1/2022

Booting into desktop gets heavy screen flickering and disforming (unusable)
both booting on xorg and wayland

on kernel 5.13 it did not occur so heavy (only little glitches once in a while see bug 1948778)

adding the kernel parameter i915.enable_dc=0 intel_idle.max_cstate=2 fixed this

i had these same bugs on this machine before:

https://bugs.launchpad.net/ubuntu/+source/linux-hwe/+bug/1838644

https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1948778

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linux-image-5.15.0-17-generic 5.15.0-17.17
ProcVersionSignature: Ubuntu 5.15.0-17.17-generic 5.15.12
Uname: Linux 5.15.0-17-generic x86_64
ApportVersion: 2.20.11-0ubuntu75
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: lotuspsychje 1201 F.... pipewire-media-
                      lotuspsychje 1207 F.... pulseaudio
 /dev/snd/seq: lotuspsychje 1193 F.... pipewire
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Tue Jan 18 04:22:00 2022
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 004: ID 8087:0025 Intel Corp. Wireless-AC 9260 Bluetooth Adapter
 Bus 001 Device 003: ID 04f2:b59e Chicony Electronics Co., Ltd Chicony USB2.0 Camera
 Bus 001 Device 002: ID 046d:c534 Logitech, Inc. Unifying Receiver
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: Notebook N7x0WU
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-17-generic root=UUID=a41247d1-3bc3-453e-849a-e07fdcca6201 ro quiet splash intel_idle.max_cstate=4 vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-5.15.0-17-generic N/A
 linux-backports-modules-5.15.0-17-generic N/A
 linux-firmware 1.204
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 01/07/2019
dmi.bios.release: 7.13
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 7.13
dmi.board.asset.tag: Tag 12345
dmi.board.name: N7x0WU
dmi.board.vendor: Notebook
dmi.board.version: Not Applicable
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: No Enclosure
dmi.chassis.version: N/A
dmi.ec.firmware.release: 7.14
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr7.13:bd01/07/2019:br7.13:efr7.14:svnNotebook:pnN7x0WU:pvrNotApplicable:rvnNotebook:rnN7x0WU:rvrNotApplicable:cvnNoEnclosure:ct10:cvrN/A:skuNotApplicable:
dmi.product.family: Not Applicable
dmi.product.name: N7x0WU
dmi.product.sku: Not Applicable
dmi.product.version: Not Applicable
dmi.sys.vendor: Notebook

Revision history for this message
lotuspsychje (lotuspsychje) wrote :
Revision history for this message
lotuspsychje (lotuspsychje) wrote :

adding dmesg for 5.15 without cstate paramater

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
lotuspsychje (lotuspsychje) wrote : Re: Flickering and disforming booting into desktop both on wayland/xorg

on 5/04/2022 Ubuntu 22.04 Beta with kernel 5.15.0-25-generic

this flickering is still persisting and needs the parameter intel_idle.max_cstate=4
to be usable again

Revision history for this message
lotuspsychje (lotuspsychje) wrote :
Revision history for this message
lotuspsychje (lotuspsychje) wrote :

booting with kernel parameter i915.enable_psr=0 does not influence the flickering

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Does it look like the flickering shown in bug 1970426 and its duplicates?

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
tags: added: flicker i915
Revision history for this message
lotuspsychje (lotuspsychje) wrote :

@ Daniel #7

the bug reports look very similar to my flickering, but mine are much worst
when booting into desktop i have a few seconds till the flickering gets
unworkable and scrambles up the screen to almost black

so i'm not sure its a dupe or not myself

if you look at my upstream bug on #5 that guy Ozan has very similar symptons
to what i experience, + the kernel versions tested are similar to his

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Can you provide a video?

Revision history for this message
lotuspsychje (lotuspsychje) wrote :

Video with the flickering, currently testing kernel 5.15.0-27-generic

Revision history for this message
lotuspsychje (lotuspsychje) wrote :

also worth mentioning, on the kernels of ubuntu 20.04 i never had this flickering

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the video. Although it looks a little different to bug 1970426 I would definitely still class it as the same bug until proven otherwise (when a fix for that bug is available and if it doesn't work for your machine).

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The solution to bug 1970426 ended up being:

  i915.enable_dc=0
  intel_idle.max_cstate=2

Can you try those?

summary: - Flickering and disforming booting into desktop both on wayland/xorg
+ [i915] Flickering and deformed booting into desktop both on wayland/xorg
Revision history for this message
lotuspsychje (lotuspsychje) wrote : Re: [i915] Flickering and deformed booting into desktop both on wayland/xorg

@ Daniel #13

That kernel parameter looks promising! on cstate=4 i still had some glitches here and there
now they seem to be gone

great job!

Revision history for this message
lotuspsychje (lotuspsychje) wrote :

Adding dmesg with kernel parameter i915.enable_dc=0 intel_idle.max_cstate=2

summary: - [i915] Flickering and deformed booting into desktop both on wayland/xorg
+ [i915] Screen flickering in Ubuntu 22.04 (until i915.enable_dc=0
+ intel_idle.max_cstate=2 are added)
tags: added: regression-release rls-jj-incoming
Changed in linux (Ubuntu):
status: Incomplete → Triaged
importance: Undecided → High
Revision history for this message
Diogo Duarte (diogofd8) wrote : Re: [i915] Screen flickering in Ubuntu 22.04 (until i915.enable_dc=0 intel_idle.max_cstate=2 are added)

I'm having the same issue, I'd like to add that I've tested both Xubuntu 22.04 and Ubuntu 22.04 and was able to reproduce the same error. Now I'm running Kubuntu 22.04 with the following spec:

OS: Kubuntu 22.04 LTS x86_64
Kernel: 5.15.0-27-generic
Shell: bash 5.1.16
Resolution: 1920x1080 @ 120Hz
DE: KDE Plasma 5.24.5
KDE Frameworks Version: 5.93.0
WN: Kwin 5.24.5
Qt Version: 5.15.3
Graphics Platform: X11

Host: GL62 6QF REV:1.0
CPU: Intel i5-6300HQ (4) @ 3.200GHz
GPU: Mesa Intel® HD Graphics 530
GPU: NVIDIA GeForce GTX 960M

Here's another video of the issue: https://streamable.com/b9792p

PS: I added GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.enable_dc=0 intel_idle.max_cstate=2" to /etc/default/grub and I still have some instances of screen shaking.

Revision history for this message
lotuspsychje (lotuspsychje) wrote :

@ Diogo #16

did you also sudo update-grub after the kernel paramater?
and doublechecked if you are using your intel card and not your nvidia on wayland?

Revision history for this message
Diogo Duarte (diogofd8) wrote :

I'm not using wayland. I stated that I was on X11.

I did sudo update-grub indeed!

Revision history for this message
Oibaf (oibaf) wrote (last edit ):

Daniel van Vugt (vanvugt) asked for a kernel bisect with the kernel mainline PPA:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1970426/comments/22

If someone is willing to do it he can do this (from https://wiki.ubuntu.com/Kernel/KernelBisection#Version_bisecting_upstream_kernels):

The first step in the bisect process is to find the last "Good" kernel version, followed consecutively in version by the first "Bad" one. That is done by downloading, installing and testing kernels from https://kernel.ubuntu.com/~kernel-ppa/mainline/?C=N;O=A

Thanks.

Revision history for this message
Ernst Persson (ernstp) wrote :

When I upgraded to 22.04 I started getting flicker on my external HDMI monitor.
Latitude 7300, i7-8665U.
A batch of flicker every 15 or 30 minutes or so, not very easy to use for bisecting...
There are instances of
[336186.058517] i915 0000:00:02.0: [drm] *ERROR* CPU pipe B FIFO underrun
in dmesg but it doesn't always appear when there is flickering.

Revision history for this message
lotuspsychje (lotuspsychje) wrote :

@ Oibaf #19

If it can help, i start helping debug ubuntu 22.04 from the start
with kernel 5.13.0-19.19-generic with light flickering (workable)

see bug https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1948778

and heavy unworkable flickering started (in this bug) with kernel series
5.15.0-17-generic

Revision history for this message
svierne (svierne) wrote :

I can confirm that adding `i915.enable_dc=0 intel_idle.max_cstate=2` works for me on i7-7600u. No more screen flickering in the last two days. Without the workaround the flickering occurs randomly and definitively in correlation to mouse movement, but I'm not sure how exactly. As already stated by ernstp (#20), kernel bisection is going to be a rocky road ...

Revision history for this message
kjur (kjur) wrote :

@Oibaf (oibaf) - I experienced the same issue on Xubuntu 22.04 too. The very last available xubuntu 21.10 kernel was fine. I upgraded from fully updated 21.10 to 22.40 and then the problem started.
Not sure what is the latest 21.10 available kernel. Perhaps 5.13.0.1022.23 ? Not sure how to do a full research on that.

Revision history for this message
Oibaf (oibaf) wrote :

@lotuspsychje : I think it would be useful to detect a behaviour change, even if symptoms are slight different (eventually it can still help for bug 1948778 if there are two different bugs).

@kjur : kernel series from https://kernel.ubuntu.com/~kernel-ppa/mainline/?C=N;O=A are vanilla kernels, Ubuntu kernels has some more patches added. If you can bisect you could start with 5.13.19, hopefully it should be bug free. If so then try 5.15. If 5.15 is "bugged", then select a kernel between 5.13.19 and 5.15 (says 5.14) then continue until you find the first one with the problem.

Revision history for this message
Diogo Duarte (diogofd8) wrote (last edit ):

Following up on this: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1958191/comments/16

Booting with 5.15.0-25-generic and the i915.enable_dc=0 intel_idle.max_cstate=2 configs seems to fix the issue on my hardware.

5.15.0-27-generic won't stop shaking randomly no matter what value I test on intel_idle.max_cstate. It seems to get worse when there are many windows on the screen or something is zoomed in/out. For example, on shopping sites like aliexpress, hovering with the mouse on the product normally spawns this window with the zoomed product, I noticed that this caused a lot of shaking. Reading stuff, especially with images seems to cause it more regularly as well. However, watching videos was fine all the time.

I can also confirm that the kernel 5.13.0-20-generic works without an issue with the same hardware as some of my work colleagues have the same machine running Ubuntu 21.10 with that kernel.

Revision history for this message
Anaggh S (anaggh) wrote (last edit ):

Hi, following up on this - https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1970426/comments/9

GRUB PARAM - `i915.enable_dc=0 intel_idle.max_cstate=2` has fixed the flicker for me.

$ uname -a
Linux home 5.15.0-30-generic #31-Ubuntu SMP Thu May 5 10:00:34 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

$ grep GRUB_CMDLINE_LINUX_DEFAULT /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.enable_dc=0 intel_idle.max_cstate=2"

---

Also in additional to Debian Unstable (5.17.x kernel), this flicker problem (without GRUB workaround) does not exist in recent Fedora 36 release (5.17.x kernel) as well during my testing.

---

Responding to this: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1970426/comments/22

Last kernel without the bug was definitely 5.13.x on Xubuntu 21.10 (used it for about 6 months)
The bug started when I wiped and installed 22.04 release (5.15.x)

Also, I remember when 1st release - 5.15.x was released, I installed it on 21.10 release with https://github.com/bkw777/mainline and the flicker problem occurred and I reverted back to stock Ubuntu 5.13.x. So bug could be somewhere between >= 5.14.x and <= 1st release of 5.15.x.

Revision history for this message
Melika (meliana00) wrote :

I just updated my Ubuntu to 22.04 and I'm having the same issue. Hopefully it'll get fixed ASAP.

Revision history for this message
Dee (dmusil-x) wrote :

Updated ubuntu from 21.04 and no matter what I do with settings, all monitors go black every 30 seconds I do not touch the keyboard or mouse (or running movie). I hope it will be fixed soon.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The monitor going black is a different bug. Please don't discuss that here, but open a new bug by running:

  ubuntu-bug linux

Revision history for this message
David Bellot (david-bellot) wrote (last edit ):

Half-related to this bug but worth mentioning it because it is certainly linked to it. On a HP x360 Spectre (i7-8565U WhiskeyLake-U GT2 [UHD Graphics 620]), the trick with GRUB_CMDLINE_LINUX_DEFAULT.

The problem is more serious here because the screen flickers and goes to black, purple, green, entirely, immediately after the boot (so basically when the kernel presumably changes the graphics mode)

I tried different kernels:
- 5.17.8: failed
- 5.15.x: all failed (from Ubuntu 22.04)
- 5.13.19: works and back to normal

I found the following errors in the logs:
* i915 0000:00:02.0: [drm] *ERROR* Atomic update failure on pipe A (start=43426 end=43427) time 300 us, min 2146, max 2159, scanline start 2131, end 2171
* i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
* i915 0000:00:02.0: [drm] [ENCODER:102:DDI B/PHY B] is disabled/in DSI mode with an ungated DDI clock, gate it
* i915 0000:00:02.0: [drm] [ENCODER:113:DDI C/PHY C] is disabled/in DSI mode with an ungated DDI clock, gate it
* i915 0000:00:02.0: [drm] *ERROR* CPU pipe A FIFO underrun

So the problem is > 5.13.x series

I solved it by downgrading to 5.13.19 from ubuntu mainline on a newly updated ubuntu 22.04!

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

David, please open a new bug for the above.

Revision history for this message
David Bellot (david-bellot) wrote :

done in Bug #1973676
Thanks Daniel

Revision history for this message
Manuel Pégourié-Gonnard (mpg) wrote :

I also experience flickering with Ubuntu 22.04's 5.15.0-27-generic kernel, which goes away with i915.enable_dc=0 intel_idle.max_cstate=2, and was not present with Ubuntu 20.04's latest 5.13 kernel.

Due to another bug affecting my machine, I'm now running the vanilla 5.14.20 kernel from the mainline-ppa. Out of curiosity, I tried removing "i915.enable_dc=0 intel_idle.max_cstate=2" and I've been flicker-free for several days now (I used to experience flickering a few times a day initially).

So, either the problem is specific to Ubuntu kernels, or it was introduced between 5.14 and 5.15.

Due to that other bug, and the fact the the flickering used to be infrequent, I'm not sure I'll be able to version-bisect this issue, but I'll give it a try if I can find the time.

Revision history for this message
João Pedro Seara (jpseara) wrote :

Having the same issue on a Lenovo T480s laptop.

Linux JP 5.15.0-30-generic #31-Ubuntu SMP Thu May 5 10:00:34 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

        *-display
             description: VGA compatible controller
             product: UHD Graphics 620
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             logical name: /dev/fb0
             version: 07
             width: 64 bits
             clock: 33MHz
             capabilities: pciexpress msi pm vga_controller bus_master cap_list ro
m fb
             configuration: depth=32 driver=i915 latency=0 resolution=1920,1080
             resources: irq:160 memory:e7000000-e7ffffff memory:c0000000-cfffffff ioport:e000(size=64) memory:c0000-dffff

Revision history for this message
kjur (kjur) wrote :

adding "i915.enable_dc=0 intel_idle.max_cstate=2" doesn't help in my case (kernel 5.15, Intel UHD / i915 graphics)

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

If the suggested solution doesn't work for you then please open a separate new bug by running:

  ubuntu-bug linux

Revision history for this message
Peter (vp2177) wrote :

Shouldn't an update be released that adds the workaround(s) mentioned above (the Kernel boot parameters i915.enable_dc=0 or/and, if necessary, intel_idle.max_cstate=$MAX_CSTATE_THAT_WORKS)?

So the Ubuntu 22.04 experience is improved for users with Intel graphics while the kernel regression is tracked down and patched?

Revision history for this message
Nikolai Kotsifas (nikolai-kotsifas) wrote :

Peter, I don't think it's a fix, but only a workaround that limits two important power management functionalities (cpu cstates and gpu display cstates). I hope and believe they're still working on finding a real fix for the bug.

Revision history for this message
kjur (kjur) wrote :

Reported a new bug here:
https://bugs.launchpad.net/ubuntu/+source/linux-signed-lowlatency/+bug/1976398
as in my case adding extra option to GRUB didn't help.
Please follow there if you are also affected.

Revision history for this message
Pedro Daniel Vieira Rosado (pdvrsd) wrote :

Same issue here. Heavy black flickering on the screen with Ubuntu 22.04 after upgrade from 20.04 and after a clean install. No extra repos, only default packages.

Aspire 3 A315-31 series
N17Q2

Mesa Intel® HD Graphics 500 (APL 2)

Linux laptop 5.15.0-33-generic #34-Ubuntu SMP Wed May 18 13:34:26 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

summary: [i915] Screen flickering in Ubuntu 22.04 (until i915.enable_dc=0
- intel_idle.max_cstate=2 are added)
+ intel_idle.max_cstate=2 are added) (fixed in 5.17.7 and later)
Tushar (rafattushar)
information type: Public → Public Security
information type: Public Security → Public
Abdul Wahhab (rock5436)
Changed in linux (Ubuntu):
status: Triaged → Confirmed
tags: added: iommu
Changed in linux (Ubuntu Jammy):
status: New → Fix Released
Changed in linux (Ubuntu Kinetic):
status: Confirmed → Triaged
Changed in linux (Ubuntu Jammy):
importance: Undecided → High
Changed in linux (Ubuntu Jammy):
status: Fix Released → Triaged
importance: High → Medium
Changed in linux (Ubuntu Kinetic):
importance: High → Medium
Changed in linux (Ubuntu Jammy):
importance: Medium → High
Changed in linux (Ubuntu Kinetic):
importance: Medium → High
no longer affects: linux (Ubuntu Jammy)
no longer affects: linux (Ubuntu Kinetic)
Niels (0xniels)
information type: Public → Public Security
information type: Public Security → Public
51 comments hidden view all 131 comments
Revision history for this message
frombeyondthegrave (frombeyondthegrave) wrote :

Thanks a lot, didn't know about that (i self identify as a noob hence LTS)

intel_iommu=off as temporary kernel parameter reduced flickering by just enough for me to properly set i915.enable_dc=0 intel_idle.max_cstate=2 and now seems fixed (fingers crossed). Thanks!

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Since kernel 5.19 is now released to Ubuntu 22.10, this bug is Fix Released. But as mentioned in comment #87, we cannot fix Ubuntu 22.04 without further investigation done by those experiencing the bug.

Changed in linux (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Dimitris Moraitidis (dimisjim) wrote :

Why not backport this kernel version to 22.04 too?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Because Ubuntu 22.04 is LTS (long term support), changes happen slowly. It will get a new kernel in version 22.04.2 but that's not till February 2023.

Revision history for this message
Abu Khalid (bukhalid2052) wrote :

The screen flicker also happened to me after updating to 22.04. I think the cause for the error is actually Memtest86+. When I tried to do the fix by adding parameters to /etc/default/grub and update I got the following.

:~$ uname -a
Linux alwayssk 5.15.0-50-generic #56-Ubuntu SMP Tue Sep 20 13:23:26 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

:~$ sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-50-generic
Found initrd image: /boot/initrd.img-5.15.0-50-generic
Found linux image: /boot/vmlinuz-5.15.0-48-generic
Found initrd image: /boot/initrd.img-5.15.0-48-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
done

Revision history for this message
Avi (ikes73) wrote :

Having this issue on razer blade 17 pro (2021) on Ubuntu 22.10. Don't see anything relevant in logs. It works fine most of the time but every so often has heavy flickering for a few seconds or minutes.

Revision history for this message
Matthew Hudson (layolayo) wrote :

Been using 22.10 for several days on X11, enabled Wayland and have discovered that my screen flickers and app windows fail to render correctly. Tried the 2 GRUB parameters mentioned above - with no success. Going back to X11 and a usable machine, hopefully this is fixed soon - happy to try any fixes if offered.

2 comments hidden view all 131 comments
Revision history for this message
Shashank VRSN Sabniveesu (fossterer) wrote :

My issue is that only when mouse pointer is moved to bottom portion of screen, I see a flicker/repaint issue.

I'm on 5.19.0-23-generic (Ubuntu 22.10) and adding the said options `i915.enable_dc=0 intel_idle.max_cstate=2` did not work.

Only adding `i915.enable_psr=0"` worked as I noted in [this](https://github.com/ljvmiranda921/comments.ljvmiranda921.github.io/issues/41#issuecomment-1328125275)

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

This bug is closed for Ubuntu 22.10 and later so please log your own new bugs unless you're using 22.04.

P.S. i915.enable_psr=0 is a common solution to flickering but if it works for you then that is LAPTOP MODEL SPECIFIC and we need you to log a bug mentioning the model details of the laptop.

Revision history for this message
peddanet (peddanet) wrote :

HP Envy 13 aq1176ng

i915.enable_psr=0 worked for me.

Flickering stopped, flickering began by setting intel_iommu=off (to get the slow system faster).

Revision history for this message
lotuspsychje (lotuspsychje) wrote :

Currently testing HWE-EDGE on 22.04
5.19.0-28-generic #29~22.04.1-Ubuntu

The flicker is no longer present here,
thanks to all users & devs testing this bug

Revision history for this message
kolAflash (colaflash) wrote :

Same problem on my notebook. Added a comment to the upstream bugreport.
https://gitlab.freedesktop.org/drm/intel/-/issues/5569#note_1770025

Notebook: Medion E3223-MD62351 (MSN 30032549) (convertible with touchscreen)
CPU & GPU: Pentium Silver N5030 CPU

See upstream bugreport for details.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

This bug is unresolved for 22.04 only. If that includes you then please see comment #87.

Revision history for this message
blecha (andre-blecha) wrote :

I report my strange experience with flickering.

I had the problem as described on Dell Inspiron 1764/Ubuntu 20.04 with 50% of occurence at boot with the screen flickering indefinitely, Linux version 5.15.0-60-generic (buildd@lcy02-amd64-017). I suspected HW but nevertheless tried GRUB configuration modification with no success.

I installed Ubuntu 22.04 and now I have the flicker just during 30seconds of boot. The kernel is the same only the build is different, Linux version 5.15.0-60-generic (buildd@lcy02-amd64-054). Perhaps the build may modify some timings during the boot.

Revision history for this message
Daniel van Vugt (vanvugt) wrote (last edit ):

Also fixed in linux-hwe-5.19 for Ubuntu 22.04 per comment #104.

So I guess you just need:

  sudo apt install linux-generic-hwe-22.04

Changed in linux-hwe-5.19 (Ubuntu):
status: New → Fix Released
importance: Undecided → High
1 comments hidden view all 131 comments
Revision history for this message
Kleber Sacilotto de Souza (kleber-souza) wrote :

Hi,

Please note that linux-hwe-5.19 has been released as the linux-generic-hwe-22.04 variant now, so the -edge meta is not needed anymore to install the 5.19 kernel.

Revision history for this message
Amirul Menjeni (amirulmenjeni) wrote :

Reposting this from bug 1970426:

This happens to my machine as well. The flickering appears to only happens at the left-hand side of the screen or at the bottom of the screen. I don't think I've ever seen the whole screen flicker or on other areas of the screen except on the one I've mentioned.

I've tried most of the suggestions here and online by changing the kernel parameters but to no avail.

Currently, I have `i915.enable_psr=0` set up but that only appears to reduce the symptoms not fixing the problem completely.

System info:

```
$ lsb_release -a
LSB Version: core-11.1.0ubuntu4-noarch:security-11.1.0ubuntu4-noarch
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy
```

```
$ sudo lshw -C display
  *-display
       description: VGA compatible controller
       product: 2nd Generation Core Processor Family Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       logical name: /dev/fb0
       version: 09
       width: 64 bits
       clock: 33MHz
       capabilities: msi pm vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=i915 latency=0 resolution=1366,768
       resources: irq:28 memory:f0000000-f03fffff memory:e0000000-efffffff ioport:5000(size=64) memory:c0000-dffff
```

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

This bug is closed so please open new bugs for any unresolved issues.

Revision history for this message
lotuspsychje (lotuspsychje) wrote :

The bug has returned on kernel 6.2 series, i filed a new bug report here:

https://bugs.launchpad.net/ubuntu/+source/linux-signed-hwe-6.2/+bug/2028365

Changed in linux-hwe-6.2 (Ubuntu):
importance: Undecided → High
Revision history for this message
lotuspsychje (lotuspsychje) wrote :

Tested on the new HWE kernel on Ubuntu desktop 22.04.2 kernel 6.2.0-26-generic @ 3/8/2023

where the flickering continues, i can still fix it with the same workaround

i915.enable_dc=0 intel_idle.max_cstate=2 as kernel parameter

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-hwe-6.2 (Ubuntu):
status: New → Confirmed
description: updated
Revision history for this message
Amirul Menjeni (amirulmenjeni) wrote :

Using the suggested workaround as described in the description _used_ to work for a few months for me, now it doesn't.

I'm only seeing people reporting this for 6.2.0 kernel; but my kernel version is `5.19.0-46-generic`.

Am I experiencing a different bug?

Revision history for this message
Labar (labdom) wrote :

clevo laptop N750WU intel graphic flicker

previous and old issue https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1825823
 appears again , laptop completely unusable

How to rollback ?

Revision history for this message
Labar (labdom) wrote :

clevo laptop N750WU intel graphic flicker

I had liked to add an input for your eventual and subsequent version validation

Booting from USB a Mint21.2 image dated of 2023-07-16 on the same hardware ALSO causes Flickering

Revision history for this message
Labar (labdom) wrote :

clevo laptop N750WU intel graphic flicker

According my logbook the last time I successfully booted was 2023-8-17 and I resumed my work this morning 2023-08-26

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Everyone please log your own bugs so they can be investigated separately without confusing each other. And remember to try the kernel parameter: i915.enable_psr=0

Timo Aaltonen (tjaalton)
Changed in linux-hwe-5.19 (Ubuntu Lunar):
status: New → Invalid
Changed in linux-hwe-6.2 (Ubuntu Lunar):
status: New → Invalid
Revision history for this message
lotuspsychje (lotuspsychje) wrote :

Currently testing kernel 6.5.0-1003-oem on 5/9/2023 on 22.04 desktop

and the flickering does not occur anymore

Revision history for this message
Otet Lopez (otet-tud) wrote :

Description: Ubuntu 22.04.3 LTS
Release: 22.04

Linux LPT-037 6.2.0-34-generic #34~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 13:12:03 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

quiet splash i915.enable_dc=0 intel_idle.max_cstate=2 does not fix the issue in my end.

Flickering occurs in external monitor for 2months+ now

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux (Ubuntu Lunar):
status: New → Confirmed
Revision history for this message
Dan O'Neill (danodano) wrote :

Description: Ubuntu 22.04.3 LTS
Release: 22.04

uname -a output:
Linux olive 6.2.0-36-generic #37~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 9 15:34:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

I modified /etc/default/grub with
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.enable_dc=0 intel_idle.max_cstate=2"

and it only made the problem worse.

Revision history for this message
Leon Lessing (uranium240) wrote :

I am using an HP G3 450 with 6th gen i7
I have tried it all
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.enable_dc=0 intel_idle.max_cstate=2"

Kernels up to 6.6.4

It does not work, external monitor flashes like a disco.

I cannot believe this issue is years old already on the i915 gfx

uname -a
Linux lap5 6.6.4-060604-generic #202312030734 SMP PREEMPT_DYNAMIC Sun Dec 3 07:46:41 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

lshw | grep -A2 display
        *-display
             description: VGA compatible controller
             product: Skylake GT2 [HD Graphics 520]

Revision history for this message
Ketos (ketosenergy) wrote (last edit ):

I am having the same issue with a Lenovo Thinkpad X1 Carbon Gen 10 Model 21CBCTO1WW, CPU Intel i7-1270P with an Intel Iris Xe card.

I run Ubuntu 22.04.3 LTS and tested all the available kernels, including the latest 6.7 mainline.

I also tried all possible combinations of the grub parameters in /etc/default/grub...
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash 915.enable_psr2_sel_fetch=0 i915.enable_psr=0 i915.enable_fbc=0 i915.modset=0 intel_idle.max_cstate=2"

I tried with different distros (Fedora, latest Ubuntu, older Ubuntu) with live USB-Stick.

The problem with the flickering persist on all the combinations on the internal screen.
When I connect an external display via HDMI, the error persists on the internal screen, but the external screen is stable and just fine.

I am starting to think that there might be an issue with the resolution or the refresh rate of the internal screen.

Currently went back to the official 'linux-generic-hwe-22.04' which is a 6.5.0-14 Kernel
uname -a
Linux carbon10 6.5.0-14-generic #14~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 20 18:15:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

sudo lshw | grep -A2 display
        *-display
             description: VGA compatible controller
             product: Alder Lake-P Integrated Graphics Controller

Did anybody have resolved this annoying issue yet?

Revision history for this message
Ketos (ketosenergy) wrote :

UPDATE: I need to further check, but it seems that with X11 instead of Wayland, the flickering disappears...
Can anybody confirm this?

Revision history for this message
Brian Murray (brian-murray) wrote :

Ubuntu 23.04 (Lunar Lobster) has reached end of life, so this bug will not be fixed for that specific release.

Changed in linux (Ubuntu Lunar):
status: Confirmed → Won't Fix
Revision history for this message
Test (3560holy) wrote (last edit ):

Asus N550JV (NVIDIA GeForce GT 750M and Intel(R) HD Graphics 4600). Flickering appears after the screen goes to sleep.

I'm using Ubuntu 22.04.4 LTS.

00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
 Subsystem: ASUSTeK Computer Inc. 4th Gen Core Processor Integrated Graphics Controller
 Kernel driver in use: i915
--
01:00.0 3D controller: NVIDIA Corporation GK107M [GeForce GT 750M] (rev a1)
 Subsystem: ASUSTeK Computer Inc. GK107M [GeForce GT 750M]
 Kernel driver in use: nvidia

I'm using X11. I changed nouveau to NVIDIA driver. But the flickering did not disappear.
Flickering looks like a drop in the monitor's refresh rate several times.

Revision history for this message
Terin Stock (terinjokes) wrote :

Adding the kernel parameters to the grub configuration greatly reduces the flicker on my Dell Precision 5480 running Ubuntu 22.04. However, it returns every few seconds after the external display has gone to standby, despite /sys/module/i915/parameters/enable_dc and /sys/module/intel_idle/parameters/max_cstate still reporting their updated values.

0000:00:02.0 VGA compatible controller: Intel Corporation Device a7a0 (rev 04) (prog-if 00 [VGA controller])
 Subsystem: Dell Device 0c40
 Flags: bus master, fast devsel, latency 0, IRQ 213, IOMMU group 1
 Memory at 607f000000 (64-bit, non-prefetchable) [size=16M]
 Memory at 4000000000 (64-bit, prefetchable) [size=256M]
 I/O ports at 3000 [size=64]
 Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
 Capabilities: [40] Vendor Specific Information: Len=0c <?>
 Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
 Capabilities: [ac] MSI: Enable+ Count=1/1 Maskable+ 64bit-
 Capabilities: [d0] Power Management version 2
 Capabilities: [100] Process Address Space ID (PASID)
 Capabilities: [200] Address Translation Service (ATS)
 Capabilities: [300] Page Request Interface (PRI)
 Capabilities: [320] Single Root I/O Virtualization (SR-IOV)
 Kernel driver in use: i915
 Kernel modules: i915

Revision history for this message
Test (3560holy) wrote (last edit ):

The current situation is critical and does not allow using Ubuntu. It is also impossible to lock the screen. Does anyone know what needs to be fixed in the code?

Displaying first 40 and last 40 comments. View all 131 comments or add a comment.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.