@TheEvilSkeleton I though this kind of feature was impossible on laptops at the exception of Thinkpads, because there is no OS access to the battery and charging controler access.

The only laptop maker which allows this and provides a Linux firmware is Lenovo with Thinkpads.