From 6d853767345a3b284e129151d368fa95f6630990 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Wed, 10 May 2023 23:24:54 +0200 Subject: [PATCH] Extra logs --- app/Gpu/NvidiaGpuControl.cs | 4 ++-- app/NativeMethods.cs | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/Gpu/NvidiaGpuControl.cs b/app/Gpu/NvidiaGpuControl.cs index 2cbe98f9..be3a51be 100644 --- a/app/Gpu/NvidiaGpuControl.cs +++ b/app/Gpu/NvidiaGpuControl.cs @@ -101,9 +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(2000); + Thread.Sleep(3000); RunCMD("pnputil", $"/enable-device /deviceid \"{pnpDeviceId}\""); - Thread.Sleep(1000); + Thread.Sleep(2000); } catch (Exception ex ) { diff --git a/app/NativeMethods.cs b/app/NativeMethods.cs index fcd21691..a2264a9a 100644 --- a/app/NativeMethods.cs +++ b/app/NativeMethods.cs @@ -629,8 +629,8 @@ public class NativeMethods displayNum = count; } count++; - Logger.WriteLine(device.outputTechnology.ToString()); - Logger.WriteLine(device.monitorFriendlyDeviceName); + //Logger.WriteLine(device.outputTechnology.ToString()); + //Logger.WriteLine(device.monitorFriendlyDeviceName); } var screens = Screen.AllScreens; @@ -644,7 +644,7 @@ public class NativeMethods { laptopScreen = screen.DeviceName; } - Logger.WriteLine(screen.DeviceName); + //Logger.WriteLine(screen.DeviceName); count++; } } @@ -761,6 +761,7 @@ public class NativeMethods { PowerSetActiveScheme(IntPtr.Zero, new Guid(scheme)); PowerSetActiveOverlayScheme(new Guid(scheme)); + Logger.WriteLine(scheme); } public static void SetPowerScheme(int mode)