Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

DPMS Suspend on Screen Lock

Writer 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:

  1. Ctrl+Alt+Del, aka xflock4 should lock the screen and turn it off
  2. 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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy