{"id":1661,"date":"2022-01-08T23:20:59","date_gmt":"2022-01-08T17:50:59","guid":{"rendered":"https:\/\/smarttech101.com\/?p=1661"},"modified":"2023-09-10T08:48:18","modified_gmt":"2023-09-10T03:18:18","slug":"how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix","status":"publish","type":"post","link":"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/","title":{"rendered":"How to Set Battery Charging Threshold (Limit the Charging) In Thinkpad and Other Laptops in Linux\/Unix"},"content":{"rendered":"\n<p>These instructions are primarily based on Thinkpad laptops. However, many users have notified that Asus and other manufacturers&#8217; laptops are starting to support the threshold using almost the same methods. I have mentioned these variations and suggestions as well.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"table-of-contents\">Table of Contents<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#why-setting-a-threshold-is-important\">Why Setting a Threshold Is Important?<\/a><\/li>\n\n\n\n<li><a href=\"#step-1-check-if-your-laptop-supports-setting-the-battery-charging-threshold\">Step 1: Check if Your Laptop Supports Setting the Battery Charging Threshold.<\/a><\/li>\n\n\n\n<li><a href=\"#step-2-set-the-battery-charging-threshold\">Step 2: Set the Battery Charging Threshold.<\/a><\/li>\n\n\n\n<li><a href=\"#step-3-make-the-changes-made-under-the-previous-step-permanent\">Step 3: Make the Changes Made Under the Previous Step Permanent.<\/a><\/li>\n\n\n\n<li><a href=\"#way-ahead\">Way Ahead<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"why-setting-a-threshold-is-important\">Why Setting a Threshold Is Important?<\/h2>\n\n\n\n<p>Frequent charging and discharging loops lead to degradation in the battery. Therefore, to promote the battery&#8217;s lifespan, you need to reduce this loop. And if your work environment involves sitting at a table all the time, your laptop should stay connected to the electric outlet all the time.<\/p>\n\n\n\n<p>But, that will put your laptop always at 100% charged level which is another cause of battery degradation. Hence, many manufacturers (like Lenovo, and Asus) ask you to set charging limit\/threshold.<\/p>\n\n\n\n<p>Unfortunately, these manufacturers provide their tools only for Windows and not for Linux. Hence, through this article, I would like to assist you in how to set the battery charging threshold on Linux. Just follow these steps and you are done.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-1-check-if-your-laptop-supports-setting-the-battery-charging-threshold\">Step 1: Check if Your Laptop Supports Setting the Battery Charging Threshold.<\/h2>\n\n\n\n<p>You can use any file manager such as Nautilus or Dolphin to find a special directory <strong>\/sys\/class\/power_supply\/BAT0\/<\/strong> or <strong>\/sys\/class\/power_supply\/BAT1\/<\/strong> or <strong>\/sys\/class\/power_supply\/BATT\/<\/strong> or <strong>\/sys\/class\/power_supply\/BATC\/<\/strong> or something like that.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"924\" height=\"597\" src=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/01\/nautilus_battery_directory.png?resize=924%2C597&#038;ssl=1\" alt=\" Using Nautilus to find your battery's directory\" class=\"wp-image-1663\" srcset=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/01\/nautilus_battery_directory.png?w=924&amp;ssl=1 924w, https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/01\/nautilus_battery_directory.png?resize=768%2C496&amp;ssl=1 768w\" sizes=\"(max-width: 924px) 100vw, 924px\" \/><figcaption class=\"wp-element-caption\">Figure: Using Nautilus to find your battery&#8217;s directory<\/figcaption><\/figure>\n\n\n\n<p>Or, you can use the following <strong>ls <\/strong>commands (or something like that):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>~$ ls --recursive \/sys\/class\/power_supply\/BAT*<\/code><\/pre>\n\n\n\n<p>A sample Output on my Thinkpad: <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1077\" height=\"678\" src=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/01\/ls_bat_directory.png?resize=1077%2C678&#038;ssl=1\" alt=\" using ls command to navigate through battery's directory\" class=\"wp-image-1664\" srcset=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/01\/ls_bat_directory.png?w=1077&amp;ssl=1 1077w, https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/01\/ls_bat_directory.png?resize=768%2C483&amp;ssl=1 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><figcaption class=\"wp-element-caption\">Figure: using ls command to navigate through battery&#8217;s directory<\/figcaption><\/figure>\n\n\n\n<p>Now, check if there are threshold-like words in the above output. If you can find any file like that, your laptop should support setting the threshold, and hence, you can move on to the next step.<\/p>\n\n\n\n<p><strong>\ud83d\udcd4Note<\/strong>: I could not find any such files on the gaming laptop Lenovo Legion 5 in Linux. However, as an ad-hoc arrangement, I was able to set the battery charging threshold using the Lenovo Vantage app preinstalled on the Windows partition. Just enable the conservation mode. These settings are applied in both the Windows and Linux partitions.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1619\" height=\"1161\" src=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/Conservation_mode_in_lenovo_legion_laptop_to_set_battery_charging_threshold.png?resize=1619%2C1161&#038;ssl=1\" alt=\"use Lenovo Legion's Vantage App to set the battery charging threshold\" class=\"wp-image-3165\" srcset=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/Conservation_mode_in_lenovo_legion_laptop_to_set_battery_charging_threshold.png?w=1619&amp;ssl=1 1619w, https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/Conservation_mode_in_lenovo_legion_laptop_to_set_battery_charging_threshold.png?resize=768%2C551&amp;ssl=1 768w, https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2023\/09\/Conservation_mode_in_lenovo_legion_laptop_to_set_battery_charging_threshold.png?resize=1536%2C1101&amp;ssl=1 1536w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><figcaption class=\"wp-element-caption\">Figure: use Lenovo Legion&#8217;s Vantage App to set the threshold<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-2-set-the-battery-charging-threshold\">Step 2: Set the Battery Charging Threshold.<\/h2>\n\n\n\n<p>Now, you need to write desired thresholds in the two files found above. For ThinkPad laptops, they are <strong>\/sys\/class\/power_supply\/BAT0\/charge_control_start_threshold<\/strong> and <strong>\/sys\/class\/power_supply\/BAT0\/charge_control_end_threshold<\/strong>. <\/p>\n\n\n\n<p><strong><a href=\"https:\/\/support.lenovo.com\/us\/en\/solutions\/ht078208-how-can-i-increase-battery-life-thinkpad-and-lenovo-vbke-series-notebooks\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Lenovo&#8217;s Recommendations for these two thresholds:<\/a><\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>If you put your laptop on charger all the time, set start and end thresholds to 40% and 50% respectively. <\/li>\n\n\n\n<li>If the laptop is occassionally on the battery&#8217;s power, set start and end limits  to 85% and 90% respectively. This is what I am using in one of my thinkpad laptops.<\/li>\n<\/ol>\n\n\n\n<p>For other manufacturers, if you cannot find any value on their websites or other places, try these values and see if they work. Please comment below if these values work for your manufacturers.<\/p>\n\n\n\n<p>To write these thresholds, first, get the root privileges using <strong>su:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>~$ sudo su<\/code><\/pre>\n\n\n\n<p>Now, you can use any text editor like <strong>nano<\/strong> or <strong>vim<\/strong>. Or use the following commands directly:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># echo START_THRESHOLD &gt; START_THRESHOLD_FILE; echo END_THRESHOLD &gt; END_THRESHOLD_FILE<\/code><\/pre>\n\n\n\n<p>Replace the SART_THRESHOLD, END_THRESHOLD, START_THRESHOLD_FILE, and END_THRESHOLD_FILE with the appropriate files. For <strong>example,<\/strong> for ThinkPad laptops:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># echo 85 &gt; \/sys\/class\/power_supply\/BAT0\/charge_control_start_threshold; echo 90 &gt; \/sys\/class\/power_supply\/BAT0\/charge_control_end_threshold<\/code><\/pre>\n\n\n\n<p>And you are done. But, these files&#8217; contents are reverted back to the default state on the next reboot and hence you need to make these changes permanent.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-3-make-the-changes-made-under-the-previous-step-permanent\">Step 3: Make the Changes Made Under the Previous Step Permanent.<\/h2>\n\n\n\n<p>To make the changes permanent, your computer needs to write these two limits at every system reboot.<\/p>\n\n\n\n<p>For this purpose, you will need to create a systemd-service. To create this service, create a file <strong>\/etc\/systemd\/system\/battery-charge-threshold.service<\/strong> using nano or your favorite text editor:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>~$ sudo nano \/etc\/systemd\/system\/battery-charge-threshold.service<\/code><\/pre>\n\n\n\n<p>And now, fill the file with the following contents:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Unit]\nDescription=Set the battery charge threshold\nAfter=multi-user.target\nStartLimitBurst=0\n\n&#91;Service]\nType=oneshot\nRestart=on-failure\nExecStart=\/bin\/bash -c 'YOUR_THRESHOLD_COMMAND'\n\n&#91;Install]\nWantedBy=multi-user.target<\/code><\/pre>\n\n\n\n<p>Here, you need to replace the <strong>YOUR_THRESHOLD_COMMAND<\/strong> in the <strong>ExecStart<\/strong> line with the echo command mentioned above. For <strong>example<\/strong>, for ThinkPad laptops, this whole line would become<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ExecStart=\/bin\/bash -c 'echo 85 &gt; \/sys\/class\/power_supply\/BAT0\/charge_control_start_threshold; echo 90 &gt; \/sys\/class\/power_supply\/BAT0\/charge_control_end_threshold'<\/code><\/pre>\n\n\n\n<p>Now, save the file and enable the above systemd service using the following <strong>systemctl<\/strong> command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>~$ sudo systemctl enable battery-charge-threshold.service<\/code><\/pre>\n\n\n\n<p><strong>Note:<\/strong><\/p>\n\n\n\n<p>You might be thinking why I am not using a <a href=\"https:\/\/smarttech101.com\/cron-the-job-scheduler-in-linux-unix\/\" target=\"_blank\" rel=\"noreferrer noopener\">cronjob<\/a> to write these thresholds into the relevant files at every reboot using <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@reboot echo 85 &gt; \/sys\/class\/power_supply\/BAT0\/charge_control_start_threshold; echo 90 &gt; \/sys\/class\/power_supply\/BAT0\/charge_control_end_threshold<\/code><\/pre>\n\n\n\n<p>Using the above cronjob would have been much easier. But the above cronjob does not work always. The reason is that the battery&#8217;s directory is created by the Linux kernel at every boot. And sometimes, the directory is created before the cronjob and sometimes after the cronjob. In the first case, cronjob works but in the second case, it does not. On the other hand, systemd can keep banging on until the directory is created. The <code>Restart=on-failure<\/code> line in the file <strong>\/etc\/systemd\/system\/battery-charge-threshold.service<\/strong>  makes sure this. It can easily be understood using the following picture:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"1280\" src=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/01\/systemd_setting_battery_threshold-1.png?resize=800%2C1280&#038;ssl=1\" alt=\"Systemd applying battery charging threshold; given times are just for understanding purpose.\" class=\"wp-image-1669\" srcset=\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/01\/systemd_setting_battery_threshold-1.png?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/01\/systemd_setting_battery_threshold-1.png?resize=768%2C1229&amp;ssl=1 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Figure: Systemd applying battery charging threshold; given times are just for understanding purpose.<\/figcaption><\/figure>\n\n\n\n<p>Now, to apply the above changes, restart your computer.<\/p>\n\n\n\n<p><strong>Note: <\/strong>You might see the <strong>error message<\/strong> <code>battery-charge-threshold.service: Failed with result 'exit-code'<\/code> at the boot time (and\/or at the shutdown). This is completely normal. <strong>The thresholds will still work<\/strong>. These failures occur 3-4 times just before the service passes. You can verify it by looking into the &#8216;threshold&#8217; files once your system boots.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;ajay@lenovo ~] $ journalctl --unit=battery-charge-threshold.service\n\n-- Boot 566b1db1387e4f16b871b2e3c90c1ad7 --\nJun 05 17:29:45 lenovo systemd&#91;1]: Starting Set the battery charge threshold...\nJun 05 17:29:45 lenovo bash&#91;1172]: \/bin\/bash: line 1: \/sys\/class\/power_supply\/BAT0\/charge_control_start_threshold: Permission denied\nJun 05 17:29:45 lenovo bash&#91;1172]: \/bin\/bash: line 1: \/sys\/class\/power_supply\/BAT0\/charge_control_end_threshold: Permission denied\nJun 05 17:29:45 lenovo systemd&#91;1]: battery-charge-threshold.service: Main process exited, code=exited, status=1\/FAILURE\n<strong>Jun 05 17:29:45 lenovo systemd&#91;1]: battery-charge-threshold.service: Failed with result 'exit-code'.\n<\/strong>Jun 05 17:29:45 lenovo systemd&#91;1]: Failed to start Set the battery charge threshold.\nJun 05 17:29:46 lenovo systemd&#91;1]: battery-charge-threshold.service: Scheduled restart job, restart counter is at 1.\nJun 05 17:29:46 lenovo systemd&#91;1]: Stopped Set the battery charge threshold.\nJun 05 17:29:46 lenovo systemd&#91;1]: Starting Set the battery charge threshold...\nJun 05 17:29:46 lenovo bash&#91;1277]: \/bin\/bash: line 1: \/sys\/class\/power_supply\/BAT0\/charge_control_start_threshold: Permission denied\nJun 05 17:29:46 lenovo bash&#91;1277]: \/bin\/bash: line 1: \/sys\/class\/power_supply\/BAT0\/charge_control_end_threshold: Permission denied\nJun 05 17:29:46 lenovo systemd&#91;1]: battery-charge-threshold.service: Main process exited, code=exited, status=1\/FAILURE\n<strong>Jun 05 17:29:46 lenovo systemd&#91;1]: battery-charge-threshold.service: Failed with result 'exit-code'.\n<\/strong>Jun 05 17:29:46 lenovo systemd&#91;1]: Failed to start Set the battery charge threshold.\nJun 05 17:29:46 lenovo systemd&#91;1]: battery-charge-threshold.service: Scheduled restart job, restart counter is at 2.\nJun 05 17:29:46 lenovo systemd&#91;1]: Stopped Set the battery charge threshold.\nJun 05 17:29:46 lenovo systemd&#91;1]: Starting Set the battery charge threshold...\nJun 05 17:29:46 lenovo bash&#91;1302]: \/bin\/bash: line 1: \/sys\/class\/power_supply\/BAT0\/charge_control_start_threshold: Permission denied\nJun 05 17:29:46 lenovo bash&#91;1302]: \/bin\/bash: line 1: \/sys\/class\/power_supply\/BAT0\/charge_control_end_threshold: Permission denied\nJun 05 17:29:46 lenovo systemd&#91;1]: battery-charge-threshold.service: Main process exited, code=exited, status=1\/FAILURE\n<strong>Jun 05 17:29:46 lenovo systemd&#91;1]: battery-charge-threshold.service: Failed with result 'exit-code'.\n<\/strong>Jun 05 17:29:46 lenovo systemd&#91;1]: Failed to start Set the battery charge threshold.\nJun 05 17:29:46 lenovo systemd&#91;1]: battery-charge-threshold.service: Scheduled restart job, restart counter is at 3.\nJun 05 17:29:46 lenovo systemd&#91;1]: Stopped Set the battery charge threshold.\nJun 05 17:29:46 lenovo systemd&#91;1]: Starting Set the battery charge threshold...\nJun 05 17:29:46 lenovo systemd&#91;1]: battery-charge-threshold.service: Deactivated successfully.\n<strong>Jun 05 17:29:46 lenovo systemd&#91;1]: Finished Set the battery charge threshold.\n<\/strong>lines 983-1019\/1019 (END)<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"way-ahead\">Way Ahead<\/h2>\n\n\n\n<p>That&#8217;s all about setting your battery charging thresholds. Thank you for staying till this point. If there is any recommendation or I have committed any mistakes, point them out in the comment section below.<\/p>\n\n\n\n<p>And please mention your variations, if any, for your non-ThinkPad laptops. It will help the Linux community.<\/p>\n\n\n\n<p><a href=\"https:\/\/smarttech101.com\/how-change-brightness-on-a-linux-laptop\/\">You can see this article if your brightness key is not working in your Linux system.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article will help you how to set the battery charging threshold in Linux along with its benefit and explanations.<\/p>\n","protected":false},"author":2,"featured_media":1666,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[48],"tags":[25,29],"class_list":["post-1661","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-desktop-tools","tag-arch-linux-installation","tag-systemd"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Set Battery Charging Threshold (Limit the Charging) In Thinkpad and Other Laptops in Linux\/Unix | SmartTech101<\/title>\n<meta name=\"description\" content=\"This article will help you how to set the battery charging threshold in Linux along with its benefit and explanations.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Set Battery Charging Threshold (Limit the Charging) In Thinkpad and Other Laptops in Linux\/Unix | SmartTech101\" \/>\n<meta property=\"og:description\" content=\"This article will help you how to set the battery charging threshold in Linux along with its benefit and explanations.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/\" \/>\n<meta property=\"og:site_name\" content=\"SmartTech101\" \/>\n<meta property=\"article:published_time\" content=\"2022-01-08T17:50:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-10T03:18:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/smarttech101.com\/wp-content\/uploads\/2022\/01\/thinkpad_charging_threshold_linux.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ajay\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ajay_yadav\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ajay\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/\"},\"author\":{\"name\":\"Ajay\",\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/2edfee738a82f9c963210f8cdb438334\"},\"headline\":\"How to Set Battery Charging Threshold (Limit the Charging) In Thinkpad and Other Laptops in Linux\/Unix\",\"datePublished\":\"2022-01-08T17:50:59+00:00\",\"dateModified\":\"2023-09-10T03:18:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/\"},\"wordCount\":996,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/e8d5aebc510d698e11e9df6291381633\"},\"image\":{\"@id\":\"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/01\/thinkpad_charging_threshold_linux.png?fit=1280%2C720&ssl=1\",\"keywords\":[\"Arch Linux Installation\",\"systemd\"],\"articleSection\":[\"Linux Desktop Tools\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/\",\"url\":\"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/\",\"name\":\"How to Set Battery Charging Threshold (Limit the Charging) In Thinkpad and Other Laptops in Linux\/Unix | SmartTech101\",\"isPartOf\":{\"@id\":\"https:\/\/smarttech101.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/01\/thinkpad_charging_threshold_linux.png?fit=1280%2C720&ssl=1\",\"datePublished\":\"2022-01-08T17:50:59+00:00\",\"dateModified\":\"2023-09-10T03:18:18+00:00\",\"description\":\"This article will help you how to set the battery charging threshold in Linux along with its benefit and explanations.\",\"breadcrumb\":{\"@id\":\"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/01\/thinkpad_charging_threshold_linux.png?fit=1280%2C720&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/01\/thinkpad_charging_threshold_linux.png?fit=1280%2C720&ssl=1\",\"width\":1280,\"height\":720,\"caption\":\"Thinkpad Charging Threshold in Linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/smarttech101.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Set Battery Charging Threshold (Limit the Charging) In Thinkpad and Other Laptops in Linux\/Unix\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/smarttech101.com\/#website\",\"url\":\"https:\/\/smarttech101.com\/\",\"name\":\"SmartTech101\",\"description\":\"Do Everything in Linux\",\"publisher\":{\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/e8d5aebc510d698e11e9df6291381633\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/smarttech101.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/e8d5aebc510d698e11e9df6291381633\",\"name\":\"Ajay Yadav\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/09\/cropped-ST101_logo.png?fit=180%2C60&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/09\/cropped-ST101_logo.png?fit=180%2C60&ssl=1\",\"width\":180,\"height\":60,\"caption\":\"Ajay Yadav\"},\"logo\":{\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/2edfee738a82f9c963210f8cdb438334\",\"name\":\"Ajay\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/smarttech101.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6eea348caae2173954765a7cdf6cd107?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6eea348caae2173954765a7cdf6cd107?s=96&d=mm&r=g\",\"caption\":\"Ajay\"},\"sameAs\":[\"https:\/\/x.com\/ajay_yadav\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Set Battery Charging Threshold (Limit the Charging) In Thinkpad and Other Laptops in Linux\/Unix | SmartTech101","description":"This article will help you how to set the battery charging threshold in Linux along with its benefit and explanations.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/","og_locale":"en_US","og_type":"article","og_title":"How to Set Battery Charging Threshold (Limit the Charging) In Thinkpad and Other Laptops in Linux\/Unix | SmartTech101","og_description":"This article will help you how to set the battery charging threshold in Linux along with its benefit and explanations.","og_url":"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/","og_site_name":"SmartTech101","article_published_time":"2022-01-08T17:50:59+00:00","article_modified_time":"2023-09-10T03:18:18+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/smarttech101.com\/wp-content\/uploads\/2022\/01\/thinkpad_charging_threshold_linux.png","type":"image\/png"}],"author":"Ajay","twitter_card":"summary_large_image","twitter_creator":"@ajay_yadav","twitter_misc":{"Written by":"Ajay","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/#article","isPartOf":{"@id":"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/"},"author":{"name":"Ajay","@id":"https:\/\/smarttech101.com\/#\/schema\/person\/2edfee738a82f9c963210f8cdb438334"},"headline":"How to Set Battery Charging Threshold (Limit the Charging) In Thinkpad and Other Laptops in Linux\/Unix","datePublished":"2022-01-08T17:50:59+00:00","dateModified":"2023-09-10T03:18:18+00:00","mainEntityOfPage":{"@id":"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/"},"wordCount":996,"commentCount":3,"publisher":{"@id":"https:\/\/smarttech101.com\/#\/schema\/person\/e8d5aebc510d698e11e9df6291381633"},"image":{"@id":"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/01\/thinkpad_charging_threshold_linux.png?fit=1280%2C720&ssl=1","keywords":["Arch Linux Installation","systemd"],"articleSection":["Linux Desktop Tools"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/","url":"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/","name":"How to Set Battery Charging Threshold (Limit the Charging) In Thinkpad and Other Laptops in Linux\/Unix | SmartTech101","isPartOf":{"@id":"https:\/\/smarttech101.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/#primaryimage"},"image":{"@id":"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/01\/thinkpad_charging_threshold_linux.png?fit=1280%2C720&ssl=1","datePublished":"2022-01-08T17:50:59+00:00","dateModified":"2023-09-10T03:18:18+00:00","description":"This article will help you how to set the battery charging threshold in Linux along with its benefit and explanations.","breadcrumb":{"@id":"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/#primaryimage","url":"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/01\/thinkpad_charging_threshold_linux.png?fit=1280%2C720&ssl=1","contentUrl":"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/01\/thinkpad_charging_threshold_linux.png?fit=1280%2C720&ssl=1","width":1280,"height":720,"caption":"Thinkpad Charging Threshold in Linux"},{"@type":"BreadcrumbList","@id":"https:\/\/smarttech101.com\/how-to-set-battery-charging-threshold-limit-the-charging-in-thinkpad-and-other-laptops-in-linux-unix\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/smarttech101.com\/"},{"@type":"ListItem","position":2,"name":"How to Set Battery Charging Threshold (Limit the Charging) In Thinkpad and Other Laptops in Linux\/Unix"}]},{"@type":"WebSite","@id":"https:\/\/smarttech101.com\/#website","url":"https:\/\/smarttech101.com\/","name":"SmartTech101","description":"Do Everything in Linux","publisher":{"@id":"https:\/\/smarttech101.com\/#\/schema\/person\/e8d5aebc510d698e11e9df6291381633"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/smarttech101.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/smarttech101.com\/#\/schema\/person\/e8d5aebc510d698e11e9df6291381633","name":"Ajay Yadav","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smarttech101.com\/#\/schema\/person\/image\/","url":"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/09\/cropped-ST101_logo.png?fit=180%2C60&ssl=1","contentUrl":"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/09\/cropped-ST101_logo.png?fit=180%2C60&ssl=1","width":180,"height":60,"caption":"Ajay Yadav"},"logo":{"@id":"https:\/\/smarttech101.com\/#\/schema\/person\/image\/"}},{"@type":"Person","@id":"https:\/\/smarttech101.com\/#\/schema\/person\/2edfee738a82f9c963210f8cdb438334","name":"Ajay","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smarttech101.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6eea348caae2173954765a7cdf6cd107?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6eea348caae2173954765a7cdf6cd107?s=96&d=mm&r=g","caption":"Ajay"},"sameAs":["https:\/\/x.com\/ajay_yadav"]}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/smarttech101.com\/wp-content\/uploads\/2022\/01\/thinkpad_charging_threshold_linux.png?fit=1280%2C720&ssl=1","_links":{"self":[{"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/posts\/1661"}],"collection":[{"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/comments?post=1661"}],"version-history":[{"count":4,"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/posts\/1661\/revisions"}],"predecessor-version":[{"id":3166,"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/posts\/1661\/revisions\/3166"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/media\/1666"}],"wp:attachment":[{"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/media?parent=1661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/categories?post=1661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smarttech101.com\/wp-json\/wp\/v2\/tags?post=1661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}