Server Version#: 1.23.2.4600
Hi there, is there any workaround to fix the green artifacts while transcoding with the last iGPU Intel Gen? I have my PMS running in a i5 11600k with ubuntu server 20.04.2 (kernel 5.12.5) (Intel UHD 750 graphics). It’s working fine, but from time to time, you can see some green artifacts while transcoding.
Thanks in advance,
FF’
Support in the Linux kernel isn’t fully working for the -11xxx CPUs.
The result is that you’ll get limited success.
Please confirm you have installed the Intel Compute Runtime packages ?
I didn’t. In fact, I don’t know what is “Intel Compute Runtime”
Do you mind to tell me how to install it?
Should I follow these instructions?
or just run:
apt-get install intel-opencl-icd
I found another one, and maybe this is the one I definitely should follow:
https://dgpu-docs.intel.com/installation-guides/ubuntu/ubuntu-focal.html
I’m totally lost 
When you install PMS, I perform a CPU survey.
If that CPU needs Intel Compute Runtime, I then print out all the instructions.
Do you remember seeing this?
This is what it shows:
PlexMediaServer install: PlexMediaServer-1.23.2.4600-xxxxxxxxx - 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: Completing final configuration.
PlexMediaServer install: Starting Plex Media Server.
PlexMediaServer install: PlexMediaServer-1.23.2.4600-xxxxxxxxx - Installation successful. Errors: 0, Warnings: 0
Processing triggers for mime-support (3.64ubuntu1) ...
Thanks. Something might be missing from the packaging.
There was no reason to mask out the build number.
Can you please show me the contents of /tmp/plexinstaller.log ?
I am building you a copy of 1.23.2.4600 locally , just in case there is an issue.
Sorry, didn’t know it was the build number. For some unknown reason I thought that number was linked to my account.
Here is the content of plexinstaller.log
# Plex Media Server installation configuration info: Fri 28 May 2021 05:09:58 PM -03
Init=0
Systemd=1
Custom=0
LinuxContainer=0
NewInstall=0
HaveOverride=0
OverrideFile=""
PlexUser="plex"
PlexGroup="plex"
VideoGroup="render"
AppSuppDir="/var/lib/plexmediaserver/Library/Application Support"
PlexTempDir="/dev/shm"
LangEncoding="en_US.UTF-8"
ExistingVersion=12302
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=11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz
CPUSKU=0
NeedOpenCL=0
NeedBeignet=0
NeedIntelCompute=0
HaveIntelGmmlib=0
HaveIntelIGCCore=0
HaveIntelIGCOpenCL=0
HaveIntelOpenCL=0
HaveIntelOCLoc=0
HaveIntelZeroGPU=0
HaveIntelCompute=0
HaveBeignet=0
HaveOpenCL=0
Platform="B560M DS3H"
Processor="11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz"
Distro="Ubuntu 20.04.2 LTS"
Kernel="Linux furflix 5.12.5-051205-generic #202105190541 SMP Wed May 19 14:00:59 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux"
Memory="15831 405 14790"
Thank you… I found the problem.
CPUSKU=0
This should be CPUSKU=11600
It also explains why you’re not getting the notification.
Please give me a few minutes to work on it here.
1 Like
Would you mind executing these commands at the terminal window ?
I see to see what PMS is seeing at the /bin/sh level.
CPU="$(cat /proc/cpuinfo | grep 'model name' | head -1 | sed -e 's/CPU.*$//' | sed -e 's/[^:]*: //')"
Processor="$(echo $CPU | awk '{print $3}')"
CPUSKU="$(echo $Processor | awk -F- '{print $2}' | sed -e 's/[^-]*-//' | tr -d '[A-Za-z]')"
echo CPU=\"$CPU\"
echo Processor=\"$Processor\"
echo CPUSKU=\"$CPUSKU\"
Here we go:
./pms.sh
CPU="11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz"
Processor="Intel(R)"
CPUSKU=""
Thank you. I clearly need to fix something right there.
This is how it should work:
sh-5.0$ CPU="$(cat /proc/cpuinfo | grep 'model name' | head -1 | sed -e 's/CPU.*$//' | sed -e 's/[^:]*: //')"
sh-5.0$ Processor="$(echo $CPU | awk '{print $3}')"
sh-5.0$ CPUSKU="$(echo $Processor | awk -F- '{print $2}' | sed -e 's/[^-]*-//' | tr -d '[A-Za-z]')"
sh-5.0$ echo CPU=\"$CPU\"
CPU="Intel(R) Core(TM) i7-8809G "
sh-5.0$ echo Processor=\"$Processor\"
Processor="i7-8809G"
sh-5.0$ echo CPUSKU=\"$CPUSKU\"
CPUSKU="8809"
sh-5.0$
I will work this out and post a DEB file for you ASAP
PS: Please post:
cat /proc/cpuinfo | grep -i 'model name'
root@furflix:/home/lucas# cat /proc/cpuinfo | grep -i 'model name'
model name : 11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz
model name : 11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz
model name : 11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz
model name : 11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz
model name : 11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz
model name : 11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz
model name : 11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz
model name : 11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz
model name : 11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz
model name : 11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz
model name : 11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz
model name : 11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz
Thank you!
I’ll use those strings here to figure out what’s going wrong
Found it!
1 Like
if I use this code:
CPU="$(cat /proc/cpuinfo | grep 'model name' | head -1 | sed -e 's/CPU.*$//' | sed -e 's/[^:]*: //')"
Processor="$(echo $CPU | awk '{print $5}')"
CPUSKU="$(echo $Processor | awk -F- '{print $2}' | sed -e 's/[^-]*-//' | tr -d '[A-Za-z]')"
echo CPU=\"$CPU\"
echo Processor=\"$Processor\"
echo CPUSKU=\"$CPUSKU\"
I’m getting:
CPU="11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz"
Processor="i5-11600K"
CPUSKU="11600"
I just replaced awk ‘{print $3}’ for awk ‘{print $5}’, but I think you already know that
Right, that would work but then would break all the earlier models.
I have something here which looks like it’ll solve for all cases.
I still need to test it on the Xeon-X1250 in the HQ lab.
sh-5.0$ echo $CPU | awk -F- '{print $1}'
11th Gen Intel(R) Core(TM) i5
sh-5.0$ X="$(echo $CPU | awk -F- '{print $2}' | sed -e 's/ @.*//')"
sh-5.0$ echo \"$X\"
"11600K"
sh-5.0$
I need to also handle the embedded spaces. Isn’t shell scripting fun? 
beautiful! specially because I cant even think how many cpus models are out there! 
How’s this look?
sh-5.0$ X="$(echo $CPU | awk -F- '{print $2}' | awk '{print $1}')"
sh-5.0$ echo \"$X\"
"11600K"
sh-5.0$ CPU="$(cat /proc/cpuinfo | grep 'model name' | head -1)"
sh-5.0$ X="$(echo $CPU | awk -F- '{print $2}' | awk '{print $1}')"
sh-5.0$ echo \"$X\"
"8809G"
sh-5.0$
Generic and Swoopy enough?
My CPU reads as:
bash-5.0$ cat /proc/cpuinfo | grep 'model name' | head -1
model name : Intel(R) Core(TM) i7-8809G CPU @ 3.10GHz
bash-5.0$ CPU="$(cat /proc/cpuinfo | grep 'model name' | head -1)"
bash-5.0$
1 Like
What kind of black magic is that? 
1 Like
This should be final:
bash-5.0$ cat test
#!/bin/sh
CPU="$(cat /proc/cpuinfo | grep 'model name' | head -1 | awk -F: '{print $2}' | sed -e 's/^ //')"
ASIC="$(echo $CPU | awk -F- '{print $2}')"
CPUSKU="$(echo $ASIC | awk '{print $1}'| tr -d '[A-Za-z]')"
echo \"$CPU\"
echo \"$ASIC\"
echo \"$CPUSKU\"
bash-5.0$ ./test
"Intel(R) Core(TM) i7-8809G CPU @ 3.10GHz"
"8809G CPU @ 3.10GHz"
"8809"
bash-5.0$
“ASIC” is a temp placeholder here but serves as a coding reminder.
Please check while I go check on the Xeons ?
I’ve checked both and it’s working
Here the results:
~$ ./pms.sh
"11th Gen Intel(R) Core(TM) i5-11600K @ 3.90GHz"
"11600K @ 3.90GHz"
"11600"
./pms.sh
"Intel(R) Xeon(R) CPU E3-1240 v3 @ 3.40GHz"
"1240 v3 @ 3.40GHz"
"1240"