nekr0z / linux-on-huawei-matebook-13-2019

MateBook 13 running Linux
286 stars 25 forks source link

Battery protection resets after reboot #41

Open TheColorman opened 7 months ago

TheColorman commented 7 months ago

I am setting the battery protection levels using the /sys/devices/platform/huawei-wmi/charge_control_thresholds, but after a reboot they go back to 0 100. Is there a way of making it persistent that doesn't involve making a script that runs on boot?

TheColorman commented 6 months ago

For now I've gone with a superuser cronjob that runs on reboot:

@reboot echo "40 80" > /sys/devices/platform/huawei-wmi/charge_control_thresholds

it does the job, but it stays charged at 80%. I would have expected it to cycle between 40% and 80%.