5

In Ubuntu 12.04, how can I keep the screen from locking when I close my laptop? I know I can disable locking altogether, but I do want the screen to lock when inactive. And I want it to lock when I suspend. I just don't want it to lock when I close the lid of the laptop.

Do I really have to be the person who sits in a meeting with their laptop lid almost closed?

2
  • Is this not a setting under "Power" in your System Settings? Mar 20, 2013 at 22:46
  • You bring your laptop to meetings?
    – G Koe
    Mar 22, 2013 at 5:07

1 Answer 1

4

Here's the workaround from Ubuntu 12.04

Check /etc/acpi/lid.sh and delete the lines that involve xscreensaver

There is a known gnome powercfg bug in regard to this.

Specific status for this bug #995840 for Ubuntu 12.04 and 12.10 is listed here under

"When laptop lid is closed screen locks even if it should not."

Current Status is "Confirmed" but the bug is "unassigned"

3
  • I think this must have worked at one point - I see where I commented out "/usr/share/acpi-support/screenblank" but my system is still blanking - still on 12.04. There's a big section below that line that seems to relate to un-blanking when the lid is re-opened, which I didn't change and which doesn't seem to have any effect when I comment it. Here's my complete lid.sh: pastebin.com/XQPBxPsE
    – Julian
    Mar 10, 2014 at 20:39
  • I'll check it out!
    – G Koe
    Mar 10, 2014 at 21:10
  • Is you system completely up to date? Are you using Intel graphics? Do you always get the lock screen when you resume? There was a similar bug reported here: bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/… that is finally resolved in regard to a hang on resume, but includes updates to lid.sh.
    – G Koe
    Mar 10, 2014 at 21:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .