Openmoko Bug #1158: Charging stops even while connected

Openmoko Public Trac bugs at docs.openmoko.org
Mon Oct 27 09:17:10 CET 2008


#1158: Charging stops even while connected
------------------------------+---------------------------------------------
 Reporter:  plr at udgaard.com   |          Owner:  openmoko-devel
     Type:  defect            |         Status:  new           
 Priority:  high              |      Milestone:  Om2008.10     
Component:  System Software   |        Version:  unspecified   
 Severity:  critical          |     Resolution:                
 Keywords:  power management  |      Blockedby:                
 Blocking:                    |   Reproducible:  sometimes     
------------------------------+---------------------------------------------

Comment(by lindi):

 {{{
 I see this too on debian with

 $ dpkg -l | grep linux-image
 ii  linux-image-2.6.24-openmoko-gta02    20080903.git2ea34171-2 Linux
 2.6.24 kernel image for the Openmoko N

 I wrote a tiny program to log the battery parameters every two minutes:

 #!/bin/sh

 while true; do
     echo -n "`date -Iseconds` `date +%s`"
     for i in type status voltage_now current_now charge_full temp
 technology present time_to_empty_now time_to_full_now capacity online; do
         val="`cat
 /sys/devices/platform/bq27000-battery.0/power_supply/bat/$i | sed 's/
 /_/'`"
         echo -n " $val"
     done
     echo ""
     sleep 120
 done

 2008-10-26T21:04:18+0200 1225047858 Battery Discharging 4110000 202125
 1017271 333 Li-ion 1 18600 3932100 98 0
 2008-10-26T21:06:19+0200 1225047979 Battery Discharging 4116000 120750
 1017271 336 Li-ion 1 30960 3932100 97 0
 2008-10-26T21:08:20+0200 1225048100 Battery Discharging 4095000 276187
 1017271 341 Li-ion 1 13440 3932100 97 0
 2008-10-26T21:10:21+0200 1225048222 Battery Discharging 4110000 96375
 1017271 343 Li-ion 1 38340 3932100 96 0
 2008-10-26T21:12:22+0200 1225048342 Battery Discharging 4095000 216000
 1017271 343 Li-ion 1 17040 3932100 96 0
 2008-10-26T21:14:23+0200 1225048463 Battery Discharging 4102000 96562
 1017271 343 Li-ion 1 37860 3932100 95 0
 2008-10-26T21:16:24+0200 1225048584 Battery Discharging 4102000 103312
 1017271 343 Li-ion 1 35280 3932100 95 0
 2008-10-26T21:18:25+0200 1225048705 Battery Discharging 4087000 219937
 1017271 341 Li-ion 1 16500 3932100 94 0
 2008-10-26T21:20:26+0200 1225048826 Battery Charging 4139000 -241312
 1017271 343 Li-ion 1 3932100 1320 94 1
 2008-10-26T21:22:27+0200 1225048947 Battery Charging 4144000 -196125
 1017271 343 Li-ion 1 3932100 1440 95 1
 2008-10-26T21:24:28+0200 1225049068 Battery Charging 4147000 -172125
 1017271 346 Li-ion 1 3932100 1440 95 1
 2008-10-26T21:26:29+0200 1225049189 Battery Charging 4150000 -150000
 1017271 343 Li-ion 1 3932100 1500 96 1
 2008-10-26T21:28:29+0200 1225049310 Battery Charging 4150000 -132750
 1017271 343 Li-ion 1 3932100 1500 96 1
 2008-10-26T21:30:30+0200 1225049430 Battery Charging 4152000 -120562
 1017271 341 Li-ion 1 3932100 1440 97 1
 2008-10-26T21:32:31+0200 1225049551 Battery Charging 4155000 -112500
 1017271 341 Li-ion 1 3932100 1440 97 1
 2008-10-26T21:34:32+0200 1225049672 Battery Charging 4155000 -101062
 1017271 338 Li-ion 1 3932100 0 100 1
 2008-10-26T21:36:33+0200 1225049793 Battery Charging 4158000 -92437
 1017271 338 Li-ion 1 3932100 0 100 1
 2008-10-26T21:38:34+0200 1225049914 Battery Charging 4158000 -83437
 1017271 336 Li-ion 1 3932100 0 100 1
 2008-10-26T21:40:35+0200 1225050035 Battery Charging 4158000 -69375
 1017271 333 Li-ion 1 3932100 0 100 1
 2008-10-26T21:42:36+0200 1225050156 Battery Charging 4160000 -68250
 1017271 333 Li-ion 1 3932100 0 100 1
 2008-10-26T21:44:36+0200 1225050277 Battery Charging 4160000 -61687
 1017271 331 Li-ion 1 3932100 0 100 1
 2008-10-26T21:46:37+0200 1225050397 Battery Charging 4160000 -55125
 1017271 331 Li-ion 1 3932100 0 100 1
 2008-10-26T21:48:38+0200 1225050518 Battery Charging 4160000 -51000
 1017271 328 Li-ion 1 3932100 0 100 1
 2008-10-26T21:50:39+0200 1225050639 Battery Charging 4163000 -47812
 1017271 328 Li-ion 1 3932100 0 100 1
 2008-10-26T21:52:40+0200 1225050760 Battery Charging 4163000 -42000
 1017271 326 Li-ion 1 3932100 0 100 1
 2008-10-26T21:54:41+0200 1225050881 Battery Charging 4163000 -32062
 1017271 326 Li-ion 1 3932100 0 100 1
 2008-10-26T21:56:42+0200 1225051002 Battery Charging 4163000 -36562
 1017271 323 Li-ion 1 3932100 0 100 1
 2008-10-26T21:58:43+0200 1225051123 Battery Charging 4163000 -32812
 1017271 323 Li-ion 1 3932100 0 100 1
 2008-10-26T22:00:43+0200 1225051243 Battery Charging 4163000 -23437
 1017271 321 Li-ion 1 3932100 0 100 1
 2008-10-26T22:02:44+0200 1225051364 Battery Charging 4165000 -28500
 1017271 321 Li-ion 1 3932100 0 100 1
 2008-10-26T22:04:45+0200 1225051485 Battery Charging 4165000 -21187
 1017271 321 Li-ion 1 3932100 0 100 1
 2008-10-26T22:06:46+0200 1225051606 Battery Not_charging 4158000 32250
 1017271 318 Li-ion 1 119220 3932100 100 1
 2008-10-26T22:08:47+0200 1225051727 Battery Not_charging 4158000 10687
 1017271 318 Li-ion 1 359520 3932100 100 1
 2008-10-26T22:10:48+0200 1225051848 Battery Not_charging 4158000 5812
 1017271 318 Li-ion 1 660780 3932100 100 1
 2008-10-26T22:12:49+0200 1225051969 Battery Not_charging 4155000 18562
 1017271 316 Li-ion 1 206820 3932100 100 1
 2008-10-26T22:14:50+0200 1225052090 Battery Not_charging 4158000 4875
 1017271 316 Li-ion 1 787140 3932100 100 1
 2008-10-26T22:16:50+0200 1225052210 Battery Not_charging 4158000 15750
 1017271 316 Li-ion 1 243540 3932100 100 1
 2008-10-26T22:18:51+0200 1225052331 Battery Not_charging 4158000 3375
 1017271 316 Li-ion 1 1136220 3932100 100 1
 2008-10-26T22:20:52+0200 1225052452 Battery Not_charging 4155000 5062
 1017271 313 Li-ion 1 757080 3932100 100 1
 2008-10-26T22:22:53+0200 1225052573 Battery Not_charging 4155000 8625
 1017271 313 Li-ion 1 444180 3932100 100 1
 2008-10-26T22:24:54+0200 1225052694 Battery Not_charging 4155000 3937
 1017271 313 Li-ion 1 972540 3932100 100 1
 2008-10-26T22:26:55+0200 1225052815 Battery Not_charging 4152000 16875
 1017271 313 Li-ion 1 226860 3932100 100 1
 2008-10-26T22:28:56+0200 1225052936 Battery Not_charging 4152000 36187
 1017271 311 Li-ion 1 105720 3932100 99 1
 2008-10-26T22:30:57+0200 1225053057 Battery Not_charging 4152000 7687
 1017271 311 Li-ion 1 497520 3932100 99 1

 Also with

 $ cut -d ' ' -f13 energy2.txt|uniq -c
       6 100
       3 99
       4 98
      25 100
      24 99
      23 98
      14 97
       5 96
       4 95
       3 96
       1 97
      27 100
       4 99
      16 100
       2 99
       1 98
       2 97
       2 96
       2 95
       2 94
       2 95
       2 96
       2 97
      27 100
      24 99
      24 98
      20 97
      21 96
      18 95
      18 94
      20 93
      20 92
      17 91
      19 90
      19 89
      20 88
      17 87
      19 86
      15 85
      19 84
       9 83
       1 84
       1 86
       1 87
       1 88
       1 89
       1 90
       1 91
       2 92
       1 93

 we can see how many 2-minute periods the battery spent in each energy
 level.

 }}}

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/1158#comment:30>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac


More information about the devel mailing list