in

LinuxLinux

How to Check Battery Status in Ubuntu 18.04, 19.04 & 19.10?

Check Battery Status Ubuntu

C

heck Battery Status in Ubuntu: You can check the CMOS battery health status from the Terminal. In this article, we provided the information about checking the battery health status using “lm-sensors” applications and simple terminal command.

Jump To:

Find Battery Status using CAT command:

You can find the CMOS battery status by using the CAT command along with the GREP command. Follow the below command to find the battery status:

  • Open the terminal
  • Copy the below command
  • Paste and execute the command in the terminal
$cat /proc/driver/rtc | grep batt

The output of the above command is,

Battery Status Output
Battery Status Output
Output:
[email protected]:~$ cat /proc/driver/rtc | grep batt
batt_status	: okay
[email protected]:~$ 

From the above output:

  • If the batt_status : okay, means your CMOS battery is in Good Status
  • If the batt_status : not-okay, means your CMOS batter is in Bad Status (need replacement soon).

This is the fast and easiest way to find the status of the battery from the terminal.

Find Battery Status using lm-sensors app:

This is the second way to find the battery status, lm-sensors application will help you monitor the battery status and notify us if the battery status is bad. Follow the below instructions:

  • Open the terminal
  • To install lm-sensors, copy the below command, paste it in the terminal and execute it
$sudo apt install lm-sensors
lm-sensors installation
lm-sensors installation
  • Once the installation process completed, copy the below command to find the sensors that are available on your system (Mandatory):
$sudo sensors-detect
  • It will ask your permission to scan all the sensors,  enter “Yes” to all permissions and wait for few minutes to find all the available sensors in your system
  • Once the scanning process completed, copy the below command to check the status of your battery and other hardware available on your system.
$sensors
  • The list of status will be appear on the terminal, now you need to look for Vbat value to find the battery status.
Output:
[email protected]:~$ sensors
iwlwifi-virtual-0
Adapter: Virtual device
temp1:        +42.0°C  

pch_skylake-virtual-0
Adapter: Virtual device
temp1:        +54.0°C  

BAT0-acpi-0
Adapter: ACPI interface
in0:         +11.52 V  
Vbat:         +3.94 V 
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +56.0°C  (high = +100.0°C, crit = +100.0°C)
Core 0:        +55.0°C  (high = +100.0°C, crit = +100.0°C)
Core 1:        +56.0°C  (high = +100.0°C, crit = +100.0°C)
Core 2:        +56.0°C  (high = +100.0°C, crit = +100.0°C)
Core 3:        +55.0°C  (high = +100.0°C, crit = +100.0°C)

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +56.0°C  (crit = +103.0°C)

[email protected]:~$ 

If you are unable to find the Vbat values in the output of the sensors, then your battery is in critical condition and you need to replace the battery soon.

Check this too  Run Sudo Command Without Password in Ubuntu 18.04 LTS & 19.04

This is how you can find the CMOS Battery status of your device using the lm-sensors application in Ubuntu.

Verdict:

That’s it. If you have any queries related to this topic and then feel free to comment us below. The above method will help you find the CMOS battery status on your Ubuntu 18.04, 19.04 & 19.10 device.

Article Review
  • Article Explanation
  • Commands Provided
  • Methods Described
  • Images Explanation
4.9

Summary

For more articles, Kindly visit our HomePage

4 Comments

Leave a Reply
  1. coretemp-isa-0000
    Adapter: ISA adapter
    Core 0: +40.0°C (high = +80.0°C, crit = +100.0°C)
    Core 1: +40.0°C (high = +80.0°C, crit = +100.0°C)
    Core 2: +43.0°C (high = +80.0°C, crit = +100.0°C)
    Core 3: +40.0°C (high = +80.0°C, crit = +100.0°C)

    radeon-pci-0200
    Adapter: PCI adapter
    temp1: +46.5°C (crit = +120.0°C, hyst = +90.0°C)

    atk0110-acpi-0
    Adapter: ACPI interface
    Vcore Voltage: +0.94 V (min = +0.80 V, max = +1.60 V)
    +3.3 Voltage: +3.22 V (min = +2.97 V, max = +3.63 V)
    +5 Voltage: +5.07 V (min = +4.50 V, max = +5.50 V)
    +12 Voltage: +11.74 V (min = +10.20 V, max = +13.80 V)
    CPU FAN Speed: 0 RPM (min = 600 RPM, max = 7200 RPM)
    CHASSIS1 FAN Speed: 0 RPM (min = 600 RPM, max = 7200 RPM)
    CHASSIS2 FAN Speed: 0 RPM (min = 600 RPM, max = 7200 RPM)
    POWER FAN Speed: 0 RPM (min = 0 RPM, max = 7200 RPM)
    CPU Temperature: +40.5°C (high = +60.0°C, crit = +75.0°C)
    MB Temperature: +39.0°C (high = +45.0°C, crit = +75.0°C)

    не отражается Vbat. Что не так я сделал?

Leave a Reply

Your email address will not be published. Required fields are marked *

Written by Rachel

I'm Rachel, From Arizona. Am playing the "Content Management" Role in Tec Robust. I started working in TR from Jan 2019. Big Marvel Fan.

Contact me:
tecrobust [@] gmail.com
Sub: Message to Rachel

Fix DPKG Front Error Lock on Ubuntu

Fix- Could not get lock /var/lib/dpkg/lock-frontend on Linux 18.04 LTS/ 19.10

Check Directory Size in Ubuntu

How to Get Directory Size, Files Size in Ubuntu Linux?