If you are running Ubuntu Linux on a laptop, there are a few different ways that you can monitor the battery life of your system. Ubuntu makes this easy to do in the default GNOME desktop environment, but it is also possible to check the battery life from command line. In this tutorial, you will learn several methods to check the battery life on Ubuntu.
In this tutorial you will learn:
- How to check battery life from GNOME desktop
- How to enable battery percentag display
- How to use the Power Statistics application
- How to check Ubuntu battery life from command line
|Category||Requirements, Conventions or Software Version Used|
|Other||Privileged access to your Linux system as root or via the
# – requires given linux commands to be executed with root privileges either directly as a root user or by use of
$ – requires given linux commands to be executed as a regular non-privileged user
How to check battery life on Ubuntu
- The easiest way to check your system’s battery life is by looking at the icon in the top right corner of your screen. You will also see how much longer remains before the battery is fully charged if it is currently charging. This is assuming that you are using the GNOME desktop environment (the default for Ubuntu), but should be very similar on any other GUI in Linux.
- You can also change the performance mode of your laptop if you want to conserve battery life or use system resources more liberally at the cost of more battery consumption.
- For even more battery settings or to see a larger display of battery life, open the Settings menu and check out the Power tab. Along with other information and settings, there is an option at the bottom of the menu to toggle battery life percentage on or off. Enabling this setting will give you a more precise idea about how much battery life your system has.
- With battery percentage information enabled, we can see exactly how much battery life our system has in the upper right corner of the screen. In this case, we have 97%.
- Open the Activities menu and search for the “Power Statistics” application to see even more information about your system’s battery life and pertinent settings.
The Power Statistics applications will show detailed information about your system’s battery. You can also click on the History or Statistics tab to see other information.
- It is also possible to check the battery life on Ubuntu from command line. Open up a terminal and execute the following command:
$ upower -i $(upower -e | grep 'BAT')
Note that you may want to
grepfor certain information, as this output is quite verbose and thorough.
In this tutorial, we saw how to check the battery life on an Ubuntu Linux system. This included the visible icon from GNOME desktop, the Power tab of the Settings menu, the Power Statistics application, and with the
upower command in terminal. All of these methods are available by default in Ubuntu, and gives users plenty of options to check their laptop’s battery life.