mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Extra Backlight control
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user