Bug 131606 - ISA sound card modules are not loaded during boot
Summary: ISA sound card modules are not loaded during boot
Status: RESOLVED DUPLICATE of bug 331659
Alias: None
Product: openSUSE 11.0
Classification: openSUSE
Component: Sound (show other bugs)
Version: Alpha 2
Hardware: i686 Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Ladislav Slezák
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-31 17:44 UTC by Stanislav Brabec
Modified: 2008-05-14 14:36 UTC (History)
4 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
y2log.bz2 (18.50 KB, application/x-bzip2)
2005-11-01 20:36 UTC, Stanislav Brabec
Details
YaST2.tar.bz2 (193.07 KB, application/x-bzip2)
2007-09-10 15:50 UTC, Stanislav Brabec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stanislav Brabec 2005-10-31 17:44:42 UTC
It seems that ISA soundcard modules are not load during boot (my card is OPTi 82c931 ISA PnP).

How to repeat:
1. Configure sound in YaST2. Card is properly detected and configured. If you press test, sound works.
2. Reboot

Actual result:
Sound module is not loaded.

Expected result:
Sound module loaded.

Additional info:
I guess that the problem is, that YaST2 only configures modules and expects that coldplug/hotplug process will load needed modules. But hotplug has no ISA PnP support and ISA PnP (and probably also manually added - port probed cards) modules are not auto loaded.

Note that for undetectable manually added radio card module loading works.

Adding modprobe to init scrips works around this problem.

Proposed fix:
- Allow forced loading of modules for ISA and manually configured soundcards. (Simple and working fix.)

Other possible fixes:
- Implement ISA PnP registry to udev/hotplug. (It cannot help for port probed cards.)
Comment 1 Ladislav Slezák 2005-11-01 14:21:31 UTC
Could you check /etc/sysconfig/hardware/hwcfg-* files (esp. hwcfg-static*) if the required module is there? 
Comment 2 Stanislav Brabec 2005-11-01 20:34:42 UTC
There is no snd-opti93x in these files:

hwcfg-static-1:
# YaST configured radio card
# tv.nouniqkey64:Uživatelem definovaná rádio karta
MODULE='radio-aimslab'
STARTMODE='auto'

hwcfg-static-printer:
STARTMODE='auto'
MODULE='lp'

hwcfg-bus-pci-0000:00:0b.0:
MODULE='8139too'
MODULE_OPTIONS=''
STARTMODE='auto'
Comment 3 Stanislav Brabec 2005-11-01 20:36:19 UTC
Created attachment 56186 [details]
y2log.bz2

The same problem affects second machine (the same sound card chip, the same mother board but no radio card).
Comment 4 Christian Boltz 2005-11-06 18:44:44 UTC
I have the same problem on my Acer TravelMate 803 laptop (AC97 sound module)

/etc/sysconfig/hardware/hwcfg-* does not contain the sound module.

"modprobe snd-intel8x0" makes the sound working, so it is an issue of (not) loading the required module.

I installed 10.0 as update, but also re-configured sound using YaST2 - it worked until the next reboot. (I guess YaST2 calls modprobe.)

If you need more information or log files, please ask.
Comment 5 Ladislav Slezák 2006-05-17 09:11:45 UTC
Please, could you reproduce the problem in SUSE Linux 10.1?
Comment 6 Stanislav Brabec 2006-05-17 21:18:31 UTC
Yes. I have updated the system to 10.1 and the problem remains: YaST detects module properly, after reboot it is not loaded.
Comment 7 Jim Harvey 2006-08-22 02:34:28 UTC
I am having the same problem with 10.1 on a Thinkpad 770Z.  Sound works if configured with alsaconf or yast2 but will not come up on reboot.  modprobe cs4236 gets it to work again.
Comment 8 Marian Jancar 2006-08-28 07:56:32 UTC
IIRC hotplug loading of sound and modem modules is disabled (just loading the modules can cause problems on some hw), and has to be reenabled by yast (by creating the hwcfg-* for example).
Comment 9 Ladislav Slezák 2007-08-06 17:17:12 UTC
Stanislav, could you test it in 10.3 Alpha7/Beta1? AFAIK hotplug has been changed (again) and I don't know the current status. Thanks!
Comment 10 Lukas Ocilka 2007-09-05 14:32:04 UTC
No response for almost a month, closing as NORESPONSE.
Please, reopen the bug if you are able to attach the requested information.
Thanks.
Comment 11 Stanislav Brabec 2007-09-06 13:04:10 UTC
Problem still appears on 10.3 beta3.
Comment 12 Stanislav Brabec 2007-09-06 13:38:58 UTC
Notebook Compaq Armada 7400 (zeta) on my desk is your playground. Feel free to test it there.
Comment 13 Lukas Ocilka 2007-09-10 15:06:07 UTC
Sorry, we don't have time for playing. Please, attach YaST logs and `hwinfo --sound` output.
Comment 14 Stanislav Brabec 2007-09-10 15:50:35 UTC
Created attachment 163038 [details]
YaST2.tar.bz2

Here are YaST2 logs.

Output of "hwinfo --sound" is empty both before and after "modprobe snd-es18xx".

Sound (alsamixer) does not work before "modprobe snd-es18xx" (no device), but works after.

Sound was not configured in time of installation, but later by YaST (it was not auto-configured and I had to call vendor diagnostic to get proper DMA/IRQ/Ports).
Comment 15 Lukas Ocilka 2007-09-10 16:01:21 UTC
And what about those /etc/sysconfig/hardware/hwcfg-* files? Do they still lack the needed snd-es18xx? Could you, please, attach the hwcfg file for your sound card?
Comment 16 Lukas Ocilka 2007-09-10 16:06:30 UTC
BTW: I've found this in the y2log:

add_common_options: card: 0, entry: $["model":"ES1879 PnP AudioDrive", "module":"snd-es18xx", "options":$["isapnp":"1"], "unique_key":"uniq.unknown_key"]

Maybe YaST thinks it *supports* PnP...

Hmm, but after that:

sound/routines.ycp:243 add_common_options: card: 0, entry: $["alias":"snd-card-0", "model":"ES1879 PnP AudioDrive", "module":"snd-es18xx", "options":$["dma1":"1", "dma2":"0", "fm_port":"0x388", "irq":"5", "isapnp":"0", "mpu_port":"0x330", "port":"0x220"], "unique_key":"uniq.unknown_key"]
Sound.ycp:901 Required kernel modules: ["snd-es18xx"]
...
sound/write_routines.ycp:204 Found sysconfig/hardware files: ["static-printer"]

Er, what's that :)? zzz
Comment 17 Ladislav Slezák 2007-09-11 09:25:12 UTC
hwcfg files are obsoleted in 10.3 (see bug #290430)

Takashi, how should yast configure ISA cards in 10.3? Is there anything special for ISA?
Comment 18 Stanislav Brabec 2007-09-11 12:03:13 UTC
One card (from the original 10.2 report) was ISA PnP.

The card from the 10.3 report is ISA not PnP and even undedectable in YaST sound configurator.

Yes, there are no /etc/sysconfig/hardware/hwcfg-related to sound:

ls /etc/sysconfig/hardware/
README.hwcfg_and_device_initialisation  hwcfg-static-printer  hwcfg2rules


AFAIK, far the best solution for these problems would be HAL static configuration prober - user and advanced configuration tool will create file and prober will report this hardware as an ordinary autodetectable stuff.
Comment 19 Takashi Iwai 2007-09-12 16:00:41 UTC
Since hwcfg is gone on 10.3, the only good way for non-pnp ISA cards would be to add the corresponding module to /etc/sysconfig/kernel (e.g. $MODULES_LOADED_ON_BOOT)...
Comment 20 Lukas Ocilka 2007-09-12 16:31:45 UTC
In this case, closing as LATER --> after 10.3
We can't do such things for openSUSE 10.3 now
Comment 21 Ladislav Slezák 2008-05-14 14:36:55 UTC
This was fixed in yast2-sound-2.16.10.

*** This bug has been marked as a duplicate of bug 331659 ***