Ubuntu 22.04 Packaging - development & preview

ALL;

I’ve been working to update the Ubuntu/Debian packaging to account for how Ubuntu 22.04 repository packages have changed.

I’ve selected 1.26.1.5772 for testing purposes as its database is compatible with 1.26.0 and above.

EDIT:

Changes incorporated

  1. The preinstaller is now sensitive to:
    – CPU (including Alderlake)
    – Distribution
    – Release version

  2. Using these three pieces of data, the preinstaller now compares what’s installed against what is needed and reports accordingly.

  3. The familiar - “Installed” and “Not Installed” is upgraded.
    – Reports “Installed” if the correct version is found
    – Reports “Need: version, Have: version
    – Reports “Not Installed” if not found or not completely installed. (‘ii’ status)

  4. Postinstall will mark the Intel-Compute-Runtime dependencies ‘hold’ status to prevent apt update/upgrade from breaking your working system.

Currently supported –

  1. Any CPU, CometLake or higher - signal as Intel Compute Runtime
  2. 20.04 and below, KabyLake → GeminiLake - signal as Beignet + libopencl1
  3. 20.10 and above, KabyLake and above - signal as Intel Compute Runtime
  4. Correct error reporting when module(s) are incorrect version or missing.

I would appreciate seeing:

  1. The copy/paste of the console session from running the script as ‘sudo’ (use </> code formatting button

  2. The contents of /tmp/plexinstaller.log

  3. Report of success or failure with actual operation.

Thank you in advance for your help.

The package to download is here:

— Version 1.26.1 removed — packaging not valid for all use cases.
Fixes:

24-May-2022

  • Fixed parsing of held packages when querying version info.
  • Use proper intel-opencl-icd instead of intel-opencl

25-May-2022

  • Changed version testing method to use dpkg-query
  • Quieted shell output when marking packages in background after dpkg exits.

07-Jun-2022

01-Jul-2022

This development effort is complete.

  1. PMS 1.27.2 (Beta download) contains the culmination of our work here.
  2. Please expect one minor but (to be hotfixed in the next few days).
  • Beignet was being flagged as needed on certain Ubuntu 22.04 installations.
4 Likes

coffeelake on 20.04 LTS, latest HWE kernel - seems fine.

PlexMediaServer install: Pre-installation Validation.

PlexMediaServer install: Pre-installation Validation complete.

Plex Media Server installation configuration info: Thu 19 May 2022 07:13:31 AM HKT

Init=0

Systemd=1

Custom=0

LinuxContainer=0

NewInstall=0

HaveOverride=1

OverrideFile=“/etc/systemd/system/plexmediaserver.service.d/override.conf”

PlexUser=“plex”

PlexGroup=“plex”

VideoGroup=“video”

AppSuppDir=“/var/lib/plexmediaserver/Library/Application Support”

PlexTempDir=“/tmp”

LangEncoding=“en_US.UTF-8”

ExistingVersion=12601

DistroName=“ubuntu”

DistroVersion=“2004”

HaveHardware=1

HaveTranscoderPref=1

NeedUser=0

NeedGroup=0

NeedVideo=0

Verbose=1

Running=1

Errors=0

Warnings=0

HaveIntel=1

HaveIntelCore=1

HaveIntelXeon=0

Havei915=1

HaveNvidia=0

Processor=Intel(R) Core™ i7-8700 CPU @ 3.20GHz

CPUSKU=8700

NeedOpenCL=1

NeedBeignet=1

NeedIntelCompute=0

HaveIntelGmmlib=0

HaveIntelIGCCore=0

HaveIntelIGCOpenCL=0

HaveIntelOpenCL=0

HaveIntelCompute=0

HaveBeignet=1

HaveOpenCL=1

VersionIntelGmmlib=“Not Installed”

VersionIntelIGCCore=“Not Installed”

VersionIntelIGCOpenCL=“Not Installed”

VersionIntelOpenCL=“Not Installed”

Platform=“System Product Name”

Processor=“Intel(R) Core™ i7-8700 CPU @ 3.20GHz”

Distro=“Ubuntu 20.04.4 LTS”

Kernel=“Linux hexagon 5.13.0-41-generic #46~20.04.1-Ubuntu SMP Wed Apr 20 13:16:21 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux”

Memory=“64147 2430 517”

So far so good… Thank you.

Now to get someone with Ubuntu 21+ and/or CometLake+

20.04 Comet Lake (i5-10500T). Everything looks good.
plexinstaller.log (1.2 KB)


22.04 Comet Lake. Booted same system from external USB drive with 22.04. Ubuntu updates applied. Intel Compute Runtime not installed.

PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.

plexinstaller_2204_cometlake.log (1.2 KB)


22.04 Comet Lake. Installed Intel Compute Runtime 21.52.22081

PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.

plexinstaller_2204_cometlake_icr2152.log (1.2 KB)


22.04 Comet Lake. Removed ICR 21.52 and installed 21.49.

PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.

plexinstaller_2204_cometlake_icr2149.log (1.2 KB)

For what its worth … Intel(R) Core™ i7-9750H (Coffee Lake) with Ubuntu 22.04 LTS and looks good.

plexinstaller.log (1.2 KB)

@FordGuy61

Would you mind running the test one more time?

I found a small omission . It wasn’t properly setting a post-install flag.

If you look here, it becomes obvious. NeedIntelCompute=1 is needed here.

Processor=Intel(R) Core(TM) i5-10500T CPU @ 2.30GHz
CPUSKU=10500
NeedOpenCL=0
NeedBeignet=0
NeedIntelCompute=0
HaveIntelGmmlib=0
HaveIntelIGCCore=0
HaveIntelIGCOpenCL=0
HaveIntelOpenCL=0
HaveIntelCompute=0
HaveBeignet=0
HaveOpenCL=0
VersionIntelGmmlib="22.0.0"
VersionIntelIGCCore="1.0.9636"
VersionIntelIGCOpenCL="1.0.9636"
VersionIntelOpenCL="21.52.22081"

Here’s updates:

Console for all three runs:

PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.

No ICR
plexinstaller_2204_cometlake_noicr_v2.log (1.2 KB)

ICR 21.49
plexinstaller_2204_cometlake_icr2149_v2.log (1.2 KB)

ICR 21.52: Now has NeedIntelCompute=1
plexinstaller_2204_cometlake_icr2152_v2.log (1.2 KB)

Super and thanks!

I will now integrate into the postinstall phase and generate a test package :smiling_imp:

This post now obsolete with candidate test package in OP.

plexinstaller.log (1.2 KB)

dpkg: warning: downgrading plexmediaserver from 1.26.1.5798-99a4a6ac9 to 1.26.1.5772-872b93b91
(Reading database ... 201896 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.26.1.5772-872b93b91_amd64.deb ...
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.26.1.5772-872b93b91) over (1.26.1.5798-99a4a6ac9) ...
Setting up plexmediaserver (1.26.1.5772-872b93b91) ...
PlexMediaServer install: PlexMediaServer-1.26.1.5772-872b93b91 - Installation starting.
PlexMediaServer install: 
PlexMediaServer install: Now installing based on:
PlexMediaServer install:   Installation Type:   Update
PlexMediaServer install:   Process Control:     systemd
PlexMediaServer install:   Plex User:           plex
PlexMediaServer install:   Plex Group:          plex
PlexMediaServer install:   Video Group:         render
PlexMediaServer install:   Metadata Dir:        /var/lib/plexmediaserver/Library/Application Support
PlexMediaServer install:   Temp Directory:      /dev/shm  (set in Preferences.xml)
PlexMediaServer install:   Lang Encoding:       en_US.UTF-8
PlexMediaServer install:   Intel i915 Hardware: Found
PlexMediaServer install:   Nvidia GPU card:     Not Found
PlexMediaServer install:  
PlexMediaServer install:   OpenCL:              Installed
PlexMediaServer install:   Intel Gmmlib:        Installed
PlexMediaServer install:   Intel IGC Core:      Installed
PlexMediaServer install:   Intel IGC OpenCL:    Installed
PlexMediaServer install:   Intel OpenCL:        Need: , Have: 22.14.22890
PlexMediaServer install: 
PlexMediaServer install: WARNING: The Intel OpenCL library, required for Intel Compute Runtime support, is missing.
PlexMediaServer install:          Please install package:  'intel-opencl' from https://github.com/intel/compute-runtime/releases/download/21.49.21786/intel-opencl-icd_21.49.21786_amd64.deb
PlexMediaServer install: Intel Compute Runtime packages are available from:  https://github.com/intel/compute-runtime/releases
PlexMediaServer install: Please be certain to install them in the listed order.
PlexMediaServer install:  
PlexMediaServer install: Completing final configuration.
PlexMediaServer install: Starting Plex Media Server.
PlexMediaServer install: PlexMediaServer-1.26.1.5772-872b93b91 - Installation successful.  Errors: 0, Warnings: 2
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...

Downgraded to 21.49.21786 and can confirm that HW works like a charm. Thank you so much.

plexinstaller.log (1.2 KB)

(Reading database ... 201896 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.26.1.5772-872b93b91_amd64.deb ...
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.26.1.5772-872b93b91) over (1.26.1.5772-872b93b91) ...
Setting up plexmediaserver (1.26.1.5772-872b93b91) ...
PlexMediaServer install: PlexMediaServer-1.26.1.5772-872b93b91 - Installation starting.
PlexMediaServer install: 
PlexMediaServer install: Now installing based on:
PlexMediaServer install:   Installation Type:   Update
PlexMediaServer install:   Process Control:     systemd
PlexMediaServer install:   Plex User:           plex
PlexMediaServer install:   Plex Group:          plex
PlexMediaServer install:   Video Group:         render
PlexMediaServer install:   Metadata Dir:        /var/lib/plexmediaserver/Library/Application Support
PlexMediaServer install:   Temp Directory:      /dev/shm  (set in Preferences.xml)
PlexMediaServer install:   Lang Encoding:       en_US.UTF-8
PlexMediaServer install:   Intel i915 Hardware: Found
PlexMediaServer install:   Nvidia GPU card:     Not Found
PlexMediaServer install:  
PlexMediaServer install:   OpenCL:              Installed
PlexMediaServer install:   Intel Gmmlib:        Installed
PlexMediaServer install:   Intel IGC Core:      Installed
PlexMediaServer install:   Intel IGC OpenCL:    Installed
PlexMediaServer install:   Intel OpenCL:        Installed
PlexMediaServer install:  
PlexMediaServer install: Completing final configuration.
PlexMediaServer install: Starting Plex Media Server.
PlexMediaServer install: INFO: Please be advised, Intel Compute Runtime packages for version 21.49.21786 have been marked with 'hold' status.
PlexMediaServer install:       This will preserve PMS operation by preventing normal 'apt' updates from overwriting them.
PlexMediaServer install:       PMS will automatically manage (un)hold status for you.   To manage manually,  see 'man apt-mark'.
PlexMediaServer install: PlexMediaServer-1.26.1.5772-872b93b91 - Installation successful.  Errors: 0, Warnings: 0
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...

Ubuntu 22.04 with Kernel 5.18 (PPA) and an Intel 12700 (non-k)

 ./preinst.sh
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
# Plex Media Server installation configuration info:  Tue May 24 03:13:22 PM AWST 2022
Init=0
Systemd=1
Custom=0
LinuxContainer=0
NewInstall=1
HaveOverride=0
OverrideFile=""
PlexUser="plex"
PlexGroup="plex"
VideoGroup="render"
AppSuppDir="/var/lib/plexmediaserver/Library/Application Support"
PlexTempDir="/tmp"
LangEncoding="en_US.UTF-8"
ExistingVersion=0
DistroName="ubuntu"
DistroVersion="2204"
HaveHardware=1
HaveTranscoderPref=0
NeedUser=1
NeedGroup=1
NeedVideo=1
Verbose=1
Running=1
Errors=0
Warnings=0
HaveIntel=1
HaveIntelCore=1
HaveIntelXeon=0
Havei915=1
HaveNvidia=0
Processor=12th Gen Intel(R) Core(TM) i7-12700
CPUSKU=12700
NeedOpenCL=0
NeedBeignet=0
NeedIntelCompute=1
HaveIntelGmmlib=0
HaveIntelIGCCore=0
HaveIntelIGCOpenCL=0
HaveIntelOpenCL=0
HaveIntelCompute=0
HaveBeignet=0
HaveOpenCL=1
VersionIntelGmmlib="22.0.2"
VersionIntelIGCCore="1.0.10409"
VersionIntelIGCOpenCL="1.0.10409"
VersionIntelOpenCL="22.14.22890"
Platform="System Product Name"
Processor="12th Gen Intel(R) Core(TM) i7-12700"
Distro="Ubuntu 22.04 LTS"
Kernel="Linux tequila 5.18.0-051800-generic #202205222030 SMP PREEMPT_DYNAMIC Sun May 22 20:33:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux"
Memory="63896 4418 46170"

@claymen
As you can see, you haven’t satisfied all the Intel Compute Runtime requirements.

If you had run the full package installation , it would have provided the extra details on what you need.

As it stands now, you won’t have a working QSV

I normally run within Docker, your script exists immediately if I run that within the Docker container as it’s a custom environment at that point.

As far as I can see hardware transcode is working according?
image

Something doesn’t seem right with the detection, isn’t this from the output showing it is there?

And just to validate, tried your .deb package, and it seems to be complaining that my library version that is installed is newer than what the script expects.

Setting up plexmediaserver (1.26.1.5772-872b93b91) ...
PlexMediaServer install: PlexMediaServer-1.26.1.5772-872b93b91 - 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:         render
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: Found
PlexMediaServer install:   Nvidia GPU card:     Not Found
PlexMediaServer install:
PlexMediaServer install:   OpenCL:              Installed
PlexMediaServer install:   Intel Gmmlib:        Need: 21.3.3, Have: 22.0.2
PlexMediaServer install:   Intel IGC Core:      Need: 1.0.9441, Have: 1.0.10409
PlexMediaServer install:   Intel IGC OpenCL:    Need: 1.0.9441, Have: 1.0.10409
PlexMediaServer install:   Intel OpenCL:        Need: 21.49.21786, Have: 22.14.22890
PlexMediaServer install:
PlexMediaServer install: WARNING: The Intel GMM library, required for Intel Compute Runtime support, is missing.
PlexMediaServer install:          Please install package: 'intel-gmmlib' from https://github.com/intel/compute-runtime/releases/download/21.49.21786/intel-gmmlib_21.3.3_amd64.deb
PlexMediaServer install:
PlexMediaServer install: WARNING: The Intel IGC Core, required for Intel Compute Runtime support, is missing.
PlexMediaServer install:          Please install package: 'intel-igc-core' from https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.9441/intel-igc-core_1.0.9441_amd64.deb
PlexMediaServer install:
PlexMediaServer install: WARNING: The Intel IGC OpenCL library, required for Intel Compute Runtime support, is missing.
PlexMediaServer install:          Please install package:  'intel-igc-opencl' from https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.9441/intel-igc-opencl_1.0.9441_amd64.deb
PlexMediaServer install:
PlexMediaServer install: WARNING: The Intel OpenCL library, required for Intel Compute Runtime support, is missing.
PlexMediaServer install:          Please install package:  'intel-opencl' from https://github.com/intel/compute-runtime/releases/download/21.49.21786/intel-opencl-icd_21.49.21786_amd64.deb
PlexMediaServer install: Intel Compute Runtime packages are available from:  https://github.com/intel/compute-runtime/releases
PlexMediaServer install: Please be certain to install them in the listed order.
PlexMediaServer install:
PlexMediaServer install: Completing final configuration.
Created symlink /etc/systemd/system/multi-user.target.wants/plexmediaserver.service → /lib/systemd/system/plexmediaserver.service.
PlexMediaServer install: PlexMediaServer-1.26.1.5772-872b93b91 - Installation successful.  Errors: 0, Warnings: 8
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...

where did you take this screenshot from?

Tautulli, but Plex itself shows the same thing.

image

Tautulli is a bit nicer as it has a historical view, so I can go back to a specific play and see what it was doing, was it transcoding, was it using hardware etc. Makes troubleshooting a little easier with the historical data.

1 Like

@claymen is HDR tonemapping now also working for you?

Grabbed some test content, 4k h265 HDR, and it basically crashed out the plex service. So it’s not quite happy as yet. Still, it’s progress, prior to 5.18 kernel I couldn’t get any hardware transcode without it crashing the whole system.

Here is the test install script for me. Intel Alder Lake, 5.17 kernel, 22.04 system upgraded from 21.10.

plexinstaller.log (1.2 KB)