Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DRI works only for root, depsite rights set in xorg.conf
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
xavier10
Guru
Guru


Joined: 19 Jan 2004
Posts: 485
Location: Paris, France

PostPosted: Thu Jan 19, 2006 2:17 pm    Post subject: DRI works only for root, depsite rights set in xorg.conf Reply with quote

I recently upgraded to modular X11 on my Powerbook Alu 1.25 Ghz and after some time messing around, I eventually got DRI working. For one night :cry:.

In fact, it still works fine, but only for the root account now. I tested it as a user when I got it working, so something got broken since then (dunno what). My Xorg.log does not contain any new problem (there is still a block range problem reported, but it did not prevent DRI to work on the first day I got it working. In fact, it still does not for root.

I double checked I have the following my xorg.conf the following part:
Quote:

Section "DRI"
Mode 0666
EndSection


Here is the message:
Quote:

root $ glxgears
*********************************WARN_ONCE*********************************
File r300_state.c function r300Enable line 456
TODO - double side stencil !
***************************************************************************
No ctx->FragmentProgram._Current!!
*********************************WARN_ONCE*********************************
File r300_render.c function r300_get_num_verts line 188
user error: Need more than 2 vertices to draw primitive QS !
***************************************************************************
5946 frames in 5.0 seconds = 1189.169 FPS


and:
Quote:

user$ glxgears
libGL error: open DRM failed (Operation not permitted)
libGL error: reverting to (slow) indirect rendering
740 frames in 5.9 seconds = 126.098 FPS


Any ideas ?
Back to top
View user's profile Send private message
xoomix
Guru
Guru


Joined: 02 Jan 2003
Posts: 489

PostPosted: Thu Jan 19, 2006 3:55 pm    Post subject: Reply with quote

Mine says this:

Section "DRI"
Group "video"
Mode 0666
EndSection


Maybe add the video line and make sure your normal user is part of the video group?
Back to top
View user's profile Send private message
xavier10
Guru
Guru


Joined: 19 Jan 2004
Posts: 485
Location: Paris, France

PostPosted: Thu Jan 19, 2006 4:02 pm    Post subject: Reply with quote

kiosk wrote:
Mine says this:
Maybe add the video line and make sure your normal user is part of the video group?

I had already added myself in the video section but did not add the video line in the Xorg.conf (first time I see it). It works now! Thanks!
Back to top
View user's profile Send private message
xavier10
Guru
Guru


Joined: 19 Jan 2004
Posts: 485
Location: Paris, France

PostPosted: Mon Jan 23, 2006 7:47 pm    Post subject: Reply with quote

I am back to this thread... I thought the above suggestion in the xorg.conf had fixed the issue, but my feeling is wrong. It just turns out that sometimes it will work; sometimes it will not... :cry:

The only thing I remarked is that using the suspend to RAM of my laptop sometimes causes the DRI to be lost for the user account. Then, restarting X may bring it back, or may not. But I also remark, that sometimes, I would start and not get DRI as a user (root always got it). The error is still the "open DRM failed (Operation not permitted)" thing.

Any other idea ?
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