<?xml version="1.0" encoding="windows-1252"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>VideoHelp Forum - Computer</title>
		<link>https://forum.videohelp.com/</link>
		<description>Talk about anything related to PC hardware or software here. </description>
		<language>en</language>
		<lastBuildDate>Sun, 12 Jul 2026 15:24:02 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>https://forum.videohelp.com/images/misc/rss.png</url>
			<title>VideoHelp Forum - Computer</title>
			<link>https://forum.videohelp.com/</link>
		</image>
		<item>
			<title>How to healthy your Laptop Battery</title>
			<link>https://forum.videohelp.com/threads/420704-How-to-healthy-your-Laptop-Battery?goto=newpost</link>
			<pubDate>Mon, 15 Jun 2026 05:19:39 GMT</pubDate>
			<description><![CDATA[Mark Pearson (Lenovo) : "For battery charging thresholds I recently dug into that a bit and got the following guidance from the battery team: 
– If you often discharge your battery to near eempty (< 20%) then start charging at 95% and stop at 100% 
– If you frequently use the battery but don't...]]></description>
			<content:encoded><![CDATA[<div>Mark Pearson (Lenovo) : &quot;For battery charging thresholds I recently dug into that a bit and got the following guidance from the battery team:<br />
– If you often discharge your battery to near eempty (&lt; 20%) then start charging at 95% and stop at 100%<br />
– If you frequently use the battery but don't fully discharge. Usage between 50% and 100% then start charging at 75% and stop at 80%<br />
– If you always use an AC adapter and rarely use battery start charging at 45% and stop at 50%&quot; (refer to <a class="contentlink" href="https://pointieststick.com/2020/06/08/lenovo-thinkpad-x1-yoga-impressions-bugs-workarounds-and-thoughts-about-the-future/" target="_blank" rel="nofollow">https://pointieststick.com/2020/06/08/lenovo-thinkpad-x1-yoga-impressions-bugs-workaro...ut-the-future/</a>)<br />
<br />
I use the third case, but a presupposition will be by Mark Pearson, that 2 thresholds will be used to start charging at 45% and stop at 50%.<br />
My system a Vivibook only does support one threshold :<br />
# Charging stops when the battery level reaches or exceeds this threshold.<br />
STOP_CHARGE_THRESH_BAT0=50<br />
<br />
and not :<br />
<br />
# Charging starts once the battery level is below this threshold.<br />
START_CHARGE_THRESH_BAT0=45<br />
<br />
Also it must be known, if the battery is not in use (AC adapter always plugged), the battery itself will be discharged by &quot;Self-discharging&quot;<br />
(refer to <a class="contentlink" href="https://www.el-cell.com/what-is-the-self-discharge-rate-of-a-lithium-ion-battery/" target="_blank" rel="nofollow">https://www.el-cell.com/what-is-the-self-discharge-rate-of-a-lithium-ion-battery/</a>).<br />
<br />
Furthermore I did install tlp Vers. 1.9 to get /etc/tlp.conf where all values can be set by predefined Constants (e.g.: STOP_CHARGE_THRESH_BAT0).<br />
<br />
sudo add-apt-repository ppa:linrunner/tlp<br />
sudo apt update<br />
sudo apt install tlp tlp-pd tlp-rdw<br />
<br />
I wrote a script to simulate the upper and lower threshold /home/richard/.local/bin/Toggle_45_50MaxLoad.sh :<br />
<br />
#!/bin/bash<br />
<br />
declare -i SetLowThresHold=1<br />
<br />
# Konfiguration<br />
#LogFile=&quot;/home/richard/battery_log.txt&quot;<br />
BatteryDir=&quot;/sys/class/power_supply/BAT0&quot;<br />
<br />
# get values<br />
Capacity=$(cat ${BatteryDir}/capacity)<br />
#Status=$(cat ${BatteryDir}/status)<br />
#Time=$(date &quot;+%Y-%m-%d %H:%M:%S&quot;)<br />
<br />
echo $Capacity<br />
#echo $Status<br />
#echo $Time<br />
<br />
if [ &quot;$Capacity&quot; -le 45 ]<br />
then<br />
    SetLowThresHold=0<br />
fi<br />
<br />
while true; do<br />
<br />
    if [ &quot;$SetLowThresHold&quot; -eq 1 ]<br />
    then<br />
        #set lower threshold<br />
        sudo sed -ie 's/^#*STOP_CHARGE_THRESH_BAT0=.*/STOP_CHARGE_THRESH_BAT0=44/' /etc/tlp.conf<br />
        #new value will be read<br />
        sudo tlp start<br />
        while [ &quot;$SetLowThresHold&quot; -eq 1 ]; do<br />
            #write to log<br />
            Capacity=$(cat ${BatteryDir}/capacity)<br />
            #Status=$(cat ${BatteryDir}/status)<br />
            #Time=$(date &quot;+%Y-%m-%d %H:%M:%S&quot;)<br />
            #echo &quot;${Time} - Battery Level: ${Capacity}% - Status: ${Status}&quot; &gt;&gt; ${LogFile}<br />
            #echo $Capacity<br />
            if [ &quot;$Capacity&quot; -le 45 ]<br />
            then<br />
                SetLowThresHold=0<br />
            fi<br />
            sleep 20<br />
        done<br />
        #echo $SetLowThresHold<br />
    else<br />
        #set higher threshold<br />
        sudo sed -ie 's/^#*STOP_CHARGE_THRESH_BAT0=.*/STOP_CHARGE_THRESH_BAT0=51/' /etc/tlp.conf<br />
        #new value will be read<br />
        sudo tlp start<br />
        while [ &quot;$SetLowThresHold&quot; -eq 0 ]; do<br />
            #write to log<br />
            Capacity=$(cat ${BatteryDir}/capacity)<br />
            #Status=$(cat ${BatteryDir}/status)<br />
            #Time=$(date &quot;+%Y-%m-%d %H:%M:%S&quot;)<br />
            #echo &quot;${Time} - Battery Level: ${Capacity}% - Status: ${Status}&quot; &gt;&gt; ${LogFile}<br />
            #echo $Capacity<br />
            if [ &quot;$Capacity&quot; -ge 50 ]<br />
            then<br />
                SetLowThresHold=1<br />
            fi<br />
            sleep 20<br />
        done<br />
        #echo $SetLowThresHold<br />
    fi<br />
done<br />
<br />
It must be installed as service with root rights Accu_Threshold_45_50.service in /etc/systemd/system :<br />
<br />
[Unit]<br />
Description=Toggle 45% to 50% For Accu<br />
After=network.target<br />
<br />
[Service]<br />
ExecStart=/bin/bash /home/richard/.local/bin/Toggle_45_50MaxLoad.sh<br />
Restart=always<br />
User=root<br />
<br />
[Install]<br />
WantedBy=multi-user.target<br />
<br />
<br />
After all the service must be started, checked and can be stopped if 100% capacity will be whished :<br />
<br />
systemctl enable Accu_Threshold_45_50<br />
systemctl is-enabled Accu_Threshold_45_50<br />
systemctl disable Accu_Threshold_45_50<br />
systemctl is-enabled Accu_Threshold_45_50<br />
<br />
The script itself does only every 20sec a question, therefore no CPU load.<br />
<br />
Since two years only I did use one threshold, max battery charge level 80%, I got the information by tlp Batterie analysis :<br />
sudo tlp-stat -b<br />
<br />
/sys/class/power_supply/BAT0/status                         = Not charging<br />
<br />
/sys/class/power_supply/BAT0/charge_control_end_threshold   =     44 [%]<br />
<br />
Charge                                                      =   49.7 [%]<br />
Capacity                                                    =   76.3 [%]<br />
<br />
It is for linux systems, but if you have in mind, a Linux system does use only 40GB, 70GB would be enough to work with it. I am a Dual boot user, you will get also a complete Office system like 365.</div>

 ]]></content:encoded>
			<category domain="https://forum.videohelp.com/forums/37-Computer">Computer</category>
			<dc:creator>Gloster</dc:creator>
			<guid isPermaLink="true">https://forum.videohelp.com/threads/420704-How-to-healthy-your-Laptop-Battery</guid>
		</item>
	</channel>
</rss>
