Bug 76285

Summary: apmcontinue is called with "change power" instead of "change battery" on AC -> batt change
Product: [Retired] Red Hat Linux Reporter: Aleksey Nogin <aleksey>
Component: apmdAssignee: wdovlrrw <brosenkr>
Status: CLOSED NOTABUG QA Contact: Jay Turner <jturner>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-10-19 06:34:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Aleksey Nogin 2002-10-19 06:34:03 UTC
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"!

Comment 1 Aleksey Nogin 2002-10-19 23:04:56 UTC
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.