If I'm to believe this bug report [1], KDE actually offers throttling charge, but I suspect the Linux kernel lacks support for this kind of stuff for many laptops, maybe also because sometimes the laptop itself does not support this.
Apparently, one should be able to see these files on a supported laptop:
I don't have them on the HP EliteBook G6 laptop I'm currently using.
But thanks for reminding me this. I was considering using an original PinePhone as a Bluetooth receiver. Unfortunately, Wifi and Bluetooth require a battery to be present in this phone and I was a bit concerned leaving it plugged in at all times. I'll need to check if the kernel the hardware and support this. Still a bit concerned that the battery will be wearing out fast, I'm afraid Bluetooth will be using the battery power even if the phone is plugged, which is a bummer.
You can hack that on any system that lets you read the battery status. All you need is a smart plug. You power the laptop from the smart plug. You switch off the plug when the battery is at 80% and you switch it on again when it's at 20%.
I’m surprised that the Linux distributions I use don’t do this automatically but I bet it could be configured.