Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Screen never locking (KDE Plasma)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Pistos
Apprentice
Apprentice


Joined: 29 Jul 2003
Posts: 175
Location: Canada

PostPosted: Mon Jan 16, 2017 3:08 pm    Post subject: Screen never locking (KDE Plasma) Reply with quote

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
View user's profile Send private message
Pistos
Apprentice
Apprentice


Joined: 29 Jul 2003
Posts: 175
Location: Canada

PostPosted: Mon Jan 16, 2017 6:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum