{"id":45477,"date":"2024-02-06T11:51:14","date_gmt":"2024-02-06T11:51:14","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=45477"},"modified":"2025-12-02T10:38:46","modified_gmt":"2025-12-02T10:38:46","slug":"limit-battery-charge-ubuntu","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2024\/02\/limit-battery-charge-ubuntu\/","title":{"rendered":"How to Set Battery Charge Limit in Ubuntu 22.04 &#038; 24.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/03\/battery-icon.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-38273\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/03\/battery-icon-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" 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\" \/><\/a><\/p>\n<p>This is a step by step beginner&#8217;s guide shows how to configure your Ubuntu laptop to limit the maximum battery charge level.<\/p>\n<p>For those who keep laptop plugged in for long term, it&#8217;s better to set battery charge limit to reduce the battery wear by constantly trickle charging.<\/p>\n<p>Linux Kernel supports battery charge threshold, and there&#8217;s a <a href=\"https:\/\/gitlab.gnome.org\/GNOME\/gnome-control-center\/-\/merge_requests\/2176\" target=\"_blank\" rel=\"noopener\">merge request<\/a> to provide graphical UI options in Gnome Control Center. Until GNOME officially support this feature, you can follow this tutorial to do the job step by step.<\/p>\n<p><!--more--><\/p>\n<p><b>NOTE: NOT all laptops are supported!! And, some laptops, e.g. DELL, Chromebooks, need the most recent Linux Kernel.<\/b><\/p>\n<h3>Method 1: Manually configure the Battery Charge Threshold<\/h3>\n<h4>Step 1: Check if your laptop supports charge threshold<\/h4>\n<p>Most modern laptops support charge limiting, but old machines may NOT. In my case, the cheap HP laptop does not support it, but ThinkPad does.<\/p>\n<p>First, press <code>Ctrl+Alt+T<\/code> on keyboard to open up a terminal window. Then run command:<\/p>\n<pre>ls \/sys\/class\/power_supply\/<\/pre>\n<p>It will list the device names including your battery, usually <b>BAT0<\/b>, <b>BAT1<\/b>, <b>BATC<\/b>, <b>BATT<\/b>, etc.<\/p>\n<p>In my case, its <code>BAT0<\/code>. <b>To tell if it supports battery charge limit<\/b>, run:<\/p>\n<pre>ls \/sys\/class\/power_supply\/BAT0<\/pre>\n<p><i>Replace <code>BAT0<\/code> in last command accordingly<\/i>. And, it will output following 2 files telling that its support the feature!<\/p>\n<ul>\n<li><code>charge_control_start_threshold<\/code><\/li>\n<li><code>charge_control_end_threshold<\/code><\/li>\n<\/ul>\n<p>While, <code>charge_start_threshold<\/code> and <code>charge_stop_threshold<\/code> are legacy API (usually for ThinkPad) that automatically synced to the previous 2.<br \/>\n<a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/get-battery-name.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-45478\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/get-battery-name-700x475.webp\" alt=\"\" width=\"610\" height=\"414\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/get-battery-name-700x475.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/get-battery-name-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/get-battery-name-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/get-battery-name.webp 786w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<h4>Step 2: Set Battery Charge Start &amp; Maximum Limit Level<\/h4>\n<p>To set the charge limit, simply set the value number (from <code>0<\/code> to <code>100<\/code>) for the 2 key files listed above.<\/p>\n<p>For example, <b>set the battery start charging level<\/b> to 80. So, when power supply is plugged in, it only starts charging when battery is lower than 80%.<\/p>\n<pre>sudo sh -c \"echo 80 &gt; \/sys\/class\/power_supply\/BAT0\/charge_control_start_threshold\"<\/pre>\n<p><i>Here you need to replace <code>BAT0<\/code> according to last step, and change value 80 as you want.<\/i><\/p>\n<p><b>To set maximum battery charging limit<\/b>, run command:<\/p>\n<pre>sudo sh -c \"echo 88 &gt; \/sys\/class\/power_supply\/BAT0\/charge_control_end_threshold\"<\/pre>\n<p><i>Here I set to stop battery charging when reaching level 88%. Also, change the number and <code>BAT0<\/code> accordingly.<\/i><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/set-batterycharge.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-45479\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/set-batterycharge-700x475.webp\" alt=\"\" width=\"610\" height=\"414\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/set-batterycharge-700x475.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/set-batterycharge-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/set-batterycharge-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/set-batterycharge.webp 786w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p><b>UPDATE:<\/b> If the last 2 commands do NOT work, try also setting <code>charge_start_threshold<\/code> and <code>charge_stop_threshold<\/code> via commands (replace BAT0 accordingly):<\/p>\n<pre>sudo sh -c \"echo 80 &gt; \/sys\/class\/power_supply\/BAT0\/charge_start_threshold\"<\/pre>\n<pre>sudo sh -c \"echo 88 &gt; \/sys\/class\/power_supply\/BAT0\/charge_stop_threshold\"<\/pre>\n<p>The changes apply immediately after running the commands above. You can verify by checking the battery icon status in system tray, or run command below to tell if it&#8217;s charging:<\/p>\n<pre>cat \/sys\/class\/power_supply\/BAT0\/status<\/pre>\n<h4>Step 3: Create Battery Charge Threshold Service (Optional)<\/h4>\n<p>The previous steps works in my ThinkPad even after reboot. If NOT for you, then create a systemd service to make it permanent.<\/p>\n<p>To create a service to automatically set maximum battery charge limit on startup, do:<\/p>\n<p>1. First, press <code>Ctrl+Alt+T<\/code> on keyboard to open terminal. When it opens, run command:<\/p>\n<pre>sudo nano \/etc\/systemd\/system\/battery-charge-end-threshold.service<\/pre>\n<p>This command creates a service file and edit via the <code>nano<\/code> command line text editor. You can replace <code>nano<\/code> with <code>gedit<\/code> for Ubuntu 22.04, or <code>gnome-text-editor<\/code> for Ubuntu 24.04. Though, <code>nano<\/code> works in most desktop environments.<\/p>\n<p>When the file opens, paste following lines:<\/p>\n<pre>[Unit]\r\nDescription=Set Battery Charge Maximum Limit\r\nAfter=multi-user.target\r\nStartLimitBurst=0\r\n\r\n[Service]\r\nType=oneshot\r\nRestart=on-failure\r\nExecStart=\/bin\/bash -c 'echo <b>90<\/b> &gt; \/sys\/class\/power_supply\/<b>BAT0<\/b>\/charge_control_end_threshold'\r\n\r\n[Install]\r\nWantedBy=multi-user.target<\/pre>\n<p>Here replace <code>BAT0<\/code> according to step 1, and change number <code>90<\/code> as you want. Finally, press <b>ctrs+s<\/b> to save file, and <b>ctrl+x<\/b> to exit.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/charge-threshold-service.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-45480\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/charge-threshold-service-700x443.webp\" alt=\"\" width=\"610\" height=\"386\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/charge-threshold-service-700x443.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/charge-threshold-service-300x190.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/charge-threshold-service-768x486.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/charge-threshold-service.webp 1028w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>2. After created the service file, run the following commands one by one to enable &amp; start it.<\/p>\n<pre>systemctl enable battery-charge-end-threshold.service<\/pre>\n<pre>systemctl daemon-reload<\/pre>\n<pre>systemctl start battery-charge-end-threshold.service<\/pre>\n<p>If you also want to create a service to set battery start charging level, re-do the last steps, but replace the service name, as well as level number and <code>charge_control_end_threshold<\/code> with <code>charge_control_start_threshold<\/code> in file content.<\/p>\n<h3>Method 2: Set Battery Charge Limit via TLP<\/h3>\n<p>The popular TLP power saving tool also has the feature to set charge threshold for laptop users. Though, you still need the battery support. Meaning the <code>charge_control_start_threshold<\/code> and <code>charge_control_end_threshold<\/code> files must exist under \/sys\/class\/power_supply\/BAT*.<\/p>\n<p><b>NOTE: TLP conflicts to GNOME power profiles daemon. The Power Mode settings in Gnome Control Center will disappear after installed TLP.<\/b><\/p>\n<p>1. First, press <code>Ctrl+Alt+T<\/code> on keyboard to open terminal. Then, run command to install TLP from system repository:<\/p>\n<pre>sudo apt install tlp<\/pre>\n<p>For more devices support, it&#8217;s recommended to install the latest TLP from <a href=\"https:\/\/launchpad.net\/~linrunner\/+archive\/ubuntu\/tlp\" target=\"_blank\" rel=\"noopener\">its PPA<\/a>:<\/p>\n<pre>sudo add-apt-repository ppa:linrunner\/tlp<\/pre>\n<pre>sudo apt update<\/pre>\n<pre>sudo apt install tlp<\/pre>\n<p>2. After installed the tool, either restart computer to run it automatically, or manually start it via command:<\/p>\n<pre>sudo tlp start<\/pre>\n<p>Next, use command below to find out the battery name (usually BAT0, BAT1).<\/p>\n<pre>sudo tlp-stat -b<\/pre>\n<p>Finally, run similar command below to set charge start and end threshold:<\/p>\n<pre>sudo tlp setcharge 60 80 BAT0<\/pre>\n<p>This command works until reboot. You need to replace start charging level (60), end charging level (80), and battery name (BAT0) accordingly.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/tlp-setcharge.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-48141\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/tlp-setcharge-700x436.webp\" alt=\"\" width=\"610\" height=\"380\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/tlp-setcharge-700x436.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/tlp-setcharge-300x187.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/tlp-setcharge-768x479.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/tlp-setcharge.webp 945w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>3. <b>To make it permanent<\/b>, edit the config file by running command:<\/p>\n<pre>sudo nano \/etc\/tlp.conf<\/pre>\n<p>Also, you may replace <code>nano<\/code> text editor according to your desktop environment. When file opens, find out the following 2 lines (use Ctrl+W in nano), un-comment (remove <b>#<\/b> at the beginning), and change the number as you want.<\/p>\n<pre>START_CHARGE_THRESH_BAT0=80\r\nSTOP_CHARGE_THRESH_BAT0=90<\/pre>\n<p>Finally, press <b>Ctrl+S<\/b> to save file and <b>Ctrl+X<\/b> to exit editing.<br \/>\n<a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/tlp-charge-thresh.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-45481\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/tlp-charge-thresh-700x475.webp\" alt=\"\" width=\"610\" height=\"414\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/tlp-charge-thresh-700x475.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/tlp-charge-thresh-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/tlp-charge-thresh-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/tlp-charge-thresh.webp 786w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>3. To verify if the setting applied, run <code>sudo tlp-stat -b<\/code> to check.<br \/>\n<a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/tlp-stat.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-45482\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/tlp-stat-700x533.webp\" alt=\"\" width=\"610\" height=\"464\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/tlp-stat-700x533.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/tlp-stat-300x228.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/tlp-stat-768x584.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/tlp-stat.webp 795w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><br \/>\nFinally, make sure TLP service is running by running commands:<\/p>\n<pre>systemctl enable tlp.service<\/pre>\n<pre>systemctl start tlp.service<\/pre>\n<p>And use <code>systemctl status tlp.service<\/code> to verify the service status. For more about the TLP power saving tool, see <a href=\"https:\/\/linrunner.de\/tlp\/introduction.html\" target=\"_blank\" rel=\"noopener\">its website<\/a>.<\/p>\n<h3>Method 3: Use Battery Health Charging Extension<\/h3>\n<p>For <b>GNOME<\/b> from version <b>42<\/b> to <b>49<\/b>, meaning Ubuntu 22.04, Ubuntu 24.04, 25.04 and 25.10, Fedora Workstation and other Linux with recent GNOME Desktop, there&#8217;s also an extension to do the job.<\/p>\n<p>It adds toggle button in top-right system status menu (Quick Settings), allowing to switch charging mode depends on use case.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/battery-charge-indicator.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47836\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/battery-charge-indicator-498x700.webp\" alt=\"\" width=\"498\" height=\"700\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/battery-charge-indicator-498x700.webp 498w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/battery-charge-indicator-213x300.webp 213w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/battery-charge-indicator.webp 523w\" sizes=\"auto, (max-width: 498px) 100vw, 498px\" \/><\/a><\/p>\n<p><b>The extension has a <a href=\"https:\/\/maniacx.github.io\/Battery-Health-Charging\/device-compatibility\" target=\"_blank\" rel=\"noopener\">Device Compatibility<\/a> tells if your device is support.<\/b><\/p>\n<p>To install the extension, either install <b>Extension Manager<\/b> from App Center (Ubuntu Software), then use it to search &amp; install the extension:<\/p>\n<div id=\"attachment_47837\" style=\"width: 620px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/batteryhealth-charging-em.webp\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-47837\" class=\"size-large wp-image-47837\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/batteryhealth-charging-em-700x467.webp\" alt=\"\" width=\"610\" height=\"407\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/batteryhealth-charging-em-700x467.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/batteryhealth-charging-em-300x200.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/batteryhealth-charging-em-768x512.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/batteryhealth-charging-em.webp 895w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><p id=\"caption-attachment-47837\" class=\"wp-caption-text\">install Battery Health Charging extension<\/p><\/div>\n<p>or go to the extension page in EGO via the link below:<\/p>\n<div class=\"wp-block-buttons aligncenter\">\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-vivid-cyan-blue-to-vivid-purple-gradient-background has-text-color has-background\" href=\"https:\/\/extensions.gnome.org\/extension\/5724\/battery-health-charging\/\" target=\"_blank\" rel=\"noreferrer noopener\">Battery Health Charging Extension<\/a><\/div>\n<\/div>\n<p>Then, use the ON\/OFF switch to install. Though, you need to first install browser extension if it asks and refresh the page. While, Debian\/Ubuntu also needs to install the agent package by running command:<\/p>\n<pre>sudo apt install chrome-gnome-shell<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/battery-charge-health-browser.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47838\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/battery-charge-health-browser-700x451.webp\" alt=\"\" width=\"610\" height=\"393\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/battery-charge-health-browser-700x451.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/battery-charge-health-browser-300x193.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/battery-charge-health-browser-768x494.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/battery-charge-health-browser.webp 1154w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>After installed the extension, launch either <b>Gnome Extensions<\/b> or <b>Extension Manager<\/b> app and click configure the extension. There you may need to grant user permission, then log out and back in to make it work.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/configure-batteryhealthcharge.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47839\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/configure-batteryhealthcharge-700x455.webp\" alt=\"\" width=\"610\" height=\"397\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/configure-batteryhealthcharge-700x455.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/configure-batteryhealthcharge-300x195.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/configure-batteryhealthcharge-768x499.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/02\/configure-batteryhealthcharge.webp 1321w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<h3>Undo<\/h3>\n<p>To uninstall TLP, open terminal (Ctrl+Alt+T) and run command:<\/p>\n<pre>sudo apt remove tlp tlp-*<\/pre>\n<p>To remove the manually created startup service, run commands below one by one to stop, disable and remove the service file.<\/p>\n<pre>systemctl stop battery-charge-end-threshold.service<\/pre>\n<pre>systemctl disable battery-charge-end-threshold.service<\/pre>\n<pre>sudo rm \/etc\/systemd\/system\/battery-charge-end-threshold.service<\/pre>\n<p>Finally, you may reset the start and end charging threshold via commands (also replace <code>BAT0<\/code> accordingly):<\/p>\n<pre>sudo sh -c \"echo 0 &gt; \/sys\/class\/power_supply\/BAT0\/charge_control_start_threshold\"<\/pre>\n<pre>sudo sh -c \"echo 100 &gt; \/sys\/class\/power_supply\/BAT0\/charge_control_end_threshold\"<\/pre>","protected":false},"excerpt":{"rendered":"<p>This is a step by step beginner&#8217;s guide shows how to configure your Ubuntu laptop to limit the maximum battery charge level. For those who keep laptop plugged in for long term, it&#8217;s better to set battery charge limit to reduce the battery wear by constantly trickle charging. Linux Kernel supports battery charge threshold, and [&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-45477","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\/45477","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=45477"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/45477\/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=45477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=45477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=45477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}