View previous topic :: View next topic |
Author |
Message |
Pistos Apprentice
Joined: 29 Jul 2003 Posts: 175 Location: Canada
|
Posted: Mon Jan 16, 2017 3:08 pm Post subject: Screen never locking (KDE Plasma) |
|
|
After any given reboot of this system, the automatic screen locking after inactivity timeout works fine for the first few days, but then eventually it never activates on its own. Manual screen locking works fine. Anyone know why this might be the case? Is there a /proc/* thingie I can use to see what the system thinks the current inactivity time is? |
|
Back to top |
|
|
Pistos Apprentice
Joined: 29 Jul 2003 Posts: 175 Location: Canada
|
Posted: Mon Jan 16, 2017 6:18 pm Post subject: |
|
|
I worked around the problem using cron and `qdbus`.
Code: |
if `DISPLAY=:0 qdbus org.freedesktop.ScreenSaver /ScreenSaver GetSessionIdleTime`.to_i > 5 * 60 * 1000
`DISPLAY=:0 qdbus org.freedesktop.ScreenSaver /ScreenSaver Lock`
end
|
|
|
Back to top |
|
|
|