Comment 0 for bug 306014

Revision history for this message
Albert Damen (albrt) wrote : libdrm 2.4.1 needs udev rule for /dev/dri/card*

libdrm 2.4.1 in Jaunty is configured with --enable-udev, so the device node /dev/dri/card* now is created via udev and patch 01_default_perms.diff does not help to set the right permissions anymore.
Therefore /dev/dri/card0 now gets file permissions crw-rw----. This results in poor performance, for example in sauerbraten and glxgears. Changing the permissions to 666 gives the old performance again.

On my system I have created the file /etc/udev/rules.d/45-dev-dri-permissions.rules with the line:
KERNEL=="card[0-9]", MODE="0666"

to automatically give /dev/dri/card0 the right permissions.

I think either a rule like that must be shipped in libdrm2 or a similar rule must be added to /etc/udev/rules.d/40-permissions.rules in udev.

Please note:
Section "DRI"
 Mode 0666
EndSection
in xorg.conf does not work anymore to set the permissions (see bug 303011).

libdrm2 2.4.1-0ubuntu7
kernel 2.6.28-2-generic, amd64