Bug 4858 - Only root:root can do DRI
Summary: Only root:root can do DRI
Status: RESOLVED NOTABUG
Alias: None
Product: DRI
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium trivial
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-24 06:00 UTC by Ciprian Asmarandei
Modified: 2005-10-23 13:19 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Ciprian Asmarandei 2005-10-24 06:00:03 UTC
System: PIII 733MHz 512MB RAM
Video card Radeon 7500 AGP
OS: Slackware Linux 10.2
X.org version 6.8.2

I noticed I have 3D hardware acceleration while beeing root and software
acceleration as being a normal user.

I searched in /dev/dri and found
crw-rw--- root root /dev/dri/card0

If I chown root.users /dev/dri/card0 I have 3D hardware accel as normal user.
If I chmod o+rw /dev/dri/card0 also.
But this can be done after X has started (standalone with startx or login from
init 4) becourse at every restart of X the permissions/owner/group of
/dev/dri/card0 get reset to "crw-rw--- root root /dev/dri/card0"

IMHO every user of the system should have 3D accel.
Please look into it.
Comment 1 Alex Deucher 2005-10-24 06:19:11 UTC
Since the DRI touches the hardware directly, it is limited to root by default. 
To allow all users, add the following section to your xorg.conf (feel free to
adjust the mode as you see fit):

Section "DRI"
	Mode 0666
EndSection

If that doesn't work it may be that your distro does dynamic permissions based
on groups.  Try adding yourself to the video or graphics group (or another
similar gourp).

Please re-open if you are still having problems.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.