Same issue, and I tried the solution and it doesn’t work for me. I too have the beelink u59 with the intel jasper lake N5095 running headless ubuntu server 21.10. Are there any other drivers I need to be installing besides adding “options i915 enable_guc=2” to /etc/modprobe.d/i915.conf? Here is my vainfo:
$ sudo vainfo
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
libva info: VA-API version 1.12.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_12
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.12 (libva 2.10.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 21.3.3 ()
vainfo: Supported profile and entrypoints
VAProfileNone : VAEntrypointVideoProc
VAProfileNone : VAEntrypointStats
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSliceLP
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSliceLP
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile1 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
VAProfileVP9Profile3 : VAEntrypointVLD
VAProfileHEVCMain422_10 : VAEntrypointVLD
VAProfileHEVCMain444 : VAEntrypointVLD
VAProfileHEVCMain444 : VAEntrypointEncSliceLP
VAProfileHEVCMain444_10 : VAEntrypointVLD
VAProfileHEVCMain444_10 : VAEntrypointEncSliceLP
From the plex console:
Jan 19, 2022 04:35:58.827 [0x7f53859fdb38] Error — [Transcoder] [h264_vaapi @ 0x7f254db07240] Driver does not support any RC mode compatible with selected options (supported modes: CQP).
Jan 19, 2022 04:35:58.828 [0x7f53859fdb38] Error — [Transcoder] Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
I managed to get the N6005 to hardware transcode in 21.10 by upgrading a bunch of stuff manually (the latest kernel, latest linux-firmware, latest intel-media-driver, etc…).
Now I’m getting a similar problem, but only when I enable HDR to SDR tone-mapping. Apparently these CPUs do not support VPP hw HDR to SDR tone-mapping which I suspect is what Plex is trying to do. I’ve tried Jellyfin and I can get tone-mapping working if I disable the VPP option (so it is done with OpenCL). Plex doesn’t allow configuring that, but maybe Plex can detect that this is a Jasper Lake CPU and default to OpenCL tone-mapping. Is that something that could be implemented?
Ok, I installed 20.04.3LTS, upgraded, applied the i915.conf patch, and this is what I get when I run vainfo:
willthethrill@beelink:~$ sudo vainfo
[sudo] password for willthethrill:
error: XDG_RUNTIME_DIR not set in the environment.
error: can't connect to X server!
error: failed to initialize display
Update:
The following is the output when I install plexmedia server. It found my intel hardware on ubuntu 21.10.
Installing new version of config file /etc/apt/sources.list.d/plexmediaserver.list ...
PlexMediaServer install: PlexMediaServer-1.25.3.5409-f11334058 - Installation starting.
PlexMediaServer install:
PlexMediaServer install: Now installing based on:
PlexMediaServer install: Installation Type: New
PlexMediaServer install: Process Control: systemd
PlexMediaServer install: Plex User: plex
PlexMediaServer install: Plex Group: plex
PlexMediaServer install: Video Group: video
PlexMediaServer install: Metadata Dir: /var/lib/plexmediaserver/Library/Application Support
PlexMediaServer install: Temp Directory: /tmp
PlexMediaServer install: Lang Encoding: en_US.UTF-8
PlexMediaServer install: Intel i915 Hardware: Not found
PlexMediaServer install: Nvidia GPU card: Not Found
PlexMediaServer install:
PlexMediaServer install: Completing final configuration.
I successfully got the i915 drivers to load. After digging around in some arch linux forums I found that I should be poking around in dmesg to find out why my driver didn’t load. And low and behold:
i915 0000:00:02.0: Your graphics device 4e55 is not properly supported by the driver in this
kernel version. To force driver probe anyway, use i915.force_probe=4e55
module parameter or CONFIG_DRM_I915_FORCE_PROBE=4e55 configuration
So, I updated the i915.conf with “i915.force_probe=4e55” and nothing. I also removed the “options i915 enable_guc=2” from that file. Nothing. I then read that ubuntu changed the way it loads modules some time ago and I updated the formatting to reflect that. This is the contents of /etc/modprobe.d/i915.conf:
options i915 force_probe=4e55
Then after several reboots I discovered I needed to rebuild initrd with update-initramfs -u. A reboot and viola:
PlexMediaServer install: Intel i915 Hardware: Found
Alas, Plex is still not transcoding
Jan 20, 2022 21:17:06.368 [0x7f211c842b38] Error — [Transcoder] [h264_vaapi @ 0x7fa2de515b40] Driver does not support any RC mode compatible with selected options (supported modes: CQP).
Here is my output:
willthethrill@beelink:/sys/module/i915/drivers$ ls -la
total 0
drwxr-xr-x 2 root root 0 Jan 20 21:29 .
drwxr-xr-x 7 root root 0 Jan 20 21:03 ..
lrwxrwxrwx 1 root root 0 Jan 20 21:29 pci:i915 -> ../../../bus/pci/drivers/i915
willthethrill@beelink:/sys/module/i915/drivers$ ls -la pci:i915/
total 0
drwxr-xr-x 2 root root 0 Jan 20 21:03 .
drwxr-xr-x 32 root root 0 Jan 20 21:03 ..
lrwxrwxrwx 1 root root 0 Jan 20 21:30 0000:00:02.0 -> ../../../../devices/pci0000:00/0000:00:02.0
--w------- 1 root root 4096 Jan 20 21:30 bind
lrwxrwxrwx 1 root root 0 Jan 20 21:30 module -> ../../../../module/i915
--w------- 1 root root 4096 Jan 20 21:30 new_id
--w------- 1 root root 4096 Jan 20 21:30 remove_id
--w------- 1 root root 4096 Jan 20 21:03 uevent
--w------- 1 root root 4096 Jan 20 21:30 unbind
Upgrade the kernel to the latest 5.13 build (5.13.19-051319-generic as of today) using method 1 on this guide. (be careful copy pasting commands off that site, they don’t always work)
Installing the latest intel drivers from here (I don’t know if this is required, but it’s one of the steps I took)
Updating /etc/modprobe.d/i915.conf with the following contents
Thanks @ChuckPa for helping out so much! Question, on some intel site I saw that i915 enable_guc=2 was for pre gen 10 intel processors, why does it work here?
Additionally, @ChuckPa or anyone else involved in this thread, is there any way to get HDR tone mapping working on this hardware? I’ve followed this guide but it seems to have made no difference whatsoever.
I didn’t have the log from the original installation. I installed it from the repositories you provide, and I’m 100% that it installed beignet-opencl-icd.
I also have the two recommended packages installed:
rafael@upsilon:~$ sudo apt-get install ocl-icd-libopencl1 beignet-opencl-icd
Reading package lists... Done
Building dependency tree
Reading state information... Done
ocl-icd-libopencl1 is already the newest version (2.2.11-1ubuntu1).
beignet-opencl-icd is already the newest version (1.3.2-7build1).
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
But still, when I have HDR tone mapping enabled, I get no HW transcoding.
Here are the debug logs for the HDR tone mapping not being hardware accelerated. I’m sorry if there are a lot of useless files, but I couldn’t find any instructions on how to trim/clear the logs.