mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
GPU Restart
This commit is contained in:
@@ -101,8 +101,9 @@ public class NvidiaGpuControl : IGpuControl
|
||||
var pnpDeviceId = internalGpu.BusInformation.PCIIdentifiers.ToString();
|
||||
Logger.WriteLine("Device ID:"+ pnpDeviceId);
|
||||
RunCMD("pnputil", $"/disable-device /deviceid \"{pnpDeviceId}\"");
|
||||
Thread.Sleep(1000);
|
||||
Thread.Sleep(2000);
|
||||
RunCMD("pnputil", $"/enable-device /deviceid \"{pnpDeviceId}\"");
|
||||
Thread.Sleep(1000);
|
||||
}
|
||||
catch (Exception ex )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user