Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
    
Is this not a setting under "Power" in your System Settings? –  Doc Mar 20 '13 at 22:46
    
You bring your laptop to meetings? –  G Koe Mar 22 '13 at 5:07

1 Answer 1

up vote 4 down vote accepted

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"

share|improve this answer
    
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 at 20:39
    
I'll check it out! –  G Koe Mar 10 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 at 21:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.