� ���, 04.05.2002, � 01:27, Sarang Lakare �������: > Conflict between hotplug and sound on a laptop > > The Problem : I installed LM8.2 on my Inspiron 5000e laptop which had LM8.0 > running without problems. After installation the sound was not working. On > running harddrake, sound was getting configured but on a reboot it stopped > working again. > > Analysis : So I sat down to analyze what was exactly happening. I found that > the OSS sound driver "maestro" was being used by default and after loading > the driver, the sound was fine. To trace what happened after reboot, I checked > the list of modules loaded after booting. Surprisingly I found snd-card-es1968 > loaded with all the other standard alsa modules (minus the OSS emulation > modules). After looking at the log messages I found that hotplug was trying > to setup snd-card-es1968 and maestro drivers at bootup. So this sequence of > events was taking place: > > hotplug does modprobe on snd-card-es1968 : the driver gets loaded > hotplug does modprobe on maestro : the driver is not loaded since a sound > driver is already loaded and card is in use > > <after certain steps> > modprobe maestro (due to alias sound maestro in modules.conf). : The driver > cannot be loaded as sound card already in > use > > Now I tried to find out from where hotplug gets the list of modules to load. > It turns out that hotplug uses "pcimodules" to get a list of modules > available for all of the PCI h/w and tries to load all modules! >
Good work but wrong conclusion. First, what do you call "pcimodules"? Do you mean /lib/modules/`uname -r`/modules.pcimap? Hotplug must use this file. The real question is - why hotplug gets called at all. There is no hotplug invocation in drivers/sound; and the only pci_insert_device call (that would finally call hotplug) I can find is in cardbus driver. You do not want to tell your sound card is cardbus card? Are you sure it is hotplug? -andrej > Solution : This is indeed a temporary fix. I added both maestro and > snd-card-es1968 to /etc/hotplug/blacklist. This prevented them being > loaded at bootup by hotplug and thus "modprobe maestro" at the end of the > bootup process was able to start my sound! Later, I enabled alsa and got alsa > drivers successfully loaded at bootup. > > I hope this problem is helpful to you guys. I wonder if all Mandrake laptop > users with alsa+oss drivers installed are encountering the same problem. > > Regards, > Sarang > > > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Sarang Lakare > Dept. of Computer Science, SUNY at Stony Brook > www : http://www.cs.sunysb.edu/~lsarang > linux : http://www.cs.sunysb.edu/~lsarang/linux > !!Join the fight for freedom - Go GNU/Linux!! >
