lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAE+bDgdE=2eyy61fM0BqBVP8+tEKYiwZDTUer9y+RdPJZXnA2w@mail.gmail.com>
Date: Mon, 6 Jan 2025 17:45:53 +0330
From: jafar akhondali <jafar.akhoondali@...il.com>
To: Armin Wolf <W_Armin@....de>
Cc: Lee Chun-Yi <jlee@...e.com>, Hans de Goede <hdegoede@...hat.com>, 
	Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>, 
	"platform-driver-x86@...r.kernel.org" <platform-driver-x86@...r.kernel.org>, LKML <linux-kernel@...r.kernel.org>
Subject: Re: acer-wmi WMID_gaming_set_fan_mode() behaviour

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@....de> 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
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ