mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Charger delay https://github.com/seerge/g-helper/discussions/2020
This commit is contained in:
@@ -185,7 +185,7 @@ namespace GHelper.Gpu
|
||||
if (SystemInformation.PowerStatus.PowerLineStatus != PowerLineStatus.Online) return false;
|
||||
if (!AppConfig.Is("optimized_usbc")) return true;
|
||||
|
||||
if (AppConfig.ContainsModel("FA507")) Thread.Sleep(600);
|
||||
if (AppConfig.ContainsModel("FA507")) Thread.Sleep(1000);
|
||||
|
||||
int chargerMode = Program.acpi.DeviceGet(AsusACPI.ChargerMode);
|
||||
Logger.WriteLine("ChargerStatus: " + chargerMode);
|
||||
|
||||
@@ -249,6 +249,13 @@ namespace GHelper
|
||||
gpuControl.StandardModeFix();
|
||||
}
|
||||
|
||||
int delay = AppConfig.Get("charger_delay");
|
||||
if (delay > 0)
|
||||
{
|
||||
Logger.WriteLine($"Charger Delay: {delay}");
|
||||
Thread.Sleep(delay);
|
||||
}
|
||||
|
||||
if (SystemInformation.PowerStatus.PowerLineStatus == isPlugged) return;
|
||||
SetAutoModes(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user