Hardware Acceleration not work on browser and mpv

Video and videoenhance show no activity when i play video on browser and mpv in x11 and wayland i test. i install and have these package on down

libva-vdpau-driver 
lib32-libvpx libvpx 
intel-media-driver
libva-mesa-driver  
mesa-vdpau
libva-intel-driver 
linux-firmware
gst-plugin-openh264

and not work this down is error for mpv in x11 fan is too high when play video please help

Error

[ffmpeg/video] h264: Failed setup for format cuda: hwaccel initialisation returned er
ror.
[ffmpeg/video] h264: Failed setup for format vaapi: hwaccel initialisation returned e
rror.
[ffmpeg] AVHWDeviceContext: Error creating a MFX session: -9.
[ffmpeg/video] h264_cuvid: Codec h264_cuvid is not supported.
Could not open codec.
[ffmpeg/video] h264_v4l2m2m: Could not find a valid device
[ffmpeg/video] h264_v4l2m2m: can’t configure decoder
Could not open codec.

garuda-inxi
System:
Kernel: 6.5.7-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
clocksource: tsc available: acpi_pm
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=5f7cd2f4-62d5-4315-a78d-67578cc7dcaa rw rootflags=subvol=@
splash nvidia-drm.modeset=1 nosgx rd.udev.log_priority=3
vt.global_cursor_default=0 loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.27.8 tk: Qt v: 5.15.11 wm: kwin_wayland vt: 1
dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: Acer product: Aspire F5-573G v: V1.27
serial: <superuser required>
Mobo: Acer model: Captain_SK v: V1.27 serial: <superuser required>
UEFI: Insyde v: 1.27 date: 05/26/2017
CPU:
Info: model: Intel Core i7-6500U bits: 64 type: MT MCP arch: Skylake
gen: core 6 level: v3 note: check built: 2015 process: Intel 14nm family: 6
model-id: 0x4E (78) stepping: 3 microcode: 0xF0
Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
L3: 4 MiB desc: 1x4 MiB
Speed (MHz): avg: 2700 min/max: 400/3100 scaling: driver: intel_pstate
governor: powersave cores: 1: 2700 2: 2700 3: 2700 4: 2700 bogomips: 20799
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities: <filter>
Graphics:
Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: Acer Incorporated ALI
driver: i915 v: kernel arch: Gen-9 process: Intel 14n built: 2015-16 ports:
active: DP-1,eDP-1 empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:1916
class-ID: 0300
Device-2: NVIDIA GM107 [GeForce 940MX] vendor: Acer Incorporated ALI
driver: nvidia v: 535.113.01 alternate: nouveau,nvidia_drm non-free: 535.xx+
status: current (as of 2023-09) arch: Maxwell code: GMxxx
process: TSMC 28nm built: 2014-19 pcie: gen: 1 speed: 2.5 GT/s lanes: 4
link-max: gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 01:00.0
chip-ID: 10de:179c class-ID: 0302
Device-3: Chicony HD WebCam driver: uvcvideo type: USB rev: 2.0
speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-7:5 chip-ID: 04f2:b573
class-ID: 0e02
Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.2.1
compositor: kwin_wayland driver: X: loaded: modesetting,nvidia
unloaded: nouveau alternate: fbdev,intel,nv,vesa dri: iris
gpu: i915,nvidia d-rect: 3520x1080 display-ID: 0
Monitor-1: DP-1 pos: primary,left res: 1600x900 size: N/A modes: N/A
Monitor-2: eDP-1 pos: right res: 1920x1080 size: N/A modes: N/A
API: EGL v: 1.5 hw: drv: intel iris drv: nvidia platforms: device: 0
drv: nvidia device: 1 drv: iris device: 3 drv: swrast gbm: drv: iris
surfaceless: drv: nvidia wayland: drv: iris x11: drv: iris
inactive: device-2
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: intel mesa v: 23.2.1-arch1.2
glx-v: 1.4 direct-render: yes renderer: Mesa Intel HD Graphics 520 (SKL GT2)
device-ID: 8086:1916 memory: 7.45 GiB unified: yes display-ID: :1.0
API: Vulkan v: 1.3.264 layers: 8 device: 0 type: integrated-gpu name: Intel
HD Graphics 520 (SKL GT2) driver: mesa intel v: 23.2.1-arch1.2
device-ID: 8086:1916 surfaces: xcb,xlib,wayland device: 1
type: discrete-gpu name: NVIDIA GeForce 940MX driver: nvidia v: 535.113.01
device-ID: 10de:179c surfaces: xcb,xlib,wayland device: 2 type: cpu
name: llvmpipe (LLVM 16.0.6 256 bits) driver: mesa llvmpipe
v: 23.2.1-arch1.2 (LLVM 16.0.6) device-ID: 10005:0000
surfaces: xcb,xlib,wayland
Audio:
Device-1: Intel Sunrise Point-LP HD Audio vendor: Acer Incorporated ALI
driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_soc_avs
bus-ID: 00:1f.3 chip-ID: 8086:9d70 class-ID: 0403
Device-2: NVIDIA GM107 High Definition Audio [GeForce 940MX]
vendor: Acer Incorporated ALI driver: snd_hda_intel v: kernel pcie: gen: 3
speed: 8 GT/s lanes: 4 link-max: lanes: 16 bus-ID: 01:00.1
chip-ID: 10de:0fbc class-ID: 0403
API: ALSA v: k6.5.7-zen1-1-zen status: kernel-api with: aoss
type: oss-emulator tools: alsactl,alsamixer,amixer
Server-1: PipeWire v: 0.3.83 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter
vendor: Lite-On driver: ath10k_pci v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 bus-ID: 03:00.0 chip-ID: 168c:0042 class-ID: 0280
IF: wlp3s0 state: up mac: <filter>
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Acer Incorporated ALI driver: r8169 v: kernel pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 04:00.1 chip-ID: 10ec:8168
class-ID: 0200
IF: enp4s0f1 state: down mac: <filter>
Bluetooth:
Device-1: Lite-On Qualcomm Atheros QCA9377 Bluetooth driver: btusb v: 0.8
type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-5:4
chip-ID: 04ca:3015 class-ID: e001
Report: btmgmt ID: hci0 rfk-id: 2 state: up address: <filter> bt-v: 4.2
lmp-v: 8 status: discoverable: no pairing: no class-ID: 7c010c
Drives:
Local Storage: total: 1.36 TiB used: 15.28 GiB (1.1%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
model: SSD 970 EVO Plus 500GB size: 465.76 GiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
fw-rev: 2B2QEXM7 temp: 42.9 C scheme: GPT
ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: ST1000LM024 HN-M101MBB
size: 931.51 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
tech: HDD rpm: 5400 serial: <filter> fw-rev: 0001 scheme: MBR
Partition:
ID-1: / raw-size: 144.02 GiB size: 144.02 GiB (100.00%)
used: 15.25 GiB (10.6%) fs: btrfs dev: /dev/nvme0n1p6 maj-min: 259:6
ID-2: /boot/efi raw-size: 600 MiB size: 598.8 MiB (99.80%)
used: 28 MiB (4.7%) fs: vfat dev: /dev/nvme0n1p2 maj-min: 259:2
ID-3: /home raw-size: 144.02 GiB size: 144.02 GiB (100.00%)
used: 15.25 GiB (10.6%) fs: btrfs dev: /dev/nvme0n1p6 maj-min: 259:6
ID-4: /var/log raw-size: 144.02 GiB size: 144.02 GiB (100.00%)
used: 15.25 GiB (10.6%) fs: btrfs dev: /dev/nvme0n1p6 maj-min: 259:6
ID-5: /var/tmp raw-size: 144.02 GiB size: 144.02 GiB (100.00%)
used: 15.25 GiB (10.6%) fs: btrfs dev: /dev/nvme0n1p6 maj-min: 259:6
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: zram size: 7.63 GiB used: 0 KiB (0.0%) priority: 100
comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 4 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 57.0 C pch: 48.0 C mobo: N/A
Fan Speeds (rpm): N/A
Info:
Processes: 216 Uptime: 54m wakeups: 1 Memory: total: 8 GiB
available: 7.63 GiB used: 3.6 GiB (47.2%) Init: systemd v: 254
default: graphical tool: systemctl Compilers: gcc: 13.2.1 Packages:
pm: pacman pkgs: 1498 libs: 417 tools: octopi,paru,pikaur Shell: fish
v: 3.6.1 default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.30
Garuda (2.6.17-1):
System install date:     2023-10-16
Last full system update: 2023-10-21
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut nvidia-dkms
Windows dual boot:       Probably (Run as root to verify)
Failed units:

Heat is a by-product of hardware acceleration.

  1. Who told you to throw all of those drivers in there?
  2. What flags have you set in your unnamed browser?
  3. Is hardware acceleration supposed to work with that unknown browser?
  4. Do you have ffmpeg installed?
  5. Did your setup ever provide hardware acceleration browsing in Linux?
  6. Other than installing drivers, what configurations have you made?
  7. What has your research shown? Sources?
4 Likes
  1. when i was not available to play video i install every nessery driver from arch wiki
  2. opera stable version and hardware acceleration is true mean enable
  3. yes i pretty sure its work on it
  4. yes latest version is installed
  5. not most of the time
  6. noting but i install envycontrol i think mabe problem is for that
  7. just arch wiki intel gpu page and hardware acceleration page

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.