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

Long delay/Occasional crash when switching from dGPU to iGPU #680

Closed
jacobleblanc-cs opened this issue Jun 26, 2023 · 17 comments
Closed

Long delay/Occasional crash when switching from dGPU to iGPU #680

jacobleblanc-cs opened this issue Jun 26, 2023 · 17 comments
Labels
question Further information is requested

Comments

@jacobleblanc-cs
Copy link

jacobleblanc-cs commented Jun 26, 2023

The Issue

Hello,

While using the Optimized GPU setting, G-helper is able to switch to my dGPU normally when I plug in AC power, but after unplugging it either takes a long time to switch back, or the program hangs and I have to force close it and try again. Steps to reproduce on my machine are simply to plug in the charger, let the laptop switch GPUs, then later unplug the adapter and wait for the program to try to switch back. With Armoury Crate this transition is very fast and reliable; I know the re-implementation might not function the same way but I just wanted to see if there was any hope of a fix on my end or yours.

Thanks in advance for your help!

App Logs
log.txt

Desktop (please complete the following information):

  • Windows 11
  • ROG Zephyrus G14 (2023, RTX 4060)
  • I should mention that I run an undervolt, but I tested with default voltages too and got the same result.

Asus software
No ASUS software installed or running

PS: This program is a godsend and despite this issue I am very pleased with the state of it, great work

@seerge
Copy link
Owner

seerge commented Jun 26, 2023

@jacob-devel both AC / g-helper use the same command to turn GPU on / off.

You can run it in powershell (as admin) by yourself even

(Get-WmiObject -Namespace Root/WMI -Class AsusAtkWmi_WMNB).DEVS(0x00090020, 1) - to disable GPU

(Get-WmiObject -Namespace Root/WMI -Class AsusAtkWmi_WMNB).DEVS(0x00090020, 0) - to enable GPU

It could be that when nvidia display mode is not set to optimus, switching GPU off takes some time (AC just won't even let you do that case). Try to use latest https://github.com/seerge/g-helper/releases/tag/v0.91 where it will show a warning in those situations.

@seerge seerge added the question Further information is requested label Jun 26, 2023
@Halry
Copy link

Halry commented Jun 28, 2023

I don't think it relates to nvidia display mode. I haven't touch the nvidia driver panel, but I still occurred brightness control problem and the switching hang issue(I had checked and it was on "Auto"). All I can do is instead of control the gpu in ghelper, I use windows power option to force disable dGPU on battery and enable dGPU on AC and it works pretty good. Maybe something new on 2023 models (G14 2023 7940HS+4060) change somethings.

Edit: Windows power option will not able to disable dGPU, it might just less aggressive I think?

@seerge
Copy link
Owner

seerge commented Jun 28, 2023

@Halry having display mode on Auto actually can drive screen with nvidia (and cause issues afterwards), that’s why Armory demands to set Otimus prior to disabling GPU

@Halry
Copy link

Halry commented Jun 28, 2023

Oh, sorry. I must misread the issue about the brightness control. I still have these problems.
My laptop is on battery now. I booted up with standard mode, I can change from "Standard" to "Eco" and then "Eco" to "Standard" once. Then I am not able to change back to Eco unless I restart the laptop.
image

Secondly, I don't know whether the brightness problem is related. I can change brightness in Eco mode or when boot up with standard mode. But I can't change brightness anymore if I try to change from Eco to Standard.

@Halry
Copy link

Halry commented Jun 28, 2023

It seems to run the powershell command can disable dGPU, but still no luck with brightness control, even with dGPU disabled.
image

And then will not able to wake the dGPU up.
image

@seerge
Copy link
Owner

seerge commented Jun 28, 2023

@Halry I would recommend to do a "clean" test.

Make sure you use latest version https://github.com/seerge/g-helper/releases (i.e. 0.92 or at least 0.91)

  1. Do a hard-reset of your laptop (it won't touch any data just in case). Turn it off, then press and hold power button for 30 seconds, then boot normally. It should reset all this switches into default states - i.e. enable GPU (it also helps when your wifi adapter hangs or so :)
  2. After fresh reboot make sure GPU is in Standard mode (i.e. simply enabled).
  3. Set NVidia display mode to "Optimus" explicitly
  4. Then try to disable GPU, enable it back, check if brightness works :)

As according to this topic #660 and @GibStorm (who experienced it), brightness issue seem to be connected with not using Optimus (i.e. turning GPU off in a moment when it actually drives display).

P.S. I don't own 2023 device so I simply rely on what other people write here :)

@seerge
Copy link
Owner

seerge commented Jun 29, 2023

@jacob-devel hello, did you had a chance to check if this is connected to using / not using optimus as i asked in first message? :)

@Halry
Copy link

Halry commented Jun 29, 2023

@Halry I would recommend to do a "clean" test.

Make sure you use latest version https://github.com/seerge/g-helper/releases (i.e. 0.92 or at least 0.91)

  1. Do a hard-reset of your laptop (it won't touch any data just in case). Turn it off, then press and hold power button for 30 seconds, then boot normally. It should reset all this switches into default states - i.e. enable GPU (it also helps when your wifi adapter hangs or so :)
  2. After fresh reboot make sure GPU is in Standard mode (i.e. simply enabled).
  3. Set NVidia display mode to "Optimus" explicitly
  4. Then try to disable GPU, enable it back, check if brightness works :)

As according to this topic #660 and @GibStorm (who experienced it), brightness issue seem to be connected with not using Optimus (i.e. turning GPU off in a moment when it actually drives display).

P.S. I don't own 2023 device so I simply rely on what other people write here :)

Unfortunately, brightness control still won't work correctly. And then switch back to Eco mode will cause ghelper hanged then popup a dialog ask me to restart the dGPU. However, it won't work and laptop stuck in hybrid mode. And of course dGPU still working.

I am pretty busy these days, I will install the ASUS software ASAP to try whether they disable dGPU for real or not. Seems dGPU will stuck if try to switch on and then off. Maybe the problem only occur if use nvidia dGPU together with AMD iGPU. Rarely reported by intel user.

@seerge
Copy link
Owner

seerge commented Jun 29, 2023

@Halry oke, thanks for testing :) On this stage I'm not aware why it happens (+ don't have a 2023 device to test), so I think it's indeed better in your case to stick to asus apps.

@Halry
Copy link

Halry commented Jun 29, 2023

Thank you, I would rather stick with GHelper than using these ASUS apps.

@newKJW
Copy link

newKJW commented Jun 30, 2023

good news for g14 2023,
asus updated bios from 309 to 310.
this bios update fixed switching issue that was talking here.
now everything works good.
hooray!

@seerge
Copy link
Owner

seerge commented Jun 30, 2023

@Kojunwon that's a good news! @Halry @jacob-devel does it apply to you as well ?

@Halry
Copy link

Halry commented Jul 1, 2023

@Kojunwon that's a good news! @Halry @jacob-devel does it apply to you as well ?

Yes, all problems have gone. I think this issue can be closed.

@frackerinho
Copy link

Hi, i've the same issue on my 2022 model with bios 318 and 0.91 ver of ghelper, instantly changes to silent mode but takes time to change back to balanced, if you will try to do that "very often", in case of testing, you can simply break the switching and it will stuck on silent/balanced when it shouldn't be.

@seerge
Copy link
Owner

seerge commented Jul 3, 2023

@frackerinho hello, i don't think your case is related:) topic was about disabling GPU.

Mode switching also change windows power modes along. And i think with latest windows updates it became a bit slower. You can disable that by unchecking Extra -> Auto adjust windows power modes

@seerge
Copy link
Owner

seerge commented Jul 3, 2023

Closing this, as it seem to be resolved for everyone with same/similar issues on 2023 models by updating to latest bios 310 and an issue starter simply don't respond.

@seerge seerge closed this as completed Jul 3, 2023
@Sawa-i
Copy link

Sawa-i commented Jun 18, 2024

Hi, I have Bios 329 on my Asus Rog Strix G713PV ( 2023 ).

I seems to have this 'Freeze and restart' randomly at times. Suspected issue to be either 'AMD driver ( iGPU) ' related or interaction between ' iGPU & dGPU '.

Using Ultimate mode ( dGPU Exclusively) doesn't seem to cause that problem ( Though only observed for 2 days only as of now).

Wonder anyone else having related issues?

More Details:
Sometimes observed blue screen and sometimes not:

  • Blue screen may had:
    -- An error like this : IDEO DXGKRNL FATAL ERROR ( Not sure exactly )
    -- Sometimes : Clock WatchDog TimeOut

Also the freeze and restarts happened randomly, regardless of using dGPU, playing games, or just simply using laptop. ( Regardless of GPU Mode ( except Ultimate ofcourse )

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

6 participants