Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesCJ60 committed Mar 23, 2024
1 parent 7ac933f commit 43b2343
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,15 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:Universal x86 Tuning Utility"
"ProductCode" = "8:{D63A8D29-2A35-4D7C-BEDC-4F672EFA0395}"
"PackageCode" = "8:{BC101FBC-EE12-41C4-9C55-686FC26CF096}"
"ProductCode" = "8:{BF615380-80DD-40CF-978D-1253F2C4517F}"
"PackageCode" = "8:{F2A0D547-5B82-4393-8E91-58E15014F517}"
"UpgradeCode" = "8:{300E743A-4C69-440D-9425-14C446AB2658}"
"AspNetVersion" = "8:"
"RestartWWWService" = "11:FALSE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:FALSE"
"ProductVersion" = "8:2.2.6"
"ProductVersion" = "8:2.2.8"
"Manufacturer" = "8:JamesCJ60"
"ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:"
Expand Down
2 changes: 1 addition & 1 deletion Universal x86 Tuning Utility/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static bool IsAdministrator()
return principal.IsInRole(WindowsBuiltInRole.Administrator);
}

public static string version = "2.2.6";
public static string version = "2.2.8";
private Mutex mutex;
private const string MutexName = "UniversalX86TuningUtility";

Expand Down
26 changes: 13 additions & 13 deletions Universal x86 Tuning Utility/Scripts/PremadePresets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,34 +26,34 @@ public static void SetPremadePresets()

if (Family.TYPE == Family.ProcessorType.Amd_Apu)
{
uri = new Uri("pack://application:,,,/Assets/Laptops/Framework/framework-laptop-16.png");
if (GetSystemInfo.Product.ToLower().Contains("laptop 16 (amd ryzen 7040") && GetSystemInfo.Manufacturer.ToLower().Contains("framework"))
{
uri = new Uri("pack://application:,,,/Assets/Laptops/Framework/framework-laptop-16.png");
bool has7700S = GetSystemInfo.IsGPUPresent("AMD Radeon(TM) RX 7700S");

if (has7700S)
{
EcoPreset = "--tctl-temp=95 --cHTC-temp=95 --apu-skin-temp=45 --stapm-limit=30000 --fast-limit=35000 --stapm-time=64 --slow-limit=30000 --slow-time=128 --vrm-current=180000 --vrmmax-current=180000 --vrmsoc-current=180000 --vrmsocmax-current=180000 --vrmgfx-current=180000 --Win-Power=0 ";
BalPreset = "--tctl-temp=95 --cHTC-temp=95 --apu-skin-temp=50 --stapm-limit=95000 --fast-limit=950000 --stapm-time=64 --slow-limit=95000 --slow-time=128 --vrm-current=180000 --vrmmax-current=180000 --vrmsoc-current=180000 --vrmsocmax-current=180000 --vrmgfx-current=180000 --Win-Power=1 ";
PerformancePreset = "--tctl-temp=100 --cHTC-temp=100 --apu-skin-temp=50 --stapm-limit=100000 --fast-limit=100000 --stapm-time=64 --slow-limit=120000 --slow-time=128 --vrm-current=180000 --vrmmax-current=180000 --vrmsoc-current=180000 --vrmsocmax-current=180000 --vrmgfx-current=180000 --Win-Power=2 ";
ExtremePreset = "--tctl-temp=100 --cHTC-temp=100 --apu-skin-temp=50 --stapm-limit=120000 --fast-limit=140000 --stapm-time=64 --slow-limit=120000 --slow-time=128 --vrm-current=200000 --vrmmax-current=200000 --vrmsoc-current=200000 --vrmsocmax-current=200000 --vrmgfx-current=200000 --Win-Power=2 ";
EcoPreset = "--tctl-temp=95 --cHTC-temp=95 --apu-skin-temp=45 --stapm-limit=30000 --fast-limit=35000 --slow-limit=30000 --vrm-current=180000 --vrmmax-current=180000 --vrmsoc-current=180000 --vrmsocmax-current=180000 --vrmgfx-current=180000 --Win-Power=0 ";
BalPreset = "--tctl-temp=95 --cHTC-temp=95 --apu-skin-temp=50 --stapm-limit=95000 --fast-limit=950000 --slow-limit=95000 --vrm-current=180000 --vrmmax-current=180000 --vrmsoc-current=180000 --vrmsocmax-current=180000 --vrmgfx-current=180000 --Win-Power=1 ";
PerformancePreset = "--tctl-temp=100 --cHTC-temp=100 --apu-skin-temp=50 --stapm-limit=100000 --fast-limit=100000 --slow-limit=120000 --vrm-current=180000 --vrmmax-current=180000 --vrmsoc-current=180000 --vrmsocmax-current=180000 --vrmgfx-current=180000 --Win-Power=2 ";
ExtremePreset = "--tctl-temp=100 --cHTC-temp=100 --apu-skin-temp=50 --stapm-limit=120000 --fast-limit=140000 --slow-limit=120000 --vrm-current=200000 --vrmmax-current=200000 --vrmsoc-current=200000 --vrmsocmax-current=200000 --vrmgfx-current=200000 --Win-Power=2 ";
}
else
{
EcoPreset = "--tctl-temp=95 --cHTC-temp=95 --apu-skin-temp=45 --stapm-limit=6000 --fast-limit=8000 --stapm-time=64 --slow-limit=6000 --slow-time=128 --vrm-current=180000 --vrmmax-current=180000 --vrmsoc-current=180000 --vrmsocmax-current=180000 --vrmgfx-current=180000 --Win-Power=0 ";
BalPreset = "--tctl-temp=95 --cHTC-temp=95 --apu-skin-temp=50 --stapm-limit=35000 --fast-limit=45000 --stapm-time=64 --slow-limit=38000 --slow-time=128 --vrm-current=180000 --vrmmax-current=180000 --vrmsoc-current=180000 --vrmsocmax-current=180000 --vrmgfx-current=180000 --Win-Power=1 ";
PerformancePreset = "--tctl-temp=100 --cHTC-temp=95 --apu-skin-temp=50 --stapm-limit=45000 --fast-limit=55000 --stapm-time=64 --slow-limit=50000 --slow-time=128 --vrm-current=180000 --vrmmax-current=180000 --vrmsoc-current=180000 --vrmsocmax-current=180000 --vrmgfx-current=180000 --Win-Power=2 ";
ExtremePreset = "--tctl-temp=100 --cHTC-temp=95 --apu-skin-temp=50 --stapm-limit=55000 --fast-limit=70000 --stapm-time=64 --slow-limit=65000 --slow-time=128 --vrm-current=180000 --vrmmax-current=180000 --vrmsoc-current=180000 --vrmsocmax-current=180000 --vrmgfx-current=180000 --Win-Power=2 ";
EcoPreset = "--tctl-temp=95 --cHTC-temp=95 --apu-skin-temp=45 --stapm-limit=6000 --fast-limit=8000 --slow-limit=6000 --vrm-current=180000 --vrmmax-current=180000 --vrmsoc-current=180000 --vrmsocmax-current=180000 --vrmgfx-current=180000 --Win-Power=0 ";
BalPreset = "--tctl-temp=95 --cHTC-temp=95 --apu-skin-temp=50 --stapm-limit=35000 --fast-limit=45000 --slow-limit=38000 --vrm-current=180000 --vrmmax-current=180000 --vrmsoc-current=180000 --vrmsocmax-current=180000 --vrmgfx-current=180000 --Win-Power=1 ";
PerformancePreset = "--tctl-temp=100 --cHTC-temp=100 --apu-skin-temp=50 --stapm-limit=45000 --fast-limit=55000 --slow-limit=50000 --vrm-current=180000 --vrmmax-current=180000 --vrmsoc-current=180000 --vrmsocmax-current=180000 --vrmgfx-current=180000 --Win-Power=2 ";
ExtremePreset = "--tctl-temp=100 --cHTC-temp=100 --apu-skin-temp=50 --stapm-limit=55000 --fast-limit=70000 --slow-limit=65000 --vrm-current=180000 --vrmmax-current=180000 --vrmsoc-current=180000 --vrmsocmax-current=180000 --vrmgfx-current=180000 --Win-Power=2 ";
}
}
else if (GetSystemInfo.Product.ToLower().Contains("laptop 13 (amd ryzen 7040") && GetSystemInfo.Manufacturer.ToLower().Contains("framework"))
{
uri = new Uri("pack://application:,,,/Assets/Laptops/Framework/framework-laptop-13.png");

EcoPreset = "--tctl-temp=95 --cHTC-temp=95 --apu-skin-temp=45 --stapm-limit=8000 --fast-limit=10000 --stapm-time=64 --slow-limit=8000 --slow-time=128 --vrm-current=180000 --vrmmax-current=180000 --vrmsoc-current=180000 --vrmsocmax-current=180000 --vrmgfx-current=180000 --Win-Power=0 ";
BalPreset = "--tctl-temp=95 --cHTC-temp=95 --apu-skin-temp=50 --stapm-limit=15000 --fast-limit=18000 --stapm-time=64 --slow-limit=15000 --slow-time=128 --vrm-current=180000 --vrmmax-current=180000 --vrmsoc-current=180000 --vrmsocmax-current=180000 --vrmgfx-current=180000 --Win-Power=1 ";
PerformancePreset = "--tctl-temp=100 --cHTC-temp=95 --apu-skin-temp=50 --stapm-limit=28000 --fast-limit=35000 --stapm-time=64 --slow-limit=28000 --slow-time=128 --vrm-current=180000 --vrmmax-current=180000 --vrmsoc-current=180000 --vrmsocmax-current=180000 --vrmgfx-current=180000 --Win-Power=2 ";
ExtremePreset = "--tctl-temp=100 --cHTC-temp=95 --apu-skin-temp=50 --stapm-limit=35000 --fast-limit=60000 --stapm-time=64 --slow-limit=35000 --slow-time=128 --vrm-current=180000 --vrmmax-current=180000 --vrmsoc-current=180000 --vrmsocmax-current=180000 --vrmgfx-current=180000 --Win-Power=2 ";
EcoPreset = "--tctl-temp=95 --cHTC-temp=95 --apu-skin-temp=45 --stapm-limit=8000 --fast-limit=10000 --slow-limit=8000 --vrm-current=180000 --vrmmax-current=180000 --vrmsoc-current=180000 --vrmsocmax-current=180000 --vrmgfx-current=180000 --Win-Power=0 ";
BalPreset = "--tctl-temp=95 --cHTC-temp=95 --apu-skin-temp=50 --stapm-limit=15000 --fast-limit=18000 --slow-limit=15000 --vrm-current=180000 --vrmmax-current=180000 --vrmsoc-current=180000 --vrmsocmax-current=180000 --vrmgfx-current=180000 --Win-Power=1 ";
PerformancePreset = "--tctl-temp=100 --cHTC-temp=100 --apu-skin-temp=50 --stapm-limit=28000 --fast-limit=35000 --slow-limit=28000 --vrm-current=180000 --vrmmax-current=180000 --vrmsoc-current=180000 --vrmsocmax-current=180000 --vrmgfx-current=180000 --Win-Power=2 ";
ExtremePreset = "--tctl-temp=100 --cHTC-temp=100 --apu-skin-temp=50 --stapm-limit=35000 --fast-limit=60000 --slow-limit=35000 --vrm-current=180000 --vrmmax-current=180000 --vrmsoc-current=180000 --vrmsocmax-current=180000 --vrmgfx-current=180000 --Win-Power=2 ";
}
else {
if (Family.FAM < Family.RyzenFamily.Matisse)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<UseWindowsForms>True</UseWindowsForms>
<SignAssembly>False</SignAssembly>
<Copyright>© UXTU Team 2020 - 2024</Copyright>
<AssemblyVersion>2.2.6</AssemblyVersion>
<FileVersion>2.2.6</FileVersion>
<AssemblyVersion>2.2.8</AssemblyVersion>
<FileVersion>2.2.8</FileVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<SupportedOSPlatformVersion>10.0.22621.0</SupportedOSPlatformVersion>
<Version>2.2.6</Version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<TextBlock
FontSize="18"
Foreground="#B7FFFFFF"
Text="V2.3.0 Beta 1" />
Text="V2.3.0 Beta 2" />
<ui:Button
Name="btnPremade"
Height="36"
Expand Down

0 comments on commit 43b2343

Please sign in to comment.