Ken Moffat wrote:

>  Sat, Apr 07, 2012 at 04:49:18PM -0500, Bruce Dubbs wrote:
>> Ken Moffat wrote:
>>
>> Which device is that?  /dev/dri/card0?  I'd think the kernel/udev would 
>> create it at boot.  I don't have an ATI graphics card to test, but I'm 
>> interested.  I'll look at the source, but I need to know what to look for.

> Seems to be.  Note that it isn't specific to ati, it's for *all*
> cards or vm's supported by Mesa.  
> And in case anyone missed what started this - even a user NOT in the
> video group can use the Software Rasterizer (Mesa's swrast driver),
> but not hardware acceleration.
> 
> ken@ac4tv ~ $ls -lr /dev/dri/
> total 0
> crw-rw---- 1 root video 226, 64 Apr  7 18:29 controlD64
> crw-rw---- 1 root video 226,  0 Apr  7 18:29 card0

In mesa, I see three places that use card0.  They are all of the form 
fd = open("/dev/dri/card0", O_RDWR);

I see in rules.d/50-udev-default.rules an entry
SUBSYSTEM=="drm", GROUP="video"

The default udev permissions is 0660.  I think a rule in 55-lfs.rules like:

   SUBSYSTEM=="drm", MODE="0666"

may work.

   -- Bruce

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to