I wrote /etc/sysconfig/apm-scripts/apmcontinue script: #!/bin/sh logger -t apmcontinue "Started, args: $*" In the logs I see: When AC is unplugged: Oct 18 23:27:53 dell apmcontinue: Started, args: change power Oct 18 23:27:54 dell apmd[826]: Now using Battery Power When plugged back in: Oct 18 23:29:27 dell apmcontinue: Started, args: change power Oct 18 23:29:28 dell apmd[826]: Now using AC Power Oct 18 23:29:28 dell apmd[826]: Charge: * * * (94% 2:51) Note that in both cases I get "change power" and never get "chage battery"!
Sorry, that's just me being stupid - I didn;t realize the second arg was only supposed to be "battery" on battery low, not on AC -> battery.