Closing the laptop lid suspends the system, opening it resumes it, but the screen is black. I’m guessing it’s related to powerup because suspending through the logout menu and systemctl suspend
both work as expected. When it’s black, switching to a different tty works, as well as C-M-Backspace to logout.
Same results with both lightdm and sddm, when replacing suspend with hibernate, and I’ve tried a few solutions like disabling lock on sleep.
Seems like this issue has been around for years, but had a whole bunch of different causes since every other thread has a different solution.
XFSETTINGSD_DEBUG=1 xfsettingsd --replace --no-daemon > /tmp/xf.log 2>&1
ps -ef | grep -E ‘screen|lock’
Saw that recommended, but it doesn’t work. It just goes back to black.
i wonder what happens if you send SIGSTOP to the Xserver before suspend, then SIGCONT after resume. I imagine it would be like a time jump and it doesn’t notice it was suspended, but not sure at all.
I found a solution last night: execute an xrandr config. I’ll update the post later when I automate it.
😲 that’s cool. I use xrandr a lot in scripts for playing games with small text in lower resolution. It makes sense.