Fedora Linux Support Community & Resources Center
Old 1st June 2007, 02:19 AM
youhaodeyi Offline
Registered User
Join Date: May 2007
Posts: 217
How does udev rules work?

I found the udevstart command will change the volume of the system. And i read the rule file for it (/etc/udev/rules.d). There are several rule files in this directory, 10-local.rules 50-udev.rules 60-fuse.rules alsa.rules 15-mouse.rules 51-hotplug.rules 80-local.rules. I found the file 50-udev.rules includes a section to set the alsa device:
KERNEL=="controlC[0-9]*", NAME="snd/%k"
KERNEL=="hw[CD0-9]*", NAME="snd/%k"
KERNEL=="pcm[CD0-9cp]*", NAME="snd/%k"
KERNEL=="midi[CD0-9]*", NAME="snd/%k"
KERNEL=="timer", NAME="snd/%k"
KERNEL=="seq", NAME="snd/%k"

And also I found there are some similar items in alsa.rules file:
SUBSYSTEM=="sound", KERNEL=="controlC*" RUN+="/sbin/salsa"
SUBSYSTEM=="sound", KERNEL=="pcm*" RUN+="/sbin/salsa"

How do they related? How do they change the volume? How can I modify them to meet my requirement? Is there any syntax for the rule file?

Reply With Quote

rules, udev, work

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
udev hangs up with two rules luisfelipe Using Fedora 0 3rd April 2008 02:37 AM
Udev permissions rules jazzfan Using Fedora 0 6th January 2008 05:23 PM
udev rules in Fedora 8 trigpoint Using Fedora 3 18th November 2007 08:50 PM
custom udev rules gangrel Hardware & Laptops 1 27th October 2006 09:37 AM

Current GMT-time: 09:30 (Thursday, 17-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat