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:
commit a75501f9d12da32690a91410b0e4d1ed020e01f6 Author: Richard Hughes <richard> 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