Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wake from sleep on nvidia #1113

Open
awilkins opened this issue Jan 6, 2025 · 2 comments
Open

Wake from sleep on nvidia #1113

awilkins opened this issue Jan 6, 2025 · 2 comments

Comments

@awilkins
Copy link

awilkins commented Jan 6, 2025

Wake from sleep, nvidia experience

COSMIC Epoch, kernel

Linux pop-os 6.9.3-76060903-generic #202405300957~1728589823~24.04~3d61696 SMP PREEMPT_DYNAMIC Thu O x86_64 x86_64 x86_64 GNU/Linux

Nvidia 3080Ti, driver 565.77, driving three displayport monitors at 1440p

Resuming from sleep most often leaves you stuck with a blank screen, if you are lucky, with a mouse pointer. Things are not terribly responsive. Most of the time I've been doing a REISUB, which still works. ctrl-alt-Fx for a tty usually doesn't.

This time, the centre monitor recovered and I was able to open the display properties - after disabling/enabling each monitor, things seem to be working OK again.

Applications : many applications present a blank surface for a while, feels like these are GPU rendered apps that have lost their textures. This includes cosmic-term and most Electron-based apps. For some (like the Display properties), resizing them was enough to restore things (with progress sometimes being reflected by e.g. some letters being drawn and others still missing). For some applications, restarting them is required.

e.g.

cosmic-files
screenshot-2025-01-06-14-25-17

The file dialog of me uploading that screenshot of cosmic-files, with a bunch of missing font glyphs

screenshot-2025-01-06-14-26-25

Apologies if the compositor is the wrong place for this ; but given the symptoms it seemed like the best fit. Resume from sleep works most of the time on my Intel HD powered laptop (with occasional lockups).


Tail of dmesg with post-resume messages concerning nvdia

[ 4438.558274] random: crng reseeded on system resumption
[ 4438.558281] PM: suspend exit
[ 4438.558508] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000b lmp_ver=0a lmp_subver=8761
[ 4438.560502] Bluetooth: hci0: RTL: rom_version status=0 version=1
[ 4438.560506] Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_fw.bin
[ 4438.560549] Bluetooth: hci0: RTL: loading rtl_bt/rtl8761bu_config.bin
[ 4438.560563] Bluetooth: hci0: RTL: cfg_sz 6, total sz 30210
[ 4438.699871] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 4438.706841] ata3.00: configured for PIO4
[ 4438.828499] Bluetooth: hci0: RTL: fw version 0xdfc6d922
[ 4438.948618] Bluetooth: MGMT ver 1.22
[ 4440.890377] NVRM: GPU at PCI:0000:09:00: GPU-83357350-c608-0c87-9c44-af0aa64035a9
[ 4440.890381] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 18 Error
[ 4440.890386] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ESR 0x405840=0x82040000
[ 4440.890441] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ESR 0x405848=0x80000000
[ 4440.891681] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ChID 000a, Class 0000c797, Offset 00000000, Data 00000000
[ 4440.896851] Generic FE-GE Realtek PHY r8169-0-500:00: attached PHY driver (mii_bus:phy_addr=r8169-0-500:00, irq=MAC)
[ 4440.901394] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 18 Error
[ 4440.901420] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ESR 0x405840=0x82040000
[ 4440.901474] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ESR 0x405848=0x80000000
[ 4440.902874] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ChID 0007, Class 0000c797, Offset 00000000, Data 00000000
[ 4440.912492] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 18 Error
[ 4440.912496] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ESR 0x405840=0x82040000
[ 4440.912592] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ESR 0x405848=0x80000000
[ 4440.913826] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ChID 000d, Class 0000c797, Offset 00000000, Data 00000000
[ 4440.924397] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 11 Error
[ 4440.924423] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 18 Error
[ 4440.924461] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ESR 0x405840=0xa2040800
[ 4440.924515] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ESR 0x405848=0x80000000
[ 4440.925776] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ChID 0049, Class 0000c797, Offset 00000000, Data 00000000
[ 4441.028935] r8169 0000:05:00.0 enp5s0: Link is Down
[ 4441.317169] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 11 Error
[ 4441.317176] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 18 Error
[ 4441.317234] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ESR 0x405840=0xa2040800
[ 4441.317288] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ESR 0x405848=0x80000000
[ 4441.318607] NVRM: Xid (PCI:0000:09:00): 13, pid=2291, name=Xwayland, Graphics Exception: ChID 0010, Class 0000c797, Offset 00000000, Data 00000000
[ 4444.085516] r8169 0000:05:00.0 enp5s0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 4447.106881] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 11 Error
[ 4447.106887] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 18 Error
[ 4447.106938] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ESR 0x405840=0xa2040800
[ 4447.106996] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ESR 0x405848=0x80000000
[ 4447.108364] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ChID 0055, Class 0000c797, Offset 00000000, Data 00000000
[ 4449.638102] sr 2:0:0:0: [sr0] tag#5 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[ 4449.638110] sr 2:0:0:0: [sr0] tag#5 Sense Key : Illegal Request [current]
[ 4449.638116] sr 2:0:0:0: [sr0] tag#5 Add. Sense: Read of scrambled sector without authentication
[ 4449.638120] sr 2:0:0:0: [sr0] tag#5 CDB: Read(10) 28 00 00 35 4b 80 00 00 40 00
[ 4449.638123] I/O error, dev sr0, sector 13970944 op 0x0:(READ) flags 0x80700 phys_seg 32 prio class 3
[ 4449.663099] sr 2:0:0:0: [sr0] tag#6 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
[ 4449.663105] sr 2:0:0:0: [sr0] tag#6 Sense Key : Illegal Request [current]
[ 4449.663109] sr 2:0:0:0: [sr0] tag#6 Add. Sense: Read of scrambled sector without authentication
[ 4449.663113] sr 2:0:0:0: [sr0] tag#6 CDB: Read(10) 28 00 00 35 4b 80 00 00 02 00
[ 4449.663116] I/O error, dev sr0, sector 13970944 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 3
[ 4449.663122] Buffer I/O error on dev sr0, logical block 1746368, async page read
[ 4452.814450] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 11 Error
[ 4452.814480] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 18 Error
[ 4452.814515] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ESR 0x405840=0xa2040800
[ 4452.814564] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ESR 0x405848=0x80000000
[ 4452.815767] NVRM: Xid (PCI:0000:09:00): 13, pid=2347, name=cosmic-panel, Graphics Exception: ChID 0013, Class 0000c797, Offset 00000000, Data 00000000
[ 4452.831463] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 11 Error
[ 4452.831493] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: Shader Program Header 18 Error
[ 4452.831530] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ESR 0x405840=0xa2040800
[ 4452.831575] NVRM: Xid (PCI:0000:09:00): 13, pid='<unknown>', name=<unknown>, Graphics Exception: ESR 0x405848=0x80000000
[ 4452.832742] NVRM: Xid (PCI:0000:09:00): 13, pid=9317, name=Renderer, Graphics Exception: ChID 0043, Class 0000c797, Offset 00000000, Data 00000000
[ 4456.189624] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)``
@garrettjwilke
Copy link

this isn't quite a fix for the issue you are having, but pressing CTRL+ALT+F3 will open a TTY...login, then run:

sudo systemctl restart cosmic-greeter

this will get your graphics back up but you will lose any applications that were open

:)

@awilkins
Copy link
Author

I think the reason I'm resorting to ctrl-alt-sysreq REISUB is that Ctrl-Alt-F3 isn't working but I'll give it another go (maybe I'm doing Ctrl-Alt-3 or something ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants