Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No DRM unless I am root.
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
zerbet
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2003
Posts: 79

PostPosted: Mon Dec 22, 2003 8:23 pm    Post subject: No DRM unless I am root. Reply with quote

Hi folks!
I've got a little problem: I can't get direct rendering to work when using an app as non-root. it says:
Quote:
libGL error: failed to open DRM: Operation not permitted
libGL error: reverting to (slow) indirect rendering

of course, I added
Quote:
Section "DRI"
Mode 0666
EndSection
in /etc/X11/XF86Config-4 but it still won't work for a normal user. Please note that I'm in the video group, so I don't really see what type of problem this is.
Quote:
$ id
uid=1000(zerbet) gid=100(users) groups=100(users),10(wheel),18(audio),27(video)


What would you suggest?

Thanks a lot!
Zerbet
Back to top
View user's profile Send private message
bombcar
Guru
Guru


Joined: 08 Apr 2003
Posts: 453
Location: Wisconsin

PostPosted: Mon Dec 22, 2003 8:40 pm    Post subject: Reply with quote

I'd try looking at the permissions in the /dev directory. Look for something with r/w permissions only for root, I'd guess.
Back to top
View user's profile Send private message
xoomix
Guru
Guru


Joined: 02 Jan 2003
Posts: 489

PostPosted: Mon Dec 22, 2003 11:09 pm    Post subject: try this Reply with quote

Mine works, I have one difference in my XF86Config file from yours pertaining to this, mine is posted below:

Section "DRI"
Mode 0666
Group "video"
EndSection

Add the video line as shown, and if you are part of the video group on the system let me know how it goes.
Back to top
View user's profile Send private message
zerbet
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2003
Posts: 79

PostPosted: Tue Dec 23, 2003 1:53 pm    Post subject: Reply with quote

it's all OK now!
well I added the line you suggested, kiosk, but it still didn't work. So I looked in /dev/ for permissions like you suggested, bombcar, and found that /dev/dri/ was owned by root.root which I changed into root.video . It works now! I did this by hand so I'm quite unhappy about not having it done through devfsd.conf. Is it right if I add this:
Code:
REGISTER       dri/.*       PERMISSIONS root.video 660


But still, the rendering isn't nice enough as it puts my cpu usage at 100% and the gears in glxgears are still overlapping each other e.g. I see the geen gear through the red one. But that's surely another problem, as I've got a damn kyro II graphics card...

Thanks for your help people!
Zerbet
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