You are not logged in.
Pages: 1
Anyone knows how to configure arch to automatically lock the screen on closing the lid? I know this can be done using gnome-power-manager but I don't want gnome dependencies. Googling, I found a few references to modifying some scripts in /etc/acpi, but that did not work for me.
Offline
well I know that I have mine set to automatically shutoff in /etc/acpi/handler.sh. It's around line 60 where it starts the button/lid. Here's the exact code... All you would need is to know the command to lock the screen and replace /sbin/poweroff with that command.. Hope that helps.If you figure it out post it I may switch to locking instead of shutting off.
button/lid)
#echo "LID switched!">/dev/tty5
/sbin/poweroff
;;
*)
logger "ACPI group/action undefined: $1 / $2"
;;
Last edited by shen (2007-08-27 14:50:27)
Offline
Another option might be using xscreensaver, it has a screen locking feature.
Last edited by shen (2007-08-27 14:59:10)
Offline
Thanks for the tip! I replaced /sbin/poweroff with /usr/bin/xscreensaver-command -lock, and it's locking properly.
Offline
You could also try:
kdesktop_lock -forcelock
Last edited by tanis (2007-08-27 16:34:24)
Offline
Pages: 1