Currently, APM scripts do a lot of useful things when power is switched to/from AC - laptop mode adjustment, POWER_SERVICES start/stop, cpufreq adjustments, etc. But with ACPI all of this goes away! Currently, the acpid would correctly generate proper ac_adapter events (when the appropriate module is loaded), but there are no configuration files and no scripts that would react to those events. Please consider adding appropriate scripts and configs, so that ACPI events are handled as good as APM ones (I understand that many things are different on the kernel level, but at least the common functionality should be equally supported and ideally - supported through some shared configs and scripts). ---------- P.S. IMO, the best way to address this is to factor the current apmscript into a generic part (that probably belongs to initscripts) that knows how to read a config file (/etc/sysconfig/apmd, but it should probably be renamed) and a part that only knows how to parse the arguments and apm putput to figure out which standard function to call./proc/acpi/ac_adapter/AC/state P.P.S. And to propose something rally crazy - it may be a good idea to have the generic part be split into initd-style start/stop scripts - this would allow other packages and end-users to easily add their own scripts without interfeering with the default ones. Namely, I propose something like: - on AC on -> off, call all scripts in /etc/sysconfig/power/battery_power/ directory with the "start" argument - on AC off -> on, call all scripts in /etc/sysconfig/power/battery_power/ directory with the "stop" argument - on battery low, call all scripts in /etc/sysconfig/power/battery_low/ directory with the "start" argument - etc.
*** This bug has been marked as a duplicate of 81142 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.