Re-connect to GPU in fans+power

This commit is contained in:
Serge
2023-07-18 15:47:53 +02:00
parent b46e932a0d
commit 1b8de79667
3 changed files with 3 additions and 3 deletions

View File

@@ -411,7 +411,7 @@ namespace GHelper
return; return;
} }
if (HardwareControl.GpuControl is null) HardwareControl.RecreateGpuControl(); if (HardwareControl.GpuControl is null || !HardwareControl.GpuControl.IsValid) HardwareControl.RecreateGpuControl();
if (HardwareControl.GpuControl is not null && HardwareControl.GpuControl.IsNvidia) if (HardwareControl.GpuControl is not null && HardwareControl.GpuControl.IsNvidia)
{ {

View File

@@ -154,7 +154,7 @@ namespace GHelper.Gpu
if (eco == 0) if (eco == 0)
{ {
await Task.Delay(TimeSpan.FromMilliseconds(5000)); await Task.Delay(TimeSpan.FromMilliseconds(3000));
HardwareControl.RecreateGpuControl(); HardwareControl.RecreateGpuControl();
Program.modeControl.SetGPUClocks(false); Program.modeControl.SetGPUClocks(false);
} }

View File

@@ -206,7 +206,7 @@ public static class HardwareControl
} }
catch (Exception ex) catch (Exception ex)
{ {
Debug.WriteLine(ex.ToString()); Debug.WriteLine("Can't connect to GPU " + ex.ToString());
} }
} }