* Rules are not applied to node
@ 2006-06-01 16:54 Daniel Baulig
2006-06-01 21:43 ` Greg KH
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Daniel Baulig @ 2006-06-01 16:54 UTC (permalink / raw)
To: linux-hotplug
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&kid\x107521&bid$8729&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Rules are not applied to node
2006-06-01 16:54 Rules are not applied to node Daniel Baulig
@ 2006-06-01 21:43 ` Greg KH
2006-06-02 1:53 ` Alexander E. Patrakov
2006-06-02 16:34 ` Daniel Baulig
2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2006-06-01 21:43 UTC (permalink / raw)
To: linux-hotplug
On Thu, Jun 01, 2006 at 06:54:04PM +0200, Daniel Baulig wrote:
> 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:
What does running:
udevtest /class/drm/card0
produce as output?
thanks,
greg k-h
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Rules are not applied to node
2006-06-01 16:54 Rules are not applied to node Daniel Baulig
2006-06-01 21:43 ` Greg KH
@ 2006-06-02 1:53 ` Alexander E. Patrakov
2006-06-02 16:34 ` Daniel Baulig
2 siblings, 0 replies; 4+ messages in thread
From: Alexander E. Patrakov @ 2006-06-02 1:53 UTC (permalink / raw)
To: linux-hotplug
Daniel Baulig wrote:
> 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.
--
Alexander E. Patrakov
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Rules are not applied to node
2006-06-01 16:54 Rules are not applied to node Daniel Baulig
2006-06-01 21:43 ` Greg KH
2006-06-02 1:53 ` Alexander E. Patrakov
@ 2006-06-02 16:34 ` Daniel Baulig
2 siblings, 0 replies; 4+ messages in thread
From: Daniel Baulig @ 2006-06-02 16:34 UTC (permalink / raw)
To: linux-hotplug
Hoi!
Alexander E. Patrakov wrote:
> Daniel Baulig wrote:
>> 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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-06-02 16:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-01 16:54 Rules are not applied to node Daniel Baulig
2006-06-01 21:43 ` Greg KH
2006-06-02 1:53 ` Alexander E. Patrakov
2006-06-02 16:34 ` Daniel Baulig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).