Laptop Power Management

jjohnston

New Member
Is there a way to make a computer go into sleep mode immediately when not plugged in, and then wake-up automatically when power returns?
 
Is there a way to make a computer go into sleep mode immediately when not plugged in, and then wake-up automatically when power returns?

I haven't heard of that, but could you just close it? When you close it it puts it into sleep.
 
Last edited:
No, I need it to be automatically with no user intervention other than killing the power adapter, then plugging it back in again...
 
In Linux I don't have an immediate answer for you, but if it is Windows you can set AC/DC power from the command line, and you can set the time out settings for it to sleep when on battery power.

http://ss64.com/nt/powercfg-xp.html

However, it looks like you can only configure it by minutes, not seconds. So, 1 minute after it is unplugged it will go to sleep. Careful though there could be some unwanted side effects.
 
I finally started up this project again after holding off for a long time. When I do a devicequery, the only device listed that is wake programmable is the network card. does that mean I can't have the Power Adapter being plugged in turn the computer on? Or am I looking at the wrong wake command?
 
I also tried the deviceenablewake command and It tells me I don't have permission to do that. I even tried launching command prompt using the "run as administrator".
 
I also tried the deviceenablewake command and It tells me I don't have permission to do that. I even tried launching command prompt using the "run as administrator".

Is your user account an administrator or is it a normal user? What version of Windows is it?
 
Back
Top