On 08/04/12 11:19, Bruce Dubbs wrote: > Ken Moffat wrote: >> On Sat, Apr 07, 2012 at 07:23:44PM -0500, Bruce Dubbs wrote: >>> 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. > >> OK, so it's udev rather than Mesa that determines the group name. >> But, in all current LFS builds we *don't* have such a rule. To me, >> it seems more reliable to add users to the video group. After all, >> we've defined that group for a long time. > > That's true. I suspect either way will work. The problem with the > group is that each user has to be added to that group while the udev > rule makes hw acceleration available for all users at one time. Of > course in most cases there is only one user. :) > > -- Bruce > >
I personally don't like the idea of giving access to everyone which would include the user nobody and other 'guest' type users. Wayne. -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page