mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Re-connect to GPU in fans+power
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user