Joined: 25 Dec 2004
Location: Event horizont
|Posted: Sun Jan 16, 2005 9:53 am Post subject: ACPI
|Using kde I wanted the session to be saved on powerbutton hit.
get acpi daemon, program monitoring acpi events.
can be used for other things to, especially if you have a laptop.
second goto /etc/acpi and edit the default.sh script like this:
# Default acpi script that takes an entry for all actions
case "$group" in
case "$action" in
$app --user miro ksmserver default "logout" 0 2 0
# /sbin/init 0
*) logger "ACPI action $action is not defined"
logger "ACPI group $group / action $action is not defined"
Ok the code is quite dumb, as you can see by the hardcoded username "miro", which has to be (obviously) replaced by your user name:). So feel free to make it better!