Testing of Battery Health Charging extension

Hello everyone. I have created a new gnome extension “Battery Health Charging”

It contains of 3 profiles Full capacity, Balanced and Maximum Lifespan (and abilty to customise each profile)
I have tested this extension on my laptop Asus viwobook 14 oled and it works.
My laptop has only charge_control_end_threshold which only set the charging stop limit and this functionality works well. (/sys/class/power_supply/BAT0/charge_control_end_threshold)

However I have also added the feature for laptops with charge_control_start_threshold and the ability to customize the start and stop threshold. I have test using dummy file nodes on my laptop.
But havent found anyone to test and feedback to imporove my extension.

Please check and provide feedback suggestion. Also if need to support any other model, can request and discuss about how it works.


I am adding more device support. I am still working on the extension.
Below are the list of device that I will be able to support.
This info I have got are from several website , specially tlp.

Here are the list of devices.

Asus (variable) some laptop...
echo '$' >/sys/class/power_supply/BAT0/charge_control_end_threshold

Thinkpad (Variable)
echo '$' >/sys/class/power_supply/BAT0/charge_control_end_threshold
echo '$' >/sys/class/power_supply/BAT1/charge_control_end_threshold

Toshiba (Fixed)
 echo '80' > /sys/class/power_supply/BAT1/charge_control_end_threshold       (limit 80)
 echo '100' > /sys/class/power_supply/BAT1/charge_control_end_threshold      (limit 100)

Intel macbook (Variable)
echo '$' >/sys/class/power_supply/BAT0/charge_control_end_threshold
#/sys/class/power_supply/BAT0/charge_control_start_threshold --> not supported
#/sys/class/power_supply/BAT0/charge_control_ful_threshold --> changing battery icon

LG (Fixed)
echo "80" > /sys/devices/platform/lg-laptop/battery_care_limit       (limit 80)
echo "100" > /sys/devices/platform/lg-laptop/battery_care_limit      (limit 100)

Lenovo echo (Fixed)
echo '1' >/sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode        (limit 60)
echo '0' >/sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode        (limit100)

Sony (Fixed)
echo '50' > /sys/devices/platform/sony-laptop/battery_care_limiter  (limit 50)
echo '80' > /sys/devices/platform/sony-laptop/battery_care_limiter  (limit 80)
echo '0' > /sys/devices/platform/sony-laptop/battery_care_limiter  (limit 100)

Huwaei (Variable)
echo '58 60' > /sys/devices/platform/huawei-wmi/charge_thresholds
(first parameter start, second parameter stop)

Samsung (Fixed)
sudo echo '1' > /sys/devices/platform/samsung/battery_life_extender     (limit 80)
sudo echo '0' > /sys/devices/platform/samsung/battery_life_extender     (limit 100)

Acer (Fixed)
 echo '1' > /sys/bus/wmi/drivers/acer-wmi-battery/health_mode       (limit 80)
 echo '0' > /sys/bus/wmi/drivers/acer-wmi-battery/health_mode       (limit 100)

Was checkin on Dell but not much info.
only this, and this info is probably old and outdate.

sudo cctk --PrimaryBattChargeCfg=Custom:50-70
 smbios-battery-ctl --set-custom-charge-interval 50 70
 smbios --get-charging-cfg

Let me know if anybody is willing to test or give more info. or if any device that supports changing limit using cmd-line is not in the list.

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.