Activating Plex hardware acceleration

dak180

Patron
Joined
Nov 22, 2017
Messages
310

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
Which is great for SCALE but does not help anyone running the freebsd based CORE; those are two completely different operating systems.

This is very true, and, TrueNAS Core can only enable what is available in FreeBSD/Plex to begin with. And that's not very much. https://jira.ixsystems.com/browse/NAS-100255 was closed with "This is supported in TrueNAS SCALE. We cannot make it work on 12.", and that's just reality.

If you want to tilt at this windmill, it needs to start upstream. Get involved with FreeBSD Desktop devs, and with the Plex folk, and with Intel. It's quite the windmill to conquer.

For mere users: The pragmatic move is to go TrueNAS SCALE if hw transcode is compelling; or stick with Core and turn off hw transcode, and don't even think about it. Both are completely feasible.
 

elorimer

Contributor
Joined
Aug 26, 2019
Messages
194
I'll try SCALE perhaps when it is in beta but I'm not sanguine it will work for me and my Gemini Lake. The intel driver is broken; I have no difficulty invoking it in 12.
 

MansPapa

Cadet
Joined
Dec 18, 2020
Messages
1
Hi I’m new to the world of Truenas but have done a ton of reading and research and have a general question.

I built myself a TrueNas core (12u1) NAS with a Xeon 2276g processor with a new motherboard with support for the embedded iGpu. I’ve turned on the option in the Bios to enable the embedded iGpu.

to get plex to utilize the embedded iGpu for transcoding, do I still need to follow the steps on the first page of this thread to get it enabled or has something changed that I need to follow?
Thanks for all of your help and for the wealth of knowledge captured here!
 

zperetz

Dabbler
Joined
Dec 2, 2017
Messages
36
What I've got in TrueNAS 12-U1 is something strange and I cannot explain this. If I start the media with DTS and SRT hw (i915kms) transcoding the jail hangs the process with halting the resources to busy state. So the process cannot be killed, the jail cannot umount <jail>/dev and I have to restart the server as the only solution for this issue.
top looks like this (pid 18064 is locked process):
Code:
last pid: 19159;  load averages:  0.26,  0.31,  0.31                                                                                                                                                                    up 0+00:50:56  12:45:31
15 processes:  1 running, 14 sleeping
CPU:  0.4% user,  0.0% nice,  0.1% system,  0.0% interrupt, 99.4% idle
Mem: 944M Active, 2077M Inact, 70M Laundry, 27G Wired, 828M Free
ARC: 25G Total, 836M MFU, 24G MRU, 666K Anon, 58M Header, 54M Other
     24G Compressed, 24G Uncompressed, 1.03:1 Ratio
Swap: 10G Total, 10G Free

  PID USERNAME    THR PRI NICE   SIZE    RES STATE    C   TIME    WCPU COMMAND
 3088 plex         14  52   15   126M    62M piperd   4   0:04   0.07% Plex Script Host
 3445 plex         11  52    0    83M    48M piperd   6   0:03   0.05% Plex Script Host
 3444 plex         11  52    0    80M    46M piperd   7   0:03   0.05% Plex Script Host
 2977 plex         20  52    0   412M   210M uwait    4   0:08   0.03% Plex Media Server
19039 root          1  20    0    13M  3528K CPU5     5   0:00   0.01% top
 2839 root          1  20    0    11M  2488K kqread   1   0:00   0.00% rtsold
 2847 root          1  20    0    11M  2468K select   6   0:00   0.00% rtsold
 2845 root          1  23    0    11M  2472K select   6   0:00   0.00% rtsold
 3443 plex         11  52    0    37M    18M usem     6   0:00   0.00% Plex Tuner Service
18064 plex         28  20    0   253M    90M i915fl   4   0:00   0.00% Plex Transcoder
19019 root          1  28    0    13M  4012K pause    7   0:00   0.00% csh
 2984 root          1  20    0    11M  2600K nanslp   4   0:00   0.00% cron
 2912 root          1  20    0    11M  2804K select   4   0:00   0.00% syslogd
 2846 root          1  52    0    11M  2456K select   2   0:00   0.00% rtsold
 2843 root          1  52    0    11M  2452K select   3   0:00   0.00% rtsold

Can someone check if it's common problem, or just some local issues not linked to 12-U1 and hw transcoding? 12-RELEASE or 12-U1 without hw are working just fine.
 

bearattack11

Dabbler
Joined
Jan 1, 2021
Messages
11
What I've got in TrueNAS 12-U1 is something strange and I cannot explain this. If I start the media with DTS and SRT hw (i915kms) transcoding the jail hangs the process with halting the resources to busy state. So the process cannot be killed, the jail cannot umount <jail>/dev and I have to restart the server as the only solution for this issue.
top looks like this (pid 18064 is locked process):
Code:
last pid: 19159;  load averages:  0.26,  0.31,  0.31                                                                                                                                                                    up 0+00:50:56  12:45:31
15 processes:  1 running, 14 sleeping
CPU:  0.4% user,  0.0% nice,  0.1% system,  0.0% interrupt, 99.4% idle
Mem: 944M Active, 2077M Inact, 70M Laundry, 27G Wired, 828M Free
ARC: 25G Total, 836M MFU, 24G MRU, 666K Anon, 58M Header, 54M Other
     24G Compressed, 24G Uncompressed, 1.03:1 Ratio
Swap: 10G Total, 10G Free

  PID USERNAME    THR PRI NICE   SIZE    RES STATE    C   TIME    WCPU COMMAND
3088 plex         14  52   15   126M    62M piperd   4   0:04   0.07% Plex Script Host
3445 plex         11  52    0    83M    48M piperd   6   0:03   0.05% Plex Script Host
3444 plex         11  52    0    80M    46M piperd   7   0:03   0.05% Plex Script Host
2977 plex         20  52    0   412M   210M uwait    4   0:08   0.03% Plex Media Server
19039 root          1  20    0    13M  3528K CPU5     5   0:00   0.01% top
2839 root          1  20    0    11M  2488K kqread   1   0:00   0.00% rtsold
2847 root          1  20    0    11M  2468K select   6   0:00   0.00% rtsold
2845 root          1  23    0    11M  2472K select   6   0:00   0.00% rtsold
3443 plex         11  52    0    37M    18M usem     6   0:00   0.00% Plex Tuner Service
18064 plex         28  20    0   253M    90M i915fl   4   0:00   0.00% Plex Transcoder
19019 root          1  28    0    13M  4012K pause    7   0:00   0.00% csh
2984 root          1  20    0    11M  2600K nanslp   4   0:00   0.00% cron
2912 root          1  20    0    11M  2804K select   4   0:00   0.00% syslogd
2846 root          1  52    0    11M  2456K select   2   0:00   0.00% rtsold
2843 root          1  52    0    11M  2452K select   3   0:00   0.00% rtsold

Can someone check if it's common problem, or just some local issues not linked to 12-U1 and hw transcoding? 12-RELEASE or 12-U1 without hw are working just fine.

I'm having the issue on 12-U1, where when using hw transcoding the process hangs completely and I'm unable to restart the process without a whole server reboot. Let me know if you find a solution...
 

Triumph

Dabbler
Joined
May 14, 2014
Messages
12
@Yorick - Just found this thread, and reading your great posts!
I do have one question in regards to my setup, it's the same processor that @m0t0rh3ad has with the ID: 8086:3e98 (Intel i5-9600k)
running the lspci -nn command shows:

00:02.0 VGA compatible controller [0300]: Intel Corporation UHD Graphics 630 (Desktop 9 Series) [8086:3e98] (rev 02)

You had stated this was a partial refresh in the CFL:
>Let's call that confirmed: ix-9xxx CFL Refresh use [8086:3e98] and aren't supported in FreeBSD 12.x.

So were just playing a waiting game for either drm-kmod package to be updated, or FreeBSD 13.x?
 

m0t0rh3ad

Dabbler
Joined
Jul 13, 2020
Messages
32
TrueNAS Scale: Is there anyone who can enable HW transcoding acceleration in Docker with NVidia card?
 
Last edited:

Yorick

Wizard
Joined
Nov 4, 2018
Messages
1,912
TrueNAS SCALE or TrueNAS Core based on FreeBSD 13 ... one of those will be ready to deploy sooner than the other.
 

m0t0rh3ad

Dabbler
Joined
Jul 13, 2020
Messages
32
On 20.10: Everyone
On 20.12: No one (or risk update issues in the future)
On 21.02: Everyone again (afaik(

So, it no sense to spend time finding out why is HW Transcoding not working in Plex with NVidia card in Docker on TrueNAS Scale 20.12?
I can see the card in TrueNAS, I've got docker "nvidia-device-plugin-daemonset-4n5r8", Plex Docker also deployed with Environment Variables: NVIDIA_VISIBLE_DEVICES - all, NVIDIA_DRIVER_CAPABILITIES - all, and I can see NVidia card in Docker running command NVIDIA-SMI... but HW Transcoding not working :(
 

ornias

Wizard
Joined
Mar 6, 2020
Messages
1,458
So, it no sense to spend time finding out why is HW Transcoding not working in Plex with NVidia card in Docker on TrueNAS Scale 20.12?
Yes, because it's a known issue with NVIDIA drivers. No limited to scale, it really doesn't require investigation.
It's solvable, just not without an update.

Just a minor oversight when IX updated the kernel without testing NVIDIA
 
Last edited:

nikinp

Contributor
Joined
Sep 7, 2014
Messages
116
I have just build new machine as per my signature (system 1). I checked all compatibility for HW acceleration with https://github.com/kern2011/Freenas-Quicksync And the board,chipset and processor all check out
I've followed the guide for enabling internal graphics https://ahelpme.com/servers/supermicro/enable-internal-graphics-in-supermicro-servers/
My Truenas core 12.0 U2.1 is installed in UEFI mode and this is set in the bios
I have not installed pool or run Plex script yet.
The output of the lspci command is:

root@truenas[~]# lspci
00:00.0 Class 0600: Device 8086:1918 (rev 07)
00:02.0 Class 0380: Device 8086:191d (rev 06)
00:13.0 Class 0000: Device 8086:a135 (rev 31)
00:14.0 Class 0c03: Device 8086:a12f (rev 31)
00:14.2 Class 1180: Device 8086:a131 (rev 31)
00:16.0 Class 0780: Device 8086:a13a (rev 31)
00:16.1 Class 0780: Device 8086:a13b (rev 31)
00:17.0 Class 0106: Device 8086:a102 (rev 31)
00:1c.0 Class 0604: Device 8086:a110 (rev f1)
00:1c.1 Class 0604: Device 8086:a111 (rev f1)
00:1c.6 Class 0604: Device 8086:a116 (rev f1)
00:1f.0 Class 0601: Device 8086:a149 (rev 31)

I dont see the display controller. But I am a novice.
I really do need help here after spending money and time getting this particular configuration to try and get HW acceleration working.
Thanks in advance
 

ornias

Wizard
Joined
Mar 6, 2020
Messages
1,458
If this does not show human-readable output, try lspci -q

Straight from the kern2011 guide
 

nikinp

Contributor
Joined
Sep 7, 2014
Messages
116
If this does not show human-readable output, try lspci -q

Straight from the kern2011 guide
Thanks. I didnt know what that meant when I read it.

PCI access options:
-A <method> Use the specified PCI access method (see `-A help' for a list)
-O <par>=<val> Set PCI access parameter (see `-O help' for a list)
-G Enable PCI access debugging
-F <file> Read PCI configuration dump from a given file
root@truenas[~]# lspci -q
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:02.0 Display controller: Intel Corporation HD Graphics P530 (rev 06)
00:13.0 Non-VGA unclassified device: Intel Corporation 100 Series/C230 Series Chipset Family Integrated Sensor Hub (rev 31)
00:14.0 USB controller: Intel Corporation 100 Series/C230 Series Chipset FamilyUSB 3.0 xHCI Controller (rev 31)
00:14.2 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Thermal Subsystem (rev 31)
00:16.0 Communication controller: Intel Corporation 100 Series/C230 Series Chipset Family MEI Controller #1 (rev 31)
00:16.1 Communication controller: Intel Corporation 100 Series/C230 Series Chipset Family MEI Controller #2 (rev 31)
00:17.0 SATA controller: Intel Corporation Q170/Q150/B150/H170/H110/Z170/CM236 Chipset SATA Controller [AHCI Mode] (rev 31)
00:1c.0 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCIExpress Root Port #1 (rev f1)
00:1c.1 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCIExpress Root Port #2 (rev f1)
00:1c.6 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCIExpress Root Port #7 (rev f1)
00:1f.0 ISA bridge: Intel Corporation C236 Chipset LPC/eSPI Controller (rev 31)
00:1f.2 Memory controller: Intel Corporation 100 Series/C230 Series Chipset Family Power Management Controller (rev 31)
00:1f.4 SMBus: Intel Corporation 100 Series/C230 Series Chipset Family SMBus (rev 31)
01:00.0 Ether
 
Top