~/Downloads$ sudo ./preinst
CPUSKU=“0”
May I have your exact model name string?
cat /proc/cpuinfo | grep 'model name' | uniq
cat /proc/cpuinfo | grep ‘model name’ | uniq
model name : 12th Gen Intel(R) Core™ i5-12500
Thanks.
I’ll use that string and figure out why it’s failing.
I search for the first token (word) in the string which contains a dash.
In this case, it should be the CPU product code (i5-12500)
I’ll figure it out and update the package and add the fix to my update notice.
Thanks.
Let me know if you need any other test to be done.
WIll do.
My goal with this section of changes is to move as much variable editing back into bash as I can (stop wasting PIDs and slowing down the install needlessly)
GOT IT!
![]()
Run this one and check $? please
#!/bin/bash
# find Intel CPUSKU anywhere in model name
#ModelName="model name : 12th Gen Intel(R) Core™ i5-12500"
#Processor="$(echo $ModelName | grep 'model name' | uniq)"
Processor="$(cat /proc/cpuinfo | grep 'model name' | uniq)"
Processor="${Processor//[^:]*:/}"
Index=1
CPUSKU=""
# Find the xx-yyyyy CPUSKU
while [ $Index -lt 8 ] && [ "$CPUSKU" = "" ];
do
CPUCode="$(echo $Processor | awk '{print $'$Index'}' | grep \\-)"
[ "$CPUCode" != "" ] && CPUSKU="$CPUCode"
Index=$((Index + 1))
done
# Trim off all pre-dash and alpha characters
CPUSKU="${CPUSKU//[^-]*-/}"
CPUSKU="${CPUSKU//[A-Z]/}"
CPUSKU="${CPUSKU// /}"
[ "$CPUSKU" = "" ] && CPUSKU=0
echo CPUSKU=\"$CPUSKU\"
sudo ./preinst
CPUSKU=“12500”
Did you save that as ‘preinst’?
Only thing left to check are the Intel N and Intel G series CometLake processors.
Yes. I just keep editing the file
Excellent… Thanks.
If I can get the N and G cpus confirmed, I will feel safe enough to make another build
Know you want the N & G CPU. Just confirming works OK on other Comet Lake as well.
root@osage:~/test# cat /proc/cpuinfo | grep ‘model name’ | uniq
model name : Intel(R) Core™ i5-10500T CPU @ 2.30GHz
root@osage:~/test# ./cpusku
CPUSKU=“10500”
Thank you FordGuy.
This new parser is looking very good. it’s a lot better than what it was.
If N and G machines work out then I’ve the template for all N, G, J and future machines
For your consideration :
Build 2 - Intel 64 bit package is available in post #1
Corrections and changes with the link.
sudo dpkg -i pms-packaging-preview-build-2-amd64.deb
(Reading database … 182124 files and directories currently installed.)
Preparing to unpack pms-packaging-preview-build-2-amd64.deb …
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.28.0.5952-c14994e38) over (1.28.0.5952-c14994e38) …
Setting up plexmediaserver (1.28.0.5952-c14994e38) …
PlexMediaServer install: PlexMediaServer-1.28.0.5952-c14994e38 - 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: /tmp
PlexMediaServer install: Lang Encoding: en_US.UTF-8
PlexMediaServer install: Processor: 12th Gen Intel(R) Core™ i5-12500
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 ICD: 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.28.0.5952-c14994e38 - 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) …
Beautiful
All good now
I restarted before I could check /tmp
It’s empty now
I snagged your test package for my NUC 11 / Ubuntu 22.04 box after I had issues with the 1.27.2 installer. Worked like a dream - detected the CPU and needed Intel packages correctly, all variables looked good to me. Thanks much!
I am having an issue with 4K HDR → 4K SDR transcoding (4K HDR → 1080/720 works fine), not sure if that’s something you want to look at here or if you’re just working on the packaging itself.
The timing for this is perfect, just picked up my NUC 11 during the weekend and was trying to figure out which ICR to use.
First run:
sudo dpkg -i pms-packaging-preview-build-2-amd64.deb
(Reading database ... 181851 files and directories currently installed.)
Preparing to unpack pms-packaging-preview-build-2-amd64.deb ...
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.28.0.5952-c14994e38) over (1.27.2.5929-a806c5905) ...
Setting up plexmediaserver (1.28.0.5952-c14994e38) ...
PlexMediaServer install: PlexMediaServer-1.28.0.5952-c14994e38 - 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: Processor: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
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: Not Installed
PlexMediaServer install: Intel IGC Core: Need: 1.0.9441, Have: Not Installed
PlexMediaServer install: Intel IGC OpenCL: Need: 1.0.9441, Have: Not Installed
PlexMediaServer install: Intel OpenCL ICD: 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.
PlexMediaServer install: Starting Plex Media Server.
PlexMediaServer install: PlexMediaServer-1.28.0.5952-c14994e38 - Installation successful. Errors: 0, Warnings: 8
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) ...
Second run after installing the missing packages:
sudo dpkg -i pms-packaging-preview-build-2-amd64.deb
(Reading database ... 181937 files and directories currently installed.)
Preparing to unpack pms-packaging-preview-build-2-amd64.deb ...
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.28.0.5952-c14994e38) over (1.28.0.5952-c14994e38) ...
Setting up plexmediaserver (1.28.0.5952-c14994e38) ...
PlexMediaServer install: PlexMediaServer-1.28.0.5952-c14994e38 - 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: Processor: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
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 ICD: 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.28.0.5952-c14994e38 - 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) ...