Skip to content

Commit

Permalink
Overboost in GUI, modified overboost logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Troll committed May 11, 2022
1 parent 40b49a4 commit 78696c9
Show file tree
Hide file tree
Showing 23 changed files with 442 additions and 289 deletions.
10 changes: 8 additions & 2 deletions Doc/alienfan-gui.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,20 @@ Selected fan curve presented in green color, rest of the fans attached to the sa
Now play with fan control curve - it defines fan boost by temperature level. X axle is temperature, Y axle is boost level.
You can left click (and drag until mouse button release) into the curve window to add point or select close point (if any) and move it.
You can click right mouse button at the graph point to remove it.
Big red dot represent current boost and temperature position.
Big red dot represent current boost and temperature position, yellow dots present current temperatures for other sensors involved into control of this fan.

Please keep in mind:
- You can't remove first or last point of the curve.
- If you move first or last point, it will keep it's temperature after button release - but you can set other boost level for it.
- Then fan controlled by more, then one sensor, boost will be set to the maximal value across them.

"Reset" button reset currently selected fan curve to default one (0-100 boost).
"X" button above sensors list reset maximal temperature sensors value to current one.
"X" button above fans list reset currently selected fan curve to default one (0-100 boost).

"Overboost" button will check possibility of currently selected fan to increase RPM even more, then 100% boost.
It will switch curve window to other mode - showing currently tested boost level and resulting RPM.
This process can take some minutes, window with final results will be shown after the process ends, and they be used lately for this fan.
You can press "Stop Overboost" button at any time to stop overboost check.

You can minimize application to tray pressing Minimize button (or the top one), left click on try icon restore application back, right click will close application.
There are two settings into application top menu under "Settings":
Expand Down
12 changes: 10 additions & 2 deletions Doc/alienfx-gui.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,20 @@ After you doing so, currently selected fan settings will be shown at "Fan Curve"
Now play with fan control curve - it defines fan boost by temperature level. X axle is temperature, Y axle is boost level.
You can left click (and drag until release mouse button) into the curve window to add point or select close point (if any) and move it.
You can click right mouse button at the graph point to remove it.
Big red dot represents current boost-in-action position.
Big red dot represent current boost and temperature position, yellow dots present current temperatures for other sensors involved into control of this fan.

Please keep in mind:
- You can't remove first or last point of the curve.
- If you move first or last point, it will keep its temperature after button release - but you can set other boost level for it.
- Then fan controlled by more, then one sensor, boost will be set to the maximal value across them.
- Then fan controlled by more, then one sensor, boost will be set to the maximal value across them.

"X" button above sensors list reset maximal temperature sensors value to current one.
"X" button above fans list reset currently selected fan curve to default one (0-100 boost).

"Overboost" button will check possibility of currently selected fan to increase RPM even more, then 100% boost.
It will switch curve window to other mode - showing currently tested boost level and resulting RPM.
This process can take some minutes, window with final results will be shown after the process ends, and they be used lately for this fan.
You can press "Stop Overboost" button at any time to stop overboost check.

![Settings tab](/Doc/img/gui-settings.png?raw=true)

Expand Down
Binary file modified Doc/img/alienfan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Doc/img/gui-fans.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
110 changes: 42 additions & 68 deletions Install/Install.vdproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
{
"Entry"
{
"MsmKey" = "8:_0207635732654CE6A87615796F8EEC39"
"OwnerKey" = "8:_UNDEFINED"
"MsmKey" = "8:_015851A88B2E497E6C19EE42E0C66BC8"
"OwnerKey" = "8:_678C7A24858C40D5841D4C44812C6A93"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_055E075BF224A12F432351DF93952E0E"
"OwnerKey" = "8:_4B7975803E6C492C8F7D8B599766674C"
"MsmKey" = "8:_0207635732654CE6A87615796F8EEC39"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
Expand Down Expand Up @@ -63,12 +63,6 @@
}
"Entry"
{
"MsmKey" = "8:_62778E3B93EA66E8423CFE35D880654B"
"OwnerKey" = "8:_4B7975803E6C492C8F7D8B599766674C"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_6351900FB5424C86AB017CEAB765135D"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
Expand All @@ -81,12 +75,6 @@
}
"Entry"
{
"MsmKey" = "8:_83763AF12CFE41FE16B491DE99592F8F"
"OwnerKey" = "8:_4B7975803E6C492C8F7D8B599766674C"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_8533FAE6D43944078DAC051060E0DCFF"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
Expand Down Expand Up @@ -129,8 +117,14 @@
}
"Entry"
{
"MsmKey" = "8:_E57C9B0CB5862DCB6BAC31D289B34509"
"OwnerKey" = "8:_4B7975803E6C492C8F7D8B599766674C"
"MsmKey" = "8:_D22F61038ABB17E9902DAEEECA02B4EB"
"OwnerKey" = "8:_678C7A24858C40D5841D4C44812C6A93"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_E5943F519A7605D4A75B1464669B4546"
"OwnerKey" = "8:_678C7A24858C40D5841D4C44812C6A93"
"MsmSig" = "8:_UNDEFINED"
}
}
Expand Down Expand Up @@ -215,12 +209,12 @@
}
"File"
{
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_0207635732654CE6A87615796F8EEC39"
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_015851A88B2E497E6C19EE42E0C66BC8"
{
"SourcePath" = "8:..\\Doc\\alienfx-gui.md"
"TargetName" = "8:alienfx-gui.md"
"SourcePath" = "8:msdelta.dll"
"TargetName" = "8:msdelta.dll"
"Tag" = "8:"
"Folder" = "8:_F547A8D6D49C432390AEA0D6A0C1CA97"
"Folder" = "8:_77CCC7F3944A4B009D9231F8B41DFD6D"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
Expand All @@ -231,16 +225,16 @@
"SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:FALSE"
"IsDependency" = "11:FALSE"
"Exclude" = "11:TRUE"
"IsDependency" = "11:TRUE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_055E075BF224A12F432351DF93952E0E"
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_0207635732654CE6A87615796F8EEC39"
{
"SourcePath" = "8:POWRPROF.dll"
"TargetName" = "8:POWRPROF.dll"
"SourcePath" = "8:..\\Doc\\alienfx-gui.md"
"TargetName" = "8:alienfx-gui.md"
"Tag" = "8:"
"Folder" = "8:_77CCC7F3944A4B009D9231F8B41DFD6D"
"Folder" = "8:_F547A8D6D49C432390AEA0D6A0C1CA97"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
Expand All @@ -251,8 +245,8 @@
"SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:TRUE"
"IsDependency" = "11:TRUE"
"Exclude" = "11:FALSE"
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_09B1992F95E748E1845109AD2B634C5A"
Expand Down Expand Up @@ -335,26 +329,6 @@
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_62778E3B93EA66E8423CFE35D880654B"
{
"SourcePath" = "8:SETUPAPI.dll"
"TargetName" = "8:SETUPAPI.dll"
"Tag" = "8:"
"Folder" = "8:_39E2774D52CE4B619039352379796769"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
"ReadOnly" = "11:FALSE"
"Hidden" = "11:FALSE"
"System" = "11:FALSE"
"Permanent" = "11:FALSE"
"SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:TRUE"
"IsDependency" = "11:TRUE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_6351900FB5424C86AB017CEAB765135D"
{
"SourcePath" = "8:..\\Doc\\LightFX.md"
Expand All @@ -375,12 +349,12 @@
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_83763AF12CFE41FE16B491DE99592F8F"
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_C4B1307E827A4442ACD87D8B7EAF7F24"
{
"SourcePath" = "8:VERSION.dll"
"TargetName" = "8:VERSION.dll"
"SourcePath" = "8:..\\Doc\\alienfx-mon.md"
"TargetName" = "8:alienfx-mon.md"
"Tag" = "8:"
"Folder" = "8:_77CCC7F3944A4B009D9231F8B41DFD6D"
"Folder" = "8:_F547A8D6D49C432390AEA0D6A0C1CA97"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
Expand All @@ -391,16 +365,16 @@
"SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:TRUE"
"IsDependency" = "11:TRUE"
"Exclude" = "11:FALSE"
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_C4B1307E827A4442ACD87D8B7EAF7F24"
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_D22F61038ABB17E9902DAEEECA02B4EB"
{
"SourcePath" = "8:..\\Doc\\alienfx-mon.md"
"TargetName" = "8:alienfx-mon.md"
"SourcePath" = "8:RPCRT4.dll"
"TargetName" = "8:RPCRT4.dll"
"Tag" = "8:"
"Folder" = "8:_F547A8D6D49C432390AEA0D6A0C1CA97"
"Folder" = "8:_77CCC7F3944A4B009D9231F8B41DFD6D"
"Condition" = "8:"
"Transitive" = "11:FALSE"
"Vital" = "11:TRUE"
Expand All @@ -411,14 +385,14 @@
"SharedLegacy" = "11:FALSE"
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:FALSE"
"IsDependency" = "11:FALSE"
"Exclude" = "11:TRUE"
"IsDependency" = "11:TRUE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_E57C9B0CB5862DCB6BAC31D289B34509"
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_E5943F519A7605D4A75B1464669B4546"
{
"SourcePath" = "8:WININET.dll"
"TargetName" = "8:WININET.dll"
"SourcePath" = "8:ntdll.dll"
"TargetName" = "8:ntdll.dll"
"Tag" = "8:"
"Folder" = "8:_77CCC7F3944A4B009D9231F8B41DFD6D"
"Condition" = "8:"
Expand Down Expand Up @@ -524,15 +498,15 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:AlienFX Tools"
"ProductCode" = "8:{AB602903-CE11-405A-85C0-8F8A9112394C}"
"PackageCode" = "8:{1D0661D0-69D9-4E09-A11F-2D679D08468C}"
"ProductCode" = "8:{D8E8A512-2AD8-4357-AA94-1175B4862ADD}"
"PackageCode" = "8:{FF0DE055-9E36-4806-9BA2-FBDF7A4F744E}"
"UpgradeCode" = "8:{EFC2D182-AE5E-4585-92D3-0759F77F59AA}"
"AspNetVersion" = "8:4.0.30319.0"
"RestartWWWService" = "11:FALSE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:FALSE"
"InstallAllUsers" = "11:FALSE"
"ProductVersion" = "8:5.9.100"
"ProductVersion" = "8:5.9.200"
"Manufacturer" = "8:T-Troll"
"ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:https://github.com/T-Troll/alienfx-tools/discussions"
Expand Down
5 changes: 3 additions & 2 deletions alienfan-tools/alienfan-SDK/alienfan-SDK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ namespace AlienFan_SDK {
while ((funcID = RunMainCommand(dev_controls[cDev].getPowerID, fIndex)) < 0x100
&& funcID > 0 || funcID > 0x130) { // bugfix for 0x132 fan for R7
fans.push_back(funcID & 0xff);
boosts.push_back(100);
fIndex++;
}
//printf("%d fans detected, last reply %d\n", fIndex, funcID);
Expand Down Expand Up @@ -253,8 +254,8 @@ namespace AlienFan_SDK {
}
//printf("%d TZ sensors detected.\n", HowManySensors());
// Set boost block
for (int i = 0; i < fans.size(); i++)
boosts.push_back(devs[aDev].maxBoost);
//for (int i = 0; i < fans.size(); i++)
// boosts.push_back(devs[aDev].maxBoost);
return true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion alienfan-tools/alienfan-SDK/alienfan-SDK.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace AlienFan_SDK {
struct ALIENFAN_DEVICE {
string mainCommand;
string gpuCommand;
byte maxBoost;
//byte maxBoost;
bool commandControlled;
short controlID;
ALIENFAN_COMMAND probe;
Expand Down
12 changes: 6 additions & 6 deletions alienfan-tools/alienfan-SDK/alienfan-controls.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,47 +58,47 @@ namespace AlienFan_SDK {
{ // Alienware m15/m17
"\\_SB.AMW1.WMAX", // main command
"\\_SB.PCI0.PEG0.PEGP.GPS", // GPU command
105, // max. boost
//105, // max. boost
true, // command controlled
0, // controlID
0x14, 2, // Probe command
},
{ // Dell G15
"\\_SB.AMW3.WMAX", // main command
"\\_SB.PCI0.GPP0.PEGP.GPS", // GPU command
150, // Max. boost
//150, // Max. boost
true, // command controlled
0, // controlID
0x14, 2, // Probe command
},
{ // Dell G5 SE
"\\_SB.AMWW.WMAX", // main command
"\\_SB.PC00.PEG1.PEGP.GPS", // GPU command
100, // Max. boost
//100, // Max. boost
true, // command controlled
0, // controlID
0x14, 2, // Probe command
},
{ // Aurora R7
"\\_SB.AMW1.WMAX", // main command
"\\_SB.PCI0.PEG0.PEGP.GPS", // GPU command
100, // Max. boost
//100, // Max. boost
true, // command controlled
1, // controlID
0x10, 2, // Probe command
},
{ // Area 51R4
"\\_SB.WMI2.WMAX", // main command
"\\_SB.PCI0.PEG0.PEGP.GPS", // GPU command
100, // Max. boost
//100, // Max. boost
true, // command controlled
1, // controlID
0x10, 2, // Probe command
},
{ // Alienware 13R2, 15R2
"\\_SB.AMW0.WMBC", // main command
"\\_SB.PCI0.PEG0.PEGP.GPS", // GPU command
99, // Max. boost
//99, // Max. boost
false, // command controlled
0, // controlID
0x14, 5, // Probe command
Expand Down
Loading

0 comments on commit 78696c9

Please sign in to comment.