[argyllcms] Re: Getting udev rules to work on Ubuntu 6.06

On Fri, 2006-11-24 at 12:47 +1100, Graeme Gill wrote:
> Neil Woolford wrote:
> 
> > The key point is that the filename for the .rules file for the device
> > must start with a number higher than 40.  This means that the mode
> > setting in the udev rule will be processed after rather than before the
> > system defaults in file 40-permissions.rules.  So 39-dtp94.rules will be
> > overridden by the defaults, 41-dtp94.rules won't be.
> 
> Right. Most of the doco recommends the opposite, on the assumption
> that the purpose of your new .rules file is to create a specific
> device name. I would guess that your approach will only work if the
> 40-permissions.rules creates a /dev entry for usb devices, in the
> form that libusb is looking for (/dev/bus/usb/00M/00N). My system
> for instance, has no such rule in the 40-permissions.rules file,
> so I suspect your approach wouldn't work since there is nothing
> to change the mode of. Perhaps you could identify the rule in
> your 40-permissions.rules file that creates the /dev/bus/usb/*
> that the purpose of your new .rules file is to create a specific
> entries ?
> 
> that the purpose of your new .rules file is to create a specific

I'll have another look later in the day, but what appears to be
happening in my (Ubuntu 6.06) 40-permissions.rules file is the setting
of default permissions for (groups of) devices, rather than the creation
of device entries themselves.

Later rules files apply over earlier ones so the default permission
overrides the one set specifically for the device or vice versa
depending on the lexical order of the filenames.

The files I'm looking at in .../udev/rules.d may of course be Ubuntu
specific;  I noticed that one of the original posters was using Ubuntu
as I currently am.  I've an experimental Mandriva setup on the laptop so
I'll look at that too.  I want to try calibrating the laptop screen
anyway...

Neil


Other related posts: