-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Black screen when streaming. Error: GL: /build/sunshine/src/platform/linux/graphics.cpp:570: [00000502] #2390
Comments
Same here, albeit on X11. Tested with the Flatpak and AppImage release: 0.23 A client (Moonlight on Linux and Windows) keeps the connection but only shows a black screen while the logs feature repeated |
Was having the same issue, in X11. What finally worked was installing nvlax patch. The AUR archlinux packet is this, but I don't know what would be the equivalents in Ubuntu and Fedora. |
Can confirm that manually setting "X11" instead of the autodetect does make it work. Have to test more on the impact of that but thanks for the tip. Much appreciated. Currently, either leaving Force a Specific Capture Method (in the Advanced tab) at "Autodetect" or manually setting it to "KMS" causes the black screen issue. KMS would be preferred over the slower/laggy X11 method from what I understand. But, for the Nvidia folks, there's of course another method in reach, once the driver was patched: Patcher for Nvidia drivers (to get NvFBC working, which should be best in terms of speed and quality for Nvidia users): https://github.com/keylase/nvidia-patch Update: Note for Flatpak users: One has to patch the driver AND the flatpak version of the driver. Check the description of the above patcher to see how you can easily patch both instances. You simply execute a script and that one takes care of the rest, including backups. Note: This step has to be repeated after every new driver install/update. |
I'm running Wayland. I did the "NvFBC" patch and it didn't work. |
1) Did Sunshine work before for you, with Wayland and your Nvidia card, and only caused problems with the 0.23 version? 2) Are you able to got back to X11 for testing and check if the problem is resolved then? Both questions aim at finding out if a Sunshine version change lead to the issue or if we are looking at generic Wayland-specific problems in conjunction with Nvidia cards. When on X11: One can expand the available methods by patching the Nvidia driver, which should lead to better performance and less system load once NvFBC is working. "KMS" should be somewhere in between, if one gets it working. |
@CPioGH2002 |
Are all of you using hybrid graphics systems with an iGPU and dGPU? I can't reproduce this with a regular single-GPU system with the display physically connected to the Nvidia GPU. Please describe the display topology of your systems (which GPUs are present, which displays are physically connected to which GPUs including internal displays on laptops). For @gprotta's posted config, I think your issue is this in your config:
This is expected because Nvidia hasn't added Wayland support to NvFBC. The KMS capture backend is optimal for Nvidia Wayland scenarios. |
In my case, using ArchLinux 6.6.25-1-lts and Nvidia Driver 550.67 I am only using one discrete Nvidia GPU on a desktop (not laptop) without any iGPU on the processor. Display is physically connected to the GPU |
Very good point regarding the architecture (hybrid vs. single GPU). I myself only run a single GPU on a desktop system with the monitor being attached to it. My iGPU is disabled, so the Nvidia card is the only one being available and active. Still using X11. As described, once I get rid of the "autodetect" feature and set the capture method manually, everything is working fine.
So, seems like the dreaded Nvidia Wayland support/implementation plays a huge role for the problems described. Perhaps try cgutman's recommendation from above and check if the KMS capture method works on Wayland with your config. |
A few other questions to try and narrow down the issue:
|
I tested it just with the laptop screen and it works (iGPU). @cgutman |
Video Card: NVIDIA GeForce RTX 3080
In Sunshine:
Works as expected:
|
please fix, @Bubbasm workaround works for now |
I'm having this issue on Fedora 41 Workstation, literally the only distro with this behavior, I'm using a NVIDIA GTX 1660 Ti. Went ahead and tested 4 different distros:
All of them on the exact same scenario:
Not a single issue on other distros other than Fedora, and unfortunatelly I couldn't test the Xorg session on it since the Fedora team decided to literally nuke the Xorg packages from being installed on F41, so I'm stuck on Wayland, though at the same time, it works fine under Wayland on all the other distros, so I don't think this test will help either. |
It seems this issue hasn't had any activity in the past 90 days. If it's still something you'd like addressed, please let us know by leaving a comment. Otherwise, to help keep our backlog tidy, we'll be closing this issue in 10 days. Thanks! |
Is there an existing issue for this?
Is your issue described in the documentation?
Is your issue present in the nightly release?
Describe the Bug
Just run some application and the streaming gets a black screen.
Expected Behavior
The stream should work with video
Additional Context
No response
Host Operating System
Linux
Operating System Version
Fedora 39 - Gnome 45.5 Wayland - Linux 6.7.9-200.fc39.x86_64
Architecture
64 bit
Sunshine commit or version
0.23.0
Package
Linux - rpm
GPU Type
Nvidia
GPU Model
NVIDIA GeForce GTX 1660 Ti with Max-Q Design
GPU Driver/Mesa Version
550.67
Capture Method (Linux Only)
KMS
Config
Apps
No response
Relevant log output
The text was updated successfully, but these errors were encountered: