To see your battery infos you can use acpi if you have it or directly see system files.
Upower command#
In both case you can use upower command to get some usefull infos:
upower -i /org/freedesktop/UPower/devices/battery_BAT0Example output:
native-path: BAT0
vendor: ASUSTeK
model: N56--52
power supply: yes
updated: ven. 01 avril 2016 08:58:27 CEST (99 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: fully-charged
warning-level: none
energy: 41,162 Wh
energy-empty: 0 Wh
energy-full: 43,054 Wh
energy-full-design: 57,2 Wh
energy-rate: 0 W
voltage: 12,377 V
percentage: 95%
capacity: 75,2692%
technology: lithium-ion
icon-name: 'battery-full-charged-symbolic'With acpi#
Many distributions don't use it so if you want to install it you can do:
sudo zypper in acpiOR
sudo yum install acpi && sudo yum install acpitoolOR
sudo apt-get install acpi && sudo apt-get install acpitoolTo check is you have it installed:
acpi -VYou can see battery health:
cat /proc/acpi/battery/BAT0/infoand the battery status:
cat /proc/acpi/battery/BAT0/stateOR
acpiYou can also display ac adpter information:
acpi -aYou can show thermal information:
acpi -tOR
cat /proc/acpi/thermal_zone/THM/temperatureWithout acpi#
Without acpi you will need to browse /sys/class/power_supply/BAT0 directory and display files that are inside.