Send buglog mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.openmoko.org/mailman/listinfo/buglog
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of buglog digest..."
Today's Topics:

   1. Re: Openmoko Bug #1158: Charging stops even while connected
      (Openmoko Public Trac)
   2. Re: Openmoko Bug #1158: Charging stops even while connected
      (Openmoko Public Trac)
   3. Re: Openmoko Bug #1158: Charging stops even while connected
      (Openmoko Public Trac)
   4. Re: Openmoko Bug #1158: Charging stops even while connected
      (Openmoko Public Trac)
   5. Re: Openmoko Bug #1158: Charging stops even while connected
      (Openmoko Public Trac)
   6. Re: Openmoko Bug #1158: Charging stops even while connected
      (Openmoko Public Trac)
--- Begin Message ---
#1158: Charging stops even while connected
---------------------------------+------------------------------------------
    Reporter:  p...@…             |        Owner:  openmoko-devel
        Type:  defect            |       Status:  reopened      
    Priority:  high              |    Milestone:  Om2008.10     
   Component:  System Software   |      Version:  unspecified   
    Severity:  blocker           |   Resolution:                
    Keywords:  power management  |     Haspatch:  0             
   Blockedby:                    |    Estimated:                
 Patchreview:                    |     Blocking:                
Reproducible:  sometimes         |  
---------------------------------+------------------------------------------

Comment(by balajirrao):

 Replying to [comment:40 lindi]:
 > Replying to [comment:37 balajirrao]:
 > > Battery starts discharging when connected to usb/adapter without the
 battery reaching 100% ? How long does the battery charge before this
 happens , and at what percentage (roughly) ?
 >
 > I connected phone to usb port of my PC and the capacity was around 90%.
 Then the capacity went to 100% and slowly started to decrease.
 >

 Possible reason could be the auto_restart bit is 0. So charging does not
 resume once battery voltage falls below a threshold..

 When this happens next (does it happen always ?), if you can get me
 dump_reg of pcf50633 it'll be awesome..

 > > Does the battery start discharging after capacity 100% and current 0
 and before charger is unplugged and then discharges completely without
 charging being restarted ?
 >
 > I did not witness current of 0 this time like I did with
 9b2a35dd616a9fbe.

 OK.. That's interesting.. But in between the ~ 30 mA values in the logs we
 see a current consumption of some 190 mA. Typical of idle system. I wonder
 from where does it come.. Andy, any ideas ?

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

--- End Message ---
--- Begin Message ---
#1158: Charging stops even while connected
---------------------------------+------------------------------------------
    Reporter:  p...@…             |        Owner:  openmoko-devel
        Type:  defect            |       Status:  reopened      
    Priority:  high              |    Milestone:  Om2008.10     
   Component:  System Software   |      Version:  unspecified   
    Severity:  blocker           |   Resolution:                
    Keywords:  power management  |     Haspatch:  0             
   Blockedby:                    |    Estimated:                
 Patchreview:                    |     Blocking:                
Reproducible:  sometimes         |  
---------------------------------+------------------------------------------

Comment(by balajirrao):

 Replying to [comment:41 lindi]:
 > [Still connected to PC and not ac adapter.]
 > I again saw that charging stops and current is > 0:

 Ok, that is interesting again! Can You please post the reg dump ? It's in
 the pcf50633 /sys folder..

 > {{{
 > 2008-12-16T20:50:05+0200 1229453405 Battery Charging 4165000 -21562
 1003348 298 Li-ion 1 3932100 0 100 1 0.07
 > 2008-12-16T20:52:06+0200 1229453526 Battery Charging 4165000 -22500
 1003348 298 Li-ion 1 3932100 0 100 1 0.10
 > 2008-12-16T20:54:08+0200 1229453648 Battery Not_charging 4163000 20250
 1003348 298 Li-ion 1 187320 3932100 100 1 0.08
 > 2008-12-16T20:56:09+0200 1229453769 Battery Not_charging 4160000 10312
 1003348 298 Li-ion 1 367740 3932100 100 1 0.10
 > 2008-12-16T20:58:10+0200 1229453890 Battery Not_charging 4160000 9750
 1003348 298 Li-ion 1 388740 3932100 100 1 0.08
 > }}}
 >
 > To me it seems that USB is providing 500mA but the phone still draws
 10-20mA from the battery as can be seen above.
 > {{{
 > li...@ginger:~$ cat /sys/class/i2c-
 adapter/i2c-0/0-0073/pcf50633-mbc/chgmode
 > bat-full 10
 > li...@ginger:~$ cat /sys/class/i2c-
 adapter/i2c-0/0-0073/pcf50633-mbc/usb_curlim
 > 500
 > }}}

 Hmmm..

 I'll let me phone charge through the night.. Let me see..

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

--- End Message ---
--- Begin Message ---
#1158: Charging stops even while connected
---------------------------------+------------------------------------------
    Reporter:  p...@…             |        Owner:  openmoko-devel
        Type:  defect            |       Status:  reopened      
    Priority:  high              |    Milestone:  Om2008.10     
   Component:  System Software   |      Version:  unspecified   
    Severity:  blocker           |   Resolution:                
    Keywords:  power management  |     Haspatch:  0             
   Blockedby:                    |    Estimated:                
 Patchreview:                    |     Blocking:                
Reproducible:  sometimes         |  
---------------------------------+------------------------------------------

Comment(by balajirrao):

 Replying to [comment:39 andy]:
 >
 > > Actual discharging begins here. currrent=31mA implies that that sys
 current requirement is more than what usb can provide and the rest is
 pulled in from the battery. So the total current pulled by the system is
 531 mA ?? Or somehow < 500 mA flowing in from the USB ?
 >
 > It's a good question, what is the USB current limit at this time,
 possibly only 100mA?

 Hmmm.. Don't think so. Some other weird thing going on here.. :(

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

--- End Message ---
--- Begin Message ---
#1158: Charging stops even while connected
---------------------------------+------------------------------------------
    Reporter:  p...@…             |        Owner:  openmoko-devel
        Type:  defect            |       Status:  reopened      
    Priority:  high              |    Milestone:  Om2008.10     
   Component:  System Software   |      Version:  unspecified   
    Severity:  blocker           |   Resolution:                
    Keywords:  power management  |     Haspatch:  0             
   Blockedby:                    |    Estimated:                
 Patchreview:                    |     Blocking:                
Reproducible:  sometimes         |  
---------------------------------+------------------------------------------

Comment(by lindi):

 I can see this also with AC adapter:
 {{{
 2008-12-16T21:06:15+0200 1229454375 Battery Discharging 4139000 121687
 1003348 298 Li-ion 1 31080 3932100 100 0 0.11
 2008-12-16T21:08:16+0200 1229454496 Battery Discharging 4134000 120750
 1003348 298 Li-ion 1 31200 3932100 99 0 0.07
 2008-12-16T21:10:17+0200 1229454617 Battery Charging 4160000 -57750
 1003348 296 Li-ion 1 3932100 0 100 1 0.13
 2008-12-16T21:12:19+0200 1229454739 Battery Charging 4163000 -48000
 1003348 293 Li-ion 1 3932100 0 100 1 0.12
 2008-12-16T21:14:20+0200 1229454860 Battery Charging 4163000 -40312
 1003348 293 Li-ion 1 3932100 0 100 1 0.08
 2008-12-16T21:16:21+0200 1229454981 Battery Charging 4163000 -36750
 1003348 293 Li-ion 1 3932100 0 100 1 0.05
 2008-12-16T21:18:22+0200 1229455103 Battery Charging 4163000 -28687
 1003348 293 Li-ion 1 3932100 0 100 1 0.15
 2008-12-16T21:20:24+0200 1229455224 Battery Charging 4165000 -27937
 1003348 293 Li-ion 1 3932100 0 100 1 0.17
 2008-12-16T21:22:25+0200 1229455345 Battery Charging 4165000 -26437
 1003348 293 Li-ion 1 3932100 0 100 1 0.12
 2008-12-16T21:24:26+0200 1229455466 Battery Charging 4165000 -21000
 1003348 293 Li-ion 1 3932100 0 100 1 0.09
 2008-12-16T21:26:27+0200 1229455588 Battery Charging 4165000 -22687
 1003348 293 Li-ion 1 3932100 0 100 1 0.10
 2008-12-16T21:28:29+0200 1229455709 Battery Not_charging 4163000 10312
 1003348 293 Li-ion 1 367860 3932100 100 1 0.21
 2008-12-16T21:30:30+0200 1229455830 Battery Not_charging 4160000 12375
 1003348 293 Li-ion 1 311220 3932100 100 1 0.15

 li...@ginger:~$ cat /sys/class/i2c-
 adapter/i2c-0/0-0073/pcf50633-mbc/chgmode
 bat-full 10
 li...@ginger:~$ cat /sys/class/i2c-
 adapter/i2c-0/0-0073/pcf50633-mbc/usb_curlim
 1000
 li...@ginger:~$ sudo cat /sys/class/i2c-adapter/i2c-0/0-0073/dump_regs
 13 84 80 00 00 00 00 80 00 00 00 00 00 d3 aa 4a
 15 47 ff 01 00 01 00 00 02 08 6b 01 00 0a 1b 02
 00 22 2f 01 00 22 00 00 02 00 05 05 11 18 02 18
 02 15 00 17 01 15 01 15 01 12 01 00 00 ff 3f 00
 00 07 7b e7 28 19 ff ff 00 02 00 33 2a f0 19 00
 00 08 00 00 7e 01 00 f3 00 35 31 19 02 16 11 08
 00 20 06 05 05 11 08 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 a4 e2 59 0a 27 60 5b b0 80
 00 d8 03 05 00 01 00 03 f7 ff 1a 67 ff 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 }}}

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

--- End Message ---
--- Begin Message ---
#1158: Charging stops even while connected
---------------------------------+------------------------------------------
    Reporter:  p...@…             |        Owner:  openmoko-devel
        Type:  defect            |       Status:  reopened      
    Priority:  high              |    Milestone:  Om2008.10     
   Component:  System Software   |      Version:  unspecified   
    Severity:  blocker           |   Resolution:                
    Keywords:  power management  |     Haspatch:  0             
   Blockedby:                    |    Estimated:                
 Patchreview:                    |     Blocking:                
Reproducible:  sometimes         |  
---------------------------------+------------------------------------------

Comment(by andy):

 Replying to [comment:45 lindi]:
 > I can see this also with AC adapter:
 > {{{
 > 2008-12-16T21:06:15+0200 1229454375 Battery Discharging 4139000 121687
 1003348 298 Li-ion 1 31080 3932100 100 0 0.11
 > 2008-12-16T21:08:16+0200 1229454496 Battery Discharging 4134000 120750
 1003348 298 Li-ion 1 31200 3932100 99 0 0.07
 > 2008-12-16T21:10:17+0200 1229454617 Battery Charging 4160000 -57750
 1003348 296 Li-ion 1 3932100 0 100 1 0.13
 > 2008-12-16T21:12:19+0200 1229454739 Battery Charging 4163000 -48000
 1003348 293 Li-ion 1 3932100 0 100 1 0.12
 > 2008-12-16T21:14:20+0200 1229454860 Battery Charging 4163000 -40312
 1003348 293 Li-ion 1 3932100 0 100 1 0.08
 > 2008-12-16T21:16:21+0200 1229454981 Battery Charging 4163000 -36750
 1003348 293 Li-ion 1 3932100 0 100 1 0.05
 > 2008-12-16T21:18:22+0200 1229455103 Battery Charging 4163000 -28687
 1003348 293 Li-ion 1 3932100 0 100 1 0.15
 > 2008-12-16T21:20:24+0200 1229455224 Battery Charging 4165000 -27937
 1003348 293 Li-ion 1 3932100 0 100 1 0.17
 > 2008-12-16T21:22:25+0200 1229455345 Battery Charging 4165000 -26437
 1003348 293 Li-ion 1 3932100 0 100 1 0.12
 > 2008-12-16T21:24:26+0200 1229455466 Battery Charging 4165000 -21000
 1003348 293 Li-ion 1 3932100 0 100 1 0.09
 > 2008-12-16T21:26:27+0200 1229455588 Battery Charging 4165000 -22687
 1003348 293 Li-ion 1 3932100 0 100 1 0.10
 > 2008-12-16T21:28:29+0200 1229455709 Battery Not_charging 4163000 10312
 1003348 293 Li-ion 1 367860 3932100 100 1 0.21

 Not really sure that's evil.  The GSM unit is connected directly to
 battery... the charger rightly decided the battery was full and stopped
 charging, then the GSM unit is eating 10mA direct from battery.  I guess
 after some interval the charger will see if it should charge again.

 > li...@ginger:~$ cat /sys/class/i2c-
 adapter/i2c-0/0-0073/pcf50633-mbc/chgmode
 > bat-full 10

 Yes it makes sense.

 > 00 07 7b e7 28 19 ff ff 00 02 00 33 2a f0 19 00

 Charger is enabled here.

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

--- End Message ---
--- Begin Message ---
#1158: Charging stops even while connected
---------------------------------+------------------------------------------
    Reporter:  p...@…             |        Owner:  openmoko-devel
        Type:  defect            |       Status:  reopened      
    Priority:  high              |    Milestone:  Om2008.10     
   Component:  System Software   |      Version:  unspecified   
    Severity:  blocker           |   Resolution:                
    Keywords:  power management  |     Haspatch:  0             
   Blockedby:                    |    Estimated:                
 Patchreview:                    |     Blocking:                
Reproducible:  sometimes         |  
---------------------------------+------------------------------------------

Comment(by lindi):

 Replying to [comment:46 andy]:
 > > 2008-12-16T21:28:29+0200 1229455709 Battery Not_charging 4163000 10312
 1003348 293 Li-ion 1 367860 3932100 100 1 0.21
 >
 > Not really sure that's evil.  The GSM unit is connected directly to
 battery... the charger rightly decided the battery was full and stopped
 charging, then the GSM unit is eating 10mA direct from battery.  I guess
 after some interval the charger will see if it should charge again.

 It should charge yes but it does not seem to since the capacity starts to
 go down:

 {{{
 2008-12-16T21:30:30+0200 1229455830 Battery Not_charging 4160000 12375
 1003348 293 Li-ion 1 311220 3932100 100 1 0.15
 2008-12-16T21:32:31+0200 1229455951 Battery Not_charging 4158000 16687
 1003348 293 Li-ion 1 227160 3932100 100 1 0.13
 2008-12-16T21:34:32+0200 1229456072 Battery Not_charging 4155000 58875
 1003348 293 Li-ion 1 64320 3932100 100 1 0.19
 2008-12-16T21:36:34+0200 1229456194 Battery Not_charging 4158000 11625
 1003348 293 Li-ion 1 388380 3932100 100 1 0.18
 2008-12-16T21:38:35+0200 1229456315 Battery Not_charging 4158000 10312
 1003348 293 Li-ion 1 367020 3932100 100 1 0.11
 2008-12-16T21:40:36+0200 1229456436 Battery Not_charging 4158000 20250
 1003348 293 Li-ion 1 186840 3932100 100 1 0.08
 2008-12-16T21:42:37+0200 1229456557 Battery Not_charging 4158000 21937
 1003348 293 Li-ion 1 172380 3932100 100 1 0.05
 2008-12-16T21:44:39+0200 1229456679 Battery Not_charging 4158000 10312
 1003348 293 Li-ion 1 366540 3932100 100 1 0.03
 2008-12-16T21:46:40+0200 1229456800 Battery Not_charging 4155000 20250
 1003348 293 Li-ion 1 186600 3932100 100 1 0.09
 2008-12-16T21:48:41+0200 1229456921 Battery Not_charging 4155000 20625
 1003348 293 Li-ion 1 183120 3932100 100 1 0.06
 2008-12-16T21:50:42+0200 1229457042 Battery Not_charging 4155000 10312
 1003348 293 Li-ion 1 366180 3932100 100 1 0.03
 2008-12-16T21:52:44+0200 1229457164 Battery Not_charging 4155000 9937
 1003348 293 Li-ion 1 291720 3932100 99 1 0.05
 2008-12-16T21:54:45+0200 1229457285 Battery Not_charging 4155000 15375
 1003348 296 Li-ion 1 245400 3932100 99 1 0.47
 2008-12-16T21:56:47+0200 1229457407 Battery Not_charging 4155000 10312
 1003348 296 Li-ion 1 365700 3932100 99 1 0.71
 2008-12-16T21:58:48+0200 1229457528 Battery Not_charging 4152000 13875
 1003348 298 Li-ion 1 358980 3932100 99 1 0.82
 2008-12-16T22:00:50+0200 1229457650 Battery Not_charging 4152000 10312
 1003348 298 Li-ion 1 365340 3932100 99 1 0.93
 2008-12-16T22:02:52+0200 1229457772 Battery Not_charging 4152000 19500
 1003348 301 Li-ion 1 193140 3932100 99 1 1.03
 2008-12-16T22:04:53+0200 1229457893 Battery Not_charging 4144000 43500
 1003348 303 Li-ion 1 189180 3932100 99 1 0.74
 2008-12-16T22:06:55+0200 1229458015 Battery Not_charging 4121000 188437
 1003348 313 Li-ion 1 19860 3932100 99 1 0.53
 2008-12-16T22:08:56+0200 1229458136 Battery Not_charging 4118000 189937
 1003348 316 Li-ion 1 19620 3932100 98 1 0.45
 2008-12-16T22:10:57+0200 1229458257 Battery Not_charging 4110000 206062
 1003348 321 Li-ion 1 18060 3932100 98 1 0.33
 }}}


 > > 00 07 7b e7 28 19 ff ff 00 02 00 33 2a f0 19 00
 >
 > Charger is enabled here.

 I get exactly the same line from dump_regs even now that capacity is
 already at 97%. Why is battery capacity dropping even if charger is
 enabled?

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

--- End Message ---
_______________________________________________
buglog mailing list
[email protected]
http://lists.openmoko.org/mailman/listinfo/buglog

Reply via email to