No GPU acceleration on Sway and i3

Hi, i’m very newbie using Manjaro bur i’m Feel in love.
Even if i experiencing a ton of problems.
At this point, the most important is that i’m not able to make my GPU works ok and with the VA-API enable on i3 and Sway. In Manjaro Gnome, i’ve managed to make It work with the propietary drivers, not with nouveau, which i rhink It Will not work with Wayland.
I have try a lot of options and i have search a lot of info, even i have try to figure out with the help of Chatgpt with no success.
The thing is that the screen can be see, bur if i test the GPU, there js no VA-API and, in the other hand, if i try to install the Nvidia drivers everithing crashs.
I have a 1050ti.
Anyone knows how to fix this problwm?

Thx you so much.

With nvidia dont you want to use vdpau?

In any case lets see some basic info:

inxi -Fazy
mhwd -l -li
pacman -Qs nvidia

Sorry for the delay, but i have to reinstall sway first, and a lot of things. If vdpau is what i need, vdpau xD
I said VA-API because is what xbox xcloud tell me is what i need, but i don’t know what is the correct option. anyways, thx for the tip. so, yes, vdpau.

i have made the commands you tell me, i post everything:

inxi -Fazy
Kernel: 6.1.44-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1-x86_64
    root=UUID=5ff7b813-a02a-4346-b7f5-9c227bebccb8 rw quiet apparmor=1
    security=apparmor udev.log_priority=3
  Desktop: sway v: 1.8.1 info: waybar vt: 2 dm: greetd Distro: Manjaro Linux
    base: Arch Linux
Machine:
  Type: Desktop System: ASUS product: All Series v: N/A
    serial: <superuser required>
  Mobo: ASUSTeK model: H81M-K v: Rev X.0x serial: <superuser required>
    BIOS: American Megatrends v: 1003 date: 10/24/2014
CPU:
  Info: model: Intel Core i5-4670K bits: 64 type: MCP arch: Haswell gen: core 4
    level: v3 note: check built: 2013-15 process: Intel 22nm family: 6
    model-id: 0x3C (60) stepping: 3 microcode: 0x28
  Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 256 KiB
    desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB L3: 6 MiB
    desc: 1x6 MiB
  Speed (MHz): avg: 3425 high: 3800 min/max: 800/3800 scaling:
    driver: intel_cpufreq governor: schedutil cores: 1: 3747 2: 3755 3: 2400
    4: 3800 bogomips: 27209
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: KVM: VMX unsupported
  Type: l1tf mitigation: PTE Inversion
  Type: mds mitigation: Clear CPU buffers; SMT disabled
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: disabled, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA GP107 [GeForce GTX 1050 Ti] vendor: Gigabyte driver: nouveau
    v: kernel non-free: 535.xx+ status: current (as of 2023-07) arch: Pascal
    code: GP10x process: TSMC 16nm built: 2016-21 pcie: gen: 1 speed: 2.5 GT/s
    lanes: 16 link-max: gen: 3 speed: 8 GT/s ports: active: HDMI-A-1
    empty: DP-1, DVI-D-1, HDMI-A-2, HDMI-A-3 bus-ID: 01:00.0 chip-ID: 10de:1c82
    class-ID: 0300 temp: 52.0 C
  Display: wayland server: Xwayland v: 23.1.2 compositor: sway v: 1.8.1
    driver: gpu: nouveau display-ID: 1
  Monitor-1: HDMI-A-1 model: HP 22w serial: <filter> built: 2017
    res: 1920x1080 hz: 60 dpi: 102 gamma: 1.2 scale: 1
    size: 476x268mm (18.74x10.55") diag: 546mm (21.5") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  Message: No known Wayland EGL/GBM data sources. API: EGL/GBM
Audio:
  Device-1: Intel 8 Series/C220 Series High Definition Audio vendor: ASUSTeK 8
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8c20
    class-ID: 0403
  Device-2: NVIDIA GP107GL High Definition Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 16
    link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.1 chip-ID: 10de:0fb9
    class-ID: 0403
  API: ALSA v: k6.1.44-1-MANJARO status: kernel-api tools: N/A
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: JACK v: 1.9.22 status: off tools: N/A
  Server-3: PipeWire v: 0.3.77 status: active with: 1: pipewire-pulse
    status: active 2: pipewire-media-session status: active 3: pipewire-alsa
    type: plugin tools: pactl,pw-cat,pw-cli
Network:
  Device-1: Intel Wireless 7265 driver: iwlwifi v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 8086:095a class-ID: 0280
  IF: wlp3s0 state: down mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK H81M-C driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: d000 bus-ID: 04:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth wireless interface driver: btusb v: 0.8 type: USB
    rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-6:6 chip-ID: 8087:0a2a
    class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Drives:
  Local Storage: total: 245.88 GiB used: 8.26 GiB (3.4%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: SanDisk model: SDSSDA240G
    size: 223.57 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 80RL scheme: MBR
  ID-2: /dev/sdb maj-min: 8:16 model: General USB Flash Disk size: 7.47 GiB
    block-size: physical: 512 B logical: 512 B type: USB rev: 2.0 spd: 480 Mb/s
    lanes: 1 mode: 2.0 tech: SSD serial: <filter> fw-rev: 1100 scheme: MBR
  ID-3: /dev/sdc maj-min: 8:32 vendor: Kingston model: DT 101 G2
    size: 14.84 GiB block-size: physical: 512 B logical: 512 B type: USB rev: 2.0
    spd: 480 Mb/s lanes: 1 mode: 2.0 tech: N/A serial: <filter> fw-rev: PMAP
    scheme: MBR
Partition:
  ID-1: / raw-size: 223.57 GiB size: 219 GiB (97.96%) used: 6.48 GiB (3.0%)
    fs: ext4 dev: /dev/sda1 maj-min: 8:1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 66.0 C mobo: N/A gpu: nouveau temp: 52.0 C
  Fan Speeds (RPM): N/A gpu: nouveau fan: 0
Info:
  Processes: 208 Uptime: 8m wakeups: 0 Memory: total: 16 GiB
  available: 15.56 GiB used: 1.69 GiB (10.9%) Init: systemd v: 253
  default: graphical tool: systemctl Compilers: gcc: 13.2.1 clang: 15.0.7
  Packages: pm: pacman pkgs: 832 libs: 258 tools: pamac,yay Shell: Zsh v: 5.9
  running-in: foot inxi: 3.3.28

mhwd -l -li

Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI


Warning: No installed USB configs!
> 0000:01:00.0 (0300:10de:1c82) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
          video-nvidia            2023.03.23               false            PCI
    video-nvidia-470xx            2023.03.23               false            PCI
    video-nvidia-390xx            2023.03.23               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> 0000:04:00.0 (0200:10ec:8168) Network controller Realtek Semiconductor Co., Ltd.:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
         network-r8168            2016.04.20                true            PCI

pacman -Qs nvidia
local/lib32-libvdpau 1.5-1
    Nvidia VDPAU library
local/libvdpau 1.5-1
    Nvidia VDPAU library
local/mhwd-nvidia 535.98-1
    MHWD module-ids for nvidia 535.98
local/mhwd-nvidia-390xx 390.157-7
    MHWD module-ids for nvidia 390.157
local/mhwd-nvidia-470xx 470.199.02-3
    MHWD module-ids for nvidia 470.199.02
local/xf86-video-nouveau 1.0.17-2 (xorg-drivers)
    Open Source 3D acceleration driver for nVidia cards

The new installation of sway continue to work just like the others attempts and the accelaration does not work, even if there is signal out and i can see the screen (i’m witing this in my computer)

Thx you very much for your time, and your help.

This is the journalctl, i post it because i think it say something about nvidia and maybe it could be useful:

journalctl -xe                                                                                                                                                                                                                                                 127 ✘ 
░░ Subject: A stop job for unit user-967.slice has finished
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ A stop job for unit user-967.slice has finished.
░░ 
░░ The job identifier is 1053 and the job result is done.
ago 15 16:31:30 ManjarOS systemd[570]: Started PipeWire PulseAudio.
░░ Subject: A start job for unit UNIT has finished successfully
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ A start job for unit UNIT has finished successfully.
░░ 
░░ The job identifier is 295.
ago 15 16:31:30 ManjarOS rtkit-daemon[864]: Successfully made thread 1108 of process 1108 owned by '1000' high priority at nice level -11.
ago 15 16:31:30 ManjarOS rtkit-daemon[864]: Supervising 4 threads of 3 processes of 1 users.
ago 15 16:31:30 ManjarOS rtkit-daemon[864]: Successfully made thread 1148 of process 1108 owned by '1000' RT at priority 20.
ago 15 16:31:30 ManjarOS rtkit-daemon[864]: Supervising 5 threads of 3 processes of 1 users.
ago 15 16:31:32 ManjarOS dbus-daemon[618]: [session uid=1000 pid=618] Activating via systemd: service name='org.gtk.vfs.Metadata' unit='gvfs-metadata.service' requested by ':1.50' (uid=1000 pid=1140 comm="pamac checkupdates -q")
ago 15 16:31:32 ManjarOS systemd[570]: Starting Virtual filesystem metadata service...
░░ Subject: A start job for unit UNIT has begun execution
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ A start job for unit UNIT has begun execution.
░░ 
░░ The job identifier is 319.
ago 15 16:31:32 ManjarOS dbus-daemon[618]: [session uid=1000 pid=618] Successfully activated service 'org.gtk.vfs.Metadata'
ago 15 16:31:32 ManjarOS systemd[570]: Started Virtual filesystem metadata service.
░░ Subject: A start job for unit UNIT has finished successfully
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ A start job for unit UNIT has finished successfully.
░░ 
░░ The job identifier is 319.
ago 15 16:31:33 ManjarOS systemd-timesyncd[464]: Contacted time server 208.85.20.220:123 (2.manjaro.pool.ntp.org).
ago 15 16:31:33 ManjarOS systemd-timesyncd[464]: Initial clock synchronization to Tue 2023-08-15 16:31:33.847452 CEST.
░░ Subject: Initial clock synchronization
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ For the first time during the current boot an NTP synchronization has been
░░ acquired and the local system clock adjustment has been initiated.
ago 15 16:31:34 ManjarOS systemd[1]: systemd-hostnamed.service: Deactivated successfully.
░░ Subject: Unit succeeded
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ The unit systemd-hostnamed.service has successfully entered the 'dead' state.
ago 15 16:32:00 ManjarOS systemd[1]: systemd-localed.service: Deactivated successfully.
░░ Subject: Unit succeeded
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ The unit systemd-localed.service has successfully entered the 'dead' state.
ago 15 16:32:37 ManjarOS sudo[1424]: PAM unable to dlopen(/usr/lib/security/pam_fprintd.so): /usr/lib/security/pam_fprintd.so: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio
ago 15 16:32:37 ManjarOS sudo[1424]: PAM adding faulty module: /usr/lib/security/pam_fprintd.so
ago 15 16:32:39 ManjarOS dbus-daemon[471]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.47' (uid=0 pid=1424 comm="sudo modprobe nvidia")
ago 15 16:32:39 ManjarOS dbus-daemon[471]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
ago 15 16:32:39 ManjarOS sudo[1424]:  eduardo : TTY=pts/0 ; PWD=/home/eduardo ; USER=root ; COMMAND=/usr/bin/modprobe nvidia
ago 15 16:32:39 ManjarOS sudo[1424]: pam_unix(sudo:session): session opened for user root(uid=0) by eduardo(uid=1000)
ago 15 16:32:39 ManjarOS sudo[1424]: pam_unix(sudo:session): session closed for user root
lines 2456-2519/2519 (END)

The lsmod nvidia command does not show any result and modprobe, this one:

modprobe nvidia                                                                                                                                                                                                                                          
modprobe: FATAL: Module nvidia not found in directory /lib/modules/6.1.44-1-MANJARO

Well, no wonder, really. It’s using the unofficial, open source, free drivers. To get full support, you should actually use the proprietary drivers.

So lets see what’s going on there. Please provide the output of:

mhwd --list

…and:

mhwd --listinstalled

Hi, and thank you for the answer.
first, the outputs:

mhwd --list                                                                                                                                                                                                                                                     
> 0000:01:00.0 (0300:10de:1c82) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
          video-nvidia            2023.03.23               false            PCI
    video-nvidia-470xx            2023.03.23               false            PCI
    video-nvidia-390xx            2023.03.23               false            PCI
           video-linux            2018.05.04                true            PCI
     video-modesetting            2020.01.13                true            PCI
            video-vesa            2017.03.12                true            PCI


> 0000:04:00.0 (0200:10ec:8168) Network controller Realtek Semiconductor Co., Ltd.:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
         network-r8168            2016.04.20                true            PCI

and

mhwd --listinstalled                                                                                                                                                                                                                                            
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI

Second, i have an issue whith the propietary drivers that consist in make all my installation crash. Everytime I install the nvidia propietary drivers, the screen falls to black while installing, and then after a forces restart it is impossible to login again (even if i uninstall nvidia drivers and reinstall nouveau)

This second part is related with wayland, and no wanting to start with propiertary drivers (normally sway has a log option, nos supported, which is destined to that but not in my case)

thx.

Hmmm…well I’ve heard that Wayland doesn’t play nice with nvidia. Wouldn’t know, since I use X.

Regarding:

…all I can say is :man_shrugging:

But I believe that is why there isn’t GPU acceleration. So I think, no I know, you solution is above my pay grade…sorry.

:sob:

thx you!
I have arrive, for myself, to the same point. That’s why i asked in the first time.
I know wayland, and nvidia, and everything but, you know, it works on Garuda and EndeavourOS so this is beyond need, it’s about to know why it is not working when it could.

in the other hand, Nouveau supports the Pascal family and, of course, my GPU so it can be crap, but it must work.

this is the reason why i asked.
I’m pretty sure the issue is that my drivers (nouveau) are setting for another kernel and that’s why the modprobe fails but i don’t know how to fix it. It can’t be so dificult.

Thx you anyways :wink:

This post might give some insight, the steps are not valid anymore, read the last posts & arch wiki.

Even if i dont really understand what can i do with all that info, i think some of my problems could be fixed with this.

But I’m a bit scared because i prefer not to crash my installation again with some try.

The history with Nvidia and Wayland is in a second spot, i prefer install the drivers correctly, before i made tries to make Wayland support propietary drivers.

Thx anyways, i Will study Arch wiki.