Windows not redrawing after display sleep

My Kubuntu 24.10 install (Plasma 6.1.5) has recently started to misbehave when I wake the monitor after it’s gone to sleep. Pretty much every window no longer redraws until I toggle its maximized state. Panels are all okay, just windows.
My machine is some noname mini-PC with an AMD Ryzen 5 5560U with Radeon Graphics.
I’ve gone through Settings looking for something that affects it but no joy. Adaptive sync is off because the monitor randomly goes black with it on, sll other settings are defaults afaict.
Here’s a screenshot, where I’ve dragged the Spectacle window around to show the windows behind not redrawing.

what does swapon say?

NAME      TYPE SIZE USED PRIO
/swapfile file 512M   0B   -2

Interestingly, there was an update after I posted and after it rebooted the problem seems to have gone away. I wonder if something got fixed.

if you are wanting to use hibernate when you screen goes to sleep, then i would recommend creating a swap partition of the size RAM + sqrt(RAM).

it could be your system is trying suspend but not having enough room to store what is in ram, so when you wake it back up it has to “improvise”

1 Like