I see several bugs in /etc/sysconfig/apm-scripts/apmscript 1) The most important one is that the code for starting up LOWPOWER_SERVICES is inside the ``[ -n "$POWER_SERVICES" ]'' test, so if POWER_SERVICES is empty or undefined, then LOWPOWER_SERVICES will never be restarted. 2) What if I get into a lowerpower state and then insert a secondary battery - will LOWPOWER_SERVICES be restarted then? The current script appears to only try to restart them when laptop is plugged back into AC... 3) What if I get into a lowerpower state, suspend the laptop, plug it into AC and then resume - will the LOWPOWER_SERVICES be restarted then? Havn't tested that yet though.
I believe these problems still exist in Phoebe
Created attachment 89492 [details] Patch to fix the script (against apmd-3.0.2-14). This problem still exists in Phoebe-2 (apmd-3.0.2-14). Attaching a patch that (hopefully) fixes it.
Fixed in 3.0.2-19, slightly differently.
*** Bug 90852 has been marked as a duplicate of this bug. ***