google / xsecurelock

X11 screen lock utility with security in mind
Apache License 2.0
863 stars 65 forks source link

How to suspend until keypress, after BLANK_TIMEOUT and AUTH_TIMEOUT is reached? #174

Open leminhman0312 opened 1 year ago

leminhman0312 commented 1 year ago

Hi. I set my environment variables like this:

XSECURELOCK_BLANK_TIMEOUT=5
XSECURELOCK_AUTH_TIMEOUT=5
XSECURELOCK_BLANK_DPMS_STATE=suspend

So when the screen locks, if I dont do anything then after 5 seconds => xsecurelock would blank the screen. This works fine but the blank state is not suspend, as defined in the DPMS_STATE above. I can tell this because although the screen turns black, the Thinkpad LED stays solid which indicates that the laptop is not suspending. FYI, I also tried "off", "standby" and still got the same thing: screen turns black but LED is still solid.

Any help is appreciated.

useredsa commented 11 months ago

Hi @leminhman0312,

I believe the DPMS states refer to the screen (physical device) states, not the computer state. After BLANK_TIMEOUT the screen device is suspended (is black), but the computer is in the same state.