google / xsecurelock

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

Using xautolock instead of xss-lock #150

Closed cubetastic33 closed 1 year ago

cubetastic33 commented 1 year ago

The readme says xautolock can be used instead of xss-lock as long as you do not care for suspend events (like on laptops):

However, I believe xautolock can be used with suspend events as well, when the -detectsleep argument is passed. Should the README be updated to reflect this, or am I misunderstanding something?

divVerent commented 1 year ago

Update welcome. I do not recommend this feature though, as it does not act before, but only after, suspend (so when turning the laptop on again, you will see previous screen content for a split second).

cubetastic33 commented 1 year ago

Ah, never mind - I guess I'd misunderstood what "as long as you do not care for suspend events meant". I didn't realize the README was saying xautlock doesn't trigger on suspend; I thought it was saying the timeout didn't reset after waking from suspend. All -detectsleep does is it resets the timeout after waking from suspend, so I think the issue the README is talking about is still valid.