I’m using an MSI laptop. In order to change the max battery charging level I need to boot into Windows and launch the MSI utility. Then I can boot back to Linux and the setting remains saved. It’s one of the few reasons I have to keep a Windows partition on this machine.
I guess on other laptops this should work too. If there is a windows utility for that, the setting might remain saved when booting back to Linux. (Which probably means it’s stored in BIOS)