View previous topic :: View next topic |
Author |
Message |
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Mon Jul 04, 2016 10:18 pm Post subject: missing device /dev/drm0 [SOLVED] |
|
|
Code: | libGL error: failed to open drm device: Permission denied
libGL error: failed to load driver: nouveau
|
There is no /dev/drm0 or any other /dev/drm*
My kernel config is here https://bpaste.net/show/5e20e5c216a4
Code: | [ebuild R ] media-libs/mesa-11.0.6::gentoo USE="classic d3d9 dri3 egl gallium gbm gles2 nptl -bindist -debug -gles1 -llvm -opencl -openmax -osmesa -pax_kernel -pic (-selinux) -udev -vaapi -vdpau -wayland -xa -xvmc" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="nouveau (-freedreno) -i915 -i965 -ilo -intel -r100 -r200 -r300 -r600 -radeon -radeonsi -vmware" 0 KiB
|
What do I need to do to create /dev/drm0 ?
Last edited by Tony0945 on Tue Jul 05, 2016 2:27 am; edited 1 time in total |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9691 Location: almost Mile High in the USA
|
Posted: Mon Jul 04, 2016 11:13 pm Post subject: |
|
|
Well, it's trying to open some device and failing due to permissions, not a not-found situation. Where are you seeing the not-found error?
Are you either using consolekit or systemd/logind (which would give permissions automatically), or manually giving yourself permissions to open /dev/dri/* (be in the "video" group) and this is failing?
In a modern udev setup it should show up as /dev/dri/card* I would think. I think the direct rendering guys thought drm has enough bad connotations they used "infrastructure" instead of "manager"... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Tue Jul 05, 2016 12:14 am Post subject: |
|
|
eccerr0r wrote: | Well, it's trying to open some device and failing due to permissions, not a not-found situation. Where are you seeing the not-found error? |
By googling for the error message, I found posts (ubuntu) that this is caused by missing /dev/drm0
Quote: | Are you either using consolekit or systemd/logind (which would give permissions automatically), or manually giving yourself permissions to open /dev/dri/* (be in the "video" group) and this is failing? | NO
Quote: |
In a modern udev setup it should show up as /dev/dri/card* I would think. I think the direct rendering guys thought drm has enough bad connotations they used "infrastructure" instead of "manager"... | LOL!
Code: | CASTI ~ # ls -l /dev/dri*
total 0
crw-rw---- 1 root root 226, 0 Jul 4 11:23 card0
crw-rw---- 1 root root 226, 64 Jul 4 11:23 controlD64
crw-rw---- 1 root root 226, 128 Jul 4 11:23 renderD128 |
Everyone has read/write rights, correct? Should I change the owner/group to root:video? This is mdev, not udev and sometimes I have to patch some devices in /etc/local.d |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9691 Location: almost Mile High in the USA
|
Posted: Tue Jul 05, 2016 1:43 am Post subject: |
|
|
You shouldn't make any assumptions, at least you specified the actual error.
It looks like your /dev/dri/* has mode 660 root:root so that means only root group and root itself has permissions to do DRI.
Your mdev seems to be misconfigured. You should either add your regular user to group 'root' (has security implications), chmod 666 /dev/dri/* (has security implications), or make your mdev put /dev/dri/* under group 'video' and add your user to group 'video'.
The best test to see if this really is the problem is if you see these errors as root and try to start DRI? _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Tue Jul 05, 2016 2:26 am Post subject: |
|
|
Thank you, eccerr0r.
I added the last line to /etc/local.d/000.start and now the error messages have disappeared. Code: | #!/bin/bash
mount devpts
chmod 1777 /dev/shm
#fix bug in mdev from busybox
chown -R root:audio /dev/snd
chown -R root:video /dev/dvr
chown -R root:video /dev/dri |
(After restart of course) |
|
Back to top |
|
|
|