the-cavalry / light-locker

A simple session-locker for lightdm
GNU General Public License v2.0
224 stars 22 forks source link

light-locker-command -q fails to determine active screensaver #96

Open paranoid-km opened 7 years ago

paranoid-km commented 7 years ago

Hi, I have noticed that light-locker-command -q always reports that screensaver is inactive even when it not. I have only tested this on debian sid, but I also built 1.7.0 from src and the result was the same.

Please let me know if you need more information/testing on this.

Best regards Martin

cavalier38 commented 7 years ago

It should report the current state of the Xserver screensaver. Could you try this command? sleep 1; xset s activate ; sleep 1; light-locker-command -q; xset s reset

cavalier38 commented 7 years ago

light-locker-command behaviour should be improved in 6365683.

stefan-reich commented 4 years ago

I am using Peppermint 10 and have the same issue. It ships with Light-Locker 1.8.0. I run

light-locker-command -l & (sleep 10; light-locker-command -q)

which will lock the screen. I then wait longer than 10 seconds, log back in, and I see:

The screensaver is inactive

Apparently light-locker is not detecting the screen that it - itself - locked...