I'd like for the computer to shut down without the need for confirmation when the power source changes to battery.
I found "battery" in /etc/acpi/events/ - Content:
Code:
# /etc/acpi/events/battery
# Called when AC power goes away and we switch to battery
event=battery
action=/etc/acpi/power.sh
It points to /etc/acpi/power.sh:
Code:
#!/bin/sh
test -f /usr/share/acpi-support/key-constants || exit 0
. /usr/share/acpi-support/policy-funcs
if [ -z "$*" ] && ( [ `CheckPolicy` = 0 ] || CheckUPowerPolicy ); then
exit;
fi
pm-powersave $*
Not quite sure if this is the right place or what to put in it.
Bookmarks