Bug 76285 - apmcontinue is called with "change power" instead of "change battery" on AC -> batt change
apmcontinue is called with "change power" instead of "change battery" on AC -...
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: apmd (Show other bugs)
8.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: wdovlrrw
Jay Turner
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-10-19 02:34 EDT by Aleksey Nogin
Modified: 2015-01-07 19:01 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-10-19 02:34:09 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Aleksey Nogin 2002-10-19 02:34:03 EDT
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 19:04:56 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.