LenovoController icon indicating copy to clipboard operation
LenovoController copied to clipboard

Linux version?

Open ArchitektRadim opened this issue 4 years ago • 3 comments

It's great there is an alternative for the bloated Vantage app on windows, but on Linux none of them is available. I was able to switch conservation mode and rapid charge using ACPI calls, but changing the power modes from Linux OS is something that I didn't figure out. There is some tool or script able to do that on Ideapad, but it doesn't work on my Legion as this windows only project does. If Linux version is really not planned, can someone please let me know how the proper ACPI call for that can be found? Thanks in advance.

ArchitektRadim avatar Oct 10 '21 23:10 ArchitektRadim

Sorry, I don't really know how ACPI calling works, I'm just using the already provided driver by Lenovo.

ViRb3 avatar Oct 12 '21 10:10 ViRb3

Sorry, I don't really know how ACPI calling works, I'm just using the already provided driver by Lenovo.

Nevermind. Thanks for taking this request seriously and really considering creating the Linux version in the future. For now, may I just know which one of the Lenovo drivers is responsible for communicating with the hardware, and where did you find documentation for it? Maybe I will try to reverse-engineer the driver to find the proper ACPI calls.

ArchitektRadim avatar Oct 16 '21 08:10 ArchitektRadim

Hardware features are controller in two ways:

  • Through a driver (the file name is the same as the handle): https://github.com/ViRb3/LenovoController/blob/e3b4638bffeda239ff0c3486225460960c69122d/source/Providers/DriverProvider.cs#L16
  • Through WMI: https://github.com/ViRb3/LenovoController/blob/e3b4638bffeda239ff0c3486225460960c69122d/source/Features/AbstractWmiFeature.cs#L45

Good luck!

ViRb3 avatar Oct 16 '21 15:10 ViRb3