Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
missing device /dev/drm0 [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3026
Location: Illinois, USA

PostPosted: Mon Jul 04, 2016 10:18 pm    Post subject: missing device /dev/drm0 [SOLVED] Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7105
Location: almost Mile High in the USA

PostPosted: Mon Jul 04, 2016 11:13 pm    Post subject: Reply with quote

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@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3026
Location: Illinois, USA

PostPosted: Tue Jul 05, 2016 12:14 am    Post subject: Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7105
Location: almost Mile High in the USA

PostPosted: Tue Jul 05, 2016 1:43 am    Post subject: Reply with quote

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@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3026
Location: Illinois, USA

PostPosted: Tue Jul 05, 2016 2:26 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum