Bas Wijnen wrote: > If anyone has info about how to do this (or pointers to Linux source > files which read the capacity), I'm interested. :-)
I'd look at the schematics [1]: the red LED is connected to the charger chip U5 and - with diode D4 preventing high VUSB flowing into the CPU - to the CPU. You could try to force it off by outputing a "high" level on CHARGE_N, "fighting" U5's FET pulling down, but you probably won't reach a sufficient voltage difference to accomplish much. Because of D4, you can't force it on. The only feedback on battery status you have is +VBAT on the ADC (ADIN0). A USB current < 400 mA would suggest that the PW_ON_N switch (Q3) isn't acticated. In the case, the nominal charge current (which includes overall system consumption as well) should be 1100V/R15 = 110 mA. If PW_ON_N is set, it should raise to approximately 1100V/(R14 || R15) = 550 mA. Note that this is the current that leaves U5 and is shared by the battery and the rest of the system. Disclaimer: all this is according to schematics and data sheets. Reality may choose to differ :) - Werner _______________________________________________ Qi Hardware Discussion List Mail to list (members only): [email protected] Subscribe or Unsubscribe: http://lists.en.qi-hardware.com/mailman/listinfo/discussion

