{"id":33,"date":"2023-07-06T14:55:05","date_gmt":"2023-07-06T12:55:05","guid":{"rendered":"https:\/\/linuxundich.de\/en\/?p=33"},"modified":"2026-10-03T16:58:16","modified_gmt":"2026-10-03T14:58:16","slug":"battery-health-charging-extend-your-battery-s-lifespan-on-gnome","status":"publish","type":"post","link":"https:\/\/linuxundich.de\/en\/gnu-linux\/battery-health-charging-extend-your-battery-s-lifespan-on-gnome\/","title":{"rendered":"Battery Health Charging: Extend Your Battery&#8217;s Lifespan on GNOME"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Back in the day, everything was better: Raider was still called Twix. In winter there was still enough snow for sledding and skiing, and with electronic devices you just put in new batteries to get light again or listen to music. Today, many devices have built-in batteries, and smartphones and laptops are glued shut all around. On the one hand, that makes small, sturdy and waterproof devices possible. On the other hand, it&#8217;s obviously a clear case of planned obsolescence: when the battery is done for, you either pay a lot to have the device repaired or just buy a new one. That&#8217;s why it&#8217;s important to go easy on the battery, for example by not charging a laptop battery to 100 percent all the time when it stays plugged in. With the GNOME extension <a href=\"https:\/\/github.com\/maniacx\/Battery-Health-Charging\">Battery Health Charging<\/a>, you can adjust the charging behavior to your current working situation with a single mouse click.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For the lifespan of a laptop battery, it&#8217;s not exactly ideal when the device sits on the desk plugged in most of the time and the power adapter keeps the battery at 100 percent. The best thing would be to disconnect the battery while on mains power and run the device from the adapter alone, so the battery would discharge only very slowly. Just as important would be not charging the battery to its full 100 percent capacity every time. For battery life, swinging between 20 and 80 percent would be ideal. The manufacturers know that too, but on Linux there&#8217;s often no service that takes care of optimal charging behavior. Only a few manufacturers, such as TUXEDO with its <a href=\"https:\/\/www.tuxedocomputers.com\/de\/Infos\/Hilfe-Support\/Haeufig-gestellte-Fragen\/Wie-kann-ich-die-Lebenszeit-meines-Akkus-verlaengern-_1.tuxedo\">FlexiCharger<\/a>, have us Linux users in mind.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Battery Health Charging for GNOME<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You install the extension with a mouse click via the <a href=\"https:\/\/extensions.gnome.org\/extension\/5724\/battery-health-charging\/\">GNOME Extensions portal<\/a>. Then open the extension&#8217;s settings (for example via the gear icon next to the title in the GNOME panel) and give the extension administrative rights via PolicyKit under <em>Install<\/em> [CHECK: exact label]. The matching kernel modules or libraries also need to be installed. You&#8217;ll find details on supported devices on the <a href=\"https:\/\/github.com\/maniacx\/Battery-Health-Charging\">project page<\/a>. On my two test devices, a <a href=\"https:\/\/www.tuxedocomputers.com\/de\/TUXEDO-InfinityBook-Pro-14-Gen8.tuxedo\">TUXEDO InfinityBook Pro 14<\/a> running TUXEDO OS and a <a href=\"https:\/\/wiki.archlinux.org\/title\/Dell_XPS_15\">2018 DELL XPS 15<\/a> running Arch Linux, everything is installed out of the box. The InfinityBook needs the <a href=\"https:\/\/github.com\/tuxedocomputers\/tuxedo-keyboard\">tuxedo-keyboard<\/a> kernel module, the Dell XPS the <a href=\"https:\/\/github.com\/dell\/libsmbios\">libsmbios<\/a> library.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6ac176ffb49c6&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6ac176ffb49c6\" class=\"wp-block-image wp-lightbox-container\"><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/linuxundich.de\/wp-content\/uploads\/2023\/07\/dell-smbios-battery-ctl.png\" alt=\"In the terminal, smbios-battery-ctl reads and sets the charging mode of the Dell laptop.\" style=\"width:100%\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">On my Dell XPS 15 (2018), the charging behavior can also be controlled from the terminal via libsmbios.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Don&#8217;t let the battery status display confuse you. If the computer stops charging at, say, 80 percent, the lightning bolt next to the battery icon in the panel disappears, even though the device is still plugged in and the battery isn&#8217;t being discharged, apart from the usually small self-discharge. You can change this behavior in the extension&#8217;s settings. It&#8217;s also not entirely clear whether the system detects the charge level correctly. With a limit of 90 percent, is a battery &#8220;full&#8221; at 90 or at 100 percent? The different tools also get in each other&#8217;s way a bit: if I set the charging mode on the Dell laptop via <code>smbios-battery-ctl<\/code>, the extension doesn&#8217;t notice, and something similar happens with the TUXEDO Control Center. But if you only use one of the tools, the extension works wonderfully.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6ac176ffb4e63&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6ac176ffb4e63\" class=\"wp-block-image wp-lightbox-container\"><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/linuxundich.de\/wp-content\/uploads\/2023\/07\/battery-health-charging1-1280x720.png\" alt=\"With the Battery Health Charging extension, you set limits for recharging the battery.\" style=\"width:100%\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">With the Battery Health Charging extension for the GNOME desktop, you set limits for recharging the battery.<\/figcaption><\/figure>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6ac176ffbb0f5&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6ac176ffbb0f5\" class=\"wp-block-image size-large is-resized wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/linuxundich.de\/wp-content\/uploads\/2023\/07\/battery-health-charging2-1280x800.png\" alt=\"The extension supports many manufacturers, from Asus and Dell to TUXEDO.\" class=\"wp-image-42329\" width=\"1062\" height=\"663\" style=\"width:100%\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">Battery Health Charging supports numerous manufacturers: from Asus and Dell to the Linux laptops from TUXEDO.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many laptops and smartphones today come with built-in batteries and glued-shut cases. That makes for compact, waterproof devices, but it also leads to planned obsolescence. To go easy on the battery, you can adjust the charging behavior with the GNOME Shell extension Battery Health Charging.<\/p>\n","protected":false},"author":2,"featured_media":32,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"lui_source_id":42325,"lui_source_hash":"babc9018ee8d1fdabe3013a9d1dd91822387c019e5683b2d745db0a7634a9080","lui_source_translated":"2026-10-03","lui_source_reviewed":true,"lui_via_url":"","lui_via_label":"","lui_source_url":"","lui_source_label":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-33","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gnu-linux"],"_links":{"self":[{"href":"https:\/\/linuxundich.de\/en\/wp-json\/wp\/v2\/posts\/33","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxundich.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxundich.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxundich.de\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxundich.de\/en\/wp-json\/wp\/v2\/comments?post=33"}],"version-history":[{"count":1,"href":"https:\/\/linuxundich.de\/en\/wp-json\/wp\/v2\/posts\/33\/revisions"}],"predecessor-version":[{"id":37,"href":"https:\/\/linuxundich.de\/en\/wp-json\/wp\/v2\/posts\/33\/revisions\/37"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxundich.de\/en\/wp-json\/wp\/v2\/media\/32"}],"wp:attachment":[{"href":"https:\/\/linuxundich.de\/en\/wp-json\/wp\/v2\/media?parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxundich.de\/en\/wp-json\/wp\/v2\/categories?post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxundich.de\/en\/wp-json\/wp\/v2\/tags?post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}