Work in progress

This site is currently undergoing an update. If you spot any problems on this page, please let me know.

Ubuntu lock screen on laptop close lid

In Fedora 8 when I closed my laptop lid, my screen would lock. Under Ubuntu 8.04 this doesn’t happen. After a bit of digging, I found a solution. The gconf setting is “/apps/gnome-power-manager/lock/blank_screen”. When set to true, closing the lid will lock the screen. Luvvvly. 🙂

Comments

Jim at 2008-08-16 04:33:54

Thanks. Very helpful.

Scott Kitterman at 2008-06-19 22:49:24

Works just fine with Kubuntu.

Callum at 2008-06-19 22:56:07

@<a href="http://www.callum-macdonald.com/2008/06/11/ubuntu-lock-screen-on-laptop-close-lid/#comment-28157" rel="nofollow">Scott Kitterman</a>: I'm not sure what you mean. The change works fine with Kubuntu, or the screen locks automatically under Kubuntu?

Nate at 2008-09-26 13:50:09

Thanks, very helpful!

Krellan at 2008-09-01 20:23:54

Excellent. Thanks for finding this setting. I am running Fedora 9, and had the opposite problem: it defaults to locking the screen whenever it blanks the screen (such as when the laptop lid is closed). I do NOT want it to lock the screen then. Just blank it, then restore the screen when the laptop lid is opened again. Clearing the checkbox hasn't worked yet, but it's a good start.

Adam Nissley at 2010-02-25 21:10:07

Thanks. I found this very helpful. I also found some other problem settings that were bothering me much less!

Ubuntu 8.10 sul Dell XPS M1530 &laquo; Il blog di Andrea Lazzarotto at 2008-11-08 03:00:12

[...] Ora bisogna impostare Gnome per bloccare lo schermo quando viene spento. Niente di più semplice, si fa in un minuto. [...]

robert at 2008-11-22 05:12:53

Thanks, worked well for me. Don't know why they disabled this feature.

Kschneidertz at 2009-05-18 07:23:18

This work for me on Ubuntu 9.04, thanks.

another one at 2010-08-01 08:49:41

worked like a charm in ubuntu 10.04... just had to run gconf-editor... thank you

Royo at 2009-11-30 21:10:08

Worked like a charm on 9.10.

Sudhi at 2011-09-18 09:30:40

Thanks a ton !

Spork at 2012-08-13 18:56:41

Works in 12.04, though adding it took some trickery (i.e. there was no "lock", so I had to add "lock/blank_screen", and it didn't show until I closed Configuration Editor and opened it again. I miss editing conf files manually sometimes.