LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   ASUS E200HA get the remaining battery (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/asus-e200ha-get-the-remaining-battery-4175626604/)

YuGiOhJCJ 03-29-2018 10:04 AM

ASUS E200HA get the remaining battery
 
Hello,

I have an ASUS Vivobook E200HA.
I installed Slackware64 14.2 on it with Linux 4.14.13.

The problem is that I am not able to find the remaining battery.
Here are some tries:
Code:

$ lsmod | grep bat
battery                24576  0
$ sudo dmesg | grep BAT
[    0.000000] ACPI: BCFG 0x000000007A1E92B8 000139 (v01 INTEL  BATTCONF 00000001 INTL 00000000)
[    0.214633] ACPI Exception: Could not find/resolve named package element: \_SB_.PCI0.I2C7.BATC (20170728/dspkginit-381)
[    0.215389] ACPI Exception: Could not find/resolve named package element: \_SB_.PCI0.I2C7.BATC (20170728/dspkginit-381)
$ ls /proc/acpi/battery/
$ ls /sys/class/power_supply/
ADP1@
$ upower -e

(upower:1651): libupower-glib-WARNING **: Couldn't enumerate devices: Message recipient disconnected from message bus without replying

(upower:1651): UPower-WARNING **: failed to enumerate: Message recipient disconnected from message bus without replying

Do you know how can I get the remaining battery please?

Thank you.
Best regards.

Mill J 03-29-2018 10:02 PM

Have you tryed something like this? https://www.ostechnix.com/how-to-che...inal-in-linux/

YuGiOhJCJ 03-30-2018 01:29 AM

Done with the 'upower' package (upower 0.9.23):
Code:

$ upower -i /org/freedesktop/UPower/devices/battery_BAT0
failed to set path: cannot refresh: Cannot get device properties for /org/freedesktop/UPower/devices/battery_BAT0: Couldn't call GetAll() to get properties for /org/freedesktop/UPower/devices/battery_BAT0: Message recipient disconnected from message bus without replying
$ upower -i `upower -e | grep 'BAT'`

(upower:1345): libupower-glib-WARNING **: Couldn't enumerate devices: Message recipient disconnected from message bus without replying

(upower:1345): UPower-WARNING **: failed to enumerate: Message recipient disconnected from message bus without replying
$ upower -i $(upower -e | grep BAT) | grep --color=never -E "state|to\ full|to\ empty|percentage"

(upower:1357): libupower-glib-WARNING **: Couldn't enumerate devices: Message recipient disconnected from message bus without replying

(upower:1357): UPower-WARNING **: failed to enumerate: Message recipient disconnected from message bus without replying

Done with the 'acpi' package (acpi 1.7):
Code:

$ acpi -V
Adapter 0: on-line
Thermal 0: ok, 0.0 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 90.0 degrees C
Cooling 0: Processor 0 of 10
Cooling 1: Processor 0 of 10
Cooling 2: intel_powerclamp no state information available
Cooling 3: STR0 no state information available
Cooling 4: PNIT no state information available
Cooling 5: soc_dts1 no state information available
Cooling 6: Processor 0 of 10
Cooling 7: Processor 0 of 10
Cooling 8: ath10k_thermal 0 of 100
Cooling 9: INT3400 Thermal no state information available
Cooling 10: soc_dts0 no state information available
$ acpi
$ acpi -t
Thermal 0: ok, 0.0 degrees C
$ acpi -t -f
Thermal 0: ok, 32.0 degrees F
$ acpi -a
Adapter 0: on-line

So, it does not work.
Any other suggestion?

Mill J 03-30-2018 07:58 AM

I seems like your battery is not communicating with your system. Has it always been like that? It is possible that your battery is failing.

I have a similar effect on my laptop. I dual boot, it still works under Linux, however on Windows it says no battery detected.

YuGiOhJCJ 03-31-2018 04:22 AM

Yes, it has always been like that.
However, I don't know the behavior on Windows because I am not in dual boot.


All times are GMT -5. The time now is 09:47 AM.