Replies: 5 comments 12 replies
|
There are a few problems with this. First is that this is only useful to users with batteries, i.e. mostly laptops. While they are more than common, it still means this development wouldn't matter for most desktop users. Second, and perhaps most important, each manufacturer has a different way to implement this and many of those approaches require elevated permissions. This effectively means a matrix of vendors to support and then maintain (because vendors change this functionality all the time). Some vendors also only allow the values for charge limits to be set in the BIOS, meaning that any software will have limitations regardless. Until there is some sort of universal standard that most vendors choose to apply, this probably isn't conceivable. Your best bet if you want to implement this is to find the documentation for your vendor (if available) and then applying those settings locally if it is supported. This is what I have done for many machines, both past and present. Depending on the vendor, the charge limit might be configurable from the BIOS, a software tool they provide, the command-line, etc. Hopefully, there is an option that works for you. |
|
I agree with @rcalixte, it is a great idea to extend the life of laptop batteries, unfortunately only Thinkpad batteries are supported in software as far as I know, and you need tlp and the correct kernel use that function in the first place without it causing kernel panics. |
|
Would it help if your computer could send a notification with beep once your battery drops below 20% or loads above 80% ? What exactly would you expect to happen? |
|
I've created a simple program in python that does exactly what you're asking. You can check it on my repository |
|
Hi @rcalixte. I've been looking into this again, and I think the situation has changed significantly since this idea was first discussed. It seems this could now be implemented much more simply in Cinnamon, without requiring vendor-specific handling, so I thought it might be worth reconsidering. The Linux kernel provides standardized power-supply attributes for charge thresholds, such as Since UPower 1.90.5, this capability is also exposed through its public API with properties such as The Linux Mint 23 Alfa currently includes UPower 1.91.1, this means Cinnamon would not need to maintain vendor-specific handling for ASUS, Samsung, Lenovo, etc. The UI could simply use capability detection: if a real system battery is reported by UPower as supporting charge thresholds, the option is shown; otherwise it remains completely hidden. GNOME Control Center already follows this approach. It filters for actual |
Uh oh!
There was an error while loading. Please reload this page.
I was thinking having the options in the battery settings to set a max charge other than 100% would be useful
All reactions