[RESPONDED] Gnome Extension Battery Health Charging info /test for Framework laptop

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.

  1. 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
  1. 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

1 Like

Just and FYI Currently neither of these work with the amd frameworks; David hasn’t updated his efi tool either to support the amd ec. There is an out of tree patchset which I am just testing, but it was knocked back from inclusion into mainline and needs to be resubmitted with some trivial adjustments.

1 Like

Echoing this.

Do you know when the support for AMD laptop will be available?

Sometimes I just want to set the charge limit to 100% if I need to go out, is there any workaround for that?

ATM I just starred those two projects

Which seems to be the official ones

There is a patchset which I am using without issue, but it needs to get resubmitted for inclusion in mainline.

Likewise the userspace tools will need updating to support the AMD EC.

There is actually a sysfs EC expose knob which makes the EC available from standard kernel fs structures, but it’s disabled in most sane distro kernels.

3 Likes

There is actually a sysfs EC expose knob which makes the EC available from standard kernel fs structures, but it’s disabled in most sane distro kernels.

Interesting, so there are 3 ways to set charging threshold. 2 tools and a kernel module.
Thats great. I think I will wait for the kernel module to be released or merge with mainline then.