Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable "Windows Power Mode" switching #3287

Closed
2 tasks done
Katzenwerfer opened this issue Oct 23, 2024 · 8 comments
Closed
2 tasks done

Disable "Windows Power Mode" switching #3287

Katzenwerfer opened this issue Oct 23, 2024 · 8 comments
Labels
question Further information is requested

Comments

@Katzenwerfer
Copy link

Rules

  • I made myself familiar with the Readme, FAQ and Troubleshooting.
  • I understand that, if insufficient information will be provided, my issue will be closed without an answer.

Is your feature request related to a problem? Please describe

In a recent Windows update, a button was added to the power settings to choose battery and plugged-in "Windows Power Mode" separately. Currently, G-Helper only modifies the plugged-in mode when switching profiles.

Describe the solution you'd like

I would like to be able to disable this feature to manage it directly from the system's settings.

Describe alternatives you've considered

Ideally, it must be possible to set modes for both cases inside G-Helper's profiles, but having the ability to disable it outright would be nice too.

Device and Model

Asus TUF Gaming A17

Additional information.

image

@seerge
Copy link
Owner

seerge commented Oct 23, 2024

@Katzenwerfer hello, is it in a new 24H2 windows update ? Cause I don't have that option in the settings.

Currently app uses windows API to set an "overlay power scheme" (this is how power modes are called there)

[DllImportAttribute("powrprof.dll", EntryPoint = "PowerSetActiveOverlayScheme")]

But that doesn't separate if mode is on battery or plugged in. I can imagine it would adjust "on battery" mode when you are actually on battery ? Can you check ?

Of course you already get automatic power mode changes anyway, cause G-Helper just remembers last used mode per battery / plugged in case and sets it . And this affects not only windows power mode but also "bios-mode", i.e. Silent / Blanced / Turbo

@seerge seerge added the question Further information is requested label Oct 23, 2024
@Katzenwerfer
Copy link
Author

is it in a new 24H2 windows update ? Cause I don't have that option in the settings.

I would assume, I'm using an LTSC edition of Windows, so I would guess this was included in a recent quality update.

But that doesn't separate if mode is on battery or plugged in. I can imagine it would adjust "on battery" mode when you are actually on battery ? Can you check ?

This seems to be the case, the modified scheme depends on whether the device is plugged in or not

@seerge
Copy link
Owner

seerge commented Oct 24, 2024

@Katzenwerfer ok, so it actually already works as it should? Adjusts battery power mode when on battery?

@Katzenwerfer
Copy link
Author

@Katzenwerfer ok, so it actually already works as it should? Adjusts battery power mode when on battery?

Indeed it does

@seerge seerge closed this as completed Oct 25, 2024
@Katzenwerfer
Copy link
Author

I would like to be able to disable this feature to manage it directly from the system's settings.

That said, I do wonder if there would be a possibility to have the former request, as to respect whatever Windows has set already.
I still want to disable the power mode switching to control both cases separately, even on a same profile.

seerge added a commit that referenced this issue Oct 25, 2024
@seerge
Copy link
Owner

seerge commented Oct 25, 2024

@Katzenwerfer ok, even though I sincerely don't understand why you need that I have added an optional param that you can set under %appdata%\GHelper\config.json to skip power mode setting completely

Add

"skip_powermode": 1,

And try this build
GHelper.zip

@NatsuZoraKanata
Copy link

With the addition of the optional parameter, is Ghelper not hiding the Windows Power Mode option from the GUI?
Hopefully it will be possible to hide this option and leave it entirely up to Windows settings.

@seerge
Copy link
Owner

seerge commented Oct 31, 2024

@NatsuZoraKanata when Power Mode switching is disabled - Fans + Power will just show currently active Power Mode in windows (it reads it. I think it's good to keep it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants