Openmoko Bug #262: Indicate different charging mode in battery applet

Openmoko Public Trac bugs at
Thu Oct 30 16:14:49 CET 2008

#262: Indicate different charging mode in battery applet
    Reporter:  laforge at  |        Owner:  raster  
        Type:  enhancement           |       Status:  assigned
    Priority:  normal                |    Milestone:          
   Component:  E - Illume            |      Version:          
    Severity:  minor                 |   Resolution:          
    Keywords:                        |     Haspatch:  0       
   Blockedby:                        |    Estimated:          
 Patchreview:                        |     Blocking:          
Reproducible:                        |  

Comment(by raster):

 put it in /sys/devices/platform/bq27000-battery.0/power_supply/bat/
 somewhere and i'll think about it. basical;ly i'm not going to put code in
 e's battery module for 1 device on the planet - the next device from om
 will have some different /sys path to advertise charge mode, then some
 other arm will have another, and another, and another... so you end up
 having to make a custom config or custom snippet of code for every
 platform out there - in userspace. this is just plain ugly.

 expose something "generic" under
 /sys/devices/platform/bq27000-battery.0/power_supply/bat somewhere (so
 it's ALWAYS got this regardless of what future platforms you have, what
 pmu's they use or architecture etc.). NB
 /sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/chgmode doesn't exist on
 the freerunner - so it's moved/changed and living it yet another custom
 place to chase down from userspace :) so put it in with the power_supply
 abstraction class in the kernel and you're talking something useful :)

Ticket URL: <> <>
openmoko trac

More information about the buglog mailing list