Started in '04 actually.

It's the lamest and hackiest solution imaginable, but in addition to the
solution given in #20, if xscreensaver starts asking you for a password
once you apply that solution and gnome stops bugging you for it, you can
do this as root:

mv /usr/bin/xscreensaver-command{,-real}
cat > /usr/bin/xscreensaver-command << "EOF"
#!/bin/bash

if [ "${1}" == "-lock" ]; then /usr/bin/xscreensaver-command-real -activate; 
else /usr/bin/xscreensaver-command-real $@; fi
EOF
chmod +x /usr/bin/xscreensaver-command

This "solution" does have the added benefit of turning your screensaver
on when you go to suspend for visual confirmation, which someone
mentioned wanting years ago. You'll notice "solution" is in quotes for a
good reason; this breaks functionality. If you ever want to lock your
screen after this, you'll need to call xscreensaver-command-real -lock.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in Ubuntu.
https://bugs.launchpad.net/bugs/10686

Title:
  No GUI method to disable screen lock on lid close event

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/10686/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to