[gpm] Is there an easy way to have script(s) executed by the GNOME Power Manager?
- From: "David E. Kahn" <David Kahn alumni stanfordgsb org>
- To: gnome-power-manager-list gnome org
- Subject: [gpm] Is there an easy way to have script(s) executed by the GNOME Power Manager?
- Date: Mon, 26 Nov 2007 20:50:56 -0800
The FAQ has an entry:
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-*
We need to create script(s) that shutdown the other Ubuntu PCs on the same UPS based on the UPS' battery level, and shuts down the Ubuntu PCs on another UPS at a fixed time from when the power outage began because that UPS is plugged into a Microsoft Windows PC. While this FAQ looks promising, I am uncertain how to translate the referenced directory to a directory in the Ubuntu file system. The scripts are easy. What is unclear is where to put them, and how to initiate them.
Sorry to bother you.
Thanks.
David
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]