You are not logged in.

#1 2024-11-17 16:36:22

Infernal_pizza
Member
Registered: 2023-08-05
Posts: 10

KDE black screen when resuming from sleep (Nvidia GPU)

I'm having constant issues with sleep on my PC at the moment. Its not every time but definitely greater than 2/3 times when I wake my PC I just get a black screen. Switching to another tty and back again will sometimes show my previous desktop session but I can't interact with it other than moving the mouse cursor around, I have to restart sddm.service or just reboot for it to be usable again. As the title says I have an Nvidia GPU which I'm assuming is contributing to the problem. I have already enabled the nvidia suspend/resume services from here: https://wiki.archlinux.org/title/NVIDIA … er_suspend
I also added nvidia.NVreg_PreserveVideoMemoryAllocations=1 as a kernel parameter although I'm not sure that was necessary as the wiki page says its already enabled by default on Arch.

I've uploaded the journalctl output from my last boot here: https://upload.disroot.org/r/ZnLUas_m#C … DAVC0XaFE=
I think the relevant section is from 14:46:46 to 15:43:03 but I included everything before that as there wasn't much and it may be relevant. These are my power management and screen locking settings in KDE settings: https://imgur.com/a/lYTOm5e

I have 2 monitors if that makes any difference. I also previously had an issue where waking the screen up when the system itself hadn't suspended yet would get me stuck with an unresponsive lock screen for a minute before I could sign back in, I fixed that by changing the screen lock timer to be shorter than the turn off screen timer, I'm not sure if thats related but it does seem like fairly similar behaviour. My desktop wallpaper also sometimes starts flickering intermittently after waking from suspend, I'm not sure if thats also related? It only does it if I have no apps open on that screen.

Last edited by Infernal_pizza (2024-11-17 16:39:12)

Offline

#2 2024-12-04 13:41:49

wondermr
Member
Registered: 2024-12-04
Posts: 3

Re: KDE black screen when resuming from sleep (Nvidia GPU)

The same case:
- 2 monitors
- NVidia card
- KDE stucks while returning from sleep. I turned off any forms of sleeping, but it's also stucks.
- Sometimes my resolution switches to 640x480 and i can not change it. I need to physically unplug monitors, plug them again and then it works.
- problem only in KDesktop Enviroment (in Cinnamon there is no such case)

Offline

#3 2024-12-04 15:52:52

wondermr
Member
Registered: 2024-12-04
Posts: 3

Re: KDE black screen when resuming from sleep (Nvidia GPU)

@Infernal_pizza, seems that helps me https://wiki.archlinux.org/title/NVIDIA … er_suspend

echo "options nvidia NVreg_PreserveVideoMemoryAllocations=1" | sudo tee -a /etc/modprobe.d/nvidia.conf
sudo systemctl start nvidia-persistenced.service
sudo systemctl start nvidia-powerd.service

Issue persists

Last edited by wondermr (2024-12-04 16:08:46)

Offline

#4 2024-12-04 19:56:31

MordecaiShalom
Member
Registered: 2024-11-08
Posts: 4

Re: KDE black screen when resuming from sleep (Nvidia GPU)

Hello,

Did either of you see this thread in your searching? I just updated my results and they may help you.

https://bbs.archlinux.org/viewtopic.php … 7#p2207447

Offline

#5 2024-12-05 13:33:43

wondermr
Member
Registered: 2024-12-04
Posts: 3

Re: KDE black screen when resuming from sleep (Nvidia GPU)

MordecaiShalom wrote:

Hello,

Did either of you see this thread in your searching? I just updated my results and they may help you.

https://bbs.archlinux.org/viewtopic.php … 7#p2207447


Yes, the symptoms are exactly the same.

But I don't want to change the cable—it works in Cinnamon, which means it should work in KDE as well.

For now, I've just turned off monitor dimming, the screen saver, and sleep mode. Let it stay on the time. But it works when I need it.

Offline

#6 2024-12-05 20:23:16

MordecaiShalom
Member
Registered: 2024-11-08
Posts: 4

Re: KDE black screen when resuming from sleep (Nvidia GPU)

wondermr wrote:

Yes, the symptoms are exactly the same.

But I don't want to change the cable—it works in Cinnamon, which means it should work in KDE as well.

For now, I've just turned off monitor dimming, the screen saver, and sleep mode. Let it stay on the time. But it works when I need it.

That's what I thought for awhile as well until I dug into the issue more.

Kscreen is constantly scanning for hardware changes in your display setup. Cinnamon uses GTK Shell (Based on Gnome) and has a much simpler hardware interface. It isn't scanning for hardware changes like KSCREEN. The end result of that is KDE/Plasma is more sensitive to hardware issues. BTW, I inspected my cables more carefully and they are definitely damaged. I ordered a new pair to solve that.

Had Plasma not failed, who knows what the failing cable could have done to my Desktop or Monitor.

Offline

#7 2024-12-18 15:02:36

solsluminous
Member
Registered: 2024-12-17
Posts: 3

Re: KDE black screen when resuming from sleep (Nvidia GPU)

Same here, But I'm using an AMD gpu so I don't think its a hardware issue

This only works when using X11 but for compatibility reasons I can't use wayland with plasma

Offline

Board footer

Powered by FluxBB