]> git.pld-linux.org Git - packages/acpid.git/blobdiff - acpid.battery.sh
- rel 2
[packages/acpid.git] / acpid.battery.sh
index 91e7dd6d68e92c5d57cbcc36f7394c5ae5dc867c..26c2cc6cd881cd3caf3d9a7321e87bd9801c6441 100644 (file)
@@ -11,7 +11,7 @@ fi
 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`
@@ -34,7 +34,7 @@ case "$AC_STATE" in
        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
        ;;
@@ -44,7 +44,7 @@ case "$AC_STATE" in
        # 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
        ;;
This page took 0.108158 seconds and 4 git commands to generate.