r/XMG_gg • • Sep 24 '20

Technical Support programs force dGPU when external monitor, how quit? - fusion15

One of the biggest pain in the a** with the fusion 15 is that whenever I hook it up to my external monitor for work, I can see that a lot of apps are running on the dGPU, makes sense since its connected to my external monitor... however when I unplug it, every single program keeps running on my dGPU...which will drain the battery...unless I restart it but that kinda ruins the purpose of having a laptop for me.

I want to be able to work a bit on my laptop on my external monitor, unplug it and keep working on the train home. Without having to restart so that everything dissapears.

Is there a solution for this or do I really have to go in and kill all apps in the activity monitor one by one?

6 Upvotes

11 comments sorted by

5

u/XMG_gg Sep 25 '20

From the FAQ.

If external monitor is connected, dGPU will be awake.

Both HDMI and USB-C/DisplayPort/Thunderbolt are connected directly to the NVIDIA GeForce card. This dedicated connection gives the XMG FUSION 15 the power to drive very high resolutions, refresh rates and to support G-SYNC and FreeSync on external screens. The trade-off: the dGPU will always be awake as soon as an external monitor is connected. Rendering can still happen on the iGPU (Intel UHD Graphics) - but the dGPU will always be "awake" to deliver the pixels to the screen.

Every app is running on dGPU as soon as external monitor is connected? No.

NVIDIA’s Control Center has a hidden function called “NVIDIA GPU Activity” which supposedly shows which app is being rendered on the dGPU. You can find it by enabling "Display GPU Activity Monitor Icon in Notification Area".

Unfortunately, this function is not accurate when using an external monitor. As soon as you have an external monitor connected, the notification window shows every newly launched app as if it’s being rendered on the dGPU, even though it is not. This has been confirmed by our NVIDIA contacts to be a general issue that affects all laptops with NVIDIA Optimus (MSHybrid) of every brand.

It does not look as if NVIDIA has any plans to resolve this issue. Therefor, the “NVIDIA GPU Activity” will continue to show inaccurate information and should rather not be used at all.

Please read the other dGPU-related points in the guide. Especially the one about Webbrowser hardware acceleration.

// Tom

2

u/blu3n0va Oct 07 '20

Damn What an answer! MVP Thanks

So assuming I work on say Adobe Photoshop when hooked to my external monitor, and I have google chrome tabs open. I close Adobe But leave chrome Open. Put my laptop into hibernation mode and go to work. I Pull it out, it should be running on iGPU Only now? Since Ive configured chrome to rub Only in my iGPU

2

u/XMG_gg Oct 08 '20

So assuming I work on say Adobe Photoshop when hooked to my external monitor, and I have google chrome tabs open. I close Adobe But leave chrome Open. Put my laptop into hibernation mode and go to work. I Pull it out, it should be running on iGPU Only now?

No. If you opened Chrome while hooked on external monitor, Chrome will keep running on the dGPU until you either close Chrome or kill/reset the dGPU. It's a known NVIDIA bug and it does not seem like they are going to fix it.

Reaso/Workaround:

dGPU does not go back to sleep after disconnecting external screen while browser is open

If you launch your browser (Chrome, Firefox, Edge) while you are connected to an external screen, the browser’s hardware acceleration will use the dGPU. This happens despite the fact that you are forcing that app to run on Integrated Graphics. If the browser keeps running after you connect the external screen, it will keep the dGPU awake.

Even sending the laptop to Standby and waking it up again won’t change that fact. The dGPU will only go back to sleep after you close the specific app that triggered this behaviour.

This seems to affect every laptop with NVIDIA Optimus (MSHybrid) – not only XMG laptops.

We have filed a report with NVIDIA and we are awaiting their feedback.

Here is a short list of apps that are affected and not affected by this issue:

AffectedNot affected (Control Group)Google ChromeMicrosoft WordMozilla Firefoxnotepad.exeMicrosoft Edge

This might also affect other apps if they are secretly using the dGPU for Hardware Acceleration. But so far, the 3 major browsers are the only apps we have confirmed to trigger this behaviour.

According to what we heard, NVIDIA does not seem to have any plans to fix this issue on a fundamental basis.

Workaround #1: Restart your Browser

Close your browser and launch it again after disconnecting from the external screen.

Workaround #2: Disable Hardware Acceleration in Browser

You can find this in the Settings menu of your Browser.

Workaround #3: Disable and re-enable the dGPU instead of closing your Webbrowser

Download here: dGpuCycle Script.zip

Written by Notebookcheck user ‘Stepon’ (source). You can open the script with Notepad to read the source code.

After disconnecting the external screen, run this Batch Script with Admin privileges. The script will disable and re-enable the dGPU in Device Manager. During that moment, your browser will drop the Hardware Acceleration from dGPU and go back to iGPU. Chrome will flicker for a fraction of a second. If you play any videos on your browser while running the script, you might have to restart playback by jumping to a different point in the video timeline.

With some programming skills can be further automated to always run in the background.

// Tom

1

u/ElderberryNo6220 12h ago

Your code fixed my loq laptop!

Previously I was checking the taskmanager and ending the process. 

Now with your code slightly modified and taskscheduler, I don't worry about dgpu.

NVIDIA is after AI, so I think nvidia will never fix it.

1

u/Bubbly_Start7 Jan 20 '25

Hey, can I go to Graphic Settings in Windows then set the apps to run on iGPU to solve this? Or is there gonna be a side effect?

1

u/XMG_gg Jan 20 '25

No side-effect. Setting them to iGPU is the correct step. Then check, if it makes a difference regarding NVIDIA GPU not going to sleep in Idle. // Tom

1

u/Bubbly_Start7 Jan 20 '25

I've only tried changing that setting for 2 apps, Firefox and Notepad++ and they both still use the Nvidia even after restarting the apps. Also idk if it's just my feelings but I feel a bit of stutter when using those apps after I make them use iGPU, only when using the external monitor ofc.

1

u/XMG_gg Jan 28 '25

Firefox

Have you tried disabling hardware acceleration? Please check this paragraph.

Notepad++

I can not imagine Notepad++ running on the dGPU. Do you have any plugins for Notepad++? This might be a false positive that is triggered because Firefox already wakes the dGPU.

But let's take a step back. How do you actually know these two apps run on the dGPU? The Task Manager and NVIDIA activity window can be misleading.

The reliable procedure is this:

// Tom

3

u/Jewbacca74 Sep 24 '20

I've used this script before: https://github.com/eduojeda/nvidia-optimus-kill

Other than that, you'd need to close and restart the apps (and in my case on the MAG-15, a full restart of the OS.)

1

u/blu3n0va Sep 24 '20

Thanks!

Using That script alone isnt enough it What?

MAG15 Fusion 15 same same haha, I guess its an nvidia thing Ive never had a laptop with a dGPU prior to this so Im not sure if this is an issue with laptops like MSI GS66 etc as well?

1

u/ElderberryNo6220 12h ago

Hibernate + laptop power bank is a simple solution.