Charge threshold not being applied on JP2026 because of cargadgetd

REPRODUCIBILITY:
OS VERSION: 5.2.0.22
HARDWARE: Jolla Phone 2026
UI LANGUAGE: English
REGRESSION: Phone Charges to 100% when it shouldn’t

DESCRIPTION:

I have the battery charge threshold set to stop charging at 90% to preserve battery longevity. However the last few overnight charges, I have found the phone at 100% charge in the morning.
I have tried disabling and re-enabling the charge threshold setting but that made no difference.

PRECONDITIONS:

Have a charge threshold set under battery aging protection.

STEPS TO REPRODUCE:

EXPECTED RESULT:

Battery stops charging at the threshold set in the settings when the mode is activated.

ACTUAL RESULT:

Battery charges to 100%

MODIFICATIONS:

ADDITIONAL INFORMATION:

Battery settings screen

I don’t think this is JP26 specific, either, but I haven’t tracked down what causes it.

I cannot reproduce with the same model and SFOS. Note: my maximum charge level is set to 80%,

What kind of charger do you use? Do you turn off your phone? What kind of modifications did you? If possible, does it the same on a vanilla device?

I’ve been using the same charger since I got the phone, which originally came wirh a Xaiomi device and I think is Quick Charge 3 along with the proprietry protocol. I’ve been charging with the phone on. I’m not uisng any patches and the only thing I installed recently is Cargadgetd and Carfish which do use USB but I don’t think either modify system stuff, but I can try removing those and testing.

Ok, so after uninstalling all the cargadgetd stuff the charge threshold worked again. Maybe it is doing something weird with USB

Yes, I suspected cargadgetd too. Charging tonight after having turned off its handshake service and restarting usb-moded, will report back in the morning.

ok, let’s confirm that the issue is being caused by cargadgetd. If so, I’ll move to general.

I’m having this issue. Guess what app I have installed…

alright alright stealing usbmoded and doing it’s job was not the best idea - in upcoming release I’ll put it there but expect some issues when pairing

For now you can press “stop handshake” and it will bring everything back to normal.

Yep, I’ve confirmed overnight that’s the issue.

Note that I had to press “Stop handshake” and run devel-su systemctl restart usb-moded before the “Ask Every Time” window would come back up and battery ageing protection would work again

I wasn’t able to resolve the issue, sadly parts of the protocol (well at least the open implementations I test against) may issue usb restarts in the middle of the session which with usbmoded would force you to unlock the phone and select cargadgetd, what’s even worse it would force me to restart it anyway as we need to present ourselves in a very specific way.

That being said - wireless cargadgetd is now a thing and that doesn’t stop usbmoded

Also I’ve added a massive warning that this will happen and added a small instruction that stopping the handshake restores usbmoded.