aredden / electron-G14Control

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

dGPU enable/disable #59

Closed flukejones closed 3 years ago

flukejones commented 3 years ago

Hi! Maintainer of https://gitlab.com/asus-linux here. Been wondering how exactly you enable/disable the dGPU on Windows.

I see SW_DYNAMC_GRAPHICS = "e276e160-7cb0-43c6-b20b-73f5dce39954" and related calls using it, but I'm having a hard time mapping out precisely what that call is.

Through a whole lot of persistence I've written this kernel patch to enable/disable the dGPU using the nasty ACPI hack ASUS seems to have included (this does in ACPI what I do in software - remove the dGPU from the device tree).

So I'm wondering if that call you do in your project maps to that. And I think it's recent models only, like the GA401QM.

I've solved most issues and reversed most things on these laptops, but there are still some small things like that.

aredden commented 3 years ago

It's not actually a full enable / disable. I've found that fully disabling the gpu actually increases the power draw, which is frustrating. That is just a mapping to the registry entry for switchable dynamic graphics in power options, which is in the same area where you disable boost, and also in the gui "power options" per windows power plan.. which allows you to change between 'power saving graphics' and 'performance', which I assume has to do with nvidia gpu vs igpu, since that is what windows describes when you change the default graphics renderer for a specific program.. image

aredden commented 3 years ago

In other words, I'm guessing lol