Jump to content
The Unraid Annual Cyber Weekend Sale is here 🔥 ×

Error -bash: cd: /dev/dri: No such file or directory Plex


Recommended Posts

Posted

Hello,
I am currently in the testing phase on unraid.
I have a j4205 card compatible with quick sync video.
The installation of plex went well. I checked the presence of hardware transcoding using the cd /dev/dri command.
The console returns the command "-bash: cd: / dev / dri: No such file or directory".
Where could the problem come from?
Thank you

1.png

Posted (edited)

If it can help someone I found what to unlock:

root@NAS-Florian:~# cd /dev/dri
-bash: cd: /dev/dri: No such file or directory
root@NAS-Florian:~# modprobe i915
root@NAS-Florian:~# cd /dev/dri
root@NAS-Florian:/dev/dri# ls
by-path/  card0  renderD128
root@NAS-Florian:/dev/dri# chmod -R 777 /dev/dri

After not forget to insert the /dev/dri as a device in the docker

Edited by Flo00719
Modification code
  • Thanks 2
Posted
1 hour ago, Nils said:

I added the /dev/dri as a device in the Plex docker but this makes the docker error :/

 

Did you do what the post above yours says and do you have a /dev/dri folder after doing it?

Posted (edited)
1 hour ago, Nils said:

J'ai ajouté le / dev / dri comme périphérique dans le docker Plex mais cela fait l'erreur de docker : /

 

Have you placed the above orders?

1 - Open the terminal at the top right.
2- cd /dev/dri (if error see 2.1)
2.1- modprobe i915

2.2- cd /dev/dri

2.3- chmod -R 777 /dev/dri (very important because it is the command line which authorizes the plex to use the internal video card)

It should work. If it's okay, I would tell you how to add it to the go file for startup because when the nas is restart these commands jump. It can be found in different subjects but often quite long and there is information on the right and on the left

Edited by Flo00719
  • 1 year later...
Posted
On 5/30/2020 at 4:43 AM, saarg said:

Did you do what the post above yours says and do you have a /dev/dri folder after doing it?

So I tried that but am still getting the no such file error.

image.png.78d4c167c9de78ede807fc16bcd1d052.png

Posted (edited)
28 minutes ago, greencode said:

So I tried that but am still getting the no such file error

Assuming you do have an Intel CPU with an iGPU, have you specified the Onboard/iGD/iGFX (depending on what you BIOS calls it) as the Primary Graphics Adapter?  If not, no /dev/dri folder gets created when the server boots and modprobe i915 does nothing.

Edited by Hoopster
Posted (edited)
3 hours ago, Hoopster said:

Assuming you do have an Intel CPU with an iGPU, have you specified the Onboard/iGD/iGFX (depending on what you BIOS calls it) as the Primary Graphics Adapter?  If not, no /dev/dri folder gets created when the server boots and modprobe i915 does nothing.

Would that be within the bios itself? I have a 12900k and a MSI PRO Z690-A DDR4. I went in and change the msi settings and changed the initiated graphic adapter to IGD. But I am still getting the error. I also tried installing intel gpu top and got "No device filter specified and no discrete/integrated i915 devices found" error

 

Edited by greencode
Posted (edited)

So I recently upgraded from a 6700k to a 12900k because I wanted to get Hardware transcoding on my plex server and was told that the older CPU would not support this. Got the new system build but I can't seem to get integrated graphics to be detected. 

I started with this tutorial: https://forums.unraid.net/topic/77943-guide-plex-hardware-acceleration-using-intel-quick-sync/

and immediately rand into a problem where No such file existed

image.png.79ace3e7d6c1377a9e42d8afdf05d990.png

So following advice from here https://forums.unraid.net/topic/92858-error-bash-cd-devdri-no-such-file-or-directory-plex/?_fromLogin=1

I installed intel gpu top, but that didn't change anything. 

I next went into the MSI bios and set the Initiated Graphic adapter to IGD and rebooted and still nothing

 

On checking the directories I can see that dri does not exist in the dev.

image.thumb.png.a8cfa6a79be61bd8e4b6cb024d646796.png

 

I did see some comments about needing to white list drivers but that is after the system detect an iGPU and generates the dir directory correct? (Advice found herehttps://forums.unraid.net/topic/103434-69-devdri-is-missing/)

Looking at my system devices I see a VGA compatible controller but I am unsure if that mean it is see the iGPU or not, I dont see anything that say using i915 kernel.

 

 

I did see some post saying that the new intel cpu are not supported the 11 and 12 gens. I figure development will take a while would it be better to just put this on the back burner until whenever that is.

Any help would be appreciated. 

 

 

tower-diagnostics-20220118-2258.zip

Edited by greencode
Posted
1 hour ago, greencode said:

Would that be within the bios itself? I have a 12900k and a MSI PRO Z690-A DDR4. I went in and change the msi settings and changed the initiated graphic adapter to IGD. But I am still getting the error. I also tried installing intel gpu top and got "No device filter specified and no discrete/integrated i915 devices found" error

 

Which version of Unraid are you using if you are using  RC2 you need to blacklist the i915 if using intel gpu top.

 

either add to syslinux  i915.force_probe=4680

 

or add to i915.conf in modprobed.

options i915 force_probe=4680

 

or blacklist i915 and load intel gpu top as per this post.

 

 

Posted
30 minutes ago, SimonF said:

Which version of Unraid are you using if you are using  RC2 you need to blacklist the i915 if using intel gpu top.

 

either add to syslinux  i915.force_probe=4680

 

or add to i915.conf in modprobed.

options i915 force_probe=4680

 

or blacklist i915 and load intel gpu top as per this post.

 

 

To do the first one in terminal I type "echo "i915.force_probe=4680" >> /syslinux.conf"

Posted
1 hour ago, greencode said:

To do the first one in terminal I type "echo "i915.force_probe=4680" >> /syslinux.conf"

Click on the falsh drive from the main tab and update the menu lines you need example on the GUI Menu section.

 

image.thumb.png.f8acedba3d44e7994e904e9f0fefe347.png

Posted

Running 12600k, and I've been able to get it running by the following:

Using unRAID 6.10-rc2

Install Intel GPU Top

Reboot

Blacklist i915 in modprobe.d

Reboot (just to be safe)

 

Then run the intel gpu top command to verify that it's working. 

chmod -R 777 /dev/dri

stop Plex docker

Add device /dev/dri to Plex docker

start Plex docker

enable hardware acceleration

voila!

Posted
7 hours ago, greencode said:

So I recently upgraded from a 6700k to a 12900k

I have merged your other thread into this one. Please don't post about the same problem in multiple threads. It makes it impossible to coordinate responses.

Posted (edited)
12 hours ago, SimonF said:

Click on the falsh drive from the main tab and update the menu lines you need example on the GUI Menu section.

 

image.thumb.png.f8acedba3d44e7994e904e9f0fefe347.png

Thanks for the example it helps alot. So just to be clear your kernel parameters for acpi_enforce_resources and the isolate cpu are not related to fixing this problem right I just need to add the i915.force_probe=4680. Then I reboot and it should generate the folder and work?

Is this similar to the solution added the kernel parameter i915.alpha_support=1 found here where the dev/dri wasn't present.

 

 

This is separate from blacklisting i915 and if this didn't work, I should go the blacklist route then I would remove this parameter? Then edit /etc/modprobe.d and add blacklist-i915.conf?

Do I need to create this file becasue I don't see it in the directory etc?

image.thumb.png.aa5dd41a84f1d3ef9ac623d73010953a.png

 

 

10 hours ago, trurl said:

I have merged your other thread into this one. Please don't post about the same problem in multiple threads. It makes it impossible to coordinate responses.

Sorry I did know if I should be info dumping all that info on this thread or not.

Edited by greencode
Posted
6 hours ago, greencode said:

i915.force_probe=4680.

Yes you just need to append this to you existing config and yours maybe different to mine.

 

Read the post for Alderlake as it has info on blacklist for rc2. On unraid you need to modify /boot/config/modprobe.d and change will take place at reboot. You only need to do 1 of the options.

 

This is my i915 file on by 12600k system and I have Intel-gpu-top installed.

root@computenode:~# ls /boot/config/modprobe.d/
i915.conf
root@computenode:~# cat  /boot/config/modprobe.d/*
blacklist i915
root@computenode:~# 

 

  • 1 month later...
Posted

I have the 12500 but with that force probe it wasn't working. Looking in the hardware page I saw my references 4692? I tried the force probe for that device too but no /dev/dri/. Anything else I should check?

 

[8086:4692] 00:02.0 VGA compatible controller: Intel Corporation Device 4692 (rev 0c)

 

default menu.c32
menu title Lime Technology, Inc.
prompt 0
timeout 50
label Unraid OS
  menu default
  kernel /bzimage
  append initrd=/bzroot i915.force_probe=4692
label Unraid OS GUI Mode
  kernel /bzimage
  append initrd=/bzroot,/bzroot-gui
label Unraid OS Safe Mode (no plugins, no GUI)
  kernel /bzimage
  append initrd=/bzroot unraidsafemode
label Unraid OS GUI Safe Mode (no plugins)
  kernel /bzimage
  append initrd=/bzroot,/bzroot-gui unraidsafemode
label Memtest86+
  kernel /memtest

 

Posted (edited)
9 minutes ago, BurntTech said:

I have the 12500 but with that force probe it wasn't working. Looking in the hardware page I saw my references 4692? I tried the force probe for that device too but no /dev/dri/. Anything else I should check?

 

[8086:4692] 00:02.0 VGA compatible controller: Intel Corporation Device 4692 (rev 0c)

 

default menu.c32
menu title Lime Technology, Inc.
prompt 0
timeout 50
label Unraid OS
  menu default
  kernel /bzimage
  append initrd=/bzroot i915.force_probe=4692
label Unraid OS GUI Mode
  kernel /bzimage
  append initrd=/bzroot,/bzroot-gui
label Unraid OS Safe Mode (no plugins, no GUI)
  kernel /bzimage
  append initrd=/bzroot unraidsafemode
label Unraid OS GUI Safe Mode (no plugins)
  kernel /bzimage
  append initrd=/bzroot,/bzroot-gui unraidsafemode
label Memtest86+
  kernel /memtest

 

Have a look in your log for i915 messages. It should state the force probe. Are you booting using uefi or legacy?

 

 

Edited by SimonF
Posted

Should I see a message even if I put in 4692 this time? I can try again with 4690 too.

 

cat /var/log/syslog | grep i915
Mar  5 11:33:11 NAS kernel: Command line: BOOT_IMAGE=/bzimage initrd=/bzroot i915.force_probe=4692
Mar  5 11:33:11 NAS kernel: Kernel command line: BOOT_IMAGE=/bzimage initrd=/bzroot i915.force_probe=4692

 

[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS
UEFI

Posted
1 minute ago, BurntTech said:

Should I see a message even if I put in 4692 this time? I can try again with 4690 too.

 

cat /var/log/syslog | grep i915
Mar  5 11:33:11 NAS kernel: Command line: BOOT_IMAGE=/bzimage initrd=/bzroot i915.force_probe=4692
Mar  5 11:33:11 NAS kernel: Kernel command line: BOOT_IMAGE=/bzimage initrd=/bzroot i915.force_probe=4692

 

[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS
UEFI

Which vers os are you running? 

 

if running less than 6.10rc2 you willl need to run touch /boot/config/modprobe.d/i915.conf or you can install intel gpu top which will load i915 module for you.

Posted (edited)
11 minutes ago, BurntTech said:

Oh sorry about that I am running 6.9.2. I didn't have a i915.conf file do I need to create one of those? I did already installed the plugin from CA for intel top.

Ah just remembered you need to be on a 6.10rc as support is not in the driver included in 6.9.2 for Alderlake.

 

for 6.10rc2 you need to black list i915 if using intel gpu top or use syslinux option.

 

 

Edited by SimonF
Posted

I hope RC is stable enough 🙂

Looks like its appearing I'll have to do some testing.

 

ls -l /dev/dri/
total 0
drwxrwxrwx 2 root root        80 Mar  5 12:54 by-path/
crwxrwxrwx 1 root video 226,   0 Mar  5 12:54 card0
crwxrwxrwx 1 root video 226, 128 Mar  5 12:54 renderD128

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...