moonlight-qt icon indicating copy to clipboard operation
moonlight-qt copied to clipboard

Can't see hardware acceleration in Arch Linux Nvidia Plasma Wayland

Open LibertyGM opened this issue 3 years ago • 3 comments
trafficstars

Describe the bug Can't see hardware acceleration in Arch Linux Nvidia Plasma Wayland

2022-09-12_13-40-29

Steps to reproduce

  1. Starting Moonlight.

Affected games Happens to all games.

Moonlight settings (please complete the following information)

  • Changed only the encoding mode to Hardware H265.
  • Does the problem still occur after reverting settings back to default? − Yes

Client PC details (please complete the following information)

  • OS: Arch Linux Plasma
  • Moonlight Version: 4.2.1
  • GPU: Nvidia 3070Ti

Server PC details (please complete the following information)

  • OS: Windows 11
  • GeForce Experience version: 3.25.1.27
  • Nvidia GPU driver: 516.94
  • Antivirus and firewall software: No

LibertyGM avatar Sep 12 '22 10:09 LibertyGM

Please run Moonlight from the terminal to get the log output and post it here.

Are you using the Snap, Flatpak, AppImage, or AUR package of Moonlight?

cgutman avatar Sep 12 '22 13:09 cgutman

I recorded a video of this and a log of how the error occurs. X11 Session

https://youtu.be/LLkWKWruZgY log.txt

LibertyGM avatar Sep 12 '22 20:09 LibertyGM

It looks like your logs are switched between #867 and #866, but it seems your problem here is that you need to install the libva-nvidia-driver package to allow use of NVDEC through VAAPI for Wayland, since VDPAU is only supported on X11.

Alternatively, you can also install ffmpeg-cuda and ffnvcodec-headers, then if you rebuild Moonlight, it should enable the CUDA codepath that doesn't require VAAPI.

cgutman avatar Sep 13 '22 06:09 cgutman

It looks like your logs are switched between #867 and #866, but it seems your problem here is that you need to install the libva-nvidia-driver package to allow use of NVDEC through VAAPI for Wayland, since VDPAU is only supported on X11.

Alternatively, you can also install ffmpeg-cuda and ffnvcodec-headers, then if you rebuild Moonlight, it should enable the CUDA codepath that doesn't require VAAPI.

my setup is a mess right now, but for anyone in the future, it wouldn't even open for me without libva-nvidia-driver

00:00:00 - SDL Info (0): Compiled with SDL 2.24.0
00:00:00 - SDL Info (0): Running with SDL 2.24.0
00:00:00 - Qt Info: No translation available for  "en_US"
00:00:00 - SDL Info (0): Detected Wayland
00:00:00 - Qt Warning: qrc:/gui/main.qml:12:1: QML ApplicationWindow: ToolTip must be attached to an Item
00:00:24 - Qt Info: Found "gamecontrollerdb.txt" at ":/data/gamecontrollerdb.txt"
00:00:24 - SDL Info (0): Loaded 213 new gamepad mappings
00:00:24 - SDL Info (0): V-sync disabled
Failed to create dedicated X11 display!
fish: Job 1, 'moonlight' terminated by signal SIGSEGV (Address boundary error)

everything good now though!

xangelix avatar Oct 02 '22 19:10 xangelix