• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
Are you having HotKey issues? Click here for tips and tricks.
Common problems for Battery
We would like to share some of the most frequently asked questions about: Battery Reports, Hold a charge, Test and Calibrating Battery . Check out this link: Is your notebook plugged in and not charging?
HP Recommended
HP x2 Detachable
Linux

Hello !

 

I've installed Debian Stretch on my HP x2 Detachable with the kernel 4.19.

My battery isn't recognised, so I don't have a battery level in the systray. Only the command `lshw` is able to identify the battery :

-battery
--- produit: SW02032XL
--- fabriquant: 333-42-1E-A
--- identifiant matériel: 1
--- emplacement: Primary
--- capacité: 32570mWh
--- configuration: voltage=7,7V

I've tried a lot of things without succes. It's seems like the kernel isn't able to recognise the battery.

Do you have any tips about this problem?

 

Sylvain

12 REPLIES 12
HP Recommended

sudo apt install batmon

 

crude but better than nothing.

HP Recommended

Thanks for the tip, but the battery is still not recognized.

I think of a bios problem: may be it doesn't "show" the battery...

Sylvain

HP Recommended

I realize that I didn't give you the pieces of information needed. Sorry.

My netbook is a "HP x2 detachable 10-p029NF". I'm under Debian Stretch, kernel 4.19 (backports), and I use KDE.

There's a option in the bios that allows the OS to see the battery status or not. But it seemes it doesn't work because the behavior of the OS is the same if set on or off.


Thirst clue, the icone in the system tray tells "no batterie available".
--------------------------------


Second clue, the command "ls /sys/class/power_supply" doesn't show "BAT0", but only "ADP1".
--------------------------------


Third clue, here's the result of the command upower -e:
--------------------------------
/org/freedesktop/UPower/devices/line_power_ADP1
/org/freedesktop/UPower/devices/DisplayDevice

 

Fourth clue, "acpi -V" gives me:
--------------------------------
Adapter 0: off-line
Thermal 0: ok, 53.0 degrees C
Thermal 0: trip point 0 switches to mode hot at temperature 89.0 degrees C
Thermal 0: trip point 1 switches to mode passive at temperature 87.0 degrees C
Cooling 0: Processor 0 of 10
Cooling 1: PNIT no state information available
Cooling 2: soc_dts1 no state information available
Cooling 3: Processor 0 of 10
Cooling 4: STR0 no state information available
Cooling 5: Processor 0 of 10
Cooling 6: STR2 no state information available
Cooling 7: intel_powerclamp no state information available
Cooling 8: soc_dts0 no state information available
Cooling 9: Processor 0 of 10
Cooling 10: INT3400 Thermal no state information available

 

Fith clue, the "lshw" command finds the battery whatever the option in the bios is set or not:
--------------------------------
-battery
--- produit: SW02032XL
--- fabriquant: 333-42-1E-A
--- identifiant matériel: 1
--- emplacement: Primary
--- capacité: 32570mWh
--- configuration: voltage=7,7V


I don't understand why only "lshw" can find the battery...
I think that there's a probleme between the BIOS and acpi.

Sylvain

HP Recommended

Hi

So try....

https://lubuntu.net/downloads/  which is relatively quick and easy from a USB. 

Same stable (Debian and Ubuntu) may give different results.

 

Also OpenSuSE did / does give battery info directly, so perhaps consider their build service.

 

Unless you are satisfied it is a BIOS/ACPI problem.

HP Recommended

It seems that the problem is by ACPI side.

The 'lshw' soft identifies correctly the battery. This soft gathers its pieces of information directly from the BIOS.

Is there a way to get ACPI to gather BIOS configurations? DSDT ?

 

Thanks,

Sylvain

HP Recommended

Hi

I don't know.

 

Install TLP for better power management

You do have some options to manage the power from the system settings. However, if you utilize Linux on a laptop, you may want to reduce the battery usage.

To help you with this situation, you can install TLP – which is an amazing tool that monitors your computer and implements the best techniques (automatically) to optimize the battery life of the Linux-powered system.

You should also consider installing this if you want to prevent overheating in Linux laptops.

To install TLP, type in the following commands in a terminal:

sudo zypper install tlp tlp-rdw
sudo systemctl enable tlp

 

Install Battery Monitor on Ubuntu and Debian

Let’s install from PPA:

$ sudo add-apt-repository ppa:maateen/battery-monitor -y
$ sudo apt-get update
$ sudo apt-get install battery-monitor -y

That’s all. Battery Monitor is installed on your Ubuntu or Debian system.

 

https://www.2daygeek.com/check-laptop-battery-status-and-charging-state-in-linux-terminal/

HP Recommended

Try the following command:

$ upower -i `upower -e | grep 'BAT'`

To install acpi:

$ sudo apt-get install acpi

Once acpi is installed, run the following command:

$ acpi -V 


I am a volunteer forum member. If my suggestion helped you solve your issue, help others by marking that post as the accepted solution. Say thanks by clicking on the Yes button next to the "was this reply helpful?"



HP Recommended

ACPI is already installed.

Hers is the result of acpi -V :

Adapter 0: off-line
Thermal 0: ok, 53.0 degrees C
Thermal 0: trip point 0 switches to mode hot at temperature 89.0 degrees C
Thermal 0: trip point 1 switches to mode passive at temperature 87.0 degrees C
Cooling 0: Processor 0 of 10
Cooling 1: PNIT no state information available
Cooling 2: soc_dts1 no state information available
Cooling 3: Processor 0 of 10
Cooling 4: STR0 no state information available
Cooling 5: Processor 0 of 10
Cooling 6: STR2 no state information available
Cooling 7: intel_powerclamp no state information available
Cooling 8: soc_dts0 no state information available
Cooling 9: Processor 0 of 10
Cooling 10: INT3400 Thermal no state information available

 

HP Recommended

Have you tried changing the settings in the  /etc/laptop-mode/laptop-mode.conf   file to enable more of the features you want since Debian is installed in a notebook with a battery?

 

See the Man pages at the link below this line.

https://manpages.debian.org/stretch/laptop-mode-tools/laptop-mode.conf.8.en.html



I am a volunteer forum member. If my suggestion helped you solve your issue, help others by marking that post as the accepted solution. Say thanks by clicking on the Yes button next to the "was this reply helpful?"



† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.