Replies: 2 comments
|
@request3 hello, Try this build and check log from C:\ProgramData\GHelepr folder if startup task runs / sets limit correctly |
0 replies
|
Tested — the new build works correctly. After reboot, before user login, the battery charge limit is applied properly. The startup task now loads the correct config:
I restored the SYSTEM profile config without Thank you! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I found a reproducible problem with
GHelperChargerunning before user logon.Problem
I use G-Helper 0.269 with an 80% battery charge limit.
The normal user config contains:
and:
C:\ProgramData\GHelper\config.jsonalso contains
charge_limit = 80.The scheduled task
GHelperChargeis correctly configured to run as:SYSTEMwith:
GHelper.exe chargeand the task completes successfully with:
LastTaskResult : 0However, before Windows user logon the battery continues charging.
What I found
The log showed that
GHelperCharge, despite running as SYSTEM, was loading this config:C:\Windows\System32\config\systemprofile\AppData\Roaming\GHelper\config.jsoninstead of:
C:\ProgramData\GHelper\config.jsonThe systemprofile config contained only:
{ "performance_mode": 0 }so there was no
charge_limitvalue.The log contained:
but there was no
Startup Battery Limit 80orLimit = 80 : OK.Workaround / confirmation
I manually added:
to:
C:\Windows\System32\config\systemprofile\AppData\Roaming\GHelper\config.jsonThen I manually ran the existing
GHelperChargescheduled task.Immediately the log changed to:
After rebooting, the 80% battery charge limit now works correctly before user logon.
Possible cause
I noticed that current
ProcessHelper.IsRunningAsSystem()identifies SYSTEM by comparing the account name:On my localized Windows installation this appears to return false.
Because of that,
AppConfigdoes not select the fallback config fromCommonApplicationData/C:\ProgramData\GHelper, and instead uses the SYSTEM profile%APPDATA%.Using the LocalSystem SID instead of the localized account name may be more reliable, for example:
Environment
ATKWMIACPIIO: Running, SYSTEM_STARTI hope this helps identify the issue. I can provide the full G-Helper SYSTEM log or perform additional tests if needed.
All reactions