BAT0 missing from /power_supply. Battery indicator shows no battery available

A few days ago I restarted my Librem 14 and when it booted back up, the battery icon showed a red X in KDE plasma. Hovering over it displayed the message “no batteries available”. Listing the files in /sys/class/power_supply shows only AC when it used to show BAT0 as well. Since then I have tried looking at online solutions, reinstalled PureOS, and switched to a different Debian based distro (for more reasons that just trying to troubleshoot this). Any help is much appreciated.

upower:

tomsi@Grimoire:~$ upower -d
Device: /org/freedesktop/UPower/devices/line_power_AC
native-path: AC
power supply: yes
updated: Fri 16 Sep 2022 07:35:29 PM MDT (357 seconds ago)
has history: no
has statistics: no
line-power
warning-level: none
online: yes
icon-name: ‘ac-adapter-symbolic’

Device: /org/freedesktop/UPower/devices/DisplayDevice
power supply: no
updated: Fri 16 Sep 2022 07:29:34 PM MDT (712 seconds ago)
has history: no
has statistics: no
unknown
warning-level: none
icon-name: ‘battery-missing-symbolic’

Daemon:
daemon-version: 0.99.11
on-battery: no
lid-is-closed: no
lid-is-present: yes
critical-action: HybridSleep
tomsi@Grimoire:~$

1 Like

I suggest re-seating the battery.

2 Likes

This solution also worked for me. Thanks!

2 Likes

I am having exactly the same issue on my brand new Librem 14. Re-seating the battery did not help. Anything else I can try to fix this problem?

Thanks,

/sys/class/power_supply$ ls
AC


$ upower -d
Device: /org/freedesktop/UPower/devices/line_power_AC
native-path: AC
power supply: yes
updated: Tue 12 Dec 2023 12:31:30 PM PST (424 seconds ago)
has history: no
has statistics: no
line-power
warning-level: none
online: yes
icon-name: ‘ac-adapter-symbolic’

Device: /org/freedesktop/UPower/devices/DisplayDevice
power supply: no
updated: Tue 12 Dec 2023 12:31:30 PM PST (424 seconds ago)
has history: no
has statistics: no
unknown
warning-level: none
icon-name: ‘battery-missing-symbolic’

Daemon:
daemon-version: 0.99.11
on-battery: no
lid-is-closed: no
lid-is-present: yes
critical-action: PowerOff

1 Like

What means “re-seating the battery”?

1 Like

Basically, take it out and put it back in again i.e. to make sure that it is making correct electrical contact with the thing that it is supposed to connect to.

2 Likes

I disconnected and connected again the battery of my librem14 but still not working. :frowning: Any hint?

1 Like

Could you start by mentioning what problem you are observing, and what things you have tried in order to resolve the problem?

Typical additional information to include would be:

  • what boot firmware type?
  • what boot firmware version? whether it is up to date?
  • whether the EC firmware is up to date?
  • whether you can reproduce whatever problem you are having when doing a Live Boot?
1 Like

I received my librem14 some time ago but until yesterday I do not unpacked it. It works with the power supply connected but not without it. There is not BAT0 in /sys/class/power_supply like the first post of the thread and the same upower -d output but critical-action: PowerOff.

I tried to unplug and plug again the battery without success.

I will try to reproduce it with a Live Boot.

How I can know boot firmware type and version? Also how I can know if it is up to date? And also for the EC?

1 Like

So brand new Librem 14 apparently not functioning on battery?

Does it charge if left powered but shut down?

Otherwise this sounds as if you should be contacting Purism Support. support@puri.sm

1 Like

I do not know how to see if battery is charging with laptop powered off, but I plugged it several hours without effect.

1 Like

You can use the Coreboot utility script:

mkdir ~/updates && cd ~/updates 
wget https://source.puri.sm/firmware/utility/raw/master/coreboot_util.sh -O coreboot_util.sh 
sudo bash ./coreboot_util.sh

Afterwards, it will present a menu similar to this one:

################################################
##       Purism Librem coreboot Utility         
################################################
#    Device: Librem 14
#    Serial: 123456789
#  Firmware: Standard (coreboot+SeaBIOS)
#   Version: 24.02.01-Purism-1 (05/14/2024)
################################################
#  
#  1) Update firmware
#  2) Switch to a different firmware
#  3) Prepare firmware for manual flash
#  4) Configure serial number
#  5) Configure boot order
#  
################################################
  
Enter your choice (1-5) or Q to quit:

The firmware type and version will be listed above the menu options.

The firmware version will have additional blinking text notifying you that an update for your firmware is available.

You can use purism_ectool:

wget https://source.puri.sm/firmware/releases/-/raw/master/tools/purism_ectool.gz
gzip -d purism_ectool.gz
sudo purism_ectool info

The latest EC firmware version for the Librem 14 is currently 1.13_2023-03-22. You can update your EC firmware using these instructions from Purism:

I can also provide unofficial instructions that do not require a USB drive for the Librem_14_EC_Update.iso file if needed.

There will be a green LED lit up next to the battery icon where the hardware kill switches reside.

Thanks @irvinewade and @FranklyFlawless.

I upgraded pureboot and EC firmwares.

The url to download the purism_ectool should be https://source.puri.sm/firmware/releases/-/raw/master/tools/purism_ectool.gz (Note raw instead blob) and an additional chmod +x purism_ectool should be done after decompress it.

But no luck, battery still not detected :frowning:

1 Like

Okay, contact Purism support: