apurvaappu Posted June 28, 2010 Posted June 28, 2010 Hi,Can someone help me write a batch script or a program that Makes my laptop to sleep when the AC supply is cut off..and wake up when AC supply it back ON.My old laptop works on AC supply only.. I want it to go to SLEEP when the AC supply is off and want it to WAKE UP when the AC supply is back..Can someone help me in doing this ??
VideoRipper Posted June 28, 2010 Posted June 28, 2010 It should be pretty easy to write something in any language (or script), but your laptop should at least be able to detect the power change and perform the appropriate action (go to sleep) which will take some time (at least a couple of seconds to about a minute in a worst case scenario).Also, having a PC on standby or hibernate mode always needs some juice from the batteries (while hibernate uses much less power), so your laptop's batteries always need to havesome capacity left for the period of time you want to have it "Off".Perhaps you don't even need a special script or program to do what you want and can allbe achieved by using the standard "Power options" Windows provides.When your laptop simply doesn't have any battery (or it is completely dead), there'sno way to let things work like you want.Greetz,Peter.
apurvaappu Posted June 28, 2010 Author Posted June 28, 2010 Hi VideoRipper ,Thanks a lot for ur reply. Yes my laptop battery has some juice and it usually lasts 3-5 mins..The windows power option u suggested can put the laptop to sleep but it doesnt wake it up when the AC is restored..It would be highly appreciated if u could help suggest some script or program to do so..Thanks in advance...
VideoRipper Posted June 28, 2010 Posted June 28, 2010 I'm affraid waking the laptop again isn't possible with any (OS driven) software You're going to need some BIOS-version (or setting) that will do that for you, sincethe OS is halted and therfor cannot run any code at standby (or hibernation).Greetz,Peter.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now