eeepc-acpi-scripts uses pm-utils extensively, but AFAICT it ignores pm-powersave. It occurs to me that it might be useful to invoke "pm-powersave false" when AC is connected, and "pm-powersave true" when it is connected.
Rationale: by default, anacron runs at boot *iff* AC is connected, and at 7:30AM *iff* AC is connected. If one normally boots from battery and then later connects AC when the battery runs low, and the machine is turned off overnight, it's conceivable that anacron might NEVER run. This behaviour would be in line with the default SHE behaviour, which overclocks/underclocks when AC is connected/disconnected. Implementation: the following works for me.
diff -rN -u old-etc/acpi/actions/ac_adapter.sh new-etc/acpi/actions/ac_adapter.sh --- old-etc/acpi/actions/ac_adapter.sh 2010-04-19 20:58:10.617586953 +1000 +++ new-etc/acpi/actions/ac_adapter.sh 2010-04-19 20:58:10.661587489 +1000 @@ -42,3 +42,11 @@ ;; esac + +if test -x /usr/sbin/pm-powersave +then + case $code in + (0000008[01]\ 00000001) pm-powersave false;; + (0000008[01]\ 00000000) pm-powersave true;; + esac +fi
PS: I observe that anacron is also invoked by pm-utils when resuming (from suspend-to-ram and -disk) *iff* AC is connected.
_______________________________________________ Debian-eeepc-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/debian-eeepc-devel
