Jump to content

Recommended Posts

Posted

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 ??


Posted

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 have

some 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 all

be achieved by using the standard "Power options" Windows provides.

When your laptop simply doesn't have any battery (or it is completely dead), there's

no way to let things work like you want.

Greetz,

Peter.

Posted

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

Posted

I'm affraid waking the laptop again isn't possible with any (OS driven) software :unsure:

You're going to need some BIOS-version (or setting) that will do that for you, since

the OS is halted and therfor cannot run any code at standby (or hibernation).

Greetz,

Peter.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...