Created attachment 889022 [details] Headless mode errors When trying to launch from headless mode, the following attached errors are shown. When trying to launch from X11 gnome with a keyboard+mouse+monitor connected it still cannot detect the encoder and it doesn't detect the monitor (USB-C monitor). I've manually added the monitor name as per xrandr and it still doesn't work. Current setup is a 3900x with a 2080 using ~amd64 on the 17.1 profile with merged-user gnome.
I'll try to look into this, but I don't have any NVIDIA hardware at all, and you're literally the first person I've seen using this package. Unfortunately, the log hasn't given me much to go on. By headless mode, I assume you mean the console with no X11 or Wayland. I have certainly used it this way myself. You probably need to be in the "video" group.
Please provide the output from "emerge --info net-misc/sunshine". I would also be grateful if you could try an upstream build, either the Docker image, AppImage, or Flatpak. Alternatively, you could try building it manually from their repository. That will show whether it is my fault or not. :)
Yeah I’m in the video group. I can connect my monitor, keyboard and mouse which solves the input errors but it still doesn’t see the video card or monitor or encoder even when a x11 session of gnome is launched. I’ll get the emerge output to you later today. I tried to build manually from source yesterday but it doesn’t build. Is there a way to get the build command the ebuild uses?
Family stuff came up I will try getting this to you on Sunday/Monday.
Family comes first. :) Our build process is quite different to upstream's, which is why users should report bugs here first. I was able build the v0.22.2 tag and the nightly branch, albeit without the NVIDIA dependencies present. You'll need sys-process/numactl installed even though the Gentoo package doesn't need it. Also make sure you have the git submodules checked out. This should be enough: > git submodule init > git submodule update --recursive > cmake -DSYSTEMD_USER_UNIT_INSTALL_DIR=/usr/lib/systemd/user -DUDEV_RULES_INSTALL_DIR=/lib/udev/rules.d > make -j$(nproc)
Created attachment 889080 [details] emerge-info Emerge info
Created attachment 889081 [details] Compile errors Compile errors
Yeah, doesn't compile. I've included the emerge info you wanted along with the compile errors.
For capture from the console to work, you need to enable USE=libdrm. That's my fault, I gave the wrong description for the flag. Your manual should work with -DSUNSHINE_REQUIRE_TRAY=OFF.
With libdrm and a new compile of ffmpeg (not sure if relevant) I was able to get this to work. It still doesn't like headless mode and complains about the mouse/keyboard/etc, so looks like I'll have to login and just run from X11.