[MLUG] shut down laptop when power lost
Stefan Monnier
monnier at iro.umontreal.ca
Sun Feb 17 20:52:10 EST 2013
> Hi guys, any ideas how I could get a laptop running debian or ubuntu to shut
> itself down when the power is lost? I have looked at pm-utils but this seems
> to be only for suspend/hibernate.
Put a script in /etc/pm/power.d/. This script will be called with one
argument which is "true" when AC is lost and "false" when AC comes back.
This does not arrange to start the computer when the power comes back.
For that I'm not sure what you need to play with, OTOH.
Stefan
More information about the mlug
mailing list