Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
leminhman0312 opened this issue Jun 27, 2023 · 1 comment

Comments

@leminhman0312
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants