Re: acer-wmi WMID_gaming_set_fan_mode() behaviour

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
The patch I sent is already 4 years old, and I lost access to the
laptop soon after sending it.
Most of the logic in the code is something I did not fully understand
either, as it was simply converted from de-compiled PredarSense
software (C#) + trial-and-error + checking WMI methods.
The logical flow is roughly as follows:
Have you already tried using this code to switch to automatic mode?

/* Turn off turbo led */
WMID_gaming_set_u64(0x1, ACER_CAP_TURBO_LED);

/* Set FAN mode to auto */
WMID_gaming_set_fan_mode(0x1);

/* Set OC to normal */
WMID_gaming_set_u64(0x5, ACER_CAP_TURBO_OC);
WMID_gaming_set_u64(0x7, ACER_CAP_TURBO_OC);



The WMID_gaming_set_fan_mode function is based on the number of CPU
fans and GPU fans, but it might also be different on newer models.
There are some people that help maintain the turbo functionality for
different laptops and RGB on Github, it might be helpful to discuss it
here as well:
https://github.com/JafarAkhondali/acer-predator-turbo-and-rgb-keyboard-linux-module/issues


On Tue, Dec 24, 2024 at 12:48 AM Armin Wolf <W_Armin@xxxxxx> wrote:
>
> Hi,
>
> i am currently working on adding fan control to support for the acer-wmi driver. So far
> i can already control the fans using a hwmon interface, but support for switching between
> manual and automatic mode is missing.
>
> Switching from automatic to manual mode seems to be straight-forward: using WMI method 16
> to set the fan speed seems to automatically switch to manual control mode.
>
> However switching back to automatic mode uses a different mechanism. Since you are the author
> of the WMID_gaming_set_fan_mode() function i wanted to ask you how the function exactly works.
>
> In the end i hope to use this function to switch fans back to automatic mode. By the way i also
> found a way to automatically detect the number of CPU and GPU fans for each machine, so maybe
> we can get rid of the quirk entries for that.
>
> Thanks,
> Armin Wolf
>





[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux