Compare commits

...

7 Commits

Author SHA1 Message Date
Serge
77d89505b3 Update GHelper.csproj 2024-09-29 11:49:00 +02:00
Serge
4be790dce0 Update tweaks 2024-09-28 17:39:05 +02:00
Serge
c9698a1613 Strix impact DPI correction https://github.com/seerge/g-helper/issues/3146 2024-09-28 17:30:21 +02:00
Serge
819506e7ee UI Tweaks 2024-09-28 09:31:39 +02:00
Serge
489616d255 Option to disable "gpu_mode_force_set" for GA503 https://github.com/seerge/g-helper/issues/3175 2024-09-26 13:22:21 +02:00
Serge
1103ab70f6 Extra delay when setting Ultimate from Eco https://github.com/seerge/g-helper/issues/3170 2024-09-25 19:48:38 +02:00
Serge
dbf0cbc3ac Dependencies update 2024-09-25 17:48:45 +02:00
6 changed files with 16 additions and 16 deletions

View File

@@ -640,7 +640,7 @@ public static class AppConfig
public static bool IsForceSetGPUMode() public static bool IsForceSetGPUMode()
{ {
return Is("gpu_mode_force_set") || ContainsModel("503"); return Is("gpu_mode_force_set") || (ContainsModel("503") && IsNotFalse("gpu_mode_force_set"));
} }
public static bool IsNoGPUModes() public static bool IsNoGPUModes()

View File

@@ -145,7 +145,7 @@ namespace GHelper.AutoUpdate
Logger.WriteLine(ex.Message); Logger.WriteLine(ex.Message);
} }
Environment.Exit(0); Application.Exit();
} }
} }

View File

@@ -15,7 +15,7 @@
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<ProduceReferenceAssembly>False</ProduceReferenceAssembly> <ProduceReferenceAssembly>False</ProduceReferenceAssembly>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks> <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<AssemblyVersion>0.193</AssemblyVersion> <AssemblyVersion>0.194</AssemblyVersion>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
@@ -63,8 +63,8 @@
<PackageReference Include="NAudio" Version="2.1.0" /> <PackageReference Include="NAudio" Version="2.1.0" />
<PackageReference Include="NvAPIWrapper.Net" Version="0.8.1.101" /> <PackageReference Include="NvAPIWrapper.Net" Version="0.8.1.101" />
<PackageReference Include="System.Management" Version="8.0.0" /> <PackageReference Include="System.Management" Version="8.0.0" />
<PackageReference Include="TaskScheduler" Version="2.10.1" /> <PackageReference Include="TaskScheduler" Version="2.11.0" />
<PackageReference Include="WinForms.DataVisualization" Version="1.8.0" /> <PackageReference Include="WinForms.DataVisualization" Version="1.9.2" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@@ -92,13 +92,16 @@ namespace GHelper.Gpu
{ {
if (AppConfig.NoAutoUltimate()) if (AppConfig.NoAutoUltimate())
{ {
int standardStatus = Program.acpi.SetGPUEco(0); Program.acpi.SetGPUEco(0);
if (standardStatus == 0) Thread.Sleep(500);
int eco = Program.acpi.DeviceGet(AsusACPI.GPUEco);
Logger.WriteLine("Eco flag : " + eco);
if (eco == 1)
{ {
settings.VisualiseGPUMode(); settings.VisualiseGPUMode();
return; return;
} }
Thread.Sleep(100);
} }
status = Program.acpi.DeviceSet(AsusACPI.GPUMux, 0, "GPUMux"); status = Program.acpi.DeviceSet(AsusACPI.GPUMux, 0, "GPUMux");
restart = true; restart = true;

View File

@@ -86,7 +86,7 @@
public override int DPIIncrements() public override int DPIIncrements()
{ {
return 100; return 50;
} }

View File

@@ -226,13 +226,10 @@ namespace GHelper
public void _VisualiseNewCount(int updatesCount, TableLayoutPanel table) public void _VisualiseNewCount(int updatesCount, TableLayoutPanel table)
{ {
Invoke(delegate labelUpdates.Text = $"{Properties.Strings.NewUpdates}: {updatesCount}";
{ labelUpdates.ForeColor = colorTurbo;
labelUpdates.Text = $"{Properties.Strings.NewUpdates}: {updatesCount}"; labelUpdates.Font = new Font(labelUpdates.Font, FontStyle.Bold);
labelUpdates.ForeColor = colorTurbo; panelBios.AccessibleName = labelUpdates.Text;
labelUpdates.Font = new Font(labelUpdates.Font, FontStyle.Bold);
panelBios.AccessibleName = labelUpdates.Text;
});
} }
static string CleanupDeviceId(string input) static string CleanupDeviceId(string input)