Check 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.
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
The output of the above command is,
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
- Once the installation process completed, copy the below command to find the sensors that are available on your system (Mandatory):
- 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.
- The list of status will be appear on the terminal, now you need to look for Vbat value to find the battery status.
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.
This is how you can find the CMOS Battery status of your device using the lm-sensors application in Ubuntu.
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.
For more articles, Kindly visit our HomePage