[MLUG] shut down laptop when power lost

Jeremy me at jeremychapman.info
Sun Feb 17 17:40:54 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.

Ideally I would like the laptop to shut down when power is gone then 
start up when power is restored (but the startup is just gravy, I don't 
mind hitting the power button to start up). I don't want to hard 
shutdown like it would without a battery, I just don't want it draining 
the battery each time until it gets to a critical level and shuts down.

The way I would have done this in the past was with /etc/acpi stuff, but 
this is gone now.

Thanks,

Jeremy


More information about the mlug mailing list