Re: [Hampshire] Intercepting shutdown

Top Page

Reply to this message
Author: Leo
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Intercepting shutdown
Peter Salisbury wrote:
>
> That's strange, the official FAQ at
>
> http://live.gnome.org/GnomePowerManager/FAQ
>
> has this Q&A:
> ---------------------
> 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-*
> ---------------------
>
> Granted the path is a bit different to the one I suggested, so perhaps
> look for another place just to be sure?
> find / -name "hal-system-power*"
>
> All my notes on what I found out are at:
>
> http://www.salisburys.net/PetersNotes-TW.html#[[xfce%20xubuntu%20hibernate]]
>
> HTH, Peter
>


Got it! :D
While searching for more info on your suggestion I actually came across
a python script [1] that uses Adrian's suggestion. A little bit of
hacking later and it works - yay!

Many thanks,
Leo

[1]
http://www.linuxquestions.org/questions/linux-desktop-74/gnome-run-script-on-logout-724453/