Close Lid -> Shutdown?

Kelemvor

Lifer
May 23, 2002
16,928
8
81
Is there any way to set something in Windows XP so that when someone shuts the lid of the laptop it turns itself completely off?

We have laptops that people check out and they never shut them down and just shut the lid to bring it back to us. If we set the shut lid to do nothing, the battery drains. If we set it to hibernate, we have trouble when we go to reimage it because we just boot from a master CD to reimage but the reimage doesn't take if the computer was hibernated. Sleep mode is worse because it doesn't work for crap sometimes.

So, looking for a way that when someone closes the lid on the laptop, it will just do a normal shutdown and turn itself completely off.

Any ideas?

EDIT: If not, I guess I can set the battery alarm setting so that when the battery gets to 10% it just runs the Shutdown command manually and then can leave the close lid to Do Nothing. That might work too.
 

doan

Golden Member
Dec 17, 2000
1,445
0
76
Go to the advanced tab in the power control panel. There should be a setting of what to do when the lid is closed

Edit: Oh but shutown is not an option. :(
 

Netopia

Diamond Member
Oct 9, 1999
4,793
4
81
Here's the accepted answer to your question at experts-exchange:

Hi usableit,

I understand the need of shutting down on the event when lid is closed but there may be factors that wont let you do it (for e.g if ms word doc or any other application is opened and the document is not saved you will have a message box confirming you if you want to save your document or not before proceeding to shutdown) However hibernation is kinda usefull feature that has been introduced in windows xp and laters. it will do nearly same as shutdown but it will write all your MEMORY contents into harddisk so it will boot faster when you open your computer next time. further more all your open work will be saved so you may continue typing email from where you left or whatever you were doing. it even power off your computer.
From the security point of view, it may be considered same aswell because the next time computer would restart it will ask for the username/password of the user last working(like lock workstation) so only authorized person (who knows username password) would be able to access the password.

beside that if you have any problem dealing with APM read the article mentioned below:-

Dealing with Windows's Advanced Power Management (APM) [ http://www.annoyances.org/exec/show/article07-044 ]

Cheers!

Joe
 

gsellis

Diamond Member
Dec 4, 2003
6,061
0
0
Just a thought I cannot verify (I would have to reboot what I am typing on), have you checked the power management options in BIOS? There might be a solution there. Probably not, but it could be worth checking.
 

Kelemvor

Lifer
May 23, 2002
16,928
8
81
Originally posted by: Netopia
Here's the accepted answer to your question at experts-exchange:

Hi usableit,

I understand the need of shutting down on the event when lid is closed but there may be factors that wont let you do it (for e.g if ms word doc or any other application is opened and the document is not saved you will have a message box confirming you if you want to save your document or not before proceeding to shutdown) However hibernation is kinda usefull feature that has been introduced in windows xp and laters. it will do nearly same as shutdown but it will write all your MEMORY contents into harddisk so it will boot faster when you open your computer next time. further more all your open work will be saved so you may continue typing email from where you left or whatever you were doing. it even power off your computer.
From the security point of view, it may be considered same aswell because the next time computer would restart it will ask for the username/password of the user last working(like lock workstation) so only authorized person (who knows username password) would be able to access the password.

beside that if you have any problem dealing with APM read the article mentioned below:-

Dealing with Windows's Advanced Power Management (APM) [ http://www.annoyances.org/exec/show/article07-044 ]

Cheers!

Joe

Yes but I can't use Hibernate as I stated. It messes up with us reimaging the laptops because if we don't know they had hibernated it instead of shut it down, the reimage won't take.

I think I'll jsut set the Close Lid = Do Nothing and then set it to shut down automatically based on the battery setting. In there I can set it to override any not responding program and shut down anyway.
 

gsellis

Diamond Member
Dec 4, 2003
6,061
0
0
FJ, with SP2, they added Powercfg.exe. On your image, you could create a one-time runtime script to call powercfg with setting changes as they do not preserve across images with sysprep. Check MS KB or powercfg /? for options.