-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Support Chromebooks running coreboot to use Linux "MrChromebox firmware" #104
Comments
Additional information for installing EC tool on Fedora. https://docs.chrultrabook.com/docs/installing/ectool.html |
"ectool” is a standalone file, can run like a AppImage.
|
Thank you @lmigfernandes I will try to implement this end of this week. I just want to confirm some information again. Give me the output of these 2 command.
Post output on a new line.
Post like this
It helps me get the exact string output by the command. I understand translation is difficult, and I apologise asking for too much details. |
Now I'm using openSUSE with standalone ectool binary.
Thank you, @maniacx. |
I am working on the extension. It was difficult for me to find the source code, and I finally found here. https://github.com/coreboot/chrome-ec/blob/main/util/ectool.cc But I am still not sure if you are using the same one. Kindly tell me which website did you download it from? Also I want to know the range of acceptable threshold values , command and exit codes, so I have created a script that contains 9 command that will change your threshold every 1 seconds. download and extract the zip. open terminal. navigate to download folder which contain the bash script. change script to executable
and run the script
Allow the script to complete. Post the output here. |
@maniacx The ectool blob is specific for Chromebooks. Normally I compile from source on Arch Linux AUR but can be found the .rpm on fedora Terra repository here (normally I download the .rpm and extract installing dependencies). The output from script u asked:
Thank you. |
You can try the GNOME45 branch and let me if there are some issues. https://github.com/maniacx/Battery-Health-Charging/commits/GNOME45/ |
Yes, I saw the patch when I was finding out about ectools. https://github.com/maniacx/Battery-Health-Charging/blob/GNOME45/devices/Chromebook.js#L9-L12 If ectool is installed and it runs older kernel, extension will use the ectool. If running ectool and new kernel, you will get an option to choose what for changing threshold. Althought I didnt add feature for charge_behavior. |
Hey @maniacx , Looks like sysfs mode is working. I updated my Coreboot firmware and Linux Kernel. |
Thank you for the update. |
Would be nice to have EC Chromebook “Adaptive Charging” since newer Chromebooks that use the UEFI custom firmware to run other OS use coreboot. I talk about Arch Linux. I can try another distros if necessary.
On Arch Linux, I use AUR "ectool for the Framework laptop” or the official repo source here.
To write I use “sudo ectool chargecontrol normal 75 80”
I find the Normal command of EC on official Chromium OS documentation https://chromium.googlesource.com/chromiumos/platform2/+/HEAD/power_manager/docs/adaptive_charging.md and found additional information here.
To read information about battery status:
[arc@arcbook ~]$ whereis ectool ectool: /usr/bin/ectool [arc@arcbook ~]$ sudo ectool chargecontrol Charge mode = NORMAL (0) Battery sustainer = on (75% ~ 80%) [arc@arcbook ~]$ cat /sys/devices/virtual/dmi/id/sys_vendor Google
@maniacx Tried my best to help and describe what u asked me, since English is not my primary language.
Thanks :)
The text was updated successfully, but these errors were encountered: