ljvmiranda921 / comments.ljvmiranda921.github.io

Blog comments for my personal blog: ljvmiranda921.github.io
1 stars 0 forks source link

How to fix screen flickering on Linux Thinkpad by disabling PSR #41

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

How to fix screen flickering on Linux Thinkpad by disabling PSR

If your Thinkpad experiences screen flickering—monitor blacks out even if it's turned on, static-like screen movement, or tearing—then it may jus...

https://ljvmiranda921.github.io/notebook/2021/09/01/linux-thinkpad-screen-flicker/

isacdaavid commented 2 years ago

I'm out of luck with my OLED Thinkpad X1 Yoga (2nd generation). I'm pretty sure this is a software issue, because on Windows the slight flickering went away after disabling PSR.

However, on GNU/Linux the effects are insufferable: https://isacdaavid.info/tmp/VID_20220222_212513.mp4

I have tried combining these boot parameters in various ways, downgrading to a 4.4 kernel, Xorg vs Wayland, different desktop environments (Gnome, KDE, LXDE), different distros (Arch, Fedora).

dwbconsultingllc commented 2 years ago

Awesome and thanks so much, working on my new Lenovo P1 Gen 4 with Ubuntu 21.10

ljvmiranda921 commented 2 years ago

Hi @isacdaavid, late reply! To be honest, same happened to me too and after a month I returned my Thinkpad already. I'll update my blogpost with this new info. Now I have a gaming laptop and it suits me well in my ~gaming~ machine learning needs.

MichaelKapunkt commented 2 years ago

Hey @ljvmiranda921, I've got the same issue using Ubuntu 22.04 LTS, runing on an Thinkpad X1 Carbon 6th Gen. The suggestions did not work (or at least not without something else). But there is a simple solution (maybe in addition), that solved the issue after a restart. I had to disable the automatic brightness feature in ubuntu. Now I don't have any issues anymore. (https://help.ubuntu.com/stable/ubuntu-help/power-autobrightness.html.en)

In Case the website is down, here is the content:

  1. Open the Activities overview and start typing Power.
  2. Click Power to open the panel.
  3. In the Power Saving Options section, ensure that the Automatic Screen Brightness switch is set to on.
MichaelKapunkt commented 2 years ago

Oh, and where are my manners: Thank you very much of course, for the effort and trying to help out on the issue! :)

Firescar96 commented 2 years ago

I have a coworker with this issue. From this bug report: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1970426 We are trying GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.enable_dc=0 intel_idle.max_cstate=2" which is reported to work for others.

YuriKess commented 1 year ago

@ljvmiranda921,

Thanks for this detailed and easy-to-follow solution in a simple words. I highly appreciate it as a not really experienced user :)

It (obviously) works great for Ubuntu and Zorin OS (both 22.04), but for some reason I had no luck trying to add boot parameters in Fedora 36/37 via terminal, but it works perfect using Gnome GRUB customizer from Software store.

One more thing to add: Adding boot options in Pop OS! differs a bit, the following way using kernelstub worked for me: sudo kernelstub --add-options "quiet splash i915.enable_psr=0" -f

anhdangkhoa commented 1 year ago

Thank you for your tutorials. It works on my ThinkPad X1 Carbon Gen 9, which flickering when browsing some large PDFs or overleaf. It was relieved for me to know that my problem is software issues not hardware.

fossterer commented 1 year ago

Whoa! I didn't expect this to fix my "Lenovo Yoga bottom screen flicker Ubuntu" issue but it did!

H/w

yoga-7-16iap7     
    description: Convertible
    product: 82QG (LENOVO_MT_82QG_BU_idea_FM_Yoga 7 16IAP7)
    vendor: LENOVO
    version: Yoga 7 16IAP7

OS

Ubuntu 22.10

Issue

Only when I move mouse pointer to the bottom of my screen, I observe an irritating flicker - It is just like the bottom portion alone is trying to repaint (refresh) something random and getting stuck. As soon as I move away, things are fine. This kept making that bottom portion of my screen look untouchable ;)

Resolution

  1. The exact steps given in the article above. I tried what some others described such as in this reported bug before this but it didn't work
  2. Some reported increased fan noise and some reported reduced battery runtime after fixes such as this one. I am yet to observe them.

Thanks @ljvmiranda921

ghost commented 1 year ago

Thank you very much. It's worked on Ubuntu 22.04 (popos x11)

nebulae commented 1 year ago

Thanks for this : ) just opened my new lenovo laptop and saw this flickering, was stoked to see a fix

legion-an commented 1 year ago

I encountered the same issue after the latest update of Ubuntu on my Lenovo yoga7i, and your solution works fine, thank you!!!

asinitson commented 1 year ago

I have screen flickering on built-in screen (the only one I use at the moment on both NVIDIA and Intel with with openSUSE Leap 15.5 on Lenovo ThinkPad T16 Gen1.

Adding i915.enable_psr=0 too bootloader parameters fixed the issue. Thanks!

For the reference:

dvrtnkv commented 1 year ago

I encountered a similar issue when running Chrome for the first time on Ubuntu 23.04, using Chrome version 116.0.5845.140 (Official Build) (64-bit). Additional drivers: Using nvidia (open kernel) metapackage from nvidia-driver-535-open (proprietary).

The working solution for me was to add all these options together in the GRUB configuration:

GRUB_CMDLINE_LINUX="quiet splash i915.enable_dc=0 i915.enable_psr=0 intel_idle.cstate=2"

This configuration includes multiple options that modify the behavior of various components:

Hardware details:

Please note that modifying kernel parameters should be done carefully, as incorrect settings may lead to system instability or other issues. It's recommended to backup important data and understand the potential impacts before making any changes.

Radoom commented 10 months ago

Worked for me on a Lenovo T480 / Kubuntu 22.04 after I had to swap my original 2560x1440 panel for a replacement unit. With the original, no flickering.

With the replacement, heavy flickering, I believe backlight turning off or screen going through "all black". Started within a minute or so after booting, and got worse quickly.

Manged to at least run the commands by reducing brightness to lowest possible value just above backlight being off. After appending "i915.enable_psr=0" to the kernel parameters and rebooting, all good again.

In Windows, no flickering at all, as experienced by others. Kudos :-)

excitedexplorer commented 6 months ago

This post saved my day! The flickering desktop in Ubuntu 22.04 installed on Lenovo P16 Gen 1 was gone now!

Kiitos!

rub-cmd commented 5 days ago

Hi, so i am on Ubuntu 24.04 and tried to work out this guide to disable PSR. However the first command sudo cat /sys/kernel/debug/dri/0/i915_edp_psr_status didn't work. The folder doesn't practically exist!

So with the help of AI I found another solution to edit necessary file:

Disabling Panel Self Refresh (PSR) on Intel Graphics

1. Edit the GRUB configuration file

sudo nano /etc/default/grub

2. Add i915.enable_psr=0 to the GRUB_CMDLINE_LINUX_DEFAULT line

Example:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.enable_psr=0"

3. Update the GRUB configuration to apply changes

sudo update-grub

4. Reboot the system

sudo reboot

--- At this point, PSR is disabled. ---

Re-enabling PSR:

To re-enable PSR, repeat the above steps but remove i915.enable_psr=0

from the GRUB_CMDLINE_LINUX_DEFAULT line.

Example after removal:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Then, run:

sudo update-grub sudo reboot