Battery thresholds are reset after reboot to Windows

It is a dual-boot Thinkpad with the latest Manjaro KDE and Windows 10.
In Manjaro, I manually set the battery charge thresholds to 40% and 80% correspondingly:

/sys/class/power_supply/BAT0/charge_start_threshold = 40 [%] /sys/class/power_supply/BAT0/charge_stop_threshold = 80 [%]

Rebooting Manjaro does not change these. The settings are preserved and actually work.

However once I boot into Windows 10 and then go back to Manjaro, the settings are reset:
/sys/class/power_supply/BAT0/charge_start_threshold = 96 [%] /sys/class/power_supply/BAT0/charge_stop_threshold = 100 [%]

Is there any way to preserve the Manjaro settings at least for the time when Manjaro itself is running?

Thank you.

As far as I’m aware, you could use TLP which should automatically set these thresholds when you boot.

You could make use of /etc/sysctl.d/*.conf see man sysctl and man sysctl.conf

Thank you for the ideas. I will research a bit more and try these options.