DPMS Suspend on Screen Lock
Mia Lopez
I'm running Xubuntu 20.04 on my laptop (Acer B115-M). I'd like to have the following behavior related to the lock screen, and screensaver:
- Ctrl+Alt+Del, aka
xflock4should lock the screen and turn it off - The screensaver should only turn the screen off, and not display a blank screen and then waiting for some timeout to dpms-suspend it.
I tried setting /general/LockCommand to xset dpms force suspend which kind of works. I suspends the screen, but after a few seconds it comes back on. I was confident this worked, as xset dpms force suspend on the command line does exactly what I wanted: It suspends the display, and if you touch a key, it turns on, and then it goes straight to the lock screen.
Could you please help me achieving the behavior I described?
1 Answer
Does it work, if you set /general/LockCommand to
sh -c 'xfce4-screensaver-command --lock; sleep 0.5; xset dpms force suspend'(I added small delay so that your mouse/keyboard activity does not turn display on immediately.)
4