When specifying dedicated gpu, Failed to locate an output device #260
-
Hi! I've been trying to figure out how to tell Sunshine to use my dedicated GPU for a while but just haven't been able to get it to work. I have an MSI GL65 Leopard gaming laptop that I'm trying to use as a host. It has an Intel i7-10750H and an NVIDIA RTX 2070. It has both an integrated GPU and a dedicated GPU. I'm on the nightly release on Sunshine Version 0.20.0.8ff2022aaf7c4d19b57f505df9b7d7e1b6060365 and I also experience this issue on the stable release Running dxgi-info.exe returns:
In Sunshine's settings I set the Adapter Name to Based on various threads and discussions I found on Github and Reddit while Googling this issue, I have also tried these with no effect:
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 7 replies
-
On Windows the display you want to stream must be connected to the selected GPU. |
Beta Was this translation helpful? Give feedback.
-
The information here settled a lot of the weird stuff I experienced figuring this out, thanks.
Some addendum to this that I feel relevant: While the internal display is often connected to the IGPU, I wondered if the HDMI video-out would be connected to the DGPU, since on PCs that's where you find HDMI ports. Unfortunately, it doesn't seem to be the case on my gaming laptop. According to the output from Now, finding reliable information about any non-obvious windows behaviour is a headache, thanks in no small part to microsoft's high-quality answers on its own support forums where the enlightening solution to every single problem ever is either to reinstall drivers, reinstall windows, or a link to some 3rd party site helpfully teaching you how to plug in an HDMI cable. But I believe things might be different across different laptops, where the HDMI port might work as a solution to this problem. Some laptops might have a setting to change this in their UEFI. Certain laptops these days (ASUS I believe?) actually come with a electronic muxer that can control which GPU runs the display device at a hardware level. |
Beta Was this translation helpful? Give feedback.
-
According to their docs, OBS can use both GPUs. But the condition remains that the capturing must happen on the same GPU where the rendering is happening. So apparently desktop-level capturing is independent from application-level capturing. That is, you can use your DGPU to capture a game that is running on your DGPU (and similarly the IGPU for IGPU applications), but if you want to capture your entire (fully stitched and rendered) desktop, you have to use the GPU that is rendering your desktop, which is probably your IGPU. This all check out, considering I've been using the desktop mode in moonlight to test everything. And I do really need the desktop mode, as I can use it as a general purpose remote desktop. But this would also imply that the behaviour should be different if you launch a DGPU game from sunshine for streaming, as it will only need to stream the DGPU surface? I do wonder... |
Beta Was this translation helpful? Give feedback.
-
Thanks for the info! In some of my searches I saw that many newer gaming laptops come equipped with a piece of hardware called a MUX switch. If I understand correctly, a MUX switch is a physical switch somewhere in the computer that controls which GPU gets used. It looks like I bought my laptop just a couple months too early to have been in the time range where it started becoming more common for gaming laptops to have it. My laptop is supposedly supposed to be very extensible and moddable which is one of the reasons I bought it, so I've been thinking about looking into whether it's possible to change the way the GPUs are setup in mine, but it might be too much effort for me. Personally, my use case for Sunshine is a system where I'm treating my laptop more or less like a console for various other devices in my home: I keep it tucked away with the screen brightness all the way down and the keyboard backlight off on a shelf near my living room TV and use a game library manager called Playnite in fullscreen to act as the primary interface for the "console." It's loaded up with a bunch of old emulated games and newer games from Steam and GOG and stuff, I even configured some TV streaming apps in it! So I'm trying to keep the actual physical form factor down so it can fit neatly on its shelf so an external monitor wouldn't really be feasible for my purposes anyway.
That is very interesting, I may test it later. Unfortunately I'd like to keep running Sunshine capturing my desktop rather than games so that I can keep treating Playnite as the primary interface for launching games (it's much prettier (with a custom skin) than Moonlight's launcher interface xD) but I may consider it worth it to reconsider the setup if Sunshine can use the dedicated GPU if it's capturing a game running on it. Or maybe I can just have Moonlight launch Playnite and have Windows run Playnite on the dGPU. Although I'm not sure if Sunshine would capture any games that Playnite launches in that case... I'll have to test and see. |
Beta Was this translation helpful? Give feedback.
On Windows the display you want to stream must be connected to the selected GPU.