Extra Backlight control

This commit is contained in:
Serge
2023-05-08 10:39:09 +02:00
parent a75d1ad604
commit 5c3f1259f6
8 changed files with 430 additions and 115 deletions

View File

@@ -124,6 +124,15 @@ public static class HardwareControl
return false;
}
public static NvidiaGpuControl? GetNvidiaGpuControl()
{
if ((bool)GpuControl?.IsNvidia)
return (NvidiaGpuControl)GpuControl;
else
return null;
}
public static void RecreateGpuControlWithDelay(int delay = 3)
{
// Re-enabling the discrete GPU takes a bit of time,