You are not logged in.

#1 2023-06-19 23:42:32

lucidavide@hotmail.it
Member
Registered: 2023-06-19
Posts: 5

va-api not running on wayland, but working on x11

checked with vainfo the settings of my configuration and that's the output:

Trying display: wayland
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Trying display: x11
vainfo: VA-API version: 1.18 (libva 2.18.1)
vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA-API - 0.7.4
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG4Simple            :	VAEntrypointVLD
      VAProfileMPEG4AdvancedSimple    :	VAEntrypointVLD
      <unknown profile>               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD

so i believe that for some reason XDG_RUNTIME_DIR is not vaild even if it's value is: "/run/user/1000", that is a valid value according to the Arch wiki.
did i miss to configure some wayland's env variables?

software: propriery nvidia drivers (nvidia package), gnome 44.1 on wayland, arch
hardware: nvidia 1050ti, pascal architecture

Offline

#2 2023-06-20 06:06:25

seth
Member
Registered: 2012-09-03
Posts: 60,747

Re: va-api not running on wayland, but working on x11

echo $XDG_RUNTIME_DIR
stat $XDG_RUNTIME_DIR

Offline

#3 2023-06-25 23:30:08

lucidavide@hotmail.it
Member
Registered: 2023-06-19
Posts: 5

Re: va-api not running on wayland, but working on x11

/run/user/1000
  File: /run/user/1000
  Dim.: 480       	Blocchi: 0          Blocco di IO: 4096   directory
Device: 0,54	Inode: 1           Links: 16
Accesso: (0700/drwx------)  Uid: ( 1000/ davidel)   Gid: ( 1000/ davidel)
Accesso  : 2023-06-26 02:22:20.164288010 +0200
Modifica : 2023-06-26 01:25:05.927195774 +0200
Cambio   : 2023-06-26 01:25:05.927195774 +0200
Creazione: 2023-06-26 02:22:20.164288010 +0200

maybe the problem is the fact that i run vainfo with sudo privileges.

> vainfo
Trying display: wayland
zsh: floating point exception (core dumped)  vainfo
> sudo vainfo
[sudo] password di davidel: 
Trying display: wayland
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Trying display: x11
vainfo: VA-API version: 1.18 (libva 2.18.1)
vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA-API - 0.7.4
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG4Simple            :	VAEntrypointVLD
      VAProfileMPEG4AdvancedSimple    :	VAEntrypointVLD
      <unknown profile>               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD

Last edited by lucidavide@hotmail.it (2023-06-25 23:39:28)

Offline

#4 2023-06-26 05:38:06

seth
Member
Registered: 2012-09-03
Posts: 60,747

Re: va-api not running on wayland, but working on x11

the problem is the fact that i run vainfo with sudo privileges

Yes, don't do that.

loginctl session-status

https://wiki.archlinux.org/title/Core_d … _core_dump

Offline

#5 2023-06-30 21:36:12

lucidavide@hotmail.it
Member
Registered: 2023-06-19
Posts: 5

Re: va-api not running on wayland, but working on x11

installing this solved the problem: https://github.com/elFarto/nvidia-vaapi-driver/
maybe i was using the wrong driver lol

Offline

Board footer

Powered by FluxBB