Skip to content

Commit

Permalink
Add fan mode configuration
Browse files Browse the repository at this point in the history
This change is backwards-compatible with older YAMDCC versions.

This change also overrides the old behaviour of using a RegConf to set the fan mode to a hardcoded value, even if the RegConf is still present.
  • Loading branch information
Sparronator9999 committed Jan 11, 2025
1 parent cce390e commit 22f4e59
Show file tree
Hide file tree
Showing 18 changed files with 528 additions and 118 deletions.
38 changes: 27 additions & 11 deletions Configs/Generic/MSI-10th-gen-or-newer-dualfan-nokeylight.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,21 +211,37 @@ If set to default fan curve, uses an alternative fan curve.</Desc>
</PerfMode>
</PerfModes>
</PerfModeConf>
<FanModeConf>
<Reg>212</Reg>
<ModeSel>3</ModeSel>
<FanModes>
<FanMode>
<Name>Automatic</Name>
<Desc>Uses the default laptop fan curve.</Desc>
<Value>13</Value>
</FanMode>
<FanMode>
<Name>Silent</Name>
<Desc>Reduces the maximum fan speed from Automatic.</Desc>
<Value>29</Value>
</FanMode>
<FanMode>
<Name>Basic</Name>
<Desc>The fan profiles can be manually edited using a single offset from the default (automatic) fan profile.</Desc>
<Value>77</Value>
</FanMode>
<FanMode>
<Name>Advanced (default)</Name>
<Desc>The fan profiles can be manually edited using a series of fan/temperature points.
**If unsure, use this setting.**</Desc>
<Value>141</Value>
</FanMode>
</FanModes>
</FanModeConf>
<KeySwapConf>
<Reg>232</Reg>
<Enabled>false</Enabled>
<OnVal>16</OnVal>
<OffVal>0</OffVal>
</KeySwapConf>
<RegConfs>
<RegConf>
<Enabled>true</Enabled>
<Name>YAMDCC compatibility fix</Name>
<Desc>Sets fan mode to Advanced. Fixes fans not working at all with certain fan settings.
It is recommended you leave this enabled.</Desc>
<Reg>212</Reg>
<OnVal>77</OnVal>
<OffVal>13</OffVal>
</RegConf>
</RegConfs>
</YAMDCC_Config>
38 changes: 27 additions & 11 deletions Configs/Generic/MSI-10th-gen-or-newer-dualfan.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,33 @@ If set to default fan curve, uses an alternative fan curve.</Desc>
</PerfMode>
</PerfModes>
</PerfModeConf>
<FanModeConf>
<Reg>212</Reg>
<ModeSel>3</ModeSel>
<FanModes>
<FanMode>
<Name>Automatic</Name>
<Desc>Uses the default laptop fan curve.</Desc>
<Value>13</Value>
</FanMode>
<FanMode>
<Name>Silent</Name>
<Desc>Reduces the maximum fan speed from Automatic.</Desc>
<Value>29</Value>
</FanMode>
<FanMode>
<Name>Basic</Name>
<Desc>The fan profiles can be manually edited using a single offset from the default (automatic) fan profile.</Desc>
<Value>77</Value>
</FanMode>
<FanMode>
<Name>Advanced (default)</Name>
<Desc>The fan profiles can be manually edited using a series of fan/temperature points.
**If unsure, use this setting.**</Desc>
<Value>141</Value>
</FanMode>
</FanModes>
</FanModeConf>
<KeySwapConf>
<Reg>232</Reg>
<Enabled>false</Enabled>
Expand All @@ -222,15 +249,4 @@ If set to default fan curve, uses an alternative fan curve.</Desc>
<MinVal>128</MinVal>
<MaxVal>131</MaxVal>
</KeyLightConf>
<RegConfs>
<RegConf>
<Enabled>true</Enabled>
<Name>YAMDCC compatibility fix</Name>
<Desc>Sets fan mode to Advanced. Fixes fans not working at all with certain fan settings.
It is recommended you leave this enabled.</Desc>
<Reg>212</Reg>
<OnVal>77</OnVal>
<OffVal>13</OffVal>
</RegConf>
</RegConfs>
</YAMDCC_Config>
38 changes: 27 additions & 11 deletions Configs/Generic/MSI-10th-gen-or-newer-singlefan-nokeylight.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,21 +211,37 @@ If set to default fan curve, uses an alternative fan curve.</Desc>
</PerfMode>
</PerfModes>
</PerfModeConf>
<FanModeConf>
<Reg>212</Reg>
<ModeSel>3</ModeSel>
<FanModes>
<FanMode>
<Name>Automatic</Name>
<Desc>Uses the default laptop fan curve.</Desc>
<Value>13</Value>
</FanMode>
<FanMode>
<Name>Silent</Name>
<Desc>Reduces the maximum fan speed from Automatic.</Desc>
<Value>29</Value>
</FanMode>
<FanMode>
<Name>Basic</Name>
<Desc>The fan profiles can be manually edited using a single offset from the default (automatic) fan profile.</Desc>
<Value>77</Value>
</FanMode>
<FanMode>
<Name>Advanced (default)</Name>
<Desc>The fan profiles can be manually edited using a series of fan/temperature points.
**If unsure, use this setting.**</Desc>
<Value>141</Value>
</FanMode>
</FanModes>
</FanModeConf>
<KeySwapConf>
<Reg>232</Reg>
<Enabled>false</Enabled>
<OnVal>16</OnVal>
<OffVal>0</OffVal>
</KeySwapConf>
<RegConfs>
<RegConf>
<Enabled>true</Enabled>
<Name>YAMDCC compatibility fix</Name>
<Desc>Sets fan mode to Advanced. Fixes fans not working at all with certain fan settings.
It is recommended you leave this enabled.</Desc>
<Reg>212</Reg>
<OnVal>77</OnVal>
<OffVal>13</OffVal>
</RegConf>
</RegConfs>
</YAMDCC_Config>
38 changes: 27 additions & 11 deletions Configs/Generic/MSI-10th-gen-or-newer-singlefan.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,33 @@ If set to default fan curve, uses an alternative fan curve.</Desc>
</PerfMode>
</PerfModes>
</PerfModeConf>
<FanModeConf>
<Reg>212</Reg>
<ModeSel>3</ModeSel>
<FanModes>
<FanMode>
<Name>Automatic</Name>
<Desc>Uses the default laptop fan curve.</Desc>
<Value>13</Value>
</FanMode>
<FanMode>
<Name>Silent</Name>
<Desc>Reduces the maximum fan speed from Automatic.</Desc>
<Value>29</Value>
</FanMode>
<FanMode>
<Name>Basic</Name>
<Desc>The fan profiles can be manually edited using a single offset from the default (automatic) fan profile.</Desc>
<Value>77</Value>
</FanMode>
<FanMode>
<Name>Advanced (default)</Name>
<Desc>The fan profiles can be manually edited using a series of fan/temperature points.
**If unsure, use this setting.**</Desc>
<Value>141</Value>
</FanMode>
</FanModes>
</FanModeConf>
<KeySwapConf>
<Reg>232</Reg>
<Enabled>false</Enabled>
Expand All @@ -222,15 +249,4 @@ If set to default fan curve, uses an alternative fan curve.</Desc>
<MinVal>128</MinVal>
<MaxVal>131</MaxVal>
</KeyLightConf>
<RegConfs>
<RegConf>
<Enabled>true</Enabled>
<Name>YAMDCC compatibility fix</Name>
<Desc>Sets fan mode to Advanced. Fixes fans not working at all with certain fan settings.
It is recommended you leave this enabled.</Desc>
<Reg>212</Reg>
<OnVal>77</OnVal>
<OffVal>13</OffVal>
</RegConf>
</RegConfs>
</YAMDCC_Config>
38 changes: 27 additions & 11 deletions Configs/Generic/MSI-9th-gen-or-older-dualfan.xml
Original file line number Diff line number Diff line change
Expand Up @@ -206,20 +206,36 @@ If set to default fan curve, uses an alternative fan curve.</Desc>
</PerfMode>
</PerfModes>
</PerfModeConf>
<FanModeConf>
<Reg>244</Reg>
<ModeSel>3</ModeSel>
<FanModes>
<FanMode>
<Name>Automatic</Name>
<Desc>Uses the default laptop fan curve.</Desc>
<Value>13</Value>
</FanMode>
<FanMode>
<Name>Silent</Name>
<Desc>Reduces the maximum fan speed from Automatic.</Desc>
<Value>29</Value>
</FanMode>
<FanMode>
<Name>Basic</Name>
<Desc>The fan profiles can be manually edited using a single offset from the default (automatic) fan profile.</Desc>
<Value>77</Value>
</FanMode>
<FanMode>
<Name>Advanced (default)</Name>
<Desc>The fan profiles can be manually edited using a series of fan/temperature points.
**If unsure, use this setting.**</Desc>
<Value>141</Value>
</FanMode>
</FanModes>
</FanModeConf>
<KeyLightConf>
<Reg>243</Reg>
<MinVal>128</MinVal>
<MaxVal>131</MaxVal>
</KeyLightConf>
<RegConfs>
<RegConf>
<Enabled>true</Enabled>
<Name>YAMDCC compatibility fix</Name>
<Desc>Sets fan mode to Advanced. Fixes fans not working at all with certain fan settings.
It is recommended you leave this enabled.</Desc>
<Reg>244</Reg>
<OnVal>141</OnVal>
<OffVal>13</OffVal>
</RegConf>
</RegConfs>
</YAMDCC_Config>
38 changes: 27 additions & 11 deletions Configs/Generic/MSI-9th-gen-or-older-singlefan.xml
Original file line number Diff line number Diff line change
Expand Up @@ -206,20 +206,36 @@ If set to default fan curve, uses an alternative fan curve.</Desc>
</PerfMode>
</PerfModes>
</PerfModeConf>
<FanModeConf>
<Reg>244</Reg>
<ModeSel>3</ModeSel>
<FanModes>
<FanMode>
<Name>Automatic</Name>
<Desc>Uses the default laptop fan curve.</Desc>
<Value>13</Value>
</FanMode>
<FanMode>
<Name>Silent</Name>
<Desc>Reduces the maximum fan speed from Automatic.</Desc>
<Value>29</Value>
</FanMode>
<FanMode>
<Name>Basic</Name>
<Desc>The fan profiles can be manually edited using a single offset from the default (automatic) fan profile.</Desc>
<Value>77</Value>
</FanMode>
<FanMode>
<Name>Advanced (default)</Name>
<Desc>The fan profiles can be manually edited using a series of fan/temperature points.
**If unsure, use this setting.**</Desc>
<Value>141</Value>
</FanMode>
</FanModes>
</FanModeConf>
<KeyLightConf>
<Reg>243</Reg>
<MinVal>128</MinVal>
<MaxVal>131</MaxVal>
</KeyLightConf>
<RegConfs>
<RegConf>
<Enabled>true</Enabled>
<Name>YAMDCC compatibility fix</Name>
<Desc>Sets fan mode to Advanced. Fixes fans not working at all with certain fan settings.
It is recommended you leave this enabled.</Desc>
<Reg>244</Reg>
<OnVal>141</OnVal>
<OffVal>13</OffVal>
</RegConf>
</RegConfs>
</YAMDCC_Config>
38 changes: 27 additions & 11 deletions Configs/MSI-GF63-Thin-11SC.xml
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,33 @@ If set to default fan curve, uses an alternative fan curve.</Desc>
</PerfMode>
</PerfModes>
</PerfModeConf>
<FanModeConf>
<Reg>212</Reg>
<ModeSel>3</ModeSel>
<FanModes>
<FanMode>
<Name>Automatic</Name>
<Desc>Uses the default laptop fan curve.</Desc>
<Value>13</Value>
</FanMode>
<FanMode>
<Name>Silent</Name>
<Desc>Reduces the maximum fan speed from Automatic.</Desc>
<Value>29</Value>
</FanMode>
<FanMode>
<Name>Basic</Name>
<Desc>The fan profiles can be manually edited using a single offset from the default (automatic) fan profile.</Desc>
<Value>77</Value>
</FanMode>
<FanMode>
<Name>Advanced (default)</Name>
<Desc>The fan profiles can be manually edited using a series of fan/temperature points.
**If unsure, use this setting.**</Desc>
<Value>141</Value>
</FanMode>
</FanModes>
</FanModeConf>
<KeySwapConf>
<Reg>232</Reg>
<Enabled>false</Enabled>
Expand All @@ -304,15 +331,4 @@ If set to default fan curve, uses an alternative fan curve.</Desc>
<MinVal>128</MinVal>
<MaxVal>131</MaxVal>
</KeyLightConf>
<RegConfs>
<RegConf>
<Enabled>true</Enabled>
<Name>YAMDCC compatibility fix</Name>
<Desc>Sets fan mode to Advanced. Fixes fans not working at all with certain fan settings.
It is recommended you leave this enabled.</Desc>
<Reg>212</Reg>
<OnVal>77</OnVal>
<OffVal>13</OffVal>
</RegConf>
</RegConfs>
</YAMDCC_Config>
38 changes: 27 additions & 11 deletions Configs/MSI-Katana-GF66-12UG.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,33 @@ If set to default fan curve, uses an alternative fan curve.</Desc>
</PerfMode>
</PerfModes>
</PerfModeConf>
<FanModeConf>
<Reg>212</Reg>
<ModeSel>3</ModeSel>
<FanModes>
<FanMode>
<Name>Automatic</Name>
<Desc>Uses the default laptop fan curve.</Desc>
<Value>13</Value>
</FanMode>
<FanMode>
<Name>Silent</Name>
<Desc>Reduces the maximum fan speed from Automatic.</Desc>
<Value>29</Value>
</FanMode>
<FanMode>
<Name>Basic</Name>
<Desc>The fan profiles can be manually edited using a single offset from the default (automatic) fan profile.</Desc>
<Value>77</Value>
</FanMode>
<FanMode>
<Name>Advanced (default)</Name>
<Desc>The fan profiles can be manually edited using a series of fan/temperature points.
**If unsure, use this setting.**</Desc>
<Value>141</Value>
</FanMode>
</FanModes>
</FanModeConf>
<KeySwapConf>
<Reg>232</Reg>
<Enabled>false</Enabled>
Expand All @@ -222,15 +249,4 @@ If set to default fan curve, uses an alternative fan curve.</Desc>
<MinVal>128</MinVal>
<MaxVal>131</MaxVal>
</KeyLightConf>
<RegConfs>
<RegConf>
<Enabled>true</Enabled>
<Name>YAMDCC compatibility fix</Name>
<Desc>Set fan mode to Advanced. Fixes fans not working at all with certain fan settings.
It is recommended you leave this enabled.</Desc>
<Reg>212</Reg>
<OnVal>77</OnVal>
<OffVal>13</OffVal>
</RegConf>
</RegConfs>
</YAMDCC_Config>
Loading

0 comments on commit 22f4e59

Please sign in to comment.