Is there a file in /sys that reports charge mode and OM charger detection?
andy at openmoko.com
Fri May 30 13:30:59 CEST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Somebody in the thread at some point said:
| I'd like to know 3 things:
| 1. Has the special Openmoko identification resistor been detected?
You can find this from 3 below showing "charger 1A mode 1A"
| 2. Is the Freerunner charging?
play-only (not charging, no ext power)
enabled (could charge, but decided not to, maybe full)
| 3. If so, what charge mode are we in (100mA, 500mA, or 1A)?
# cat /sys/class/i2c-adapter/i2c-0/0-0073/charger_type
host/500mA usb mode 100mA
host/500mA usb mode 500mA
charger 1A mode 1A
none mode suspend
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the openmoko-kernel