Librem 5 charging connected to PC only

First I thought that my L5 is unchargeable for unknown reasons, but then I thought that it can be some firmware problem.

After seeing the phone connects properly and the LED is red after a long time not showing any sign of operation, I flashed crimson and was surprised that the phone was charging.

Now I can only charge from my PC but any charger or power bank, nothing happens.

Do you know if this is an issue with firmware or hardware?

Like a Programmer or a IA exist a form of language to talk to them, otherwise they will ignore you, or poor response.

1 Like

Thank you, but I don’t understand your answer.

1 Like

Charging from a PC will generally work - but relatively slowly because power source and power destination may just negotiate standard USB power (max 500 mA; 5V), depending on the specification and modernity of the USB port on the PC. (By comparison, when I start charging using the Purism-supplied charger, the current would typically be above 2A i.e. 4 times faster than the USB port on my computer.)

Charging from any random charger or power bank will only work (better) if they are able to negotiate a higher current.

Your starting point would be to clarify whether you are using the Purism-supplied charger.

If so, are you able to fault isolate whether the problem is with the charger by using the charger with some other device that should work with that charger?

(If you use any random charger or power bank then it is a bit of a roll of the dice as to whether it works. The power source is expected to support USB-C PD 2.0 or 3.0.)

You can check what charging was negotiated by using:

cat /sys/class/power_supply/tps6598x-source-psy-0-003f/uevent

You can check the USB-C PD firmware version with:

sudo cat /sys/kernel/debug/tps6598x/0-003f/customer_use

(post output here)

Edited for improved accuracy

1 Like

Many PC USB ports these days are CDP that can supply up to 1.5A, and the Librem 5 will use that. 500mA limit applies to SDP.

Any PD 2.0-compliant 15W USB-C charger is supposed to work and let the Librem 5 charge at full speed. If it does not, there’s either a bug somewhere, it’s non-compliant or something’s broken.

It’s more complicated with peripherals like hubs that pass power through because of the way these devices reserve power for their own operation.

Are you using USB-A or USB-C ports?

1 Like

I should have mentioned that I first tried the specified charger for librem 5 which did work in the past.

I also tried different PD chargers, but I found out using the workaround with PC charging that my device is not charging anymore with higher current. So I expect the problem is a hw fault. Sry to bother you and thanks for the command to check the charging load.

I will give it a try, but it looks like a hw issue. I try to fix the board if I can isolate the faulty segment.

Here is the output.

It looks really like a problem of my device and not firmware to me. So thank you for the effort, but don’t waste your time on that.

sudo cat /sys/kernel/debug/tps6598x/0-003f/customer_use:

0x4c35445000000200

And uevent:

FWIW, that appears to be close to up-to-date i.e. you have 0.2.0 v. 0.2.2 is the latest in the source area.

The screenshot looks odd but, OK, I will leave it and you can take it up with Purism Support.

1 Like

Nothing on the screenshot looks odd, it’s configured to source up to 3A from a USB-C port based on its CC resistor configuration. Unless it wasn’t connected to a USB-C port with such capabilities, it an expected result.

FWIW there are no changes in firmware config between 0.2.0 and 0.2.2 that could be relevant to charging; the application code was however updated between 0.2.0 and 0.2.1 and this could have some relevance.

To be fair, we have no idea what the phone was connected to when it produced that output.

I think though, whatever it was connected to, it should be charging satisfactorily and the OP at least has some kind of workaround. Right?

It was kind of my intention that the OP posts that particular output when charging is not working - but maybe that wasn’t what has been posted here.