Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928141 - net-misc/sunshine-0.22.2 issues
Summary: net-misc/sunshine-0.22.2 issues
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: James Le Cuirot
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-29 19:45 UTC by thezombiehunter
Modified: 2024-04-03 01:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Headless mode errors (headless.txt,1.92 KB, text/plain)
2024-03-29 19:45 UTC, thezombiehunter
Details
emerge-info (emerge-info.txt,8.07 KB, text/plain)
2024-03-31 01:25 UTC, thezombiehunter
Details
Compile errors (compile.txt,4.75 KB, text/plain)
2024-03-31 01:26 UTC, thezombiehunter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thezombiehunter 2024-03-29 19:45:15 UTC
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.
Comment 1 James Le Cuirot gentoo-dev 2024-03-29 23:34:58 UTC
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.
Comment 2 James Le Cuirot gentoo-dev 2024-03-30 15:46:18 UTC
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. :)
Comment 3 thezombiehunter 2024-03-30 17:38:52 UTC
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?
Comment 4 thezombiehunter 2024-03-30 20:15:55 UTC
Family stuff came up I will try getting this to you on Sunday/Monday.
Comment 5 James Le Cuirot gentoo-dev 2024-03-30 23:02:15 UTC
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)
Comment 6 thezombiehunter 2024-03-31 01:25:58 UTC
Created attachment 889080 [details]
emerge-info

Emerge info
Comment 7 thezombiehunter 2024-03-31 01:26:15 UTC
Created attachment 889081 [details]
Compile errors

Compile errors
Comment 8 thezombiehunter 2024-03-31 01:26:29 UTC
Yeah, doesn't compile.

I've included the emerge info you wanted along with the compile errors.
Comment 9 James Le Cuirot gentoo-dev 2024-03-31 11:35:41 UTC
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.
Comment 10 thezombiehunter 2024-04-03 01:12:16 UTC
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.