mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
System Startup charge limiter
This commit is contained in:
@@ -127,6 +127,8 @@ public class Startup
|
|||||||
else
|
else
|
||||||
ProcessHelper.RunAsAdmin();
|
ProcessHelper.RunAsAdmin();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Logger.WriteLine("Startup task scheduled: " + strExeFilePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
ScheduleCharge();
|
ScheduleCharge();
|
||||||
|
|||||||
@@ -343,7 +343,7 @@ namespace GHelper
|
|||||||
int limit = 80;
|
int limit = 80;
|
||||||
if (limit > 0 && limit < 100)
|
if (limit > 0 && limit < 100)
|
||||||
{
|
{
|
||||||
Logger.WriteLine($"Startup Battery Limit {limit}");
|
Logger.WriteLine($"------- Startup Battery Limit {limit} -------");
|
||||||
acpi = new AsusACPI(true);
|
acpi = new AsusACPI(true);
|
||||||
acpi.DeviceSet(AsusACPI.BatteryLimit, limit, "Limit");
|
acpi.DeviceSet(AsusACPI.BatteryLimit, limit, "Limit");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user