{"id":38272,"date":"2022-03-31T16:01:10","date_gmt":"2022-03-31T16:01:10","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=38272"},"modified":"2022-03-31T16:01:10","modified_gmt":"2022-03-31T16:01:10","slug":"battery-percentage-ubuntu-2204","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2022\/03\/battery-percentage-ubuntu-2204\/","title":{"rendered":"How to Display Battery Percentage in Ubuntu 22.04 System Tray"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/03\/battery-icon-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" class=\"alignleft size-thumbnail wp-image-38273\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/03\/battery-icon-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/03\/battery-icon-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/03\/battery-icon-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/03\/battery-icon-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/03\/battery-icon.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/p>\n<p>Running Ubuntu laptop without power supply? It&#8217;s wise to keep an eye on the battery percentage. And, here&#8217;s how to make Ubuntu 22.04 display the info in top-right corner just besides the battery icon.<\/p>\n<h3>Method 1: Single command toggle display battery percentage<\/h3>\n<p>For those OK with Linux commands, just press <b>Ctrl+Alt+T<\/b> on keyboard to open terminal. When it opens, paste the command below:<\/p>\n<pre>gsettings set org.gnome.desktop.interface show-battery-percentage true<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/03\/gsettings-battery-perc-600x156.webp\" alt=\"\" width=\"600\" height=\"156\" class=\"aligncenter size-large wp-image-38275\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/03\/gsettings-battery-perc-600x156.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/03\/gsettings-battery-perc-300x78.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/03\/gsettings-battery-perc-768x200.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/03\/gsettings-battery-perc.webp 822w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>You&#8217;ll see the change immediately after hitting Enter to run the command.<\/p>\n<p>And, to hide the percentage again, use command:<\/p>\n<pre>gsettings reset org.gnome.desktop.interface show-battery-percentage<\/pre>\n<h3>Method 2: Use Gnome Control Center -> Power settings<\/h3>\n<p>In Ubuntu 22.04, the GNOME Tweaks tool no longer provide the option to toggle display battery percentage. Because, GNOME has merged this option into system settings (aka gnome-control-center).<\/p>\n<p>1.) Firstly, open &#8216;Settings&#8217; either from the dash or top-right system tray menu.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/03\/open-settings-jammy.webp\" alt=\"\" width=\"448\" height=\"334\" class=\"aligncenter size-full wp-image-38279\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/03\/open-settings-jammy.webp 448w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/03\/open-settings-jammy-300x224.webp 300w\" sizes=\"auto, (max-width: 448px) 100vw, 448px\" \/><\/p>\n<p>2.) When it opens, navigate to <b>Power<\/b> panel in the left. And, finally use the on\/off switch in bottom right to toggle display battery percentage:<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/03\/power-showperc.webp\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/03\/power-showperc-600x437.webp\" alt=\"\" width=\"600\" height=\"437\" class=\"aligncenter size-large wp-image-38277\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/03\/power-showperc-600x437.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/03\/power-showperc-300x219.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/03\/power-showperc-768x560.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/03\/power-showperc.webp 1032w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>That&#8217;s it. Enjoy!<\/p>","protected":false},"excerpt":{"rendered":"<p>Running Ubuntu laptop without power supply? It&#8217;s wise to keep an eye on the battery percentage. And, here&#8217;s how to make Ubuntu 22.04 display the info in top-right corner just besides the battery icon. Method 1: Single command toggle display battery percentage For those OK with Linux commands, just press Ctrl+Alt+T on keyboard to open [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":38273,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1120],"class_list":["post-38272","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-battery"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/38272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=38272"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/38272\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/38273"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=38272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=38272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=38272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}