Open nielsch opened 6 months ago
I think Sunshine may be trying to encode the screen attached the virtual Proxmox GPU via your Nvidia GPU, which won't always work. You may need to enable the modeset=1
option for nvidia-drm
for import/export of dmabufs to work between GPUs.
Same issue on my dual-gpu laptop, my log: sunshine.log
Same here, dual-gpu laptop was working just fine with my nvidia gpu but now it's not probably because I am in the beta build instead of stable? modeset=1
is already set.
The original issue here is related to gpu passthrough/partitioning in Proxmox... seems unlikely you're doing that on a laptop?
The original issue here is related to gpu passthrough/partitioning in Proxmox... seems unlikely you're doing that on a laptop?
The logs are very similar to what the OP is facing, I had modest=1
already enabled before and was working just fine with my nvidia gpu, adapter name was force set to use my discrete gpu as well but looks like it no longer works unless I set my "Force a Specific Encoder" back to Autodetect which probably is using my in-built gpu (amd) now instead of discrete (nvidia)
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
Upon connecting to the Linux host, after the RTSP handshake, the screen (on the client) turns black. After a while, the client shows the error message: "no video received from host". In the logs on the host, two errors keep repeating:
Expected Behavior
Moonlight shows the screen of the host
Additional Context
My setup is as follows:
Server:
On the server, I'm running my VM:
The client (moonlight) runs on windows:
I've configured a virtual display (see below). The VM is headless, save for the virtual display that Proxmox is attaching. I'm interacting with the VM via SSH.
I've configured Xorg with the following settings:
The virtual screen is working, nvidia-smi shows the following:
xrandr shows that the display is available when executing
DISPLAY=:1 xrandr
:I can even take a screenshot by executing the following command:
DISPLAY=:1 xwd -root > screenshot.xwd
and it shows the desktop:In order to start the x session, I'm executing the following command:
And in order to start sunshine, I'm executing this:
(not sure if sunshine does anything with the DISPLAY env)
In sunshine, I configured the following:
When I check what devices are there in /dev/dri, I see the following:
Sunshine outputs the following before connecting with the client:
When connecting, the following logs are produced:
(the disconnect at the end is triggered by myself closing the client)
Host Operating System
Linux
Operating System Version
Kubuntu 24.04
Architecture
64 bit
Sunshine commit or version
0.23.1
Package
Linux - deb
GPU Type
Nvidia
GPU Model
Tesla P40 (vGPU)
GPU Driver/Mesa Version
535.154.05
Capture Method (Linux Only)
KMS
Config
Apps
No response
Relevant log output