Charging via USB-C
#1
It has become apparent to me that charging via USB-C only works properly (fast) when the PBP is on.
The suspicion is that this has to do with PD negotiation failing when the device is powered off. This results in slow standard USB charging.

The graph below shows the charging pattern with the device on (orange boxes) and off (between the two boxes).
I'll talk to the relevant people and ask about what can be done. In the meantime, if you want your PBP to charge at its optimal using USB-C, make sure that its turned on.

This doesn't affect charging via the barrel jack.
It may be a issue specific to the default Debian MATE or other OSs too - haven't checked. Please report below if you've got experience with other OSs.


[Image: khCuoq0.png]
You can find me on IRC, Discord and Twitter


#2
(11-25-2019, 04:54 AM)Luke Wrote: The suspicion is that this has to do with PD negotiation failing when the device is powered off. This results in slow standard USB charging.
USB-C PD is handled in the (running) kernel
driver source
drivers/usb/typec/tcpm/fusb302.c
#3
(11-25-2019, 03:07 PM)ElektromAn Wrote:
(11-25-2019, 04:54 AM)Luke Wrote: The suspicion is that this has to do with PD negotiation failing when the device is powered off. This results in slow standard USB charging.
USB-C PD is handled in the (running) kernel
driver source
drivers/usb/typec/tcpm/fusb302.c

I've been testing a variety of USB-C chargers combined with an AC power meter (much quicker the observing the gradient),

I'm seeing wildly divergent behaviour:

1. A system that is off will always draw ~2.5W (e.g. 500mA at 5V)
2. Connected to a modern multi-charger type A socket via a USB2.0 cable the PBP draws 10W
3. As #2 but with a USB3.0 cable the PBP draws 13W
4. Connected via a Lenovo 45W laptop charger the PBP draws 15W
5. Connected via an alternative 45W type C to type C charger the PBP draws 2.5W

All but #2 of the above is seen in both 4.4 vendor kernel and mainline (with Tobias' patches). I've only tested #2 using mainline.
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye
#4
(11-26-2019, 04:05 AM)danielt Wrote: 5. Connected via an alternative 45W type C to type C charger the PBP draws 2.5W

BTW this is the case I'd really like to fix.

Looking at the fusb302 debug logs the Lenovo charger is doing pull up based "negotiation" whilst the alternative charger uses real PD comms. It negotiates OK but the system never actually draws the additional current. Does anybody have any clue whether software can direct the charger circuitry to draw more current?
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye
#5
Ubuntu Mate Ayufan
Samsung USB-c 15W fast charging adapter
* PBP off = fast charging
* PBP on = not charging at all.
#6
I'll ask @xalius to look into this thread and share some info - he did some research on this yesterday
You can find me on IRC, Discord and Twitter


#7
(11-26-2019, 04:05 AM)danielt Wrote: 2. Connected to a modern multi-charger type A socket via a USB2.0 cable the PBP draws 10W
3. As #2 but with a USB3.0 cable the PBP draws 13W

I'm going to take a guess the difference there is happening on the charger side.
#8
(11-26-2019, 01:10 PM)zaius Wrote:
(11-26-2019, 04:05 AM)danielt Wrote: 2. Connected to a modern multi-charger type A socket via a USB2.0 cable the PBP draws 10W
3. As #2 but with a USB3.0 cable the PBP draws 13W

I'm going to take a guess the difference there is happening on the charger side.

Yes, likely what it negotiates with the PBP
You can find me on IRC, Discord and Twitter


#9
(11-26-2019, 01:16 PM)Luke Wrote:
(11-26-2019, 01:10 PM)zaius Wrote:
(11-26-2019, 04:05 AM)danielt Wrote: 2. Connected to a modern multi-charger type A socket via a USB2.0 cable the PBP draws 10W
3. As #2 but with a USB3.0 cable the PBP draws 13W

I'm going to take a guess the difference there is happening on the charger side.

Yes, likely what it negotiates with the PBP

This is the same charger is both cases and the fusb302 debug logs are identical in both cases.

I'm tentatively reaching the conclusion this is a cable quality/length issue. The slower charging USB2.0 cable is 1.8m, I get faster charging with a 10cm USB2.0 cable and a 0.9m USB3.0 cable. Note that the charger has USB2.0 sockets so the only difference between USB2.0 and USB3.0 cabling should be nice fat conductors that are spec'ed for 900mA.
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye
#10
So
I've bought some USB-C "tester" from the usual sources. Claiming the description
it should be able to track/tap on PD messages ...

AFAICR
USB 2.0 500mA
USB 3.0 ~900mA
But there are some "crazy" USB chargers out there without max. mA limit
Also USB-C is more *dangerous* due max voltage of 20V and 5A with USB-PD
The dealer with big A has dropped all bad USB-C cables

The conductors are crucial, it's the copper aka cable thickness
Some kernel developer, CEC maintainer, has detected bad HDMI cables.


Possibly Related Threads…
Thread Author Replies Views Last Post
Photo P{inebook Pro not charging Ome Ko 6 1,840 11-09-2023, 03:29 PM
Last Post: tomekdev
  Pine Book Pro Charging Problems balin 7 6,703 12-15-2022, 02:15 PM
Last Post: tomasgreenro
  Very low battery (but charging) causes boot failures Phillip Bell 7 4,360 02-22-2022, 11:20 AM
Last Post: wdt
  Pinebook Pro Stopped Charging via USB-C MickTheGeek 4 4,178 08-25-2021, 02:51 PM
Last Post: MickTheGeek
  HArdware issues while charging user18130814200115 2 2,748 05-01-2021, 04:13 AM
Last Post: gabeeg
  PineBookPro does not charging floppy_rofling 0 1,610 02-03-2021, 05:29 AM
Last Post: floppy_rofling
  Screen flicker with USB-C charging bchenlee609 5 5,710 01-25-2021, 08:48 PM
Last Post: bchenlee609
  USB-C Charging on the PBP? Paulie420 33 34,953 12-12-2020, 02:20 PM
Last Post: wrzomar
  Charging via USB-C Port tyha 15 19,752 07-22-2020, 08:15 PM
Last Post: iscmob
  Battery not charging via AC Adapter laissezfarrell 1 3,066 05-30-2020, 06:05 PM
Last Post: tllim

Forum Jump:


Users browsing this thread: 1 Guest(s)