Re: Battery discharging while plugged in
On Fri, Sep 5, 2008 at 8:59 AM, Dale Maggee [EMAIL PROTECTED] wrote: Hi, currently when I have my freerunner plugged into USB, it will charge to 100% and then start (slowly) discharging. If I unplug the USB cable and plug it back in, it charges back up to 100 percent, then starts discharging again. any Ideas? ONLY an idea, no factual knowledge :) but: Perhaps the charging circuitry is flipped off when the battery reaches 100% reported charge level, and then the phone is running off of battery, causing the slow discharge you see? When you unplug and replug, since the battery is below 100%, the charging circuit is turned back on till battery level once again reaches 100%? Think this is the explanation? Have you tried unplugging the phone when it hits 100% batt charge, and leaving it unplugged, and seeing if it maintains the same rate of discharge? Are you in a good signal coverage area, or does the phone have to 'shout' to talk with the tower (presuming your GSM is on)? When I'm in low-signal areas, the battery discharges faster. Been that way for my Nokia (past) and Motorola (present) phones too. What about other chipsets - Bluetooth, GPS, WiFi? Are they powered off, or are they on? Might be contributing to battery drain... HTH Ed. ___ support mailing list support@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/support
Re: Battery discharging while plugged in
Edgar D' Souza wrote: On Fri, Sep 5, 2008 at 8:59 AM, Dale Maggee [EMAIL PROTECTED] wrote: Hi, currently when I have my freerunner plugged into USB, it will charge to 100% and then start (slowly) discharging. If I unplug the USB cable and plug it back in, it charges back up to 100 percent, then starts discharging again. any Ideas? ONLY an idea, no factual knowledge :) but: Perhaps the charging circuitry is flipped off when the battery reaches 100% reported charge level, and then the phone is running off of battery, causing the slow discharge you see? When you unplug and replug, since the battery is below 100%, the charging circuit is turned back on till battery level once again reaches 100%? Think this is the explanation? Have you tried unplugging the phone when it hits 100% batt charge, and leaving it unplugged, and seeing if it maintains the same rate of discharge? Are you in a good signal coverage area, or does the phone have to 'shout' to talk with the tower (presuming your GSM is on)? When I'm in low-signal areas, the battery discharges faster. Been that way for my Nokia (past) and Motorola (present) phones too. What about other chipsets - Bluetooth, GPS, WiFi? Are they powered off, or are they on? Might be contributing to battery drain... HTH Ed. Ed, Yes, this sounds like the correct explanation - it stops charging once it hits 100%. When I have it unplugged, it SEEMS to discharge faster, but this may be due to usage [i.e, when it's plugged in, the screen is turned off most of the time ( I use the 'dim only, don't lock' option), as I tend to do everything via ssh. When it's unplugged it tends to either be in use or in my pocket (where the screen tends to get bumped and therefore powers back on briefly). I'll do some more testing by unplugging it and putting it on the desk while i'm not using it, and report back ] I'm in a good coverage area, and usually have full bars or close to it. I usually have GPS, bluetooth, and wifi turned on, although sometimes I turn them off to conserve battery life when I'm not going to be near a charger for a while. It used to just stay at 100% when left plugged in, so I'm guessing that one of the updates (probably the kernel? possibly around the time we started using the 'aux' led to indicate charging) has changed this. cheers, -Dale ___ support mailing list support@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/support
Re: Battery discharging while plugged in
On Fri, Sep 5, 2008 at 12:15 PM, Dale Maggee [EMAIL PROTECTED] wrote: Yes, this sounds like the correct explanation - it stops charging once it hits 100%. When I have it unplugged, it SEEMS to discharge faster, but this may be due to usage [...] I'll do some more testing by unplugging it and putting it on the desk while i'm not using it, and report back ] [...] It used to just stay at 100% when left plugged in, so I'm guessing that one of the updates (probably the kernel? possibly around the time we started using the 'aux' led to indicate charging) has changed this. Hmmm... I suppose there's a good reason for that, not being as aware of battery tech as I ought to be :-) AFAIK, Li-Ion batteries don't suffer from the memory effect, so I don't really see what harm would be done by keeping a constant trickle charge going, sufficient to offset power demands from the hardware. Just for the list's info, though - if this is a software issue, would you mind posting which kernel/rootfs versions you're using? Thanks, Ed. ___ support mailing list support@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/support
Re: Battery discharging while plugged in
Edgar D' Souza wrote: Hmmm... I suppose there's a good reason for that, not being as aware of battery tech as I ought to be :-) AFAIK, Li-Ion batteries don't suffer from the memory effect, so I don't really see what harm would be done by keeping a constant trickle charge going, sufficient to offset power demands from the hardware. Just for the list's info, though - if this is a software issue, would you mind posting which kernel/rootfs versions you're using? Thanks, Ed. kernel version is in my original message, rootfs is a fully updated 2007.2 ___ support mailing list support@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/support
Re: Battery discharging while plugged in
Which charger are you using? USB cable connected to computer, not the charger. Is the phone on and unsuspended the whole time you're charging? yes, using 2007.2's dim only, don't lock option, so most of the time the screen is turned off, but the phone is not suspended. I don't use suspend. Some chargers only work at 100mA which will charge you when the phone is off or suspended (slowly) but it will gradually discharge if you have the phone drawing operational power. erm, i don't know how to tell for sure, but I'm pretty sure it's getting 500mA from the PC - it will charge to 100% in a few hours (not the 12 hours needed at 100mA). it's plugged directly into a USB port, not a USB hub or anything like that. Host is running fedora, not sure how to determine how much power the it's drawing, but 'lsusb -v' gives me (among much other info): bmAttributes 0xc0 Self Powered MaxPower 500mA the way I'm plugging it in hasn't changed since It used to charge to 100% and stay there. Thanks, -Dale ___ support mailing list support@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/support
Re: Battery discharging while plugged in
On Friday 05 September 2008 09:51:34 Dale Maggee wrote: USB cable connected to computer, not the charger. See if you have the same problem with the official charger. Is the phone on and unsuspended the whole time you're charging? yes, using 2007.2's dim only, don't lock option, so most of the time the screen is turned off, but the phone is not suspended. I don't use suspend. . . . the way I'm plugging it in hasn't changed since It used to charge to 100% and stay there. My theory isn't so good then.. but it's still worth looking in to whether you're drawing the required current. erm, i don't know how to tell for sure This is a Freerunner right? Try this: cat /sys/devices/platform/s3c2440-i2c/i2c-adapter/i2c-0/0-0073/charger_type The far right should be the amperage that the charger is currently set to draw. More details (and other things in sysfs you may want to examine) here: http://wiki.openmoko.org/wiki/GTA02_sysfs If you're plugged directly into the host, you should be getting 500mA, assuming your operating system is performing power negociation properly. Hubs can be inconsistant unless they have external power. ___ support mailing list support@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/support -- Daniel Benoy http://daniel.benoy.name ___ support mailing list support@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/support
Re: Battery discharging while plugged in
Dale Maggee wrote: Hi, currently when I have my freerunner plugged into USB, it will charge to 100% and then start (slowly) discharging. If I unplug the USB cable and plug it back in, it charges back up to 100 percent, then starts discharging again. any Ideas? I noticed the same thing, I have a short shell script that will cause it to start charging again with unpluging the USB cable. = #!/bin/sh chgmode=/sys/class/i2c-adapter/i2c-0/0-0073/chgmode cat $chgmode echo 0 $chgmode cat $chgmode echo 1 $chgmode cat $chgmode = When you run it, the output should look like # chgmode enabled play-only fast # -stacy ___ support mailing list support@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/support
Re: Battery discharging while plugged in
Dale Maggee wrote: Hi, currently when I have my freerunner plugged into USB, it will charge to 100% and then start (slowly) discharging. If I unplug the USB cable and plug it back in, it charges back up to 100 percent, then starts discharging again. That might be normal - the charger in the PCF50633 shuts off the charge current once the battery is full, and turns it on again when the voltage falls below a threshold. It seems that it can discharge quite a bit before charging switches back on - in one test my battery got down to around 75% before it started to charge again. The GSM modem draws current directly from the battery so this will cause the battery to discharge when the charger is off, even when the rest of the phone is powered by USB. ___ support mailing list support@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/support
Re: Battery discharging while plugged in
On Fri, Sep 5, 2008 at 9:37 AM, Mike Montour [EMAIL PROTECTED] wrote: That might be normal - the charger in the PCF50633 shuts off the charge current once the battery is full, and turns it on again when the voltage falls below a threshold. It seems that it can discharge quite a bit before charging switches back on - in one test my battery got down to around 75% before it started to charge again. It doesn't completely turn off charging. It drops to a 100mA trickle charge which is insufficient to keep the battery topped up with the GSM radio turned on. That's why the batteries state of discharge is slower when its plugged into the charger ( even the wall charger ) What should happen is when the battery reachs 100% charge the kernel should check to see if the GSM radio/WLAN/Bluetooth/GSP is turned on and set the trickle charge to the base 100mA plus whatever each of the powered components requires. As the amount that each of these radios uses varies depending on signal strength and Rx/Tx mode its not an exact science. Even just putting the charge mode to ~250mA would probably keep the battery charged up and the GSM radio happy. Is there a dbus signal for a full battery that a script could hook to setup this trickle charge state ? Angus ___ support mailing list support@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/support
Re: Battery discharging while plugged in
Daniel Benoy wrote: See if you have the same problem with the official charger. Ok, I'll switch it over to the charger later tonight and report back. the way I'm plugging it in hasn't changed since It used to charge to 100% and stay there. My theory isn't so good then.. but it's still worth looking in to whether you're drawing the required current. erm, i don't know how to tell for sure This is a Freerunner right? Try this: cat /sys/devices/platform/s3c2440-i2c/i2c-adapter/i2c-0/0-0073/charger_type The far right should be the amperage that the charger is currently set to draw. More details (and other things in sysfs you may want to examine) here: http://wiki.openmoko.org/wiki/GTA02_sysfs If you're plugged directly into the host, you should be getting 500mA, assuming your operating system is performing power negociation properly. Hubs can be inconsistant unless they have external power. Yep, 500mA: [EMAIL PROTECTED]:~# cat /sys/devices/platform/s3c2440-i2c/i2c-adapter/i2c-0/0-0073/charger_type host/500mA usb mode 500mA Thanks, -Dale ___ support mailing list support@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/support
Re: Battery discharging while plugged in
-stacy wrote: Dale Maggee wrote: Hi, currently when I have my freerunner plugged into USB, it will charge to 100% and then start (slowly) discharging. If I unplug the USB cable and plug it back in, it charges back up to 100 percent, then starts discharging again. any Ideas? I noticed the same thing, I have a short shell script that will cause it to start charging again with unpluging the USB cable. = #!/bin/sh chgmode=/sys/class/i2c-adapter/i2c-0/0-0073/chgmode cat $chgmode echo 0 $chgmode cat $chgmode echo 1 $chgmode cat $chgmode = When you run it, the output should look like # chgmode enabled play-only fast # -stacy Did you mean to say withOUT unpluging the USB cable.? I get the output you described when I run this. Thanks. -D ___ support mailing list support@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/support
Re: Battery discharging while plugged in
Angus Ainslie wrote: It doesn't completely turn off charging. It drops to a 100mA trickle charge which is insufficient to keep the battery topped up with the GSM radio turned on. That's why the batteries state of discharge is slower when its plugged into the charger ( even the wall charger ) No, it turns off the charge current. See page 86 of the PCF50633 user manual (http://people.openmoko.org/tony_tu/GTA02/datasheet/PMU/PCF50633UM_6.pdf). Battery fully charged: When the battery is fully charged and the charger is in Battery Full mode, the charge path is disabled (the USB-BAT FET is off). I've charted this by sampling the capacity, voltage_now, and current_now /sys files, but I don't have time right now to dig out that file and post it. ___ support mailing list support@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/support
Re: Battery discharging while plugged in
On Fri, Sep 5, 2008 at 8:13 PM, -stacy [EMAIL PROTECTED] wrote: I noticed the same thing, I have a short shell script that will cause it to start charging again with unpluging the USB cable. = #!/bin/sh chgmode=/sys/class/i2c-adapter/i2c-0/0-0073/chgmode cat $chgmode echo 0 $chgmode cat $chgmode echo 1 $chgmode cat $chgmode = When you run it, the output should look like # chgmode enabled play-only fast # Thanks very much; this is going on my starred list, and when I next get some free time (tomorrow, I hope) I'll search the wiki and add it if I can't find it there. Regards, Ed. ___ support mailing list support@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/support
Battery discharging while plugged in
Hi, currently when I have my freerunner plugged into USB, it will charge to 100% and then start (slowly) discharging. If I unplug the USB cable and plug it back in, it charges back up to 100 percent, then starts discharging again. any Ideas? I'm using 2007.2 [EMAIL PROTECTED]:~# opkg list_installed | grep kernel kernel - 2:2.6.24+git37+d744c88c149269b95ec068c8615e492375415d6d-r2 - kernel-2.6.24 - 2:2.6.24+git37+d744c88c149269b95ec068c8615e492375415d6d-r2 - Thanks, -Dale ___ support mailing list support@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/support