[arch-projects] [udev][RFC][5/5] remove custom rules to workaround old bugs
In 81-arch.rules we have a section that loads modules that cannot be auto detected. I think this is the wrong thing to do. If the kernel cannot auto detect it, then we probably are not going to be any better at it. Also, some of these rules might cause unwanted problems on systems that do not need the modules. E.g., the snd-{seq,pcm}-oss modules are known to cause problems with PulseAudio (and as PA is getting more and more common and OSS is getting more and more uncommon, I think it is clear that we are doing the wrong thing here). In general, I think all the modules of this section are exactly what rc.conf's MODULES array is for, so I suggest removing it. It might make sense to keep a wikipage dedicated to modules that cannot be autoloaded (cpufreq also comes to mind) and then add a note in udev.install pointing there. The relevant rules are below. Thoughts? Cheers, Tom ##################################### ###### Hotplug rules - begin # Only additional modules, # which are not detectable, # are loaded here! ##################################### # check if the device has already been claimed by a driver ACTION!="add", GOTO="drivers_end" # SOUND addon modules SUBSYSTEM=="sound", RUN+="/lib/udev/load-modules.sh snd-pcm-oss" SUBSYSTEM=="sound", RUN+="/lib/udev/load-modules.sh snd-seq-oss" #PNP addon modules SUBSYSTEM=="pnp", ENV{MODALIAS}!="?*", ATTRS{id}=="PNP0800", RUN+="/lib/udev/load-modules.sh pcspkr" SUBSYSTEM=="pnp", ENV{MODALIAS}!="?*", ATTRS{id}=="*PNP051[01]*", RUN+="/lib/udev/load-modules.sh irtty-sir" SUBSYSTEM=="pnp", ENV{MODALIAS}!="?*", ATTRS{id}=="PNPb02f", RUN+="/lib/udev/load-modules.sh analog" # PARPORT addon modules SUBSYSTEM=="pnp", ENV{MODALIAS}!="?*", ATTRS{id}=="PNP040*", RUN+="/lib/udev/load-modules.sh lp" SUBSYSTEM=="pnp", ENV{MODALIAS}!="?*", ATTRS{id}=="PNP040*", RUN+="/lib/udev/load-modules.sh ppdev" # fix ide cdrom detection on old proliant servers SUBSYSTEM=="pci", ENV{MODALIAS}=="pci:v00000E11d00000001sv00000000sd00000000bc06sc02i00", RUN+="/lib/udev/load-modules.sh ide-generic"
participants (1)
-
Tom Gundersen