How do I turn off a laptop when it looses AC power

C

chris

I am stuck using a laptop for an embedded solution. I need the laptop to tun
off as soon as it looses AC power. I tried using the low power settings and
using the shutdown computer settings but I have found it is buggy. Is there a
setting to do this or maybe a script I can use?
 
M

meerkat

chris said:
I am stuck using a laptop for an embedded solution. I need the laptop
to tun
off as soon as it looses AC power. I tried using the low power
settings and
using the shutdown computer settings but I have found it is buggy. Is
there a
setting to do this or maybe a script I can use?
Try running it without a battery pack.

When the AC stops... so does the laptop.
 
R

Ray Luca

chris said:
I am stuck using a laptop for an embedded solution. I need the laptop to tun
off as soon as it looses AC power

Wow. There's nothing worse than having loose AC power... except maybe
when you lose it altogether.
 
C

chris

Chris... darn that loose power. Other than the spelling error... I have to
power off the system with a master switch. I want the laptop to power down
when it does not see AC power.
 
F

Frank Slootweg

chris said:
I am stuck using a laptop for an embedded solution. I need the laptop to tun
off as soon as it looses AC power. I tried using the low power settings and
using the shutdown computer settings but I have found it is buggy. Is there a
setting to do this or maybe a script I can use?

I don't understand the "low power settings", because *low* power
settings are only applicable to use on *battery* . i.e. it's not low
*power*, but low power *capacity*.

If with "shutdown computer settings" you mean *AC* power related
settings, then there *are* no such settings (only battery power related
ones).

So I'll assume that with "shutdown", you actually mean *stand-by* or
*hibernate*.

The "shutdown" settings being 'buggy' probably mean that the *system*
is buggy. There are lots of situations where a system will not shutdown/
go-to-standby/hibernate, because some software activity is 'hanging'. So
you have to fix that *first*, i.e. by doing repeated manual and timed
shutdowns/standbys/hibernates until that works flawlessly *each* time.

As to the actual solution: You can not do a quick *shutdown*, but you
can force a timed *standby* after 1 minute. So *first* let the system
go to standby after 1 minute and *then* to *hibernate* after some
acceptable time. If you combine that with the low battery power options,
you can force the system to *shutdown* after the battery has drained
enough.
 
R

Ray Luca

chris said:
Chris... darn that loose power. Other than the spelling error... I have to
power off the system with a master switch. I want the laptop to power down
when it does not see AC power.

What you want to happen will NOT happen, bozo. If it did, your laptop
would never operate on battery power.

 
T

Tom [Pepper] Willett

Perhaps with a UPS and the software that comes with it? Like APC and
Powerchute?

: He wants to shut down orderly when he LOSES AC power.
: : >
: > : >> This would work but I don't want to improperly shut down windows every
: >> day.
: >>
: > You can still shut down normally,
: > ie. Start/Turn off Computer.
: >
: >
: >> "meerkat" wrote:
: >>
: >>
: >>> Try running it without a battery pack.
: >>>
: >>> When the AC stops... so does the laptop.
: >>>
: >>> --
: >>> bw..
: >>>
: >>>
: >>>
: >
: >
:
:
 
I

Ian D

chris said:
Chris... darn that loose power. Other than the spelling error... I have
to
power off the system with a master switch. I want the laptop to power down
when it does not see AC power.

One way is to use a UPS with orderly shutdown on
AC loss software, and run the laptop with the battery
out.

Another thing to try is set a power profile in which it
would hibernate after one minute when running on
battery. AC loss > run on battery 1 min > hibernate.
It's not quite instant, but close for an unattended
shutdown. You would have to remember to switch
power profiles when running on battery.
 
S

smlunatick

I am stuck using a laptop for an embedded solution. I need the laptop to tun
off as soon as it looses AC power. I tried using the low power settings and
using the shutdown computer settings but I have found it is buggy. Is there a
setting to do this or maybe a script I can use?  

The only why is to have a monitoring unit in between the laptop and
the power wall jack. This monitoring unit is usually an enhanced UPS
with the included power monitoring sofware. The UPS kit has a USB
cable used to read the power status from the UPS. The UPS will signal
when the power utility current is "off" and then the power monitoring
software system can be told to shutdown the applications / Windows.
 
M

M.I.5¾

chris said:
I am stuck using a laptop for an embedded solution. I need the laptop to
tun
off as soon as it looses AC power. I tried using the low power settings
and
using the shutdown computer settings but I have found it is buggy. Is
there a
setting to do this or maybe a script I can use?

I don't have a good solution when your laptop has it's internal battery
fitted, but I do have a solution.

If you run the laptop through a UPS (these are as cheap as chips thee days),
most (but not all) have a USB connection and come with software that will
(among other things) switch the laptop off as soon a AC power to the UPS is
lost. If you are relying on the internal battery as a form of UPS this
would be a better option because a real UPS is a lot cheaper than a laptop
battery. In any case it is not wise to leave the battery in a laptop while
it running on AC power.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top