I am interested in adding Frameworks laptops ability to control battery charging limit to Gnome extension “Battery Health Charging” which provides a GUI in gnome-shell quick settings menu, that few might be interested.
From information that I have gathered, I found 2 tools to can be used to change charge limit.
- ectool - Dhowett found on Github (Damn cannot post more than two links)
- Can be set by the command
sudo ectool fwchargelimit 80
- The first and most popular tool used for changing charching limit.
- Also found mentioned ArchLinux website. (cannot post more than two links)
- Default installation location when install from archlinux repository
/usr/bin/fw-ectool
- framework_tool
- Officially supported by Frameworks (cannot post more than two links but it is in the repo framework-system)
- Can be set by command
sudo framework_tool --charge-limit 80
- Also found mentioned ArchLinux website (Again cannot post more than two links)
- Default installation location when install from archlinux repository
/usr/bin/framework_tool
I wasn’t sure which tool to go for as I do not know the benefits/drawback for each tool. (Feedback on this is appreciated) . Since framework_tool is officially supported, I have already build a drafted test version of extension around the framework_tool.
The only prerequisite is that framework_tool will have to be installed/copied at /usr/bin/
as the extension check if the file present. In other words extension will notify that device not supported if failed to find /usr/bin/framework_tool
Since I don’t have framework laptop, I cannot test and dont know if this will work.
Anyone interested in testing and providing feedback let me know. I am open to suggestions.
draft version is found here:
Gnone 42-44
Gnome 45