LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 05-20-2005, 08:26 PM   #1
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 59
Alsa not setting up sound card correctly on boot


Sarge ... Kernel 2.6.8-2 ... Sound card (reported by alsaconf) ... Maestro ESS Technology ES1988 Allegro-1 (rev.12)

I've seen a question similar to this somewhere in the forums, but I can't find the thread. Sorry.

Sound does not work after boot. Running alsaconf fixes the problem until next reboot. When I run alsaconf, there is an error report that may shed some light on why it didn't work during the boot. (For the record, I did turn off all sound programs before running alsaconf) Here is the message:

"Terminating processes 3858, 3993, 4011, 4015, 4036 (failed: processes still using sound devices: 4054 (gnome settings - ))

"/etc/init.d/alsa: Warning: Processes still using sound devices : 4054 (gnome settings - ))

"Unloading ALSA sound driver modules: snd-maestro3 snd-intel8x0m snd-ac97-codec snd-pcm-oss snd-mixer-oss snd-pcm snd-timer snd-page-alloc (failed: modules still loaded: snd-intel8x0m snd-ac97-codec snd-mixer-oss snd-pcm snd-timer snd-page-alloc)."

alsaconf, then goes on to successfully install the Maestro card ... for this session.

I am setting this PC up for my son, who is not qualified to have root priviledges, so I need to get it fixed before he takes it back to school. Thank for any help.

Last edited by rickh; 05-20-2005 at 08:30 PM.
 
Old 05-21-2005, 01:32 PM   #2
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
To begin with, I must first confess that I don't know much about solving ALSA problems and, furthermore, I don't even use Gnome. That being said, the alsaconf message seems a bit puzzling to me. I'd understand if sound doesn't work after booting because all the necessary modules are not loaded but it appears that alsaconf tries to *unload* modules.

While we're waiting for better informed suggestions, you could perhaps run "lsmod |grep snd" before and after running alsaconf and compare the results to see if alsaconf loads any modules that weren't loaded during boot time. If this is the case, then you could try adding these missing modules to /etc/modules and then reboot to see if that helps.
 
Old 05-21-2005, 06:44 PM   #3
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Original Poster
Rep: Reputation: 59
Related thread that I want to keep track of while I work on this thing.
http://www.linuxquestions.org/questi...hreadid=309361
 
Old 05-21-2005, 08:03 PM   #4
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Original Poster
Rep: Reputation: 59
OK ... After boot, before running alsaconf:
# lsmod | grep snd
snd_maestro3 22824 0
snd_intel8x0m 18632 1
snd_ac97_codec 59268 2 snd_maestro3, snd_intel8x0m
snd_pcm_oss 48168 0
snd_mixer_oss 16640 2 snd_pcm_oss
snd_pcm 85384 3 snd_maestro3, snd_intel8x0m, snd_pcm_oss
snd_timer 23172 1 snd_pcm
snd 50660 7 snd_maestro3, snd_intel8x0m, snd_ac97_codec, snd_pcm_oss, snd_mixer_oss, snd_pcm, snd_timer
soundcore 9824 2 snd
snd_page_alloc 11144 2 snd_intel8x0m, snd_pcm

And ... After successfully running alsaconf:
# lsmod | grep snd
snd_maestro3 22824 2
snd_ac97_codec 59268 1 snd_maestro3
snd_pcm_oss 48168 0
snd_mixer_oss 16640 1 snd_pcm_oss
snd_pcm 85384 3 snd_maestro3, snd_pcm_oss
snd_page_alloc 11144 1 snd_pcm
snd_timer 23172 1 snd_pcm
snd 50660 7 snd_maestro3, snd_ac97_codec, snd_pcm_oss, snd_mixer_oss, snd_pcm, snd_timer
soundcore 9824 1 snd

Aha! Some very distinctive differences there. In the thread I referenced in my last post here, the very last entry reads:

"...similar problem on my asus laptop having an AC97 integrated audio card ... Unloading the debian original i810_audio module from /etc/modules. ... [It] was preventing the loading of alsa modules at boot. Commenting it worked."

It appears that I have the same, or a very similar, problem. snd_intel8x0m is, for some reason, already loaded by the time ALSA comes along wanting to install the correct drivers.

So... how do I go about making sure that doesn't happen?

"Commenting it worked." ... Commenting it where?

Last edited by rickh; 05-21-2005 at 08:07 PM.
 
Old 05-21-2005, 08:47 PM   #5
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Debian uses programs called discover and hotplug for automatic hardware detection during boot time. These programs detect your hardware and load the needed modules. It appears that ALSA doesn't need the snd_intel8x0m module, so you can prevent discover from loading it by adding the line
Code:
skip snd_intel8x0m
to the end of /etc/discover.conf and adding snd_intel8x0m to /etc/hotplug/blacklist should prevent also hotplug from loading it.
 
Old 05-21-2005, 09:44 PM   #6
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Original Poster
Rep: Reputation: 59
Debian uses programs called discover and hotplug for automatic hardware detection during boot time. These programs detect your hardware and load the needed modules. It appears that ALSA doesn't need the snd_intel8x0m module, so you can prevent discover from loading it by ...

Rather than ALSA not needing snd_intel8x0m, perhaps it's this particular sound card that doesn't need it, or perhaps ALSA's install script for this driver lacks the correct means of handling it. I say that because I have another laptop with a different card that got the same installation with no problems.

At any rate, your solution, as usual, ended the problem. Thanks.

Is there a central place to look to see all the modules, drivers, etc, that are being loaded during the boot process?
 
Old 05-21-2005, 10:20 PM   #7
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Quote:
Is there a central place to look to see all the modules, drivers, etc, that are being loaded during the boot process?
Place? I guess that would be /proc/modules -- it's the file where the lsmod command gets its info from. If you want to view the messages that were printed on the screen while your computer booted, try the "dmesg | more" command.
 
Old 06-04-2005, 04:31 PM   #8
carlbenders
LQ Newbie
 
Registered: Feb 2005
Posts: 5

Rep: Reputation: 0
I have similar problem as rickh

Sound does not work after boot. Running alsaconf fixes the problem until next reboot. No errors when running alsaconf.

Here is output of lsmod | grep snd
before and after running alsaconf

Hope:/home/wicks# lsmod | grep snd
snd_ice1712 64580 2
snd_ice17xx_ak4xxx 7808 1 snd_ice1712
snd_pcm 88708 2 snd_ice1712
snd_timer 28292 1 snd_pcm
snd_page_alloc 13064 1 snd_pcm
snd_ak4xxx_adda 9472 2 snd_ice1712,snd_ice17xx_ak4xxx
snd_cs8427 13696 1 snd_ice1712
snd_ac97_codec 66768 1 snd_ice1712
snd_i2c 8832 2 snd_ice1712,snd_cs8427
snd_mpu401_uart 11776 1 snd_ice1712
snd_rawmidi 26916 1 snd_mpu401_uart
snd_seq_device 11528 1 snd_rawmidi
snd 53220 13 snd_ice1712,snd_pcm,snd_timer,snd_ak4xxx_adda,snd_cs8427,snd_ac97_codec,snd_i2c,snd_mpu401_uart,snd_ rawmidi,snd_seq_device
soundcore 11232 1 snd

Hope:/home/wicks# lsmod | grep snd
snd_ice1712 64580 0
snd_ice17xx_ak4xxx 7808 1 snd_ice1712
snd_pcm 88708 1 snd_ice1712
snd_timer 28292 1 snd_pcm
snd_page_alloc 13064 1 snd_pcm
snd_ak4xxx_adda 9472 2 snd_ice1712,snd_ice17xx_ak4xxx
snd_cs8427 13696 1 snd_ice1712
snd_ac97_codec 66768 1 snd_ice1712
snd_i2c 8832 2 snd_ice1712,snd_cs8427
snd_mpu401_uart 11776 1 snd_ice1712
snd_rawmidi 26916 1 snd_mpu401_uart
snd_seq_device 11528 1 snd_rawmidi
snd 53220 10 snd_ice1712,snd_pcm,snd_timer,snd_ak4xxx_adda,snd_cs8427,snd_ac97_codec,snd_i2c,snd_mpu401_uart,snd_ rawmidi,snd_seq_device
soundcore 11232 1 snd

Any suggestions???

Thanx,
Carl
 
Old 06-04-2005, 06:13 PM   #9
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Original Poster
Rep: Reputation: 59
Are you sure about those before and after images ... and that the sound wasn't working before alsaconf, and that it was workinf afterward? I don't see any difference between the before and after outputs.
 
Old 06-04-2005, 07:28 PM   #10
carlbenders
LQ Newbie
 
Registered: Feb 2005
Posts: 5

Rep: Reputation: 0
Yeah, I'm sure,
Every time, no sound upon boot, after running alsaconf OK. The only difference in the lsmod outputs is the number at the end of the first line. I think your output showed this change too.
 
Old 06-04-2005, 09:25 PM   #11
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Original Poster
Rep: Reputation: 59
The significant difference on mine was that after alsaconf ran, there was no longer a snd_intel8x0m module active

Maybe try 'alsactl store,' but based on your 'before' output, it appears that it was stored fine.

Last edited by rickh; 06-04-2005 at 09:37 PM.
 
Old 06-12-2005, 03:02 PM   #12
deNiro
Member
 
Registered: Jun 2003
Location: Belgium
Distribution: Slackware
Posts: 109

Rep: Reputation: 16
Me having the same problem. everything i logout/login/reboot sound just doesn't work anymore. after a alsaconfig everything works just fine.

It's Fu**** irritating. The skip snd_intel8x0m in the disconver.conf didn't work out. :/

let's hope someone finds the solution

o btw, i have soundstorm2 and i'm using udev
 
Old 06-12-2005, 03:41 PM   #13
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Original Poster
Rep: Reputation: 59
Did lsmod identify snd_intel8x0m as the problem? If so, did you do the 2nd part of the instruction,
Quote:
... and adding snd_intel8x0m to /etc/hotplug/blacklist should prevent also hotplug from loading it.
 
Old 06-12-2005, 06:11 PM   #14
tomj88
Member
 
Registered: Apr 2005
Location: Wolverhampton, England
Distribution: Ubuntu
Posts: 334

Rep: Reputation: 30
I'm not sure whether this is a safe answer, or will even work, but why not set the alsaconf to run as a late process on boot up? It would mean that you wouldn't have to run the command, but its not a proper fix.
 
Old 06-13-2005, 10:38 AM   #15
deNiro
Member
 
Registered: Jun 2003
Location: Belgium
Distribution: Slackware
Posts: 109

Rep: Reputation: 16
put the module in /etc/hotplug/blacklist doesn't work out, and from another reply... adding alsaconf as a part of the startup, that's like compiling a kernel at every bootup

okay, perhaps overreacting, but you know what i mean

if i have time, probably tomorrow, i'll take a look at other options .. thansk a lot anyway
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ALSA not working for Creative Sound Blaster Live 24 Bit sound card vishalsonu Linux - Hardware 7 08-20-2005 01:02 PM
No sound with a CM8738 sound card -- alsa installed istar80 Linux - Hardware 1 06-17-2005 02:02 PM
Serious issues with sound/alsa - laggy, unresponsive, and doesn't sync correctly. dragonslay Linux - Software 0 01-06-2005 08:42 PM
Setting up Alsa with onboard sound i810 DavidTempler Linux - Software 9 01-28-2004 06:16 AM
Can't recognize/find my onboard sound card. Need help setting up ALSA. cmack Linux - Hardware 2 11-15-2003 10:04 PM


All times are GMT -5. The time now is 10:42 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration