hibernate when power is low?
Florian Diesch
diesch at spamfence.net
Sat Jun 17 19:57:06 UTC 2006
Matt Price <matt.price at utoronto.ca> wrote:
> suspend-to-ram is currently broken on my computer (still looking for help on
> this, see my earlier suspend/hibernate thread!). Fortunately I have
> suspend2 working great, due to some ubunt-ized suspend2 kernels available on
> the web (don't havet he URL on hand at the moment).
>
> For the moment, I'd like to make my computer suspend-to-disk if the battery
> runs low when I'm away. But gnome-power-manager, though it allows me to
> configure certain options, DOESN'T seem to allow one to choose a specific
> command for the "battery critical" event (The one I need is
> "/usr/sbin/hibernate -F /etc/hibernate/suspend2.conf").
>
> Does anyone know how I might jerry-rig something that will let
> gnome-power=manager work but give me control of the particular ocmmands?
Configure acpid manually:
First look in /var/log/acpid which event is triggered when the battery
runs low. You'll see a line like
received event "ibm/hotkey HKEY 00000080 00005001"
where ibm/hotkey HKEY 00000080 00005001 is the name of the event
Then create a file batterylow in /etc/acpi/events that
contains this two lines:
event=your_event
action=/usr/sbin/hibernate -F /etc/hibernate/suspend2.conf
replace your_event with the name of the event
Florian
--
<http://www.florian-diesch.de/>
More information about the ubuntu-users
mailing list