Leap 15 not recognizing battery

Hi,

I just freshly installed openSUSE Leap KDE on a lenovo X390 with windows 11 previously installed.

My problem is that my battery is not recognized at all.
If I unplug the laptop from power, it shuts off immediately.
upower -d does not list any batteries.

Any suggestions?
Thanks

It sounds more like hardware problem.

  • is battery recognized by dmesg | grep bat ?
  • did you check in bios if there is a battery setting?
  • did you check after you reset the bios [ depends on laptop how to reset it]

Since I replaced my laptop battery by a third party product I have a similar problem:

When not connected to the power supply my laptop (Clevo) will shutdown immediately on linux startup although the battery is completely charged (100%).

MS Windows does start and can be used as normal but will show no battery.

I had to uninstall upower to get my laptop running on battery.

You could try if that does solve your problem as well.

dmesg output:
[ 1.938459] ACPI: battery: Slot [BAT0] (battery absent)
[ 11.286108] ACPI: battery: new extension: ThinkPad Battery Extension

There are some options regarding battery, like power schemes and stuff, but I cannot see battery status.
Could not update my bios, the setup says that no battery is installed.

This did not work for me

When you start/reboot (without connected power supply) will you reach the GRUB menu and if so can you stay in the GRUB menu or will the machine not start at all or shut down while in the GRUB menu?

Did you check whether your battery is connected to the motherboard correctly ( e.g. no loose plug)?

Could not update my bios, the setup says that no battery is installed.

I asked to reset your bios, not to update. Resetting is by removing the cmos battery and putting it back. Some laptops have a particular button which you can access with a paper clip.

1 Like

Hi, thank you so far. After a bios reset, the battery seems to be detected and I can now run the laptop unplugged.
On problem still remains though, in KDE task bar it still says “No Batteries available”. I cannot get a battery status in the task bar.

This is the new output of dmesg:
[ 12.139506] ACPI: battery: Slot [BAT0] (battery present)
[ 27.452416] thinkpad_acpi: battery 1 registered (start 0, stop 100, behaviours: 0x7)
[ 27.452425] ACPI: battery: new extension: ThinkPad Battery Extension

I reinstalled upower, which also now has an entry:
Device: /org/freedesktop/UPower/devices/battery_BAT0
native-path: BAT0
power supply: yes
updated: Wed 24 Jul 2024 06:42:48 PM CEST (43 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: charging
warning-level: none
energy: 0 Wh
energy-empty: 0 Wh
energy-full: 0 Wh
energy-full-design: 0 Wh
energy-rate: 0 W
charge-cycles: N/A
percentage: 0%
capacity: 100%
icon-name: ‘battery-caution-charging-symbolic’

acpi -b gives: Battery 0: Charging, 0%, rate information unavailable

After a restart, the battery bar now shows up, but incorrectly states that it is at 0%.

Got it finally working. I had to update my firmware a couple of times as well. fwupdmgr was not working out of the box since there is a safety mechanism that prevents firmware updates when battery charge is below 25% (which is wan’t in reality). This is what I did:

Disabled upower for fwupdmgr:
cd /etc/fwupd/
sudo nano fwupd.conf
added “;upower” to the end of the line “DisabledPlugins=…”
Ctrl + W to save the config, Crtl + X to exit

Restart fwupdmgr service:
systemctl restart fwupd

Force firmware update:
sudo fwupdmgr --force --no-safety-check update -v

Restart & Repeat the firmware update step until there are no new updates.

Now everything is working as expected. Thanks for the help

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.