From cbb258e13d590df5c88ee573184fa66b1302477f Mon Sep 17 00:00:00 2001 From: Werner Sembach Date: Thu, 25 Feb 2021 14:40:47 +0100 Subject: [PATCH] Always initialize custom fan curve to prevent inconsistencies --- src/tuxedo_io/tongfang_wmi.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tuxedo_io/tongfang_wmi.h b/src/tuxedo_io/tongfang_wmi.h index fe3bd97..9f4fa9e 100644 --- a/src/tuxedo_io/tongfang_wmi.h +++ b/src/tuxedo_io/tongfang_wmi.h @@ -283,12 +283,15 @@ static void uniwill_init(void) // Check if manual-mode fan-curve stored in 0x0743 - 0x0747 is initialized uninitialized = 1; - for (i = 0; i < 5; ++i) { + // Uninitialized check unused: The Windows driver overwrites these values + // on start and on Linux we don't have an offical way to customize this + // setting so we just reset them to default every start to prevent inconsitencies + /*for (i = 0; i < 5; ++i) { uw_ec_read_addr(0x43 + i, 0x07, ®_read_return); if (reg_read_return.bytes.data_low != 0x00) { uninitialized = 0; } - } + }*/ // Set manual-mode fan-curve if uninitialized if (uninitialized) { // Some kind of default fan-curve is stored in 0x0786 - 0x078a: Using it to initialize manual-mode fan-curve