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. :)

5 Responses to “Ubuntu lock screen on laptop close lid”


  1. 1 Scott Kitterman

    Works just fine with Kubuntu.

  2. 2 Callum

    @Scott Kitterman: I’m not sure what you mean. The change works fine with Kubuntu, or the screen locks automatically under Kubuntu?

  3. 3 Jim

    Thanks. Very helpful.

  4. 4 Krellan

    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.

  5. 5 Nate

    Thanks, very helpful!

  1. 1 Ubuntu 8.10 sul Dell XPS M1530 « Il blog di Andrea Lazzarotto

Leave a Reply