PDA

View Full Version : Screen isn't locking after closing laptop lid


Dritzen
May 13th, 2007, 04:19 PM
It was working fine before I updated the HAL device manager when Feisty prompted me to.

What was happening before:
Close laptop lid
Screen gets locked
I have to type a password to get back in to Gnome

What happens now:
Close laptop lid
I think the screen is turning off but it's not locking
Anyone can use my PC unless I specifically lock it.

/var/log/acpid shows this info:


[Sun May 13 17:14:59 2007] completed event "button/lid LID 00000080 00000055"
[Sun May 13 17:15:03 2007] received event "button/lid LID 00000080 00000056"
[Sun May 13 17:15:03 2007] notifying client 5267[0:0]
[Sun May 13 17:15:03 2007] notifying client 325[106:110]
[Sun May 13 17:15:03 2007] executing action "/etc/acpi/lid.sh"
[Sun May 13 17:15:03 2007] BEGIN HANDLER MESSAGES
[Sun May 13 17:15:03 2007] END HANDLER MESSAGES
[Sun May 13 17:15:03 2007] action exited with status 0
[Sun May 13 17:15:03 2007] completed event "button/lid LID 00000080 00000056"


cat /proc/sys/vm/laptop_mode shows 0

Just to make sure, I made sure that ACPI is running by doing:


sudo /etc/init.d/acpid stop
sudo /etc/init.d/acpid start


I'm using a Dell Inspiron 9300 laptop and this was working fine a few days ago.

Any suggestions?

Jonne
May 13th, 2007, 04:27 PM
I don't have any suggestions, but where do I turn off that behaviour? it's kinda annoying to me (it's not like it offers any real security, everyone can just read my whole HD with any liveCD).

FuturePast
May 13th, 2007, 04:30 PM
I don't have any suggestions, but where do I turn off that behaviour? it's kinda annoying to me (it's not like it offers any real security, everyone can just read my whole HD with any liveCD).
Try $ gconf-editor and look in key /apps/gnome-power-manager/...

Dritzen
May 15th, 2007, 12:32 AM
Any other ideas guys?

deol
May 22nd, 2007, 08:44 PM
I have noticed that if I right mouse click the battery in the top bar, I get a preferences option. From there it ask what I would like the laptop to do when I close the lid. I set it to "do nothing" to keep from having to log in. However, if you have it set to "blank screen", it asks me to log in when I re-open the lid. Try making sure it's set to "blank screen" and see if that works.

Bluecircle
June 23rd, 2007, 03:51 AM
Bump

I have it set to "blank screen", but it doesn't. Of course I am on Gutsy so who knows.

Inxsible
June 23rd, 2007, 04:53 AM
Press Alt + F2. Type in gconf-editor, then press enter. Navigate to apps --> gnome-power-manager.

The flags to look for would be :
lock_on_blank_screen Check mark it, if you want to lock the screen and uncheck it if you don't

Additionally you can choose to change the values of lock_on_hibernate
lock_on_suspendHope that helps !!

Bluecircle
June 23rd, 2007, 08:49 AM
Press Alt + F2. Type in gconf-editor, then press enter. Navigate to apps --> gnome-power-manager.

The flags to look for would be :
lock_on_blank_screen Check mark it, if you want to lock the screen and uncheck it if you don't

Additionally you can choose to change the values of lock_on_hibernate
lock_on_suspendHope that helps !!

That key didn't even exist for me, I added it, but nothing. The screen does go black like it tries to lock, but then it just comes back when I move the mouse. It did work in feisty so we'll see.

EDIT: Awesome I fixed it! All I had to do was check the two checkboxes in Screensaver Settings. :)

elleP
October 24th, 2007, 07:41 AM
Press Alt + F2. Type in gconf-editor, then press enter. Navigate to apps --> gnome-power-manager.

The flags to look for would be :
Code:
lock_on_blank_screen
Check mark it, if you want to lock the screen and uncheck it if you don't

Additionally you can choose to change the values of
Code:
lock_on_hibernate
lock_on_suspend
Hope that helps !!

In gutsy it's navigate to apps --> gnome-power-manager->lock.
and the lock_on_ prepends are no longer there.

Kingsley
December 2nd, 2007, 07:20 PM
In gutsy it's navigate to apps --> gnome-power-manager->lock.
and the lock_on_ prepends are no longer there.
Go to "apps > gnome-power-manager > lock" and then check the "blank_screen" box.

atlanta800
January 5th, 2008, 09:52 AM
Had the same issue but found another, similar, fix. Thought I would share in the event that anyone needs it.

My laptop, Fujitsu T4215 running Gutsy, failed to lock the screen when I closed the lid like it always did in Edgy and Feisty.
I had the System->Preferences->Power Management set to blank screen on close
I had the System->Preferences->Screensaver set to both "activate on idle" and "lock screen when active"
Yet it still did not lock when I closed the lid (until it was closed for longer than the idle time set in the screensaver settings).

Here is my solution:

Load up gconf-editor navigate to and enable: /apps/gnome-power-manager/lock/use_screensaver_settings

Checking this overrides your individual settings for blank_screen, hibernate, and suspend to match whatever you have set in the screensaver for "lock screen when active" which is the effect I wanted, but it is, of course, up to you!

opakedragon
June 17th, 2008, 06:55 PM
Try $ gconf-editor and look in key /apps/gnome-power-manager/...

I have Dell Inspiron 9300 and this work perfectly just had to check /apps/gnome-power-manager/lock/blank_screen and I close lid + open lid = locked screen. :-) thanks FuturePast!!!