hibernate when power is low?

Matt Price matt.price at utoronto.ca
Mon Jun 19 19:24:20 UTC 2006


On Sat, Jun 17, 2006 at 06:00:50PM -0400, Jaime Davila wrote:
> Matt Price wrote:
> >Hi folks,
> >
> >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?
> >
> >thanks,
> >
> >matt
> >
> 
> I've never tried this, but I found the following at 
> http://live.gnome.org/GnomePowerManager/Faq#head-e2e6f65e14ba1ba35fadc8abc191d05caeaf9510
> 
> Where do I put my custom suspend/shutdown/hibernate script?
> 
> Because gnome-power-manager uses HAL to toggle bits in the hardware, you 
> need to put your custom instructions in 
> /prefix/share/hal/scripts/system/hal-system-power-*.

Thanks so much for htis Jaime!  That worked great -- actually I used
dpkg-divert to set hal's scrupts to
/usr/share/hal/scripts/system/hal-system-power-*.distrib, then used
update-alternateives to make the origintla script location into a link
pointing to my own hibernate scripts.  SO ssuspend doesn'twork yet; but
despite that the laptop is very functional.  

Florian, the acpi stuff doesn't work because gnome-power-manager hijacks
certain events bevore acpi can work...

Matt



> 
> 
> -- 
> 
> ******************************************************
> Jaime J. Davila
> Assistant Professor of Computer Science
> Hampshire College
> School of Cognitive Science
> jdavila at hampshire dot edu
> http://helios.hampshire.edu/jdavila
> *******************************************************
> 
> -- 
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

-------------------------------------------
Matt Price	    matt.price at utoronto.ca
History Department, University of Toronto
(416) 978-2094
--------------------------------------------




More information about the ubuntu-users mailing list