Bug 127825

Summary: Sound fails to start at boot time
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Dan Homolka <dan.homolka>
Component: SoundAssignee: Ladislav Slezák <lslezak>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: tiwai
Version: RC 4   
Target Milestone: ---   
Hardware: x86   
OS: SUSE Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Boot messages file (/var/log/boot.msg)
y2log excerpt

Description Dan Homolka 2005-10-12 15:09:52 UTC
H/W: Thinkpad T42p  
OS: SUSE 10.0 (box) RC4 fresh system install (not an upgraded system)  
Sound card:  
  
hobbes:/home/dan/ # hwinfo --sound  
20: PCI 1f.5: 0401 Multimedia audio controller  
  [Created at pci.277]  
  UDI: /org/freedesktop/Hal/devices/pci_8086_24c5  
  Unique ID: W60f.19YhsnRmin4  
  SysFS ID: /devices/pci0000:00/0000:00:1f.5  
  SysFS BusID: 0000:00:1f.5  
  Hardware Class: sound  
  Model: "IBM 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller"  
  Vendor: pci 0x8086 "Intel Corporation"  
  Device: pci 0x24c5 "82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio  
Controller"  
  SubVendor: pci 0x1014 "IBM"  
  SubDevice: pci 0x0537  
  Revision: 0x01  
  Driver: "Intel ICH"  
  I/O Ports: 0x1c00-0x1cff (rw)  
  I/O Ports: 0x18c0-0x18ff (rw)  
  Memory Range: 0xc0000c00-0xc0000dff (rw,non-prefetchable)  
  Memory Range: 0xc0000800-0xc00008ff (rw,non-prefetchable)  
  IRQ: 11 (314543 events)  
  Module Alias: "pci:v00008086d000024C5sv00001014sd00000537bc04sc01i00"  
  Driver Info #0:  
    Driver Status: i810_audio is not active  
    Driver Activation Cmd: "modprobe i810_audio"  
  Driver Info #1:  
    Driver Status: snd_intel8x0 is active  
    Driver Activation Cmd: "modprobe snd_intel8x0"  
  Config Status: cfg=yes, avail=yes, need=no, active=unknown  
  
  
Sound is configured correctly & works during installation. On reboot, sound is  
not available.  
hobbes:/home/dan/ # rcalsasound status  
ALSA sound driver not loaded.                                         unused  
  
hobbes:/home/dan/ # rcalsasound restart  
Starting sound driver:  intel8x0                                      done  
  
Restores sound.  
  
alsasound is set to be activated in runlevels 3 & 5  
  
[Keywords: sound alsa alsasound snd_intel8x0 i810_audio IBM 82801DB AC'97 
Audio Controller ]
Comment 1 Dan Homolka 2005-10-12 15:15:47 UTC
Created attachment 53837 [details]
Boot messages file (/var/log/boot.msg)
Comment 2 Dan Homolka 2005-10-12 15:20:16 UTC
hobbes:/home/dan/ # chkconfig -l alsasound 
alsasound                 0:off  1:off  2:on   3:on   4:off  5:on   6:off 
 
Comment 3 Takashi Iwai 2005-10-14 10:36:02 UTC
alsasound init script itself doesn't load modules any more unlike 9.3.  The
modules are supposed to be loaded via hotplug/udev.  See README.SuSE in alsa
package.

Check /etc/sysconfig/hardware/hwcfg-* files whether any of them includes
snd-intel8x0 module.  If not, try to reconfigure the sound via yast2.
(Don't use alsaconf.  It's been buggy for SL10.0.)
Comment 4 Dan Homolka 2005-10-14 11:52:19 UTC
It seems that hotplug/udev doesn't load the module :(  
  
No references to snd or intel in any /etc/sysconfig/hardware/hwcfg-* file.  
  
Run yast2 sound. Where the sound card is detected. Delete current  
configuration.   
Edit configuration of card, and accept "Quick" setup, complete config process. 
 
No new hwcfg-* files found in /etc/sysconfig/hardware/ no change in existing 
ones (which are related to the ethernet devices anyway :) 
 
Is this a bug in yast2 sound module not writing the hwcfg- file in this case? 
Comment 5 Takashi Iwai 2005-10-14 12:01:31 UTC
I think yes.  Could you attach yast2 log?

Reassigned to yast2-sound maintainer.
Comment 6 Dan Homolka 2005-10-14 12:26:18 UTC
Created attachment 54086 [details]
y2log excerpt

Just todays messages :)

hobbes:/var/log/YaST2 # grep 2005-10-14 y2log > /tmp/y2log
Comment 7 Ladislav Slezák 2005-10-19 06:34:38 UTC
I have found this in y2log:
2005-10-14 12:44:00 <1> hobbes(15480) [YCP] sound/write_routines.ycp:188 using hwcfg file: hwcfg-bus-pci-0000:00:1f.5
2005-10-14 12:44:00 <1> hobbes(15480) [YCP] sound/write_routines.ycp:292 Removing file: bus-pci-0000:00:1f.5

It means that yast creates the hwcfg file, but it's immediately deleted - see bug #116483.

The workaround is to remove the sound card, exit the yast module (write/activate the changes), restart the yast module and finally configure the sound card. Then it should work.

*** This bug has been marked as a duplicate of 116483 ***
Comment 8 Stefan Hundhammer 2005-10-24 14:16:43 UTC
I wonder if this is connected to bug #121872.
Comment 9 Stefan Hundhammer 2005-10-24 14:17:59 UTC
Oops - sorry, forget comment #8 - wrong bug.