-
Notifications
You must be signed in to change notification settings - Fork 25
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
Help with implementing EC reading #114
Comments
I also used to dig variables using ACPIDebug and customized ACPI methods before I come up with this kext. Try if #115 will attach to the |
Thank you ! |
You can get prebuilt binary at https://github.com/zhen-zen/YogaSMC/actions/runs/536369821 . Please check your ioreg if |
|
It seems that the driver couldn't match the interface by The driver also supports EC RW functionality through |
Please inject a fake device for YogaVPC to attach on unsupported models. Check the latest commit of linked PR for example. |
I've added |
Compile it first and add it to |
Close it for now. I will continue working on #135 after receiving further response. |
Hello,
This issue is not directly related to YogaSMC. I'm kindly asking for some advice, your help would be very appreciated.
With @nekr0z and @profzei, we are trying to implement a battery conservation feature (charging thresholds) on the Huawei Matebook X Pro : nekr0z/matebook-applet#26 . @nekr0z wrote an app that works on Catalina. It relies on
ioio
andACPI_Debug.kext
to call ACPI methods to set the thresholds, and to read the related EC fields.Reading the thresholds is currently done by outputting EC values to system logs, and then we get them by parsing the result of the
log stream --predicate 'senderImagePath contains "ACPIDebug"'
command.The problems are :
ACPI_Debug.kext
seems to be partially broken on Big Sur : ACPI methods can still be called, but outputting text to system logs doesn't work anymore. So the app is broken on Big Sur since we can't read the current thresholds...I see that YogaSMC implement EC field reading. We would like to have your insight on our issue : is there a simple and cleaner way than parsing the system logs to get the EC values ? What would you advise us to do ?
The text was updated successfully, but these errors were encountered: