← Back to team overview

desktop-packages team mailing list archive

[Bug 10686] Re: No GUI method to disable screen lock on lid close event

 

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 Desktop
Packages, 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

Status in “gnome-power-manager” package in Ubuntu:
  Confirmed

Bug description:
  When I close my laptop lid, and open it again, the screensaver is locked. I'd
  like to change this behaviour, I've checked the screensaver preferences and the
  only option that mentions locking the screen ("Lock screen after") is unset. I
  think it makes more sense to lock the screen on lid close dependant on the
  setting of "Lock screen after" option in screensaver preferences
  This is on a recently updated hoary, xscreensaver version 4.16-1ubuntu3.

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