Edit2: Sorry, running Ubuntu 20.04.3 LTS, and HWE stack. I get the same error with the GA Stack.
_
I've been trying to get nouveau to work so that I can use my Nvidia P500 for hardware acceleration instead of my CPU.
This is the error I'm getting:
(base) wallheck@wallheck:~$ export LIBVA_DRIVER_NAME=nouveau
(base) wallheck@wallheck:~$ vainfo
libva info: VA-API version 1.7.0
libva info: User environment variable requested driver 'nouveau'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so
libva info: Found init function __vaDriverInit_1_7
iris: driver missing
iris: driver missing
libva error: /usr/lib/x86_64-linux-gnu/dri/nouveau_drv_video.so init failed
libva info: va_openDriver() returns 2
vaInitialize failed with error code 2 (resource allocation failed),exit
I installed nouveau with
sudo apt install nouveau-firmware
sudo apt install xserver-xorg-video-nouveau
and for both it says its already the newest version.
I am able to get video acceleration to work with the CPU using this guide: https://ubuntuhandbook.org/index.php/2021/08/enable-hardware-video-acceleration-va-api-for-firefox-in-ubuntu-20-04-18-04-higher/.
Using i965 drivers, I get activity under the video row when I use sudo intel_gpu_top
.
However, when I use nvtop
, I cannot get any activity for my GPU.
Here's the kernel drivers for the integrated graphics and GPU:
(base) wallheck@wallheck:~$ lspci -k | grep -EA3 'VGA|3D|Display'
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)
Subsystem: Lenovo UHD Graphics 620
Kernel driver in use: i915
Kernel modules: i915
--
02:00.0 3D controller: NVIDIA Corporation GP108GLM [Quadro P500 Mobile] (rev a1)
Subsystem: Lenovo GP108GLM [Quadro P500 Mobile]
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
I don't think I need to change the kernel driver to nouveau as the intel drivers worked with i965 specified and i915 kernel in use.
Not really sure what to do from here.