LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-27-2005, 01:18 PM   #1
ParticleHunter
Member
 
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129

Rep: Reputation: 15
XFree86 DRI device permissions problem


Hi,

I installed XFree86 4.5.0 in my LFS system, and all went fine, no compilation problems, just the BLFS book steps and I were able to get a decent graphics server running

the problem I'm having is a bit annoying... when my system boots up and I enter into my GNOME desktop, I cannot run any program that makes use of hardware acceleration because the /dev/dri/card0 device is owned by user root and group root

A partial solution for me was to change the ownership from root:root to root:video and adhering my user to the video group, therefore making my user being able to access the DRI device and, consequently, being able to play Wolfenstein: Enemy Territory, or just firing up any screensaver that makes use of OpenGL hardware accelerated graphics

but every time the system boots up, the ownership is changed automagically, so every time I log into GNOME I have to get a terminal and change the ownership again as root, but this is not an elegant solution...

I have modified my /etc/udev/rules.d/udev.rules and /etc/udev/rules.d/50-lfs.rules (don't know why on earth has to be 2 udev rules files) and in the 2 files the line refering to the DRI device is modified to have the GROUP="video", but the result is the same, I have to manually re-change the ownership...

how can I solve this?

Thanks in advance,

Julio
 
Old 07-27-2005, 04:14 PM   #2
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
Any particular graphics driver you're using?
 
Old 07-28-2005, 09:19 AM   #3
ParticleHunter
Member
 
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129

Original Poster
Rep: Reputation: 15
Hi kjordan,

the graphics driver I'm using is the Intel i810 driver, and the DRI device configured is the Intel i915 (it's the latest graphics chip series from intel, in this case Intel GMA900)

Julio
 
Old 07-30-2005, 06:10 AM   #4
ParticleHunter
Member
 
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129

Original Poster
Rep: Reputation: 15
Hi,

the problem persists... is there any way to make the ownership of the /dev/dri/card0 device remain as root:video instead of root:root? it's very annoying to have to change ownership by hand everytime I want acceleration support for my regular user

Julio
 
Old 07-30-2005, 06:41 AM   #5
freegianghu
Member
 
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
Quote:
Originally posted by ParticleHunter
Hi,

the problem persists... is there any way to make the ownership of the /dev/dri/card0 device remain as root:video instead of root:root? it's very annoying to have to change ownership by hand everytime I want acceleration support for my regular user

Julio
Append chgrp video /dev/dri/card* to make_extra_nodes() in /etc/rc.d/init.d/udev script
 
Old 07-30-2005, 09:06 AM   #6
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
Do you have a section like this in your X config file ?

Section "DRI"
Mode 0666
EndSection
 
Old 07-31-2005, 09:19 AM   #7
ParticleHunter
Member
 
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129

Original Poster
Rep: Reputation: 15
Hi,

thanks freegianghu and madluther,

I've solved the problem, I wrote the Mode 0666 line in the DRI section and it worked

Thanks a lot ,

Julio
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
XFree86-DRI missing....... myfokkinnick@yahoo.i Linux - Software 2 10-24-2005 05:03 AM
not loading xfree86-dri on display 0.0 provkitir Debian 0 11-15-2004 04:48 PM
Missing XFree86-DRI and OpenGL! nealkochhar Linux - Newbie 1 06-28-2004 03:14 PM
GLX/Xfree86/DRI/nvidia geforce 4 mx 420 problem asalford Linux - Hardware 3 04-01-2004 02:28 PM
What is XFree86-DRI? chem1 Linux - Software 4 05-05-2003 10:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration