suspending by closing the lid freezes graphics after resuming
I am using "When laptop lid is closed" = "Suspend". I am also using "Lock screen when system is going to sleep". When closing the lid and then opening it back up, the screen will be frozen with what it should look like without the lock screen activated. There are a few screen updates (usually I see a notification about wifi), but I can't do anything and the clock in the panel doesn't tick. If a blindly type in my password then the screen unfreezes and I can use the system normally.
What should happen is the lock screen should be presented so that I can see where I am typing in my password and I should not be able to see anything on the desktop that was up before the lid was closed.
I've figured out that setting HandleLidSwitch=ignore
in /etc/systemd/logind.conf
is a workaround to this problem, but then the lid won't cause the system to sleep when at the login screen. I think what is happen is that the logind-handle-lid-switch
option is being ignored and is always treated as True
.
Suspending by another way besides closing the laptop lid does not cause this problem. It also does not matter if I use xfce4-screensaver or gnome-screensaver.
I am running Xubuntu 22.04.3 and this happens on multiple laptop make/model for me.