Screen flickering in Ubuntu

Bug #1958191 reported by lotuspsychje
328
This bug affects 65 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.11 (Ubuntu)
Confirmed
Undecided
Unassigned
linux-hwe-6.2 (Ubuntu)
Confirmed
High
Unassigned
Lunar
Invalid
Undecided
Unassigned
linux-hwe-6.5 (Ubuntu)
Confirmed
Undecided
Unassigned
Lunar
Won't Fix
Undecided
Unassigned
linux-hwe-6.8 (Ubuntu)
Confirmed
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
Changed in linux (Ubuntu):
status: Triaged → Fix Released
Changed in linux-hwe-5.19 (Ubuntu):
status: New → Fix Released
importance: Undecided → High
Changed in linux-hwe-6.2 (Ubuntu):
importance: Undecided → High
Changed in linux-hwe-6.2 (Ubuntu):
status: New → Confirmed
description: updated
75 comments hidden view all 155 comments
Revision history for this message
Amirul Menjeni (amirulmenjeni) wrote : Re: [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)

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?

Test (3560holy)
Changed in linux-hwe-6.5 (Ubuntu Lunar):
status: New → Confirmed
Changed in linux-hwe-6.5 (Ubuntu):
status: New → Confirmed
Test (3560holy)
Changed in linux-hwe-6.5 (Ubuntu Lunar):
status: Confirmed → New
Test (3560holy)
Changed in linux-hwe-6.5 (Ubuntu Lunar):
status: New → Confirmed
Revision history for this message
Oibaf (oibaf) wrote :

For me and others, this started with Ubuntu 24.04 and its 6.8 kernel, see bug 2064189.

Revision history for this message
cypherscouter (cypherscouter) wrote :
Revision history for this message
AB (dot-09) wrote (last edit ):

This bug is affecting also my machine. Black screen flickering after suspend.

I'm on Linux Mint 21.3 (Ubuntu 22.04) with 6.5 kernel. I tried other kernels (5.4, 5.15) and drivers (545, 470, 390, Nouveau), but nothing changed. Didn't have any problem with Focal 20.04.

Can someone look into this?

* Distro: Linux Mint 21.3 Virginia
* Base: Ubuntu 22.04 jammy
* Kernel: 6.5.0-35-generic x86_64
* Intel Core i7-7700HQ
* Intel HD Graphics 630 driver: i915 v: kernel
* NVIDIA GP107M [GeForce GTX 1050 Mobile] driver: nvidia v: 535.171.04
* Display: x11 server: X.Org v: 1.21.1.4

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

As far as I understand, an i915 driver update is required?

Revision history for this message
AB (dot-09) wrote :

Will someone look into this? It may be solved for Ubuntu 22.10, but it's still an issue in 22.04

Revision history for this message
Tushar (rafattushar) wrote :

This bug has reappeared on Ubuntu 24.04 for both the stock and the updated kernel.

Revision history for this message
cypherscouter (cypherscouter) wrote :
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-hwe-6.5 (Ubuntu Lunar):
status: Confirmed → Won't Fix
Test (3560holy)
Changed in linux-hwe-6.8 (Ubuntu):
status: New → Confirmed
Test (3560holy)
no longer affects: linux-hwe-6.8 (Ubuntu Lunar)
Revision history for this message
Pooja Saxena (nrjrasaxena) wrote :

Hi there,
I had the same issue with Ubuntu 22.04, where I really could not fix it. Recently I did a fresh installation of Ubuntu 24.04 with the big hope of getting rid of this annoying flickering issue.
However, no, it did persist and even in most worse form.

I did follow few threads on this and did the proposed fix
```
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.enable_dc=0 intel_idle.max_cstate=2"
sudo update-grub
sudo reboot
```
It did make it bit better instantly, however did not fix it completely.
here is my computer info:
```
uname -a
Linux ThinkPad-L13-Yoga-Gen-4 6.8.0-1014-oem #14-Ubuntu SMP PREEMPT_DYNAMIC Wed Oct 9 13:16:31 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
```

I wonder if there is any other better fix for this problem?

regards,

Revision history for this message
Pooja Saxena (nrjrasaxena) wrote :

Hi there,
I had this flickering issue with Ubuntu 22.04 and recently I did a fresh installation of Ubuntu 24.04 with the big hope of getting rid of this flickering issue. However, to my big disappointment, it did not fix the issue and was even of worse kind.

I followed some posts and tried out the proposed solution
```
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.enable_dc=0 intel_idle.max_cstate=2"
sudo update-grub
sudo reboot
```
It did help instantly to some extent however the problem remained.
```
Linux ThinkPad-L13-Yoga-Gen-4 6.8.0-1014-oem #14-Ubuntu SMP PREEMPT_DYNAMIC Wed Oct 9 13:16:31 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
```

In case, if there is any better fix for this issue, please do let me know.

Thank you,

Revision history for this message
Pooja Saxena (nrjrasaxena) wrote :

sorry for the double message, I could not see my earlier posted message, so posted twice.

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

@nrjrasaxena

Please provide the console command output:
```
lspci -k | grep -EA3 'VGA|3D controller'
```

Revision history for this message
Pooja Saxena (nrjrasaxena) wrote :

Hi @Test,
Thanks for your reply. Please find the response here
```
$ lspci -k | grep -EA3 'VGA|3D controller'
07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Barcelo (rev d5)
 Subsystem: Lenovo Barcelo
 Kernel driver in use: amdgpu
 Kernel modules: amdgpu
```

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

Unfortunately, I don't have any free time. First, you need to localize the problem. Are you the owner of the source code or just a user?

Revision history for this message
Pooja Saxena (nrjrasaxena) wrote :

Thanks for your response. I am the owner and not really possess the knowledge in this area to be able to localize the problem...

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

You need to look at the source code of the graphics driver and kernel module or contact the person responsible to localize the problem. In my case, disabling DPMS turned out on Xorg to be a temporary solution.
You can do this either by using the X config, or by installing XScreenSaver, or by trying the xset utility.

Revision history for this message
pawan kumar (thepawan-dear) wrote :

Having same flickering issue while moving mouse. Not able to fixed with GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.enable_dc=0 intel_idle.max_cstate=2"

uname -a
Linux PK 6.8.0-49-generic #49-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 4 02:06:24 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.1 LTS
Release: 24.04
Codename: noble

sudo lshw -C display
[sudo] password for pawan:
  *-display
       description: VGA compatible controller
       product: Navi 33 [Radeon RX 7700S/7600/7600S/7600M XT/PRO W7600]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: /dev/fb0
       version: c3
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=amdgpu latency=0 mode=1920x1080 resolution=1920,1200 visual=truecolor xres=1920 yres=1080
       resources: iomemory:7c0-7bf iomemory:7e0-7df irq:79 memory:7c00000000-7dffffffff memory:7e00000000-7e0fffffff ioport:f000(size=256) memory:fca00000-fcafffff memory:fcb00000-fcb1ffff

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

The same situation on Ubuntu 24.04.1 LTS

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

@nrjrasaxena

I can recommend this contact https://launchpad.net/~oibaf
He has been coding something similar for a long time

Test (3560holy)
summary: - [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)
+ Screen flickering in Ubuntu
Revision history for this message
Test (3560holy) wrote (last edit ):

This bug is not related to mouse movement. Flickering looks like a decrease in the screen refresh rate several times.

Revision history for this message
Pooja Saxena (nrjrasaxena) wrote :

Thanks @Test, I sent him a message today.

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

Please write here if it can fix this bug

Revision history for this message
Pooja Saxena (nrjrasaxena) wrote :

@test Well, if he has time to spare..lets hope!!

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

I think it would be better for you to hire someone

Test (3560holy)
Changed in linux-hwe-6.11 (Ubuntu):
status: New → Confirmed
Displaying first 40 and last 40 comments. View all 155 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.