LizardByte / Sunshine

Self-hosted game stream host for Moonlight.
http://app.lizardbyte.dev/Sunshine/
GNU General Public License v3.0
15.41k stars 743 forks source link

Fedora 40 RPM Doesn't Detect NvFBC #2764

Closed homeisfar closed 6 days ago

homeisfar commented 6 days ago

Is there an existing issue for this?

Is your issue described in the documentation?

Is your issue present in the latest beta/pre-release?

This issue is present in the latest pre-release

Describe the Bug

Hi. This is my first use of Sunshine. I went through the setup guide and installed the Fedora 40 RPM from https://github.com/LizardByte/Sunshine/releases/tag/v2024.621.193854

Via the RPM, NvFBC did not work. With the .AppImage, NvFBC + hardware HEVC encoding works.

Expected Behavior

I expect the RPM to correctly utilize the GPU (nvenc + nvfbc), especially since it works with the .AppImage.

Additional Context

I believe there must be an issue of some sort with the Fedora 40 RPM build? I wasn't able to determine what, however, because when I tried to build Sunshine myself something went way wrong, and systemd-oomd had to intervene to save my system. Apparently the compilation process ate all my RAM somehow, so I'm not willing to retry that.

Host Operating System

Linux

Operating System Version

Fedora 40

Architecture

64 bit

Sunshine commit or version

v2024.621.193854

Package

Linux - rpm

GPU Type

Nvidia

GPU Model

GTX 1070

GPU Driver/Mesa Version

550.90.07

Capture Method

NvFBC (Linux)

Config

~/.config/sunshine/sunshine.conf is an empty file?

Apps

No response

Relevant log output

// Using RPM
[2024:06:26:16:14:57]: Info: CLIENT CONNECTED
[2024:06:26:16:14:57]: Info: Detecting displays
[2024:06:26:16:14:57]: Info: Detected display: DVI-D-0 (id: 0)DVI-D-0 connected: false
[2024:06:26:16:14:57]: Info: Detected display: HDMI-0 (id: 1)HDMI-0 connected: false
[2024:06:26:16:14:57]: Info: Detected display: DP-0 (id: 2)DP-0 connected: false
[2024:06:26:16:14:57]: Info: Detected display: DP-1 (id: 3)DP-1 connected: false
[2024:06:26:16:14:57]: Info: Detected display: DP-2 (id: 4)DP-2 connected: true
[2024:06:26:16:14:57]: Info: Detected display: DP-3 (id: 5)DP-3 connected: false
[2024:06:26:16:14:57]: Info: Detected display: DP-4 (id: 6)DP-4 connected: false
[2024:06:26:16:14:57]: Info: Detected display: DP-5 (id: 7)DP-5 connected: false
[2024:06:26:16:14:57]: Info: Screencasting with X11
[2024:06:26:16:14:57]: Info: Configuring selected display (0) to stream
[2024:06:26:16:14:57]: Warning: Couldn't get requested display info, defaulting to recording entire virtual desktop
[2024:06:26:16:14:57]: Info: SDR color coding [Rec. 601]
[2024:06:26:16:14:57]: Info: Color depth: 8-bit
[2024:06:26:16:14:57]: Info: Color range: [MPEG]
[2024:06:26:16:14:58]: Info: Setting default sink to: [sink-sunshine-stereo]
[2024:06:26:16:14:58]: Info: Found default monitor by name: sink-sunshine-stereo.monitor
[2024:06:26:16:14:58]: Info: Opus initialized: 48 kHz, 2 channels, 512 kbps (total), LOWDELAY
// End using RPM

// Using AppImage
[2024:06:26:15:58:26]: Info: CLIENT CONNECTED
DRM kernel driver 'nvidia-drm' in use. NVK requires nouveau.
[2024:06:26:15:58:26]: Error: Failed to create session: 
[2024:06:26:15:58:26]: Info: Screencasting with NvFBC
DRM kernel driver 'nvidia-drm' in use. NVK requires nouveau.
[2024:06:26:15:58:26]: Info: SDR color coding [Rec. 601]
[2024:06:26:15:58:26]: Info: Color depth: 8-bit
[2024:06:26:15:58:26]: Info: Color range: [MPEG]
[2024:06:26:15:58:26]: Info: Setting default sink to: [sink-sunshine-stereo]
[2024:06:26:15:58:26]: Info: Found default monitor by name: sink-sunshine-stereo.monitor
[2024:06:26:15:58:26]: Info: Opus initialized: 48 kHz, 2 channels, 512 kbps (total), LOWDELAY
// End using AppImage
ReenigneArcher commented 6 days ago

Unfortunately, Fedora 40 ships with a version a gcc that doesn't support cuda.