Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can use DRM only as root [SOLVED]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
jannis
Guru
Guru


Joined: 05 Dec 2004
Posts: 340
Location: Germany / Bavaria / Aschaffenburg

PostPosted: Mon Dec 27, 2004 9:13 am    Post subject: Can use DRM only as root [SOLVED] Reply with quote

I used to run my system as root *shame on me*. Now I converted my confgfiles for a normal user and I got KDE running for a non-root user. I can acces all my games after I added me into the games-group. The problem is that my normal user doesn't have acces to the DRM-Interface of the X-Server. As root I can play Quake3 without any problem but when I try to run it as non-root-user I get these errors:
Code:
----- R_Init -----
...loading libGL.so.1: Initializing OpenGL display
...setting mode 4: 800 600
Using XFree86-VidModeExtension Version 2.2
XFree86-VidModeExtension Activated at 800x600
libGL error: open DRM failed (Operation not permitted)
libGL error: reverting to (slow) indirect rendering
Using 4/4/4 Color bits, 16 depth, 0 stencil display.
GL_RENDERER: Mesa GLX Indirect


***********************************************************
 You are using software Mesa (no hardware acceleration)!
 Driver DLL used: libGL.so.1
 If this is intentional, add
       "+set r_allowSoftwareGL 1"
 to the command line when starting the game.
***********************************************************
...WARNING: could not set the given mode (4)
Initializing OpenGL display
...setting mode 3: 640 480
Using XFree86-VidModeExtension Version 2.2
XFree86-VidModeExtension Activated at 640x480
Received signal 11, exiting...


When I type "glxinfo" as non-root-user it tells me, I don't have direct rendering. As root I have. How can I change these permissions?


Last edited by jannis on Mon Dec 27, 2004 9:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Mon Dec 27, 2004 4:10 pm    Post subject: Reply with quote

Not 100% sure (NVidia user, so no DRM here), but you can either try to search for the two keywords xorg.conf and 666 (I seem to remember having seen something about DRM permissions in some xorg.conf files around here), or you can poke around /etc/security and/or /etc/pam.d. Look for the lines relating to DRM and change the device mode to 0666. Or both.
Code:
grep -r -i drm /etc/security
and
Code:
grep -r -i drm /etc/pam.d
will tell you the files.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
jannis
Guru
Guru


Joined: 05 Dec 2004
Posts: 340
Location: Germany / Bavaria / Aschaffenburg

PostPosted: Mon Dec 27, 2004 4:23 pm    Post subject: Reply with quote

Thanks for your help but it didn't bring me any further.
My xorg.conf has nothing about DRM (It's just the module DRI) and both grep-commands returned nothing.
Back to top
View user's profile Send private message
Eskarel
Apprentice
Apprentice


Joined: 07 May 2004
Posts: 257
Location: Perth Australia

PostPosted: Mon Dec 27, 2004 5:05 pm    Post subject: Reply with quote

Dunno about ATI(I didn't have any problems back when I used them), but try adding yourself to the video group, it fixes an equivilant problem for nvidia.
Back to top
View user's profile Send private message
jannis
Guru
Guru


Joined: 05 Dec 2004
Posts: 340
Location: Germany / Bavaria / Aschaffenburg

PostPosted: Mon Dec 27, 2004 7:57 pm    Post subject: Reply with quote

The user I am logged in with is in the video group
Back to top
View user's profile Send private message
askew2005
n00b
n00b


Joined: 23 Dec 2004
Posts: 13
Location: Underground

PostPosted: Mon Dec 27, 2004 8:48 pm    Post subject: Reply with quote

Add this to your xorg.conf
Section "DRI"
Group "video"
Mode 0666
EndSection
_________________
There is no such thing as beauty, especially in the human face. So many women that I'm told are beautiful...hell it's like looking at a soup bowl --Charles Bukowski
Back to top
View user's profile Send private message
jannis
Guru
Guru


Joined: 05 Dec 2004
Posts: 340
Location: Germany / Bavaria / Aschaffenburg

PostPosted: Mon Dec 27, 2004 9:28 pm    Post subject: Can use DRM only as root [SOLVED] Reply with quote

HIPHIP HURRA! IT FIXED IT!

Thanx!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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