Graphic corruption after suspend and resume with Plasma desktop

I have graphical corruption every time my computer wakes up from sleep

NVRM: GPU at PCI:0000:01:00: GPU-af9a53ee-a3db-64f6-37f8-c5140fa6a275
[ 8547.810197] NVRM: Xid (PCI:0000:01:00): 13, pid=‘’, name=, Graphics Exception: Shader Program Header 11 Error
[ 8547.810218] NVRM: Xid (PCI:0000:01:00): 13, pid=‘’, name=, Graphics Exception: Shader Program Header 18 Error
[ 8547.810244] NVRM: Xid (PCI:0000:01:00): 13, pid=‘’, name=, Graphics Exception: ESR 0x405840=0xa2040800
[ 8547.810275] NVRM: Xid (PCI:0000:01:00): 13, pid=‘’, name=, Graphics Exception: ESR 0x405848=0x80000000
[ 8547.812234] NVRM: Xid (PCI:0000:01:00): 13, pid=1784, name=kwin_wayland, Graphics Exception: ChID 0008, Class 0000c997, Offset 00000000, Data 00000000
[ 8547.938041] NVRM: Xid (PCI:0000:01:00): 13, pid=‘’, name=, Graphics Exception: Shader Program Header 11 Error
[ 8547.938047] NVRM: Xid (PCI:0000:01:00): 13, pid=‘’, name=, Graphics Exception: Shader Program Header 18 Error
[ 8547.938048] NVRM: Xid (PCI:0000:01:00): 13, pid=‘’, name=, Graphics Exception: ESR 0x405840=0xa2040800
[ 8547.938081] NVRM: Xid (PCI:0000:01:00): 13, pid=‘’, name=, Graphics Exception: ESR 0x405848=0x80000000
[ 8547.939976] NVRM: Xid (PCI:0000:01:00): 13, pid=‘’, name=, Graphics Exception: ChID 0077, Class 0000c997, Offset 00000000, Data 00000000
[ 8550.756678] igc 0000:07:00.0 enp7s0: NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
[ 8559.163297] NVRM: Xid (PCI:0000:01:00): 13, pid=‘’, name=, Graphics Exception: Shader Program Header 11 Error
[ 8559.163311] NVRM: Xid (PCI:0000:01:00): 13, pid=‘’, name=, Graphics Exception: Shader Program Header 18 Error
[ 8559.163344] NVRM: Xid (PCI:0000:01:00): 13, pid=‘’, name=, Graphics Exception: ESR 0x405840=0xa2040800
[ 8559.163380] NVRM: Xid (PCI:0000:01:00): 13, pid=‘’, name=, Graphics Exception: ESR 0x405848=0x80000000
[ 8559.165468] NVRM: Xid (PCI:0000:01:00): 13, pid=1871, name=maliit-keyboard, Graphics Exception: ChID 000b, Class 0000c997, Offset 00000000, Data 00000000
[ 8566.616451] NVRM: Xid (PCI:0000:01:00): 13, pid=‘’, name=, Graphics Exception: Shader Program Header 11 Error
[ 8566.616529] NVRM: Xid (PCI:0000:01:00): 13, pid=‘’, name=, Graphics Exception: Shader Program Header 18 Error
[ 8566.616606] NVRM: Xid (PCI:0000:01:00): 13, pid=‘’, name=, Graphics Exception: ESR 0x405840=0xa2040800
[ 8566.616684] NVRM: Xid (PCI:0000:01:00): 13, pid=‘’, name=, Graphics Exception: ESR 0x405848=0x80000000
[ 8566.621339] NVRM: Xid (PCI:0000:01:00): 13, pid=1953, name=plasmashell, Graphics Exception: ChID 001d, Class 0000c997, Offset 00000000, Data 00000000

Lots of threads with similar problems caused by exceptions in the OpenGL nVidia libs. I have Cinnamon and suspend from resume currently consists of a black screen, followed by ctrl+f2 to login to a console as root, unlocking my normal account (Arch Linux) because for some reason during this GL crash LightDM thinks I’ve tried to login with a bad password repeatedly…and then I can ctrl+f7 back to my session login.

After that, I get a message/dialog box about Cinnamon crashing, and I can choose to restart it (which usually works). This all started after the most recent update to 560.35.03 on my laptop RTX3070.

I wanted to report, I updated the kernel on Arch today, and there was a corresponding update to the nVidia packages (same base driver version). However, suspend/resume was completely broken. Upon investigation, I found that all of the systemd services required for systemd-based power management by nVidia were disabled. I went and enabled them, and added the nvidia module config to enable S0ix-based power management and lo and behold, suspend and resume works again!

So, not sure how/why, but the package on Arch Linux at least was installing on a systemd-based installation as if it were not using systemd. This points to a possible package installer/misconfiguration issue in the Arch repo (and perhaps other repos).

http://us.download.nvidia.com/XFree86/Linux-x86_64/560.35.03/README/powermanagement.html

“Options nvidia NVreg_PreserveVideoMemoryAllocations=1” seems to have solved my issue.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.