Skip to contentSkip to conversation

Rules are not applied to node

DISCUSSION Daniel Baulig 3 participants 4 messages Jun 1, 2006 – Jun 2, 2006

lore
Share & tools
lore

Daniel Baulig

author Applied
#0 lore raw

Hoi!

I'm currently having problems getting the rights of my graphics adapter set correctly. I have following rule in /etc/udev/rules.d/10-local.rules

KERNEL="card[0-9]*", NAME="dri/%k", MODE="0666"

However, after booting if I ls -lisa my /dev/dri I get following output:

25119 0 crw-rw---- 1 root root 226, 0 2006-06-01 18:02 card0

Well, I set udev_log to debug and searched my syslog for some Inforation. less /var/log/syslog | grep udev | grep card0 gives me following output:

Jun  1 18:02:11 localhost udevd-event[6621]: udev_rules_get_name: rule 
applied, 'card0' becomes 'dri/card0'
Jun  1 18:02:11 localhost udevd-event[6621]: udev_db_get_device: no db 
file to read /dev/.udev/db/class@drm@card0: No such file or directory
Jun  1 18:02:11 localhost udevd-event[6621]: udev_node_add: creating 
device node '/dev/dri/card0', major = '226', minor = '0', mode = '0666', 
uid = '0', gid = '44'
Jun  1 18:02:11 localhost udevd-event[6621]: udev_node_mknod: preserve 

file '/dev/dri/card0', because it has correct dev_t

It looks like eveything works fine, except that last line looks a little bit suspicious, however, I do not know what it means and google aswell as the mailing list archives gave me no interesting hits to udev_node_mknod - actually the list gave me none and google only 2 not of interest. I really don't know any further.

uname -r: 2.6.16-1-686
udevinfo -V: udevinfo, version 091

Greets

Daniel

-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 7 lines · Daniel Baulig

Hoi!

I'm currently having problems getting the rights of my graphics adapter set correctly. I have following rule in /etc/udev/rules.d/10-local.rules

KERNEL="card[0-9]*", NAME="dri/%k", MODE="0666"

Quoted 7 lines

However, after booting if I ls -lisa my /dev/dri I get following output:

25119 0 crw-rw---- 1 root root 226, 0 2006-06-01 18:02 card0

Well, I set udev_log to debug and searched my syslog for some Inforation. less /var/log/syslog | grep udev | grep card0 gives me following output:

What does running:
udevtest /class/drm/card0

produce as output?

thanks,

greg k-h

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Daniel Baulig
Quoted 1 line · Daniel Baulig

KERNEL="card[0-9]*", NAME="dri/%k", MODE="0666"

Please post the "DRI" section of your xorg.conf. It looks like the X server is creating the node itself according to permissions specified there, and races with udev. To kill this race and let the X server manage the permissions, change the rule to:

KERNEL="card[0-9]*", NAME=""

This tells udev to ignore the DRI devices.

Signature · 7 lines
Alexander E. Patrakov


_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#3 lore raw
In reply to Daniel Baulig

Hoi!

Quoted 11 lines · Alexander E. Patrakov
Quoted 1 line · Daniel Baulig

KERNEL="card[0-9]*", NAME="dri/%k", MODE="0666"

Please post the "DRI" section of your xorg.conf. It looks like the X server is creating the node itself according to permissions specified there, and races with udev. To kill this race and let the X server manage the permissions, change the rule to:

KERNEL="card[0-9]*", NAME=""

This tells udev to ignore the DRI devices.

I did not have the DRI section in my xorg.conf. I added it and set NAME="" as you suggested and it worked out fine, thanks alot!

Greets

Daniel

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel