Framework 13 7840U randomly stops charging

Image for system details:

Usually when I start the laptop, the charging works fine. However sometimes several hours later, I notice my battery being low despite having been plugged in the whole time. I click the battery indicator and it says “Discharging” despite the fact that the laptop is plugged in.

Unplugging and replugging the charging cable does not fix it. I have it plugged into USB-C on the top-left side. When I try to plug it in on the USB-C on the top-right side, the charging indicator on the battery icon (green plug icon on top of the battery) starts flashing, as if the charging is turning on and off over and over again.

I’ve seen this happen both with the included charger and when plugged into a docking station.

Restarting the laptop fixes the problem, but this is super annoying.

Is there a way to fix this or does this indicate a hardware issue? I got this recently, within the last 3 months.

Have you tried using other USBC adapter? You can also reset the mainboard and see if that helps. You can use $ upower -i $(upower -e | grep battery) to check the battery wattage

There have been other cases where this has happened to other users machines. You should start a ticket with support to help figure out what the issue is.

It may be something with the Embedded Controller (EC) not talking to the battery charge controller/module. This may be a hardware thing or possibly a firmware bug that needs further investigation.

A full board reset should ideally bring everything back to a fresh state just as it was with the latest bios update to the machine.

If it is doing it consistently then that is a good sign that the machine is getting itself into a stuck state and there should be some data from the EC that it is reporting is abnormal.