[RESPONDED] Battery percentage gets misreported as 0% occasionally

Just adding my personal experiences with this issue to the thread…

I have a 2023 Framework 13 (12th Gen Intel) that I initially installed Ubuntu 22.04 on, and later upgraded to Ubuntu 24.04.
I’ve been having a similar issue with the battery charge sporadically reporting a value below 10% for a second or two before going back to 90+%. The graph of the charge (according to the “Power Statistics” application) looks like this.

I see this behavior whether I’m discharging the battery or have my power adapter connected. I have set my battery charge limit in the BIOS to 96%, which is why the graphs never get to 100%.

I changed my battery from the 55Wh unit to the 61Wh unit about 2 months ago, and have continued to see this issue.
I saw the issue when I was running Ubuntu 22, and have continued to see the issue after upgrading to Ubuntu 24.

I’ll have to check and see if I see the cros_ec_lpcs cros_ec_lpcs.0: packet too long error that others have reported seeing in dmesg.

1 Like

Just want to report I’ve also been seeing this regularly on an 11th gen i5. I very rarely use my laptop without the charger plugged in. Max battery percentage is set to 85% and I use either the Framework charger or a Steam Deck charger which both keep the laptop at 84 or 85%.

Every 20 mins to half an hour I get a random single-digit battery percentage reported, asking me to shut down or hibernate, and the following messages:

[97327.451094] cros_ec_lpcs cros_ec_lpcs.0: bad packet checksum f7
[98371.937386] cros_ec_lpcs cros_ec_lpcs.0: bad packet checksum f7

I’ve had these or the “bad packet length” messages for the memorable past (at least a year, maybe 2) and I’m somewhat surprised it hasn’t been fixed yet.

It has, by @jubnut, for kernel 6.11+

2 Likes

@Nine_Mile Kernel 6.11 will be released this month, but in the meantime you can use the prototype version of my kernel patches:

1 Like

It is happening on my 1240p too. That bug sucks.

I’m seeing this (Latest Kubuntu LTS, 15-1135g7 FW 13) too. sometimes KDE will just send me notifications about low power and the status bar icon will show a battery empty symbol. if i unplug something like an ethernet card it recalculates itself and seems to figure itself out but i definitely worry that it will shut down my computer at some point (and i suspect it already has a couple times when i wasnt around to react quickly enough)

1 Like

I’m seeing a similar error on my AMD HX 370 Framework 13, where when I transition to battery power, I will get a battery critical warning, even though the laptop is at 90% charge.

This is with Fedora 42 and KDE Plasma 6.4.4, kernel 6.15.10-200

I have experienced this a few times in the last couple days as well. I have the Framework 13 with AMD Ai 350 cpu. And I am running arch Linux kernel 6.16.1. I don’t need to be transitioning from charge to battery. It has only happened to me while on battery power so far. Once when the battery was at around 70% it went to 0% and popped up a critical warning and was going to hibernate. I hit cancel and the battery went back to the proper reporting. Then it happened again around 23%

I did not see the erratic battery percentage behaviour since a few months. Safe to say that it’s now gone… (Mint 22.1, 6.8, 1240P)

Looks like I’ve got the same issue (Bluefin, FW13 Ryzen AI 300 series). The laptop doesn’t shut down, but I get a popup saying the battery is empty… which disappears as soon as it pops up.

Luckily, the laptop doesn’t shut down, so it’s a purely visual bug in my experience so far.

Just to chime in, I’m having the same issue on CachyOS with kernel 6.17.7-2-cachyos running KDE Plasma. I’ve only had my framework 13 for a few days now, but it happened for the first time today. Not sure if it’s a regression regarding the fix @jubnut linked or something else entirely.