aredden / electron-G14Control

Electron desktop application replacement for G14ControlR3.
MIT License
209 stars 27 forks source link

Fan is active on Charger #78

Open hasan-hasanov opened 2 years ago

hasan-hasanov commented 2 years ago

Hi,

I have developed custom plan to switch my laptop CPU and GPU fans off under 60 degrees. This works great on battery but as soon as I plug in the charger the fans does not respect my plans.

Here is how it looks like:

image

image

I would expect the fans to be active at 60 degrees but for some reason while it is on battery they get active at 45 degrees.

Also this is the logs file from today:

[ConfigLoader - INFO] - Persistent configuration exists.
[Main - INFO] - Running in production
[ConfigLoader - INFO] - Loading config from:
[C:\Users\hasan\AppData\Roaming\G14ControlV2\G14ControlV2.json]
[ConfigLoader - INFO] - Number of validation Errors: 0
[ConfigLoader - INFO] - Using appdata persistent config.
[ConfigLoader - INFO] - Loading config from:
[C:\Users\hasan\AppData\Roaming\G14ControlV2\G14ControlV2.json]
[ConfigLoader - INFO] - Loading config from:
[C:\Users\hasan\AppData\Roaming\G14ControlV2\G14ControlV2.json]
[Main - INFO] - Renderer process built and updater being initialized...
[AppUpdater - INFO] - Updater Initialized.
[AppUpdater - INFO] - Checking for update.
[BoostVisibility - INFO] - RegistryChecker result: True

[StartupChecks - INFO] - CheckBoostVisibilityResult true
[IPCEmitters - INFO] - Perfmon loop started...
[HardwareControl - INFO] - Which Charger Result: 65537
[AppUpdater - INFO] - Got update info:
{
  "version": "0.2.2",
  "files": [
    {
      "url": "G14ControlV2-Setup-0.2.2.exe",
      "sha512": "eUslFLtuDkuoLZXSmAkMBMRzpaFKfdr3BwJOQUUGFiw7Npz5hQlK3qBn1/QBhBpZev3RF+oZHwm5EfrL82ZZnA==",
      "size": 74586687
    }
  ],
  "path": "G14ControlV2-Setup-0.2.2.exe",
  "sha512": "eUslFLtuDkuoLZXSmAkMBMRzpaFKfdr3BwJOQUUGFiw7Npz5hQlK3qBn1/QBhBpZev3RF+oZHwm5EfrL82ZZnA==",
  "releaseDate": "2021-01-28T02:59:22.790Z",
  "releaseName": "G14ControlV2-v0.2.2",
  "releaseNotes": "<p><strong>Fixes</strong></p>\n<ul>\n<li>Object mutation was causing auto power switching plans to apply incorrectly after 3+ switches.</li>\n</ul>\n<p><strong>New Features</strong></p>\n<ul>\n<li>Added Fn+F5 plan switching when auto power switching is enabled.</li>\n<li>Added beta multi-language support for battery drain / cpu temperature counters, which can be activated by a switch on the settings page (requires app restart to take effect).</li>\n</ul>"
}
[HardwareControl - INFO] - Which Charger Result: 65537
[HardwareControl - INFO] - Which Charger Result: 65537
[Powercfg - INFO] - Successfully set AC boost to: 0
[Powercfg - INFO] - Successfully set DC boost to: 0
[Powercfg - INFO] - Need to switch windows plan to activate boost.
[G14ControlPlans - INFO] - Found other plan: Power Saver
[Powercfg - INFO] - Switched to plan: 61ef3aae-5a10-43ba-a3d8-d05a65057fea
[G14ControlPlans - INFO] - Switched to other plan: Power Saver
[Powercfg - INFO] - Switched to plan: 381b4222-f694-41f0-9685-ff5bb260df2e
[G14ControlPlans - INFO] - Successfully switched to: 381b4222-f694-41f0-9685-ff5bb260df2e
[Main - INFO] - Another process interupted my thoughts, how dare he!
[Main - INFO] - Another process interupted my thoughts, how dare he!
[Powercfg - INFO] - Switched to plan: 61ef3aae-5a10-43ba-a3d8-d05a65057fea
[HardwareControl - INFO] - Which Charger Result: 65537
[HardwareControl - INFO] - Which Charger Result: 65537
[HardwareControl - INFO] - Which Charger Result: 65537
[HardwareControl - INFO] - Which Charger Result: 65537
[HardwareControl - INFO] - Which Charger Result: 65537
[HardwareControl - INFO] - Which Charger Result: 65537
[BatteryListener - INFO] - Successfully removed previous task:

[ConfigLoader - INFO] - Attempting to save config.
[RogKeyRemapperListener - INFO] - Failed to remap ROG Key.
[HardwareControl - INFO] - Which Charger Result: 65537
[RogKeyRemapperListener - INFO] - Failed to remap ROG Key.
[HardwareControl - INFO] - Which Charger Result: 65536
[HardwareControl - INFO] - Which Charger Result: 65536
[HardwareControl - INFO] - Which Charger Result: 65536
[HardwareControl - INFO] - Which Charger Result: 65536
[HardwareControl - INFO] - Which Charger Result: 65536
[HardwareControl - INFO] - Which Charger Result: 65536
[HardwareControl - INFO] - Which Charger Result: 65536
[HardwareControl - INFO] - Which Charger Result: 65536
[ConfigLoader - INFO] - Attempting to save config.
[ConfigLoader - INFO] - Attempting to save config.
[ConfigLoader - INFO] - Attempting to save config.
[ConfigLoader - INFO] - Attempting to save config.
[ConfigLoader - INFO] - Attempting to save config.
[ConfigLoader - INFO] - Attempting to save config.
[ConfigLoader - INFO] - Attempting to save config.
[ConfigLoader - INFO] - Attempting to save config.
[ConfigLoader - INFO] - Attempting to save config.
[HardwareControl - INFO] - Which Charger Result: 65536
[HardwareControl - INFO] - Which Charger Result: 65536
[HardwareControl - INFO] - Which Charger Result: 65536
[HardwareControl - INFO] - Which Charger Result: 65537
[HardwareControl - INFO] - Which Charger Result: 65537
[HardwareControl - INFO] - Which Charger Result: 65537
[HardwareControl - INFO] - Which Charger Result: 65537
[HardwareControl - INFO] - Which Charger Result: 65537
[HardwareControl - INFO] - Which Charger Result: 65537
[HardwareControl - INFO] - Which Charger Result: 65537
[HardwareControl - INFO] - Which Charger Result: 65536
[HardwareControl - INFO] - Which Charger Result: 65536
[HardwareControl - INFO] - Which Charger Result: 65536
[HardwareControl - INFO] - Which Charger Result: 65536
[HardwareControl - INFO] - Which Charger Result: 65536
[HardwareControl - INFO] - Which Charger Result: 65536
[HardwareControl - INFO] - Which Charger Result: 65536
[HardwareControl - INFO] - Which Charger Result: 65536

Am I doing something wrong? I can provide some more info if needed.

aredden commented 2 years ago

Ah, that's because my fan graph is a bit misleading. I didn't realize it when I created it initially, but turning off the fans with atrofac isn't actually possible. The lowest it will go with a manual curve is somewhere around 20%, and it decides when it wants to fully turn off on it's own.