{"id":1167,"date":"2020-11-02T12:28:13","date_gmt":"2020-11-02T12:28:13","guid":{"rendered":"https:\/\/linuxways.net\/?p=1167"},"modified":"2020-11-13T21:19:30","modified_gmt":"2020-11-13T21:19:30","slug":"5-ways-to-check-the-status-of-a-laptop-battery-on-ubuntu-20-04-lts","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/5-ways-to-check-the-status-of-a-laptop-battery-on-ubuntu-20-04-lts\/","title":{"rendered":"5 ways to check the status of laptop battery on Ubuntu 20.04 LTS"},"content":{"rendered":"<p>You must check up on your laptop\u2019s battery often, after all, your battery is what makes your laptop portable. When new, batteries run longer, but over time, it may not be the case. If not looked after properly, your battery may drain faster due to poor usage. This article covers how you can use Ubuntu 20.04 to create detailed battery usage reports.<\/p>\n<h2>Viewing the battery report using the Ubuntu UI<\/h2>\n<p>You can view your battery report through the UI using <strong>Power Statistics<\/strong>. This a very helpful tool that lets you see how much power you use, along with the different trends<\/p>\n<p>The <strong>Power Statistics<\/strong> tool comes installed with most Linux distributions, if you don\u2019t have it, you can install it using <strong>Ubuntu Software<\/strong>, or using the gnome-power-manager package using the command:<\/p>\n<pre>sudo apt-get install gnome-power-manager<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"626\" height=\"34\" class=\"wp-image-1168\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-48.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-48.png 626w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-48-300x16.png 300w\" sizes=\"auto, (max-width: 626px) 100vw, 626px\" \/><\/p>\n<p>You can look for the <strong>Power Statistics<\/strong> tool using the <strong>Applications Menu<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"214\" class=\"wp-image-1169\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-49.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-49.png 729w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-49-300x88.png 300w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/p>\n<p>Search for<strong> Power Statistics<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"390\" height=\"273\" class=\"wp-image-1170\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-50.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-50.png 390w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-50-300x210.png 300w\" sizes=\"auto, (max-width: 390px) 100vw, 390px\" \/><\/p>\n<p>Click the <strong>Power Statistics<\/strong> icon. This will take you to the tool.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"728\" height=\"292\" class=\"wp-image-1171\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-51.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-51.png 728w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-51-300x120.png 300w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/p>\n<p>Click on <strong>Laptop Battery<\/strong> to view details.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"546\" class=\"wp-image-1172\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-52.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-52.png 730w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-52-300x224.png 300w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><\/p>\n<p>To view battery history, switch to the <strong>History<\/strong> tab. You can view different graphs here by selecting the graph type and data length.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"723\" height=\"528\" class=\"wp-image-1173\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-53.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-53.png 723w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-53-300x219.png 300w\" sizes=\"auto, (max-width: 723px) 100vw, 723px\" \/><\/p>\n<p>The <strong>Statistics<\/strong> tab shows graphs for charge profile, charge accuracy, discharge profile, and discharge accuracy.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"534\" class=\"wp-image-1174\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-54.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-54.png 729w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-54-300x220.png 300w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/p>\n<h2>Viewing the battery report using the Ubuntu Command Line<\/h2>\n<h3>Using upower<\/h3>\n<p>Run:<\/p>\n<pre>$ upower -i `upower -e | grep 'BAT'`<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"571\" height=\"32\" class=\"wp-image-1175\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-55.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-55.png 571w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-55-300x17.png 300w\" sizes=\"auto, (max-width: 571px) 100vw, 571px\" \/><\/p>\n<p>As you can see in the image below, this command shows all the battery details including the model, vendor, serial number, voltage, state, etc.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"719\" height=\"413\" class=\"wp-image-1176\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-56.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-56.png 719w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-56-300x172.png 300w\" sizes=\"auto, (max-width: 719px) 100vw, 719px\" \/><\/p>\n<p>Another command that shows similar results is:<\/p>\n<pre>upower -i \/org\/freedesktop\/UPower\/devices\/battery_BAT0<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"48\" class=\"wp-image-1177\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-57.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-57.png 736w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-57-300x20.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"719\" height=\"413\" class=\"wp-image-1178\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-58.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-58.png 719w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-58-300x172.png 300w\" sizes=\"auto, (max-width: 719px) 100vw, 719px\" \/><\/p>\n<p>To learn more about upower, use<\/p>\n<pre>man upower<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"364\" height=\"31\" class=\"wp-image-1179\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-59.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-59.png 364w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-59-300x26.png 300w\" sizes=\"auto, (max-width: 364px) 100vw, 364px\" \/><\/p>\n<p>This will take you to the upower manual where you can view all the different options and their descriptions.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"724\" height=\"533\" class=\"wp-image-1180\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-60.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-60.png 724w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-60-300x221.png 300w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\" \/><\/p>\n<h3>Using acpi<\/h3>\n<p>Another command that you can use is the acpi command. You may need to install it first. The command for installing acpi is:<\/p>\n<pre>sudo apt-get install acpi<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"344\" class=\"wp-image-1181\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-61.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-61.png 720w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-61-300x143.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/p>\n<p>To view battery details, run<\/p>\n<pre>acpi \u2013V<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"391\" height=\"24\" class=\"wp-image-1182\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-62.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-62.png 391w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-62-300x18.png 300w\" sizes=\"auto, (max-width: 391px) 100vw, 391px\" \/><\/p>\n<p>You can view the following as a result:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"114\" class=\"wp-image-1183\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-63.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-63.png 729w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-63-300x47.png 300w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/p>\n<p>To view the details on a battery charge, use:<\/p>\n<pre>acpi<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"726\" height=\"62\" class=\"wp-image-1184\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-64.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-64.png 726w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-64-300x26.png 300w\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" \/><\/p>\n<p>To check the cooling information of your battery, use:<\/p>\n<pre>acpi \u2013c<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"579\" height=\"70\" class=\"wp-image-1185\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-65.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-65.png 579w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-65-300x36.png 300w\" sizes=\"auto, (max-width: 579px) 100vw, 579px\" \/><\/p>\n<p>You can check if AC power is connected using:<\/p>\n<pre>acpi \u2013a<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"338\" height=\"55\" class=\"wp-image-1186\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-66.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-66.png 338w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-66-300x49.png 300w\" sizes=\"auto, (max-width: 338px) 100vw, 338px\" \/><\/p>\n<p>To learn more about acpi, use:<\/p>\n<pre>man acpi<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"375\" height=\"26\" class=\"wp-image-1187\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-67.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-67.png 375w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-67-300x21.png 300w\" sizes=\"auto, (max-width: 375px) 100vw, 375px\" \/><\/p>\n<p>This will take you to the acpi manual where you can view all the different options and their descriptions.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"533\" class=\"wp-image-1188\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-68.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-68.png 721w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-68-300x222.png 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/p>\n<h3>Using TLP<\/h3>\n<p>Another tool is TLP. It is free and open-source. To download TLP, use:<\/p>\n<pre>sudo apt install tlp<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"727\" height=\"367\" class=\"wp-image-1189\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-69.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-69.png 727w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-69-300x151.png 300w\" sizes=\"auto, (max-width: 727px) 100vw, 727px\" \/><\/p>\n<p>To view battery related information, use:<\/p>\n<pre>sudo tlp-stat \u2013b<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"460\" height=\"28\" class=\"wp-image-1190\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-70.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-70.png 460w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-70-300x18.png 300w\" sizes=\"auto, (max-width: 460px) 100vw, 460px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"734\" height=\"516\" class=\"wp-image-1191\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-71.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-71.png 734w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-71-300x211.png 300w\" sizes=\"auto, (max-width: 734px) 100vw, 734px\" \/><\/p>\n<p>To view more information, use:<\/p>\n<pre>sudo tlp-stat \u2013s<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"448\" height=\"27\" class=\"wp-image-1192\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-72.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-72.png 448w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-72-300x18.png 300w\" sizes=\"auto, (max-width: 448px) 100vw, 448px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"726\" height=\"366\" class=\"wp-image-1193\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-73.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-73.png 726w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-73-300x151.png 300w\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" \/><\/p>\n<h3>Sysfs File system<\/h3>\n<p>The sysfs file system provides information on kernel modules, devices, and other kernel components.<\/p>\n<p>To view battery information, run:<\/p>\n<pre>cat \/sys\/class\/power_supply\/BAT0\/*<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"625\" height=\"24\" class=\"wp-image-1194\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-74.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-74.png 625w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-74-300x12.png 300w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"620\" height=\"534\" class=\"wp-image-1195\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-75.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-75.png 620w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/11\/word-image-75-300x258.png 300w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/p>\n<p>In this article, we covered the ways in which you can view detailed information on your battery using both the command line and UI.<\/p>","protected":false},"excerpt":{"rendered":"<p>You must check up on your laptop\u2019s battery often, after all, your battery is what makes your laptop portable. When new, batteries run longer, but over time, it&hellip;<\/p>","protected":false},"author":5,"featured_media":1579,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[61],"class_list":["post-1167","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-laptop-battery"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/1167","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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=1167"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/1167\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/1579"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=1167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=1167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=1167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}