Control max battery charge level for better battery health

You could also try the charge control driver from Request: Testing of Linux drivers on all laptop models

It exposes the standard UAPI, so all standards compliant tools should support it out of the box.

Disclaimer: I’m the author.