How to check the status of using laptop battery running Linux
Previously, battery management on laptops running Linux was quite complicated. For years, Linux has been "famous" for managing inefficient battery life. Partly because a large amount of work is done on Linux to serve servers. Partly because it can't guess the user configuration setting. Are you running Plasma on Gentoo and compiling software from scratch? So say goodbye to battery life.
No matter how you set up your laptop, the best way to use your computer without interruption due to battery drain is to monitor it. The more you understand the laptop battery, the more you control it.
There are some great options to track the battery usage of the laptop. This article will show you how to check laptop battery status on Linux.
The default laptop battery monitor
Each desktop environment comes with its own battery tracking applet. When installing Linux on a laptop, these applets are usually configured and displayed by default.
On a darker desktop environment, the applet is probably just an update measure to show the current battery level. On powerful desktop environments like GNOME, you will also receive notification updates when the battery is charging and when it is running low.
These default trackers are your first 'defensive' row. Stay tuned and make sure you're not in the danger zone.
Use Battery Monitor tool
When you want more control over battery status notifications, there is an additional program you can install to get more detailed control of battery usage notifications. Battery Monitor is not available on any distribution, but is easy to install and use.
Install Battery Monitor
First, install the dependence
sudo apt install build-essential python3 python3-gi libnotify-dev acpi
Then download the latest version.
Downloads wget cd https://github.com/maateen/battery-monitor/archive/master.zip
Extract it and cd into the result folder.
unzip master.zip cd battery-monitor-master
Finally, install the application.
sudo make install
Setting
You now have access to both Battery Monitor and its settings via the desktop environment.
The Settings window does not have many things and is not very complicated. It only allows you to specify the battery level to receive notifications. All of the numbers here are calculated as a percentage, you can set as many notifications as you want.
Notification
As you can see, Battery Monitor sends notifications whenever you unplug the socket, in addition to the warning you have set.
It will also send notifications whenever your computer is charging and when fully charged.
GNOME Power Statistics tool
If you are running a GNOME desktop, you already have another good utility to monitor your energy usage and display it as a chart. The utility is GNOME Power Statistics. If you do not use GNOME, you can easily install it.
sudo apt install gnome-power-manager
When you open GNOME Power Statistics, you will see a list of devices on the left side of the window, select your battery. Initially, you will see a range of battery information, some useful, but most of this information you don't need right now.
Click on the " History " tab, for information on how the computer handles batteries. First, set the required time length. If you have just installed the energy manager, you need to work for 10 minutes so that it has enough time to gather data.
Check out the different charts, you will see things like charging and discharging rates. In addition, you also receive information about battery life and the time required for a full charge.
PowerTop tool
It is good to know which program is using the most battery on your system. Some processes can kill your battery without your knowledge, maybe it's something you don't use.
Most Linux users are familiar with Top, the utility that tracks applications that use the most system resources. There is a utility like Top that monitors battery usage called PowerTop. PowerTop may already be installed on your system, but you can install it easily.
sudo apt install powertop
Then, just run PowerTop to see which process is the worst 'offender'
sudo powertop
Like Top, it lists processes according to the amount of energy used. You can see if there is anything you can close or kill on the system. If you don't want to see the PowerTop name, you can export the output to an HTML file and open it in the browser to see the report is compiled in more detail.
sudo powertop --html = report.html
Hopefully with these tools, you can better understand battery usage on your laptop. Note, no tools are perfect, so using these tools together is the best. If you find that your computer is draining battery quickly, consider using a lighter desktop environment or setting other settings for the GPU. Like most mobile devices, monitors and graphics are the places that consume the most battery power on laptops.
See more:
- No need to install any software, this is how to check your laptop battery level
- Simple tips to help you save your laptop battery efficiently
- 10 best battery saving apps today for Android
You should read it
- How to recover and improve performance for battery-powered laptop batteries
- How to check laptop battery bottle with BatteryMon
- How to discharge laptop battery properly and effectively
- Extend the life of Laptop batteries
- No need to install any software, this is how to check your laptop battery level
- How to monitor laptop battery life on Chrome
- 8 tips to extend laptop battery life
- Tips to save battery for Laptop, increase battery usage time
May be interested
- Instructions for using pstree command on Linuxpstree is a powerful and useful command to display processes running in linux. like the ps command, it shows all the processes that are currently active on your login system. the main difference is that when running the pstree command, processes are organized into tree sorting instead of lists like using the ps command.
- How to change Google DNS on Linuxin the previous article, tipsmake.com showed you how to change google dns on a mac. today, let's find out how to change dns on linux and its distributions.
- How to install ownCloud on Linuxcloud storage must not be unfamiliar, but have you ever thought you could create your own archives? this article will show you how to create private cloud storage using owncloud application on linux.
- How to create a Live CD Linux disca live cd is a bootable cd, dvd or usb drive with an operating system ready to run when the disc is inserted into the computer. this article will show you how to create a linux live cd.
- Fix Windows and Linux errors showing different time at dual bootwhen booting windows and linux, you may notice that it is not possible to synchronize the system clock between these two operating systems. this is because these two operating systems use different timing methods. this article will show you how to fix windows and linux errors showing different time at dual boot.
- How to install Steam in Ubuntusteam is the most popular online gaming platform for pc and linux. there are over 2000 steam games available for linux. although steam is available through the official ubuntu repositories, many new linux users still have trouble installing.