{"id":68832,"date":"2025-07-31T18:39:21","date_gmt":"2025-07-31T17:39:21","guid":{"rendered":"https:\/\/ekiwi-blog.de\/68832\/linux-check-battery-status\/"},"modified":"2025-08-02T15:40:41","modified_gmt":"2025-08-02T14:40:41","slug":"linux-check-battery-status","status":"publish","type":"post","link":"https:\/\/ekiwi-blog.de\/en\/68832\/linux-check-battery-status\/","title":{"rendered":"Linux: Check battery status"},"content":{"rendered":"<p>What about my laptop battery? A simple command for Linux users.<\/p>\n<p><!--more--><\/p>\n<p>I bought my laptop second-hand when I was travelling, and the battery is always a problem. It&#8217;s usually a few years old and therefore has less power than a new one. I always notice this when I&#8217;m travelling, so I always have a suitable <a href=\"https:\/\/ekiwi-blog.de\/5327\/ravpower-usb-c-powerbank-um-notebooks-zu-laden\/\">powerbank<\/a> with me.<\/p>\n<p>That&#8217;s annoying, of course, so I wanted to find out exactly how my battery is doing. My laptop is running Linux. How do I check the current status of the power bank?<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of content<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ekiwi-blog.de\/en\/68832\/linux-check-battery-status\/#Video\" >Video<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ekiwi-blog.de\/en\/68832\/linux-check-battery-status\/#Linux_Read_out_battery_values\" >Linux: Read out battery values<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ekiwi-blog.de\/en\/68832\/linux-check-battery-status\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Video\"><\/span>Video<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/ITbuzpJgE9A?si=8sRFYWe1KrI2KVMu\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Linux_Read_out_battery_values\"><\/span>Linux: Read out battery values<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The Linux command <code>upower -e<\/code> lists the devices that are monitored by &#8220;upower&#8221;. UPower is a Linux system service that manages the Linux power supply devices.<\/p>\n<p>The output looks something like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2025\/07\/upower_1.webp\" alt=\"\" width=\"595\" height=\"136\" class=\"aligncenter size-full wp-image-68828\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2025\/07\/upower_1.webp 595w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2025\/07\/upower_1-300x69.webp 300w\" sizes=\"auto, (max-width: 595px) 100vw, 595px\" \/><\/p>\n<p>Here we will also find our battery. We can then use the following command:<\/p>\n<pre>\r\nupower -i \/org\/freedesktop\/UPower\/devices\/battery_BAT0\r\n<\/pre>\n<p>display the status information of our battery. Adjust the device if necessary.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2025\/07\/upower_2.webp\" alt=\"\" width=\"714\" height=\"542\" class=\"aligncenter size-full wp-image-68830\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2025\/07\/upower_2.webp 714w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2025\/07\/upower_2-300x228.webp 300w\" sizes=\"auto, (max-width: 714px) 100vw, 714px\" \/><\/p>\n<p>The command provides a wealth of information about the power supply. Of particular interest is the <code>energy-full<\/code> parameter, which displays the current maximum capacity of the battery. The <code>energy-full-design<\/code> parameter, on the other hand, indicates the capacity that the battery had when it was new. The value <code>capacity<\/code> shows in per cent how much of the original design capacity is still available.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Around two thirds of the original battery capacity is still available. That&#8217;s not catastrophic, but it&#8217;s not ideal either. If the battery only lasts four hours instead of six when travelling, this is clearly noticeable, especially as the capacity will continue to decrease.<\/p>\n<p>So the decision has been made: the battery will soon be replaced. Fortunately, the replacement of my model is uncomplicated.<\/p>","protected":false},"excerpt":{"rendered":"<p>What about my laptop battery? A simple command for Linux users.<\/p>\n","protected":false},"author":1,"featured_media":18426,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1555],"tags":[2443],"class_list":["post-68832","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-en","tag-linux-en-2"],"_links":{"self":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/68832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/comments?post=68832"}],"version-history":[{"count":0,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/68832\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media\/18426"}],"wp:attachment":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media?parent=68832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/categories?post=68832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/tags?post=68832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}