On Sun, Feb 17, 2013 at 08:52:10PM -0500, Stefan Monnier wrote: > > 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.
He already said he doesn't mind pressing the power button himself to start it again. So that's solved, too. -- hendrik _______________________________________________ mlug mailing list [email protected] https://listes.koumbit.net/cgi-bin/mailman/listinfo/mlug-listserv.mlug.ca
