You are not logged in.

#1 2021-09-08 10:51:33

din14970
Member
Registered: 2021-09-08
Posts: 10

Issues restoring desktop environment from sleep or hibernation

My system

I'm using KDE Plasma on X11, SDDM and the standard and LTS kernels. I have an NVIDIA RTX 3080 GPU, of which I am using the two HDMI ports for my two screens since my mobo doesn't have on-board graphics. I'm using the proprietary nvidia drivers.

My issue

Whenever I put my computer to sleep or hibernation and attempt to wake it back up I often just see a mouse on a black background. Other desktop graphics most of the time do not return at all.
I can switch to a tty, which activates both of my screens showing the same output, and interact with the system no problem.
Switching between tty and the X session repeatedly I can sometimes get the desktop to return, which can take a really long time ~10 min.
journalctl doesn't really show anything of note, unless I am looking for the wrong things.
Switching between tty and X can sometimes cause some weird graphical glitches like partially black windows but this is usually resolved by waiting a few seconds.

I'm wondering how I can figure out what the root cause of this issue might be (kernel, nvidia drivers, something X related or something plasma/Qt related), whether anyone else has experienced similar issues, and whether there is a fix.
I'm coming from Mac and am very much used to a "never power off my computer" workflow, so the inability to reliably put my computer to sleep is bothering me quite a bit.

Offline

#2 2021-09-08 11:51:18

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,306

Re: Issues restoring desktop environment from sleep or hibernation

Historically the nvidia drivers had/have quite some issue with restoring their GL/VRAM context from suspension. They've implemented a not yet default mitigation for these which require some setup, which is described in https://wiki.archlinux.org/title/NVIDIA … er_suspend (general notes here, you will want to create the directory you are passing as the temp file location and you'll need to reboot before the modprobe file can properly take effect)

FWIW from a KDE/KWin point of view you might be able to bring things back by toggling the compositor with Alt+Shift+F12 (at least twice to disable and subsequently reenable compositing) and/or just restarting plasma (e.g. running plasmashell --replace from a terminal/KRunner (Alt+F2))

Last edited by V1del (2021-09-08 12:03:51)

Offline

#3 2021-09-09 10:17:38

din14970
Member
Registered: 2021-09-08
Posts: 10

Re: Issues restoring desktop environment from sleep or hibernation

Thanks, I looked over that part in the wiki it seems! Also good to know it must be a directory, I will add this to the wiki as it's not entirely clear from the text. I tried the steps but it still doesn't work, now the computer doesn't even go to sleep anymore; the screen immediately wakes back up. I'll have to dig a bit deeper now that I know that it's probably NVIDIA related, this page gives a pretty nice overview of what to try: https://wiki.archlinux.org/title/NVIDIA/Troubleshooting. Also seems compositing is disabled, I get a warning that "OpenGL compositing (the default) has crashed KWin in the past." and the suggestion to use XRender. If all else fails, I guess I'll have to go with  plasmashell --replace and hope a better solution comes along at some point.

Offline

Board footer

Powered by FluxBB