Bug 826215 - upowerd cannot handle "not charging" status
upowerd cannot handle "not charging" status
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: upower (Show other bugs)
17
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Richard Hughes
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-29 15:14 EDT by Martin Langhoff
Modified: 2012-05-30 11:18 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-05-30 11:18:54 EDT
Type: Bug
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 Martin Langhoff 2012-05-29 15:14:52 EDT
Description of problem:

/sys/class/power_supply/*/status can be any of 

        static char *status_text[] = {
                "Unknown", "Charging", "Discharging", "Not charging", "Full"
        };

(as per drivers/power/power_supply_sysfs.c in linux 3.0 series)

On OLPC's XO-1.75, /sys/class/power_supply/olpc-battery/status ocassionally reports Not charging.

Version-Release number of selected component (if applicable):


How reproducible:

100%

Steps to Reproduce:
1. Boot XO-1.75
2. Check logs to find "unknown status string: Not charging"
  
Actual results:


Expected results:


Additional info:
Comment 1 Richard Hughes 2012-05-30 11:18:54 EDT
commit a75501f9d12da32690a91410b0e4d1ed020e01f6
Author: Richard Hughes <richard@hughsie.com>
Date:   Wed May 30 16:16:50 2012 +0100

    linux: Treat the battery state 'not charging' as PENDING_CHARGE
    
    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=826215

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