[Bug 193] Information about current charging status when AC is online

bugzilla-daemon at bugzilla.openmoko.org bugzilla-daemon at bugzilla.openmoko.org
Sat Mar 31 18:00:06 CEST 2007


http://bugzilla.openmoko.org/cgi-bin/bugzilla/show_bug.cgi?id=193





------- Additional Comments From jluebbe at lasnet.de  2007-03-31 18:00 -------
There is information in sysfs:

root at fic-gta01:~$ cat /sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/
/sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/battemp 
/sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/battvolt 
/sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/chgcur 
/sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/chgmode 
/sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/chgstate 
/sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/driver/
/sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/gta01-pm-bt.0/
/sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/gta01-pm-gps.0/
/sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/name 
/sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/power/
/sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/subsystem/
/sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/uevent 
/sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/voltage_d1reg 
/sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/voltage_d2reg 
/sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/voltage_d3reg 
/sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/voltage_dcd 
/sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/voltage_dcde 
/sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/voltage_dcud 
/sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/voltage_ioreg 
/sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/voltage_lpreg 

root at fic-gta01:~$ while true; do cat
/sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/battvolt; sleep 1; done;
3750              
3744              
3755              
3750              
3750              
3738              
3755              
(unplugged)
3673              
3650              
3656              
3650              
3650              
3650              
3626              
3650              
3644              
3650              
(plugged in)
3750              
3726              
3720              
3744
3732
3744
3726

root at fic-gta01:~$ while true; do cat
/sys/devices/platform/s3c2410-i2c/i2c-0/0-0008/chgcur  ; sleep 1; done;
1146
613
986
1013
826
853
880
773
933
(unplugged)
17367
17260
17474
17474
17447
(plugged in)
906
880
853
800
933
1146
960

It should be possible to use this information to detect when the battery is full.



------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.




More information about the buglog mailing list