Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]dri as root only ?and Mode 0666 is 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
tosho
n00b
n00b


Joined: 28 Sep 2004
Posts: 45

PostPosted: Thu Mar 10, 2005 10:12 pm    Post subject: [SOLVED]dri as root only ?and Mode 0666 is in xorg.conf ???? Reply with quote

Strange ting :

Code:

bash-2.05b$ lsmod
Module                  Size  Used by
radeon                 74944  1
drm                    60756  2 radeon
it87                   24348  0
eeprom                  6224  0
i2c_sensor              3392  2 it87,eeprom
i2c_isa                 2240  0
snd_seq_midi            7008  0
snd_emu10k1_synth       7296  0
snd_emux_synth         35904  1 snd_emu10k1_synth
snd_seq_virmidi         6528  1 snd_emux_synth
snd_seq_midi_emul       7040  1 snd_emux_synth
parport_pc             23044  0
parport                21312  1 parport_pc
8139too                22080  0
snd_emu10k1            96132  3 snd_emu10k1_synth
snd_rawmidi            20832  3 snd_seq_midi,snd_seq_virmidi,snd_emu10k1
snd_ac97_codec         74424  1 snd_emu10k1
snd_util_mem            3840  2 snd_emux_synth,snd_emu10k1
snd_hwdep               7904  2 snd_emux_synth,snd_emu10k1
i2c_sis96x              5060  0
i2c_core               18944  5 it87,eeprom,i2c_sensor,i2c_isa,i2c_sis96x
sis_agp                 6596  1
agpgart                29424  2 drm,sis_agp
nls_cp437               5888  1
vfat                   11712  1
fat                    36188  1 vfat
nls_iso8859_1           4288  2
ntfs                  106480  1
ext3                  105988  1
jbd                    57816  1 ext3
bash-2.05b$ glxgears
libGL error: open DRM failed (Operation not permitted)
libGL error: reverting to (slow) indirect rendering
713 frames in 5.0 seconds = 142.600 FPS
X connection to :0.0 broken (explicit kill or server shutdown).
bash-2.05b$ su -
Password:
kiki root # glxgears
2761 frames in 5.0 seconds = 552.200 FPS
3432 frames in 5.0 seconds = 686.400 FPS
3460 frames in 5.0 seconds = 692.000 FPS
3456 frames in 5.0 seconds = 691.200 FPS
3430 frames in 5.0 seconds = 686.000 FPS
3453 frames in 5.0 seconds = 690.600 FPS
3470 frames in 5.0 seconds = 694.000 FPS
Broken pipe
kiki root #



SO as root dri is working fine
and as user it is not working ....
In my xorg.conf i have :
Code:

...
Section "Module"
        Load  "record"
        Load  "extmod"
        Load  "dbe"
        Load  "dri"
        Load "agpgart"
        Load  "glx"
        Load  "xtrap"
        Load  "freetype"
        Load  "type1"
EndSection
...
Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        Option     "NoAccel"            "False" # [<bool>]
        #Option     "SWcursor"                  # [<bool>]
        #Option     "Dac6Bit"                   # [<bool>]
        #Option     "Dac8Bit"                   # [<bool>]
        #Option     "BusType"                   # [<str>]
        #Option     "CPPIOMode"                 # [<bool>]
        #Option     "CPusecTimeout"             # <i>
        Option     "AGPMode"            "4x"    # <i>
        Option     "AGPFastWrite"       "True"  # [<bool>]
        #Option     "AGPSize"                   # <i>
        #Option     "GARTSize"                  # <i>
        #Option     "RingSize"                  # <i>
        #Option     "BufferSize"                # <i>
        #Option     "EnableDepthMoves"          # [<bool>]
        Option     "EnablePageFlip"     "True"
        #Option     "NoBackBuffer"              # [<bool>]
        #Option     "DRIReinit"                 # [<bool>]
        #Option     "PanelOff"                  # [<bool>]
        #Option     "DDCMode"                   # [<bool>]
        #Option     "MonitorLayout"             # [<str>]
        #Option     "IgnoreEDID"                # [<bool>]
        #Option     "UseFBDev"                  # [<bool>]
        #Option     "VideoKey"                  # <i>
        #Option     "MergedFB"                  # [<bool>]
        #Option     "CRT2HSync"                 # [<str>]
        #Option     "CRT2VRefresh"              # [<str>]
        #Option     "CRT2Position"              # [<str>]
        #Option     "MetaModes"                 # [<str>]
        #Option     "MergedDPI"                 # [<str>]
        #Option     "NoMergedXinerama"          # [<bool>]
        #Option     "MergedXineramaCRT2IsScreen0"       # [<bool>]
        #Option     "DisplayPriority"           # [<str>]
        #Option     "PanelSize"                 # [<str>]
        #Option     "ForceMinDotClock"          # <freq>
        #Option     "RenderAccel"               # [<bool>]
        #Option     "SubPixelOrder"             # [<str>]
        #Option     "ShowCache"                 # [<bool>]
        #Option     "DynamicClocks"             # [<bool>]
        Identifier  "Card0"
        Driver      "ati"
        VendorName  "ATI Technologies Inc"
        BoardName   "Unknown Board"
        BusID       "PCI:1:0:0"
EndSection

Section "dri"
   Mode 0666
EndSection


So what is the problem ???

Help please ;-)
_________________
bash-2.05b# emerge -s microsoft
Searching...
[ Results for search key : microsoft ]
[ Applications found : 0 ]
bash-2.05b#


Last edited by tosho on Thu Mar 10, 2005 10:37 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: Thu Mar 10, 2005 10:23 pm    Post subject: Reply with quote

Could be something in /etc/security/console.perms (sorry, I don't own a DRI-capable card so I never actually fiddled with it, but I remember seeing something about PAM messing with device node permissions...)
_________________
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
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Thu Mar 10, 2005 10:26 pm    Post subject: Reply with quote

Try adding yourself to the video group:
Code:
# gpasswd -a your_username video
You may need to log out and log back in again for the change to take effect.
_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF


Last edited by codergeek42 on Thu Mar 10, 2005 10:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
tosho
n00b
n00b


Joined: 28 Sep 2004
Posts: 45

PostPosted: Thu Mar 10, 2005 10:36 pm    Post subject: Reply with quote

YES adding my to the vidio group worked !( + reeboot ...)
nice ;-)
thanks u guys
u are the best !
_________________
bash-2.05b# emerge -s microsoft
Searching...
[ Results for search key : microsoft ]
[ Applications found : 0 ]
bash-2.05b#
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