Registered Member
|
After invoking the lockscreen command, I would like KDE to switch off the screen 20 seconds after locking. I can't seem to find the command anywhere to chain these two options together.
Anyone out there know a solution? |
|
I'm not entirely sure what/how you seek to do, but
will lock the screen, sleep 20 seconds and turn off the screen if the locker is (still or again) active. You can eg. bind that to a hotkey or whatever. |
Registered Member
|
Thanks!
I want to save power since locking the screen means I won't be interacting with the computer anyway. However, if I am compiling software for instance, I would prefer the screen be turned off rather than shutting down the computer. |
|
=)
I meant whether you were trying to write some plasmoid (python, c++) or patch ksmserver or just wanted to know some bashlet. This, or rather maybe enabling and lowering dpms timeouts (so the screen turns off after 20s of inactivity while the locker is up) might be a useful feature in the locker code (when the locker is explicitly invoked) - considered to file a bugwish? |
Registered Member
|
Sorry, I don't know how to write code for plasmoids. I was also checking to see if I missed any features in System Settings.
I would be pleased to file a wishlist bug for the screenlocker. Which component of KDE would be the most appropriate? Update: Wishlist "bug" filed https://bugs.kde.org/show_bug.cgi?id=348529
Last edited by Rewarp on Mon Jun 01, 2015 2:25 am, edited 1 time in total.
|
Registered Member
|
By the way, this only works during the initiation of the lock screen. How do you get it to loop back into turning off the screen again if the keyboard is disturbed during the screen lock?
/cats |
|
Quick hack
to be correct, it should query "xset -q" for the present dpms settings and restore them afterwards |
Registered Member
|
I am guessing there is something missing, because the revised code does not restore my dpms settings, but remains 20, 24, 30.
It does restore dpms when I run this line after unlocking. xset dpms 5520 8280 11040 # extra long because screen times out during video streams, a hacky solution on my part) |
|
Who wrote that? I could swear I had a "done" there ;-P
The below should safe your previous settings.
|
Registered Member
|
That's so awesome!
It's practically ready for deployment now. I really should get around to reading about bash scripting and regular expressions. That Packt ebook is gathering digital dust somewhere. |
Registered Member
|
Kai Uwe Broulik is adding it to his todo list.
https://bugs.kde.org/show_bug.cgi?id=348529#c4 Have I mentioned before how much I love the KDE community? |
Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]