set $*
AC=/proc/acpi/ac_adapter/AC
-BAT=/proc/acpi/battery/BAT0
+BAT=/proc/acpi/battery/$2
# get the AC connector state (plugged/unplugged) from /proc filesystem.
AC_STATE=`sed -n 's/^.*\(off\|on\)-line.*/\1/p' $AC/state`
logger "acpid: `basename $AC` connector plugged in."
# deactivate standby (spindown) timeout for the drive
#hdparm -q -S 0 /dev/hda
- # handle processor
+ # handle processor - this feature is deprecated for Kernel > 2.6.11.
#echo 0 > /proc/acpi/processor/CPU0/throttling
#echo 0 > /proc/acpi/processor/CPU0/performance
;;
# activate standby (spindown) timeout for the drive
# timeout 5 minutes (man hdparm, for more informations)
#hdparm -q -S 60 /dev/hda
- # handle processor
+ # handle processor - this feature is deprecated for Kernel > 2.6.11.
#echo 4 > /proc/acpi/processor/CPU0/throttling
#echo 3 > /proc/acpi/processor/CPU0/performance
;;