charging: sometimes phone does not recognize when charger is plugged in
I observe this behaviour for quite some months, maybe even since I received my Librem 5 in March 2022. When I put in the USB-C cable connected to the charger in the wall socket, the phone's LED does not light red, there is no sound/vibra and /sys/class/power_supply/bq25890-charger/status
stays Discharging
.
dmesg log with comments what I did:
=> Plugging in the first time. No RED Light, so sound. State still "Discharging".
[273858.813339] bq25890-charger 3-006a: Upstream supply changed: 0.
[273858.813387] bq25890-charger 3-006a: Disabling OTG_EN pin
[273858.817627] tps6598x 0-003f: The interrupt is masked , how did it fire ?? 380100a
[273858.827570] bq25890-charger 3-006a: Upstream supply changed: 0.
[273858.827599] bq25890-charger 3-006a: Disabling OTG_EN pin
[273858.831762] bq25890-charger 3-006a: Upstream supply changed: 0.
[273858.831790] bq25890-charger 3-006a: Disabling OTG_EN pin
[273858.923677] bq25890-charger 3-006a: Upstream supply changed: 0.
[273858.923708] bq25890-charger 3-006a: Disabling OTG_EN pin
[273861.541049] bq25890-charger 3-006a: Upstream supply changed: 0.
[273861.541087] bq25890-charger 3-006a: Enabling OTG_EN pin
[273861.544720] bq25890-charger 3-006a: Upstream supply changed: 0.
[273861.544761] bq25890-charger 3-006a: Enabling OTG_EN pin
[273861.591524] bq25890-charger 3-006a: Upstream supply changed: 0.
[273861.591551] bq25890-charger 3-006a: Enabling OTG_EN pin
[273861.650429] xhci-hcd xhci-hcd.5.auto: xHCI Host Controller
[273861.650467] xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus number 3
[273861.650590] xhci-hcd xhci-hcd.5.auto: hcc params 0x0220fe6c hci version 0x110 quirks 0x0000002000010010
[273861.650637] xhci-hcd xhci-hcd.5.auto: irq 207, io mem 0x38100000
[273861.650771] xhci-hcd xhci-hcd.5.auto: xHCI Host Controller
[273861.650782] xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus number 4
[273861.650793] xhci-hcd xhci-hcd.5.auto: Host supports USB 3.0 SuperSpeed
[273861.650953] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.00
[273861.650962] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[273861.650969] usb usb3: Product: xHCI Host Controller
[273861.650974] usb usb3: Manufacturer: Linux 6.0.0-1-librem5 xhci-hcd
[273861.650980] usb usb3: SerialNumber: xhci-hcd.5.auto
[273861.651447] hub 3-0:1.0: USB hub found
[273861.651481] hub 3-0:1.0: 1 port detected
[273861.651878] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[273861.651981] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.00
[273861.651990] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[273861.651996] usb usb4: Product: xHCI Host Controller
[273861.652001] usb usb4: Manufacturer: Linux 6.0.0-1-librem5 xhci-hcd
[273861.652006] usb usb4: SerialNumber: xhci-hcd.5.auto
[273861.652698] hub 4-0:1.0: USB hub found
[273861.652741] hub 4-0:1.0: 1 port detected
[273861.658842] bq25890-charger 3-006a: Upstream supply changed: 0.
[273861.658873] bq25890-charger 3-006a: Enabling OTG_EN pin
[273861.692198] bq25890-charger 3-006a: Upstream supply changed: 0.
[273861.692231] bq25890-charger 3-006a: Enabling OTG_EN pin
[273877.587683] edt_ft5x06 2-0038: Unable to fetch data, error: -6
=> Unplugging the cable:
[273999.912786] xhci-hcd xhci-hcd.5.auto: remove, state 4
[273999.912823] usb usb4: USB disconnect, device number 1
[273999.913764] xhci-hcd xhci-hcd.5.auto: USB bus 4 deregistered
[273999.913817] xhci-hcd xhci-hcd.5.auto: remove, state 4
[273999.913845] usb usb3: USB disconnect, device number 1
[273999.915031] xhci-hcd xhci-hcd.5.auto: USB bus 3 deregistered
[273999.915442] bq25890-charger 3-006a: Upstream supply changed: 0.
[273999.915460] bq25890-charger 3-006a: Disabling OTG_EN pin
[273999.917038] tps6598x 0-003f: The interrupt is masked , how did it fire ?? 380100a
[273999.925544] bq25890-charger 3-006a: Upstream supply changed: 0.
[273999.925876] bq25890-charger 3-006a: Disabling OTG_EN pin
[273999.929654] bq25890-charger 3-006a: Upstream supply changed: 0.
[273999.929681] bq25890-charger 3-006a: Disabling OTG_EN pin
[274000.022044] bq25890-charger 3-006a: Upstream supply changed: 0.
[274000.022073] bq25890-charger 3-006a: Disabling OTG_EN pin
[274008.218528] bq25890-charger 3-006a: Upstream supply changed: 0.
[274008.218560] bq25890-charger 3-006a: Enabling OTG_EN pin
[274008.222006] bq25890-charger 3-006a: Upstream supply changed: 0.
[274008.222041] bq25890-charger 3-006a: Enabling OTG_EN pin
[274008.266059] bq25890-charger 3-006a: Upstream supply changed: 0.
[274008.266088] bq25890-charger 3-006a: Enabling OTG_EN pin
=> Plugging in again. Still no red LED. State still "Discharging".
[274008.327110] xhci-hcd xhci-hcd.5.auto: xHCI Host Controller
[274008.327154] xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus number 3
[274008.327305] xhci-hcd xhci-hcd.5.auto: hcc params 0x0220fe6c hci version 0x110 quirks 0x0000002000010010
[274008.327359] xhci-hcd xhci-hcd.5.auto: irq 207, io mem 0x38100000
[274008.327531] xhci-hcd xhci-hcd.5.auto: xHCI Host Controller
[274008.327545] xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus number 4
[274008.327560] xhci-hcd xhci-hcd.5.auto: Host supports USB 3.0 SuperSpeed
[274008.327767] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.00
[274008.327780] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[274008.327789] usb usb3: Product: xHCI Host Controller
[274008.327797] usb usb3: Manufacturer: Linux 6.0.0-1-librem5 xhci-hcd
[274008.327805] usb usb3: SerialNumber: xhci-hcd.5.auto
[274008.328355] hub 3-0:1.0: USB hub found
[274008.328396] hub 3-0:1.0: 1 port detected
[274008.328855] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[274008.328998] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.00
[274008.329010] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[274008.329020] usb usb4: Product: xHCI Host Controller
[274008.329028] usb usb4: Manufacturer: Linux 6.0.0-1-librem5 xhci-hcd
[274008.329036] usb usb4: SerialNumber: xhci-hcd.5.auto
[274008.348406] hub 4-0:1.0: USB hub found
[274008.348461] hub 4-0:1.0: 1 port detected
[274008.349026] bq25890-charger 3-006a: Upstream supply changed: 0.
[274008.349043] bq25890-charger 3-006a: Enabling OTG_EN pin
[274008.366974] bq25890-charger 3-006a: Upstream supply changed: 0.
[274008.367000] bq25890-charger 3-006a: Enabling OTG_EN pin
=> Plugging out and in again. This time I turned the USB-C plug by 180 degrees.
=> LED turns red, charging sound event/vibra. State becomes "Charging".
[274018.142905] xhci-hcd xhci-hcd.5.auto: remove, state 4
[274018.142942] usb usb4: USB disconnect, device number 1
[274018.143792] bq25890-charger 3-006a: Upstream supply changed: 0.
[274018.143811] bq25890-charger 3-006a: Disabling OTG_EN pin
[274018.145924] xhci-hcd xhci-hcd.5.auto: USB bus 4 deregistered
[274018.145972] xhci-hcd xhci-hcd.5.auto: remove, state 4
[274018.146050] usb usb3: USB disconnect, device number 1
[274018.147893] bq25890-charger 3-006a: Upstream supply changed: 0.
[274018.147930] bq25890-charger 3-006a: Disabling OTG_EN pin
[274018.148433] tps6598x 0-003f: The interrupt is masked , how did it fire ?? 380100a
[274018.156918] xhci-hcd xhci-hcd.5.auto: USB bus 3 deregistered
[274018.160947] bq25890-charger 3-006a: Upstream supply changed: 0.
[274018.160976] bq25890-charger 3-006a: Disabling OTG_EN pin
[274018.266491] bq25890-charger 3-006a: Upstream supply changed: 0.
[274018.266519] bq25890-charger 3-006a: Disabling OTG_EN pin
[274021.206221] bq25890-charger 3-006a: Upstream supply changed: 1.
[274021.206252] bq25890-charger 3-006a: Disabling OTG_EN pin
[274021.210908] bq25890-charger 3-006a: Upstream supply changed: 1.
[274021.210938] bq25890-charger 3-006a: Disabling OTG_EN pin
[274021.212753] bq25890-charger 3-006a: Upstream supply changed: 1.
[274021.212775] bq25890-charger 3-006a: Disabling OTG_EN pin
[274021.312469] bq25890-charger 3-006a: Upstream supply changed: 1.
[274021.312501] bq25890-charger 3-006a: Disabling OTG_EN pin
[274021.429026] bq25890-charger 3-006a: Upstream supply changed: 1.
[274021.429053] bq25890-charger 3-006a: Disabling OTG_EN pin
[274021.875860] bq25890-charger 3-006a: Upstream supply changed: 1.
[274021.875894] bq25890-charger 3-006a: Disabling OTG_EN pin
[274021.993673] bq25890-charger 3-006a: Upstream supply changed: 1.
[274021.993704] bq25890-charger 3-006a: Disabling OTG_EN pin
I'm using the original charger shipped by Purism with the original USB-C cable. It's on Europe's 50Hz grid :)
It's not every time when I charge the Librem 5. More like once or twice a week. Most of the time it works on the first plug in.
tail -n+0 /sys/class/power_supply/*/uevent
-> charger_not_recognized.txt
tail -n+0 /sys/class/power_supply/*/uevent
-> charger_recognized.txt