{"id":7216,"date":"2021-06-12T13:18:10","date_gmt":"2021-06-12T13:18:10","guid":{"rendered":"https:\/\/linuxways.net\/?p=7216"},"modified":"2021-06-12T13:18:10","modified_gmt":"2021-06-12T13:18:10","slug":"how-to-check-your-laptops-battery-status-on-linux-mint-20","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/mint\/how-to-check-your-laptops-battery-status-on-linux-mint-20\/","title":{"rendered":"How to Check Your Laptop\u2019s Battery Status on Linux Mint 20"},"content":{"rendered":"<p>Checking up on your laptop\u2019s battery usage is highly recommended to maintain long battery life and charging. While the battery icon in your taskbar might show the battery charging status, capacity, and predicted time of discharge, it will not give any information about battery usage and its lasting effect on battery&#8217;s life.<\/p>\n<p>In this article, we will use the following utilities to get detailed battery information on Linux Mint 20.<\/p>\n<h2>TLP<\/h2>\n<p>TLP is a command-line battery optimization tool. To install TLP use the following command.<\/p>\n<pre>sudo apt install tlp<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1082\" height=\"450\" class=\"wp-image-7217\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-427.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-427.png 1082w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-427-300x125.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-427-1024x426.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-427-768x319.png 768w\" sizes=\"auto, (max-width: 1082px) 100vw, 1082px\" \/><\/p>\n<p>You can check battery information by running the following command.<\/p>\n<pre>sudo tlp-stat -b<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1045\" height=\"500\" class=\"wp-image-7218\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-428.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-428.png 1045w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-428-300x144.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-428-1024x490.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-428-768x367.png 768w\" sizes=\"auto, (max-width: 1045px) 100vw, 1045px\" \/><\/p>\n<p>Remember to run TLP commands with root or sudo privileges.<\/p>\n<p>To view more information, Run the following command.<\/p>\n<pre>sudo tlp-stat -s<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1033\" height=\"500\" class=\"wp-image-7219\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-429.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-429.png 1033w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-429-300x145.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-429-1024x496.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-429-768x372.png 768w\" sizes=\"auto, (max-width: 1033px) 100vw, 1033px\" \/><\/p>\n<p>You can also explore other options of tlp-state command by running the \u201ctlp-stat -h&#8221; or \u201cman tlp-stat\u201d.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"957\" height=\"895\" class=\"wp-image-7220\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-430.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-430.png 957w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-430-300x281.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-430-768x718.png 768w\" sizes=\"auto, (max-width: 957px) 100vw, 957px\" \/><\/p>\n<h2>ACPI<\/h2>\n<p>ACPI is a command-line tool that fetches battery and thermal information from the file system such as \/proc and \/sys.<\/p>\n<p>Run the following command to install the ACPI tool.<\/p>\n<pre>sudo apt-get install acpi<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1142\" height=\"450\" class=\"wp-image-7221\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-431.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-431.png 1142w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-431-300x118.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-431-1024x404.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-431-768x303.png 768w\" sizes=\"auto, (max-width: 1142px) 100vw, 1142px\" \/><\/p>\n<p>You can get summary information about the battery by running the following command.<\/p>\n<pre>acpi -i<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"328\" class=\"wp-image-7222\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-432.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-432.png 2048w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-432-300x48.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-432-1024x164.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-432-768x123.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-432-1536x246.png 1536w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/p>\n<p>To get more detailed battery information, run.<\/p>\n<pre>acpi -V<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1622\" height=\"300\" class=\"wp-image-7223\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-433.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-433.png 1622w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-433-300x55.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-433-1024x189.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-433-768x142.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-433-1536x284.png 1536w\" sizes=\"auto, (max-width: 1622px) 100vw, 1622px\" \/><\/p>\n<p>To query other specific options of acpi command, run the \u201cacpi -h&#8221; or \u201cman acpi\u201d.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"810\" height=\"561\" class=\"wp-image-7224\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-434.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-434.png 810w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-434-300x208.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-434-768x532.png 768w\" sizes=\"auto, (max-width: 810px) 100vw, 810px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"886\" height=\"500\" class=\"wp-image-7225\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-435.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-435.png 886w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-435-300x169.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-435-768x433.png 768w\" sizes=\"auto, (max-width: 886px) 100vw, 886px\" \/><\/p>\n<h2>Sysfs File system<\/h2>\n<p>The files in the sysfs file system contain information about devices, filesystems, and other kernel modules.<\/p>\n<p>You can see the battery information in the sysfs file system by running the following command.<\/p>\n<pre>cat \/sys\/class\/power_supply\/BAT0\/*<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"839\" height=\"684\" class=\"wp-image-7226\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-436.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-436.png 839w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-436-300x245.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-436-768x626.png 768w\" sizes=\"auto, (max-width: 839px) 100vw, 839px\" \/><\/p>\n<h2>upower<\/h2>\n<p>upower is a command-line tool that contains information about power sources on the system.<\/p>\n<p>First, you have to select the path your power source is using. To see different power sources and their paths, run.<\/p>\n<pre>upower -e<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"872\" height=\"500\" class=\"wp-image-7227\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-437.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-437.png 872w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-437-300x172.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-437-768x440.png 768w\" sizes=\"auto, (max-width: 872px) 100vw, 872px\" \/><\/p>\n<p>For laptops, your battery source would have a path ending in pattern BAT0, BAT1, or BAT2. Next copy that path and run the following command to see battery information.<\/p>\n<pre>upower -i &lt;your power source path&gt;<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"844\" height=\"544\" class=\"wp-image-7228\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-438.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-438.png 844w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-438-300x193.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-438-768x495.png 768w\" sizes=\"auto, (max-width: 844px) 100vw, 844px\" \/><\/p>\n<p>Alternatively, you can make use of the BAT pattern and run the following command to get the same results.<\/p>\n<pre>upower -i `upower -e | grep 'BAT'`<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"851\" height=\"503\" class=\"wp-image-7229\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-439.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-439.png 851w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-439-300x177.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-439-768x454.png 768w\" sizes=\"auto, (max-width: 851px) 100vw, 851px\" \/><\/p>\n<p>Get all upower options by running \u201cupower -h&#8221; or \u201cman upower\u201d.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1114\" height=\"450\" class=\"wp-image-7230\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-440.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-440.png 1114w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-440-300x121.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-440-1024x414.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-440-768x310.png 768w\" sizes=\"auto, (max-width: 1114px) 100vw, 1114px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"851\" height=\"695\" class=\"wp-image-7231\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-441.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-441.png 851w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-441-300x245.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-441-768x627.png 768w\" sizes=\"auto, (max-width: 851px) 100vw, 851px\" \/><\/p>\n<h2>Power statistics<\/h2>\n<p>Power statistics is a graphical user interface tool that comes installed in Linux Mint and provides a detailed analysis of our battery usage.<\/p>\n<p>To run Power statistics, search for power statistics in your applications and click on the power statistics icon.<\/p>\n<p>Go to the Laptop Battery in the sidebar. The window will display the battery details.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"798\" height=\"521\" class=\"wp-image-7232\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-442.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-442.png 798w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-442-300x196.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-442-768x501.png 768w\" sizes=\"auto, (max-width: 798px) 100vw, 798px\" \/><\/p>\n<p>The history tab will show the battery analysis based on your battery history. You can see different analyses by changing the graph type.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"796\" height=\"515\" class=\"wp-image-7233\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-443.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-443.png 796w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-443-300x194.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-443-768x497.png 768w\" sizes=\"auto, (max-width: 796px) 100vw, 796px\" \/><\/p>\n<p>The statistics tab will show the charge and discharge profile and accuracy of the current battery.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"793\" height=\"518\" class=\"wp-image-7234\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-444.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-444.png 793w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-444-300x196.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/06\/word-image-444-768x502.png 768w\" sizes=\"auto, (max-width: 793px) 100vw, 793px\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>Pick your favorite method from the multiple methods shown in this article and check your battery health monthly to keep its charging cycle and usage optimized.<\/p>","protected":false},"excerpt":{"rendered":"<p>Checking up on your laptop\u2019s battery usage is highly recommended to maintain long battery life and charging. While the battery icon in your taskbar might show the battery&hellip;<\/p>","protected":false},"author":1,"featured_media":7244,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[61,129],"class_list":["post-7216","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mint","tag-laptop-battery","tag-linux-mint-20"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/7216","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=7216"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/7216\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/7244"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=7216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=7216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=7216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}