kscreensaver no longer locks screen on suspend to ram in 12.1
The subject pretty much says it all.
I upgraded my installation from 12.0 to 12.1 on a thinkpad t42p, and now the screen doesn't lock when I close the lid. I never used the acpi functions built into kde before, because I found some custom scripts that worked just fine. In 12.0, the screen would lock on a lid event, but now it opens back up to my desktop. Has anyone else had this issue. If so, how did you fix it? |
I think you need a key event for the lid close key and do something like this:
echo mem > /sys/power/state I had to do a echo 3 > /proc/sys/kernel/acpi_video_flags in rc.local in order to be able to restore the screen from a suspend to memory. |
I've just been looking into doing this. I usually run a script manually but to have the script run when the lid is closed you need to edit /etc/acpi/acpi_handler.sh:
Code:
#!/bin/sh Of course you will also need to turn off the thinkpad lid option in kde control centre to use the acpi handler or there will be conflicts I should imagine. Hope it's useful for you. |
By the way, I looked at kde options but couldn't find any option to start kscreensaver after resuming, so I imagine they have changed that. If there is a way I would also like to know because I've noticed that xlock doesn't work on resume on my T42 so I had to use 'xscreensaver-command -lock' with a while loop to make sure that no user commands/programs are executed until a pass is entered, which is a completely untidy hack.
|
All times are GMT -5. The time now is 05:55 PM. |