You are not logged in.

#26 2020-11-27 10:02:38

progandy
Member
Registered: 2012-05-17
Posts: 5,304

Re: [Solved] MPV and hardware acceleration with Intel drivers

I think the output of vainfo might be useful as well to test if vaapi is configured correctly.

Last edited by progandy (2020-11-27 10:04:58)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#27 2020-11-27 12:54:00

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,796

Re: [Solved] MPV and hardware acceleration with Intel drivers

[    33.467] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[    33.467] (==) modeset(0): RGB weight 888
[    33.467] (==) modeset(0): Default visual is TrueColor
[    33.467] (II) Loading sub module "glamoregl"
[    33.467] (II) LoadModule: "glamoregl"
[    33.467] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[    33.486] (II) Module glamoregl: vendor="X.Org Foundation"
[    33.486] 	compiled for 1.20.9, module version = 1.0.1
[    33.486] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    34.047] (II) modeset(0): Refusing to try glamor on llvmpipe
[    34.066] (EE) modeset(0): glamor initialization failed

To me that suggests the error cause is very early, possibly even before X starts.

jasonwryan, if early kms doesn't help please share
lspci -knn , full journalctl -b and an xorg log from starting X without any confs (just to verify they are not the cause)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#28 2020-11-27 18:31:54

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] MPV and hardware acceleration with Intel drivers

Thank you all for being willing to perservere with this smile

Early KMS is enabled.

LIBGL_DEBUG=1 glxinfo -B
name of display: :0
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/jason/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/jason/.drirc: No such file or directory.
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Mesa/X.org (0xffffffff)
    Device: llvmpipe (LLVM 11.0.0, 256 bits) (0xffffffff)
    Version: 20.2.3
    Accelerated: no
    Video memory: 15683MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 3.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Mesa/X.org
OpenGL renderer string: llvmpipe (LLVM 11.0.0, 256 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 20.2.3
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.1 Mesa 20.2.3
OpenGL shading language version string: 1.40
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.2.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
dmesg | grep i915
[    6.872804] i915 0000:00:02.0: vgaarb: deactivate vga console
[    6.874363] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem
[    6.874672] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
[    6.896844] [drm] Initialized i915 1.6.0 20200715 for 0000:00:02.0 on minor 0
[    6.916304] fbcon: i915drmfb (fb0) is primary device
[    6.954720] i915 0000:00:02.0: [drm] fb0: i915drmfb frame buffer device
[   18.976418] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[   19.166551] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])

Note, LIBVA_DRIVER_NAME="i965" is currently commented out of .profile as I am trying to minimse variables while debugging...

vainfo
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
vaInitialize failed with error code -1 (unknown libva error),exit
lspci -knn
00:00.0 Host bridge [0600]: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers [8086:3ec2] (rev 07)
	Subsystem: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers [8086:3ec2]
	Kernel driver in use: skl_uncore
	Kernel modules: ie31200_edac
00:02.0 VGA compatible controller [0300]: Intel Corporation UHD Graphics 630 (Desktop) [8086:3e92]
	Subsystem: Intel Corporation UHD Graphics 630 (Desktop) [8086:3e92]
	Kernel driver in use: i915
	Kernel modules: i915
00:14.0 USB controller [0c03]: Intel Corporation 200 Series/Z370 Chipset Family USB 3.0 xHCI Controller [8086:a2af]
	Subsystem: Intel Corporation 200 Series/Z370 Chipset Family USB 3.0 xHCI Controller [8086:a2af]
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
00:14.2 Signal processing controller [1180]: Intel Corporation 200 Series PCH Thermal Subsystem [8086:a2b1]
	Subsystem: Intel Corporation 200 Series PCH Thermal Subsystem [8086:a2b1]
00:16.0 Communication controller [0780]: Intel Corporation 200 Series PCH CSME HECI #1 [8086:a2ba]
	Subsystem: Intel Corporation 200 Series PCH CSME HECI #1 [8086:a2ba]
	Kernel driver in use: mei_me
	Kernel modules: mei_me
00:17.0 SATA controller [0106]: Intel Corporation 200 Series PCH SATA controller [AHCI mode] [8086:a282]
	Subsystem: Intel Corporation 200 Series PCH SATA controller [AHCI mode] [8086:a282]
	Kernel driver in use: ahci
00:1f.0 ISA bridge [0601]: Intel Corporation Z370 Chipset LPC/eSPI Controller [8086:a2c9]
	Subsystem: Intel Corporation Z370 Chipset LPC/eSPI Controller [8086:a2c9]
00:1f.2 Memory controller [0580]: Intel Corporation 200 Series/Z370 Chipset Family Power Management Controller [8086:a2a1]
	Subsystem: Intel Corporation 200 Series/Z370 Chipset Family Power Management Controller [8086:a2a1]
00:1f.3 Audio device [0403]: Intel Corporation 200 Series PCH HD Audio [8086:a2f0]
	Subsystem: ASRock Incorporation Device [1849:5892]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:1f.4 SMBus [0c05]: Intel Corporation 200 Series/Z370 Chipset Family SMBus Controller [8086:a2a3]
	Subsystem: Intel Corporation 200 Series/Z370 Chipset Family SMBus Controller [8086:a2a3]
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801
00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection (2) I219-V [8086:15b8]
	Subsystem: ASRock Incorporation Device [1849:15b8]
	Kernel driver in use: e1000e
	Kernel modules: e1000e

Journal: http://ix.io/2FHW

Xorg.log: http://ix.io/2FHX

# edit: I'm an idiot. MESA_LOADER_DRIVER_OVERRIDE=i965" was in /etc/environment No idea why I put that there, or when...

Last edited by jasonwryan (2020-11-27 21:32:20)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#29 2020-11-27 22:28:41

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,536

Re: [Solved] MPV and hardware acceleration with Intel drivers

Good you figured it out.
Still something;

vainfo
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
vaInitialize failed with error code -1 (unknown libva error),exit

For this error to go away you could install intel-media-driver to get a correct output, though, video mostly plays without.

vainfo: VA-API version: 1.9 (libva 2.9.1)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 20.4.1 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileNone                   : VAEntrypointStats
...snip

Offline

Board footer

Powered by FluxBB