Jellyfin HDR Tonemap on Legacy Intel GPUs
Debian 13 (Trixie) stopped supporting Jellyfin HDR Tonemapping on older Intel iGPUS, since the intel-opencl-icd package was removed. During a transcode, HDR content would look grey and washed-out. While installing the older .deb packages for Intel's Compute Runtime worked, it required a workaround to spoof the version of the libigdgmm12 package so it would not be overwritten. Since late 2024, Intel has stopped supporting OpenCL for the GPUs listed below.
- Intel HD Graphics: 500, 505 (Apollo Lake); 510, 515, 520, 530, 535, P530 (Skylake); 610, 615, 620, 630, 635, P630 (Kaby Lake); 5300, 5500, 5600, 6000, P5700 (Broadwell); (Ice Lake).
- Intel UHD Graphics: 600, 605 (Gemini Lake); 610, 620, 630, P630 (Coffee Lake); 615, 617 (Kaby Lake); (Ice Lake); (Elkhart Lake).
- Intel Iris, Iris Plus and Iris Pro: 6100, 6200, P6300 (Broadwell); 540, 550, 555, P555, 580, P580 (Skylake); 640, 650 (Kaby Lake); 645, 655 (Coffee Lake); (Ice Lake).
Fortunately, Debian Sid (unstable) now has the intel-opencl-icd-legacy package which lets these GPUs work with Jellyfin again. Here are the steps:
-
Configure hardware acceleration and
jellyfin-ffmpeg*based on the official Jellyfin guide. -
Enable the Sid (unstable) repository, under
/etc/apt/sources.list.d/sid.sources.Types: deb URIs: https://deb.debian.org/debian Suites: sid Components: main contrib non-free non-free-firmware Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg -
Set packages from Sid to the lowest priority, under
/etc/apt/preferences.d/99-sidPackage: * Pin: release a=unstable Pin-Priority: 100 -
Install the legacy Intel OpenCL libraries, and
libigdgmm12sudo apt update sudo apt install intel-opencl-icd-legacy/sid libigdgmm12/sid -
Enable Tone mapping in Jellyfin (
Server Settings --> Playback --> Transcoding)
Notes
This has been tested working with Jellyfin 12.4, intel-opencl-icd-legacy 24.35.30872.45-1, libigc1 1.0.17791.18+1-3, libigdfcl1 1.0.17791.18+1-3, and libigdgmm12 22.10.2+ds1-1. If you don't want your Sid packages to update automatically, set Pin-Priority to 1.
Troubleshooting
Ensure the following packages have been installed, and check that that the OpenCL device is present:
sudo apt install intel-media-va-driver-non-free mesa-va-drivers mesa-vdpau-drivers ocl-icd-libopencl1 clinfo vainfo
sudo clinfo