3 ms·
> Apparently there is an ACPI mechanism that allows reading and writing to EC registers. I never figured out a way to intercept this I/O. Do you know a way? Do
by ChuckNorris89 5y ago
> Apparently there is an ACPI mechanism that allows reading and writing to EC registers. I never figured out a way to intercept this I/O. Do you know a way?
Do you mean intercept the I/O from the OS to the EC in Windows so you can replicate the same functionality in Linux? Not sure, as Windows has drivers for these features provided by the laptop makers.
I guess you could use Process Monitor[1] or other SysInternal tools[2] to see what's going on in Windows when you play with various EC functions.
On Linux you can find various resources regarding the ACPI calls for EC functionality on the Arch Wiki for various laptops[3][4][5] (usually the most popular ThinkPads) and work your way from there.
[1] https://docs.microsoft.com/en-us/sysinternals/downloads/procmon https://docs.microsoft.com/en-us/sysinternals/downloads/proc...
[2] https://docs.microsoft.com/en-us/sysinternals/downloads/process-utilities https://docs.microsoft.com/en-us/sysinternals/downloads/proc...
[3] https://wiki.archlinux.org/title/Lenovo_ThinkPad_T420 https://wiki.archlinux.org/title/Lenovo_ThinkPad_T420
[4] https://wiki.archlinux.org/title/Lenovo_Yoga_Slim_7_(AMD_Ryzen_7) https://wiki.archlinux.org/title/Lenovo_Yoga_Slim_7_(AMD_Ryz...
[5] https://wiki.archlinux.org/title/Lenovo_IdeaPad_7_14are05 https://wiki.archlinux.org/title/Lenovo_IdeaPad_7_14are05
- matheusmoreira 5y ago> Do you mean intercept the I/O from the OS to the EC in Windows so you can replicate the same functionality in Linux? Exactly. Thanks for the pointers. I'm gonna give it another try.