mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Eco tweaks
This commit is contained in:
@@ -90,10 +90,10 @@ public class NvidiaGpuControl : IGpuControl
|
||||
}
|
||||
|
||||
|
||||
public void RestartGPU()
|
||||
public bool RestartGPU()
|
||||
{
|
||||
|
||||
if (!IsValid) return;
|
||||
if (!IsValid) return false;
|
||||
|
||||
try
|
||||
{
|
||||
@@ -104,10 +104,12 @@ public class NvidiaGpuControl : IGpuControl
|
||||
Thread.Sleep(3000);
|
||||
RunCMD("pnputil", $"/enable-device /deviceid \"{pnpDeviceId}\"");
|
||||
Thread.Sleep(2000);
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex )
|
||||
{
|
||||
Logger.WriteLine(ex.ToString());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user