Resume/wake from suspend results in black screen in X11 (Nvidia)

Hi there.

Just 2 days ago, I installed CachyOS on my system. So far everything has been working out rather fine and I’ve been enjoying the experience, but today I noticed that when I resume/wake from suspend/sleep I get only a black screen, but only in X11. Resume from suspend works fine in Wayland, the login screen appears as intended for me to get back in my session.

My desktop environment is KDE Plasma.

I tried to look for solutions or people with similar issues, but people usually have the reverse problem. That is, they have problems resuming from suspend in Wayland, while it works fine in X11.

I’m using the defaults of everything, so I have the default cachyos kernel, and the latest Nvidia driver (565.77). My GPU is RTX 3060 Ti.

Not sure if this is relevant, but I can see the cursor when I resume my computer from suspend. Behind it, however, there is only a black screen. Only way for me to get out is by physically pressing the power off button so my computer turns off and then reboot. I even tried getting into a tty, but that doesn’t work out either.

This is a desktop computer, and everything works fine in Wayland.

Before CachyOS, I had openSUSE Tumbleweed installed in this computer. Also kernel version 6.12 and KDE Plasma, but the Nvidia driver there is a bit older, they use the current production branch driver 550. Resume from suspend worked fine there in both X11 and Wayland.

I’m a bit at a loss here. If you need any more info or logs please let me know and I will provide them.

Back with some more info. I found this bug describing exactly the same symptoms as mine on the Nvidia forums: Black screen with cursor after sleep - Linux - NVIDIA Developer Forums

Moderator there said they filled a bug internally and will try to replicate it.

I tried GNOME and while a similar problem happens, the screen and the session always recover after about 10 seconds. It’s KDE that completely crashes and most of the time doesn’t go past the black screen, forcing the reboot.

Another test I did and which wasn’t a surprise, I tried logging out and putting the computer to sleep/suspend on the sddm. As expected, the computer comes back from sleep just fine on the sddm too. So it really seems like some weird interaction between Nvidia and X11 causing the problem.

No solution for now, but figured I’d update with these findings in case anyone else faced the same problems.

Do let me know if anyone finds any fix or workaround in the meantime. I’ll keep an eye on the Nvidia forums and just stick to Wayland for the time being.

I better read your 1st post and you have a desktop… well I had the same problem with my laptop (Asus Zephyrus) and what helped a lot is the deactivation of the SD card reader. It was blocking the resume from suspend for some reason.