[Lenovo Yoga Slim 7 14IIL05] PSR causes incomplete screen redraws

Bug #1937072 reported by Nishant Kumar Singh
20
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Triaged
High
Unassigned
linux-hwe-5.11 (Ubuntu)
Triaged
High
Unassigned

Bug Description

In every 6/10 boot my ubuntu failed to start stuck on blank screen. Sometime touchpad stop working and unable to change my brightness after installation at first all feature are perfectly fine except screen glitch.Screen performance is laggy.

ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: xorg 1:7.7+22ubuntu1
ProcVersionSignature: Ubuntu 5.11.0-25.27-generic 5.11.22
Uname: Linux 5.11.0-25-generic x86_64
ApportVersion: 2.20.11-0ubuntu65.1
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckResult: pass
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Wed Jul 21 17:13:28 2021
DistUpgraded: Fresh install
DistroCodename: hirsute
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes, if not too technical
GraphicsCard:
 Intel Corporation Iris Plus Graphics G7 [8086:8a52] (rev 07) (prog-if 00 [VGA controller])
   Subsystem: Lenovo Iris Plus Graphics G7 [17aa:3a34]
   Subsystem: Lenovo GP107M [GeForce MX350] [17aa:3a34]
InstallationDate: Installed on 2021-07-21 (0 days ago)
InstallationMedia: Ubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
MachineType: LENOVO 82A1
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.11.0-25-generic root=UUID=178639d7-12e5-45ac-a728-0643b1c58d44 ro quiet splash nomodeset vt.handoff=7
SourcePackage: xorg
Symptom: display
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 01/14/2021
dmi.bios.release: 1.31
dmi.bios.vendor: LENOVO
dmi.bios.version: DHCN31WW
dmi.board.asset.tag: ���������������
dmi.board.name: LNVNB161216
dmi.board.vendor: LENOVO
dmi.board.version: SDK0Q55722 WIN
dmi.chassis.asset.tag: ���������������
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Yoga Slim 7 14IIL05
dmi.ec.firmware.release: 1.29
dmi.modalias: dmi:bvnLENOVO:bvrDHCN31WW:bd01/14/2021:br1.31:efr1.29:svnLENOVO:pn82A1:pvrYogaSlim714IIL05:rvnLENOVO:rnLNVNB161216:rvrSDK0Q55722WIN:cvnLENOVO:ct10:cvrYogaSlim714IIL05:
dmi.product.family: Yoga Slim 7 14IIL05
dmi.product.name: 82A1
dmi.product.sku: LENOVO_MT_82A1_BU_idea_FM_Yoga Slim 7 14IIL05
dmi.product.version: Yoga Slim 7 14IIL05
dmi.sys.vendor: LENOVO
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.105-3~21.04.1
version.libgl1-mesa-dri: libgl1-mesa-dri 21.0.1-2
version.libgl1-mesa-glx: libgl1-mesa-glx N/A
version.xserver-xorg-core: xserver-xorg-core 2:1.20.11-1ubuntu1.1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-2
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20200714-1ubuntu1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.17-1

Revision history for this message
Nishant Kumar Singh (iamnishantksingh) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the bug report. This sounds like several unrelated issues. Please choose a single issue for this bug to be about.

affects: xorg (Ubuntu) → ubuntu
Changed in ubuntu:
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Also the tearing and laggy performance is caused by your kernel parameter "nomodeset". Please remove that.

Revision history for this message
Nishant Kumar Singh (iamnishantksingh) wrote :

After removing nomodeset my pc fail to start and frezzes on boot and sometime touchpad and brightness control from my laptop keys stop working.

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

OK. Those are probably all different issues though. So let's focus on:

> my pc fail to start and frezzes on boot

summary: - Screen tearing & mouse cursor glitch with unable change brightness of my
- display
+ PC fails to start and freezes on boot
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: PC fails to start and freezes on boot

Please:

1. Reproduce the boot failure again, without "nomodeset".

2. Wait 10 seconds.

3. Reboot with "nomodeset".

4. Run:

   journalctl -b-1 > prevboot.txt

5. Attach the resulting text file here.

Revision history for this message
Nishant Kumar Singh (iamnishantksingh) wrote :

Hey, I have already remove nomodeset from grub before submitting bug report.
But screen tearing is there.
Booting is perfectly fine except display glitch.

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

OK then let's make the display glitches the main issue here.

Since the PC is booting fine, please now run:

  journalctl -b0 > journal.txt
  xrandr --verbose > xrandr.txt

and attach the resulting text files here.

summary: - PC fails to start and freezes on boot
+ Screen tearing and display glitches
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Screen tearing and display glitches

Please also take a video of the issue if you can so we can better understand the problems you're seeing.

Revision history for this message
Nishant Kumar Singh (iamnishantksingh) wrote :
Revision history for this message
Nishant Kumar Singh (iamnishantksingh) wrote :
Revision history for this message
Nishant Kumar Singh (iamnishantksingh) wrote :
Revision history for this message
Nishant Kumar Singh (iamnishantksingh) wrote :
Revision history for this message
Nishant Kumar Singh (iamnishantksingh) wrote :
Revision history for this message
Nishant Kumar Singh (iamnishantksingh) wrote :
tags: added: hybrid i915 nouveau
affects: ubuntu → mutter (Ubuntu)
summary: - Screen tearing and display glitches
+ Incomplete screen redraws
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Incomplete screen redraws

Thanks. It looks like you've tried both Xorg and Wayland sessions. Are the bugs the same in both?

tags: added: licelake
tags: added: icelake
removed: licelake
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Please try:

* Installing the proprietary Nvidia driver via the 'Additional Drivers' app. The open source nouveau driver is frequently buggy so I would like to eliminate that from the equation ASAP.

* Looking in your BIOS and see if you can disable the discrete Nvidia GPU temporarily. Does that fix it?

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Nishant Kumar Singh (iamnishantksingh) wrote :

List of things I have to Inform you what I have tested.I am Computer Science student but new to linux so I have tested many things.

1. I have used both x-org and nvidia GPU.
        After fresh installation and on reboot I got into many problem my touchpad and brightness controller were not working and screen glitch so i fixed my brightness and touchpad using ubuntu community posts. But glitch were all same I have tried many solution but not solved.
so I posted ubuntu-bug.

2. I have changed setting from bios to disable NVIDIA but glitch problem not solved.
  And on using NVIDIA Driver there were not glitch performance were perfectly fine but on restart
   i got stucked on boot menu screen were blank so i ran into recovery and change my driver to x-org intel.

3. Before bug submission I have tested around 10 popular linux distro all were having same problem screen glitches.

4. only two distro have not occoured a display glitch problem one was ubuntu 20.04 LTS and ubuntu budgie 21.04 but that distro causes same touchpad and brightness controll problem that was so frustating. So I came to conclusion that my intel driver is buggy and on reboot my device alwaay fail to recognise touchpad and display driver.

Changed in linux (Ubuntu):
status: Incomplete → New
Changed in mutter (Ubuntu):
status: Incomplete → New
summary: - Incomplete screen redraws
+ [Ice Lake] Incomplete screen redraws
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: [Ice Lake] Incomplete screen redraws

It looks like this might be a Panel Self Refresh bug. PSR was disabled in Ubuntu 20.04 but seems to be enabled (sometimes) in newer Ubuntu releases. So please try disabling it by adding a kernel parameter:

  i915.enable_psr=0

Changed in linux (Ubuntu):
status: New → Incomplete
Changed in mutter (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

This post seems to confirm your model of laptop has issues with PSR on Linux:

https://www.reddit.com/r/archlinux/comments/jzhwmv/graphical_glitches_on_arch_running_kde_520_on_new/

so the workaround should be:

  i915.enable_psr=0

But please confirm.

summary: - [Ice Lake] Incomplete screen redraws
+ [Lenovo Yoga Slim 7 14IIL05] Incomplete screen redraws
no longer affects: mutter (Ubuntu)
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: [Lenovo Yoga Slim 7 14IIL05] Incomplete screen redraws

Also the touchpad issue is bug 1899913.

tags: added: regression-release
Revision history for this message
Nishant Kumar Singh (iamnishantksingh) wrote :

As you said to change the i915.enable_psr =0 i have save it to suno nano etc/kernal/cmdline after rebooting my pc there is more screen tearing problem.

yeah i am using ubuntu in 2 device one in my old lenovo g570 model and new lenovo yoga 7i and in G570 there is no problem such as screen tearing or brightness every thing is perfectly fine in g570

Revision history for this message
Nishant Kumar Singh (iamnishantksingh) wrote :

i think there is some issue with intel gpu driver because sometime ubuntu stuck on bootscreen and glitches and tearing is common in every scenario and after booting to recovery boot brightness controlling have some issue and all tends towards the ghraphics bug.

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

Please check /proc/cmdline and verify it contains the new parameter: i915.enable_psr=0

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

You may need to run:

  sudo update-grub

and reboot again before it starts working.

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

Also

> after booting to recovery boot brightness controlling have some issue

is not a bug. It's expected behaviour in recovery mode.

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

Another simple test to verify you've set the parameter is to run:

  sudo cat /sys/module/i915/parameters/enable_psr

It should print zero.

Revision history for this message
Nishant Kumar Singh (iamnishantksingh) wrote :

It said -1

Revision history for this message
Nishant Kumar Singh (iamnishantksingh) wrote :

Please tell me proper procedure to change value to zero

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

I would edit /etc/default/grub and add i915.enable_psr=0 to the GRUB_CMDLINE_LINUX_DEFAULT line.

Then run:

  sudo update-grub

and reboot.

Revision history for this message
Nishant Kumar Singh (iamnishantksingh) wrote :

yes ! I am Gonna tell you that same Now its perfectly fine no glitches and tearing issue now.But I want to Know does touchpad issue is solved in UBuntu 20.04LTS for lenovo yoga 7

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

Please keep all discussion about the touchpad in bug 1899913.

summary: - [Lenovo Yoga Slim 7 14IIL05] Incomplete screen redraws
+ [Lenovo Yoga Slim 7 14IIL05] PSR causes incomplete screen redraws
Changed in linux (Ubuntu):
importance: Undecided → High
status: Incomplete → Triaged
tags: added: focal
Changed in linux-hwe-5.11 (Ubuntu):
importance: Undecided → High
status: New → Triaged
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Please test latest drm-tip kernel:
https://kernel.ubuntu.com/~kernel-ppa/mainline/drm-tip/current/

Headers are not needed.

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

I'm not sure we need to bother with the above. We already know PSR is the cause of the problem. I was assuming it just needs to be disallowed for this machine... unless it can be *fixed* somehow in later kernels without being disabled?

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Mainly to test "drm/i915/display: Disable PSR2 if TGL Display stepping is B1 from A0", though the CPU seems to be ICL.

Revision history for this message
Nishant Kumar Singh (iamnishantksingh) wrote :

Can you tell me in brief how to test drm-tip kernal and disble PSR2

Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Revision history for this message
Nishant Kumar Singh (iamnishantksingh) wrote :

before Testing one thing I want to tell you I won't able to boot in ubuntu in normal mode but in recovery mode there is no issue related to screen tearing

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

Yes we know. Recovery mode works by disabling performance and power saving features so it will work around this bug. But that's not relevant to actually fixing the bug. Nobody should stay in recovery mode long term.

Revision history for this message
Nishant Kumar Singh (iamnishantksingh) wrote :

I have installed both files, Now what to do??

Revision history for this message
Nishant Kumar Singh (iamnishantksingh) wrote :

Now I am able to boot into ubuntu in normal mode but there is screen glitch problem.

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

OK, please verify the kernel version you're seeing the glitch in by running:

  uname -a

Revision history for this message
Nishant Kumar Singh (iamnishantksingh) wrote :

Linux YOGA 5.14.0-051400rc5drmtip20210809-generic #202108082205 SMP Mon Aug 9 02:21:27 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

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

Thanks for doing that.

It would seem the only fix is still 'i915.enable_psr=0' so please continue using that.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :
Revision history for this message
kyuhyong (kyuhyong) wrote :

I had exact same issue on ubuntu 20.04 with same system "lenovo yoga slim7 14IIL05"
Putting "i915.enable_psr=0" to GRUB_CMDLINE_LINUX_DEFAULT fixed issues such as rendering, screen tearing, delaying.

tags: added: psr
Revision history for this message
Artem (artemb) wrote :

The same issue on ubuntu 20.04(5.13.0-30) on Yoga slim 9 14ITL

Putting "i915.enable_psr=0" to GRUB_CMDLINE_LINUX_DEFAULT fixed issues such as rendering, screen tearing, delaying.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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