udev rules -- file names -- just wondering??

2009-08-02 Thread William Case
Hi;

I am looking at /etc/udev/rules.d, particularly 90-alsa.rules and
noticed that all the udev rules files are preceded by a number in their
name.  Is that number significant?  Or is it used just to avoid
duplicate names?

I was looking to see if I could chase down why undev produces a wierd
beep when it initiates on boot.

-- 
Regards Bill
Fedora 11, Gnome 2.26.3
Evo.2.26.3, Emacs 22.3.1

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: udev rules -- file names -- just wondering??

2009-08-02 Thread Tom Horsley
On Sun, 02 Aug 2009 12:35:54 -0400
William Case wrote:

 I was looking to see if I could chase down why undev produces a wierd
 beep when it initiates on boot.

Perhaps it is the same as this bug?

https://bugzilla.redhat.com/show_bug.cgi?id=495166

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: udev rules -- file names -- just wondering??

2009-08-02 Thread Patrick O'Callaghan
On Sun, 2009-08-02 at 12:35 -0400, William Case wrote:
 I am looking at /etc/udev/rules.d, particularly 90-alsa.rules and
 noticed that all the udev rules files are preceded by a number in
 their
 name.  Is that number significant?  Or is it used just to avoid
 duplicate names?

The number indicates the order in which the rules are applied, similar
to the number preceding startup/shutdown scripts in /etc/rc?.d

poc

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: udev rules -- file names -- just wondering??

2009-08-02 Thread William Case
Thanks Tom

On Sun, 2009-08-02 at 13:16 -0400, Tom Horsley wrote:
 On Sun, 02 Aug 2009 12:35:54 -0400
 William Case wrote:
 
  I was looking to see if I could chase down why undev produces a wierd
  beep when it initiates on boot.
 
 Perhaps it is the same as this bug?
 
 https://bugzilla.redhat.com/show_bug.cgi?id=495166
 
It probably is.  I will add my comments to the bug.  

However, I am still having several difficulties with ALSA -- same
difficulties as many people have already posted here.  Some of the
problems are being blamed on PulseAudio which may not, in fact, be the
culprit.  I have completely removed PulseAudio and my problems remain.
If I can get ALSA working in a stable manner I will re-introduce
PulseAudio and see what happens.

I think -- for whatever that is worth -- there is a a single bug in one
of the fundamental processes; ALSA, udev, hal, d-bus, the kernel or
DeviceKit that was introduced by an upgrade.

By the way, I am still curious about the significance of the two digit
prefix on udev/rules/ files.  Man udev and udevd are silent on this.

-- 
Regards Bill
Fedora 11, Gnome 2.26.3
Evo.2.26.3, Emacs 22.3.1

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: udev rules -- file names -- just wondering??

2009-08-02 Thread Mikkel L. Ellertson
William Case wrote:
 Hi;
 
 I am looking at /etc/udev/rules.d, particularly 90-alsa.rules and
 noticed that all the udev rules files are preceded by a number in their
 name.  Is that number significant?  Or is it used just to avoid
 duplicate names?
 
 I was looking to see if I could chase down why undev produces a wierd
 beep when it initiates on boot.
 
It controls the order that the rules are processed. This can be
important if a rule stops further rule processing for a specific
device. The rules do not have to have a number, but it makes fowling
the order of rules easier. The processing order it the same as the
sorted ls order.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!



signature.asc
Description: OpenPGP digital signature
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: udev rules -- file names -- just wondering??

2009-08-02 Thread Todd Zullinger
William Case wrote:
 By the way, I am still curious about the significance of the two
 digit prefix on udev/rules/ files.  Man udev and udevd are silent on
 this.

I wouldn't say udev(1) is silent on the matter.  It just doesn't use
the word(s) you might be searching for to describe the behavior. ;)

   Rules files
   The udev rules are read from the files located in the default
   rules directory /lib/udev/rules.d/, the custom rules directory
   /etc/udev/rules.d/ and the temporary rules directory
   /dev/.udev/rules.d/. All rule files are sorted and processed in
   lexical order, regardless in which of these directories they
   live.

The operative phrase being '...sorted and processed in lexical order.'

-- 
ToddOpenPGP - KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~
Ninety percent of everything is crap.
-- Sturgeon's Law



pgpcdD3AWSyIh.pgp
Description: PGP signature
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: udev rules -- file names -- just wondering??

2009-08-02 Thread William Case
Thanks Todd;

On Sun, 2009-08-02 at 13:56 -0400, Todd Zullinger wrote: 
 William Case wrote:
  By the way, I am still curious about the significance of the two
  digit prefix on udev/rules/ files.  Man udev and udevd are silent on
  this.
 
 I wouldn't say udev(1) is silent on the matter.  It just doesn't use
 the word(s) you might be searching for to describe the behavior. ;)
 
Rules files
The udev rules are read from the files located in the default
rules directory /lib/udev/rules.d/, the custom rules directory
/etc/udev/rules.d/ and the temporary rules directory
/dev/.udev/rules.d/. All rule files are sorted and processed in
lexical order, regardless in which of these directories they
live.
 
 The operative phrase being '...sorted and processed in lexical order.'

One must remain always vigilant when reading a 'man' page !

-- 
Regards Bill
Fedora 11, Gnome 2.26.3
Evo.2.26.3, Emacs 22.3.1

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: udev rules -- file names -- just wondering??

2009-08-02 Thread Mail Lists
On 08/02/2009 01:56 PM, Todd Zullinger wrote:
 I wouldn't say udev(1) is silent on the matter.  It just doesn't use
 the word(s) you might be searching for to describe the behavior. ;)
 
Rules files
The udev rules are read from the files located in the default
rules directory /lib/udev/rules.d/, the custom rules directory
/etc/udev/rules.d/ and the temporary rules directory
/dev/.udev/rules.d/. All rule files are sorted and processed in
lexical order, regardless in which of these directories they
live.
 
 The operative phrase being '...sorted and processed in lexical order.'
 
 

 Numbers and lexical order are not always ideal ... which is processed
first:

   a) 99-xxx

   b) 100-xxx

 Also, the phrase 'regardless in which of these directories' - is
interesting - as no directory has precedence .. which is useful or
confusing depending on perspective I suppose ..

  gene/

  gene

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: udev rules -- file names -- just wondering??

2009-08-02 Thread Patrick O'Callaghan
On Sun, 2009-08-02 at 15:13 -0400, Mail Lists wrote:
 On 08/02/2009 01:56 PM, Todd Zullinger wrote:
  I wouldn't say udev(1) is silent on the matter.  It just doesn't use
  the word(s) you might be searching for to describe the behavior. ;)
  
 Rules files
 The udev rules are read from the files located in the default
 rules directory /lib/udev/rules.d/, the custom rules directory
 /etc/udev/rules.d/ and the temporary rules directory
 /dev/.udev/rules.d/. All rule files are sorted and processed in
 lexical order, regardless in which of these directories they
 live.
  
  The operative phrase being '...sorted and processed in lexical order.'
  
  
 
  Numbers and lexical order are not always ideal ... which is processed
 first:
 
a) 99-xxx
 
b) 100-xxx

100-xx goes before 99-xx. You'll notice that there are no scripts
numbered above 99. Same with /etc/rc?.d. If there were a need for more
than 100 scripts, they could be renumbered 000-xx to 999-xx.

poc

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines