Merge branch 'fix_only_one_fan_of_ph4trx_running' into 'master'

Fall back to old fancontrol on IBP 14 Gen 6 with H processor to fix 2nd fan not turning

See merge request tuxedocomputers/development/packages/tuxedo-keyboard!35
This commit is contained in:
Christoffer 2023-01-10 11:21:48 +00:00
commit 9e9dbbeaba

View file

@ -266,6 +266,13 @@ static int has_universal_ec_fan_control(void) {
int ret; int ret;
u8 data; u8 data;
if (uw_feats->model == UW_MODEL_PH4TRX) {
// For some reason, on this particular device, the 2nd fan is not controlled via the
// "GPU" fan curve when the bit to seperate both fancurves is set, but the old fan
// control works just fine.
return 0;
}
ret = uniwill_read_ec_ram(0x078e, &data); ret = uniwill_read_ec_ram(0x078e, &data);
if (ret < 0) { if (ret < 0) {
return ret; return ret;