LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-22-2003, 09:31 PM   #1
cratos
Member
 
Registered: Feb 2003
Posts: 95

Rep: Reputation: 15
Slack 8.1 to 9 no sound


I have been able to get sound to work in every other distro i have tried except this one.
First I had to install the kernel source because for some reason slack9 decided not to include it. Then I just did a fresh install of the new slackware9. I tried installing 3 different ALSA drivers. Although they install properly and i can run alsamixer, i still get the standard error in when kde starts:

Sound server informational message:
Error while initializing the sound driver:
can't set requested samplingrate (requested rate 44100, got rate 32000)
The sound server will continue, using the null output device.

What the did slackware do to cause such a problem in this version.

Also, I ran the make uninstall scripts for all three components(driver, lib, util) and still after rebooting the alsa modules are still loaded (snd-via8233, snd-pcm,snd-timer, snd-ac97-codec, snd)
I also removed all edits to config files etc.

First, after uninstalling how do these modules still exist?
Second, why are they loading if i didnt tell them to?
 
Old 05-22-2003, 10:45 PM   #2
StonedZealot
Member
 
Registered: May 2003
Location: St. Louis
Distribution: Slack 9
Posts: 42

Rep: Reputation: 15
Ah, the pleasures of ALSA

A few things to check:
did you specify the card in ./configure with the switch --with-cards= ?

do a "modprobe snd-via8233" and see if that has any errors

finally, try putting via8233 on its own line in /etc/hotplug/blacklist (this will keep slack 9 from auto installing the card with its own drivers and let ALSA take charge) and then reboot to flush the drivers...

as stupid as this may seem, it's what happened to me: in alsamixer, make sure you've unmuted the things. note: this is not the same as turning the volume up, the MM shouldn't be over the Master and PCM sliders.

also check these to see if you have all the installation down:
SlackFAQ -- ALSA .9
and the official ALSA site's help:
ALSA via82xx details


Last edited by StonedZealot; 05-22-2003 at 10:48 PM.
 
Old 05-22-2003, 11:00 PM   #3
cratos
Member
 
Registered: Feb 2003
Posts: 95

Original Poster
Rep: Reputation: 15
Yes I did specify the card --with-cards=via8233 for the 0.9.0rc1 drivers and --with-cards=via82xx for the newest drivers (0.9.3 i believe)

lsmod revieals that snd-via8233 is already loaded but nevertheless 'modprobe snd-via8233' gives no errors.

I will try your third suggestion and get back to you.

I have unmuted etc. Keep in mind the problem is that when I load KDE I still get the error that comes up before you install any drivers at all. It is not as if every thing is fine but I just don't get sound. That is not the case. Here is the error on KDE boot:

Sound server informational message:
Error while initializing the sound driver:
can't set requested samplingrate (requested rate 44100, got rate 32000)
The sound server will continue, using the null output device.
 
Old 05-22-2003, 11:05 PM   #4
cratos
Member
 
Registered: Feb 2003
Posts: 95

Original Poster
Rep: Reputation: 15
/etc/hotplug/blacklist seems to be a blank file.
I do not know where the modules are loaded from at bootup, When i uninstalled (make uninstall) each of the alsa packages then rebooted lsmod revealed that all of the alsa modules were still loaded. Where did alsa put this config and why wasnt it removed when i ran make uninstall?
 
Old 05-22-2003, 11:19 PM   #5
StonedZealot
Member
 
Registered: May 2003
Location: St. Louis
Distribution: Slack 9
Posts: 42

Rep: Reputation: 15
hmmm. no hotplug blacklist...was there a hotplug directory already? This shouldn't matter now however, because if it was a hotplug problem modprobe would give you weird errors.

anyway, just FYI, the device drivers are loaded before you get into KDE, as for where, I'm not entirely sure. And finally as for that ALSA make uninstall thing...no clue again (sorry), but you really should reinstall to get that module back in again.

I do have another two ?s

you have turned off aRts? (control panel->sound&multimedia->sound system)
^this is the big one...it sounds like your sound server problem is aRts

you did run ./snddevices (after driver install)
you did add those lines to your rc.M file? (mentioned in the two links above?) <-- edit: modules.conf, not rc.M (I was editing rc.M as I posted)

Sorry if it sounds like I think your an idiot, I don't, but I know I make incredibly stupid mistakes when doing this stuff (like messing with a perfectly good ALSA installation for three days only to realize the sound was still muted...)

Last edited by StonedZealot; 05-23-2003 at 02:57 PM.
 
Old 05-22-2003, 11:32 PM   #6
cratos
Member
 
Registered: Feb 2003
Posts: 95

Original Poster
Rep: Reputation: 15
No no by all means dont worry about treating me like and idiot.

I did reainstall afterwards, basically i only uninstalled to see if the modules would stop loading automatically. As for now, i have not added ANY lines to any config files because i was trying to figure out where they got loaded from.
It seems like I dont need to add any lines. The lines are only there so that the modules will autoload at bootup, correct? And my modules are autoloading, although i don't know how or from where.

I did try putting the lines from the alsa install directions page into conf.modules and rc.modules, however, neither worked.

I did not turn of arts.

I did run ./snddevices
 
Old 05-23-2003, 04:13 AM   #7
webtoe
Member
 
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
In slack you use /etc/modules.conf (you do in slack 8.1 anyway).

You put the commands in one, or the other not both. I hate alsa, since its a bugger to install. I only recently got it installed.

Its probable that the modules have been put with all the other kernel modules, and then kmod is loading them when it needs to because something is trying to access sound. It shouldn't be able to if you remove entries from /etc/modules.conf but you never know........

Alex
 
Old 05-23-2003, 07:50 AM   #8
cratos
Member
 
Registered: Feb 2003
Posts: 95

Original Poster
Rep: Reputation: 15
Well i have no idea how they are getting loaded then because i removed all entries into any of the config files and yet after rebooting the modules are already loaded (before i try to use sound).

is there something i can run to try sound before i load KDE so i can narrow down if its kde or if its the alsa drivers.?
 
Old 05-23-2003, 02:53 PM   #9
StonedZealot
Member
 
Registered: May 2003
Location: St. Louis
Distribution: Slack 9
Posts: 42

Rep: Reputation: 15
actually, you can play sound from the console with aplay <wav file> if you're trying to test ALSA... (note, that is aplay, not a typo). And those lines to put in modules need to stay there, they set up aliases for apps to use them (in case you deleted when they didn't work)

Last edited by StonedZealot; 05-23-2003 at 02:55 PM.
 
Old 05-27-2003, 10:00 AM   #10
cratos
Member
 
Registered: Feb 2003
Posts: 95

Original Poster
Rep: Reputation: 15
Ok so should i put those lines in /etc/modules.conf or /etc/rc.d/rc.modules ??
 
Old 05-27-2003, 10:50 AM   #11
cratos
Member
 
Registered: Feb 2003
Posts: 95

Original Poster
Rep: Reputation: 15
i put
# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-via82xx
# module options should go here

# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0

# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

I still get the same error when i start kde but when i use aplay i now get the snow sound (like on tv).
Im not sure if it is because i am playing the wav wrong or if the sound is messed up.
 
Old 05-27-2003, 11:00 AM   #12
Rodrin
Member
 
Registered: May 2003
Location: Upstate NY, U.S.
Distribution: Slackware
Posts: 248

Rep: Reputation: 31
You might find a little clarification and added information useful.

The modules that are being loaded now are not being loaded by any ALSA configuration files. They are being loaded by hotplug. The only problem with this is that hotplug may not load all the modules you need for everything to do with sound. You have a few options available.

You can blacklist all the ALSA modules that are being loaded in hotplug and load the modules according to the ALSA configuration such as you would find instructions for at the ALSA site.

You can blacklist the ALSA modules and use the OSS module for your sound card that comes with the kernel, if one exists.

You can let hotplug continue to load the ALSA modules and load the extra things that you need manually either from rc.modules or rc.local. The other modules you need are the ones for OSS emulation: snd-mixer-oss, snd-seq-oss, snd-pcm-oss. To do this you could just add a modprobe line for each module in one of these files. (I suppose it would also be possible to let hotplug load the modules it loads and then set up aliases to load the other modules on demand, the same way that all the modules are loaded if you set it up according to the ALSA instructions).
 
Old 05-27-2003, 11:24 AM   #13
cratos
Member
 
Registered: Feb 2003
Posts: 95

Original Poster
Rep: Reputation: 15
Even after manually loading all of the modules i still only get white noise in aplay and an error message by arts when i start kde.

As far as configure it goes I have no idea what hotplug is autoloading and when i looked through the scripts i didnt see any references to what looked like sound modules.

I already tried black listing "via8233" it didnt seem to do anything. When you say to black list all of them do you mean the ones listed on the alsa page? (snd-via82xx; snd-pcm-oss; snd-mixer-oss; snd-seq-oss) When I blacklist them should i blacklist via82xx or snd-via82xx?

I am going to try to look for boot errors now, if i can find the log.

I guess i just don't see what the huge problem is here. In 8.1 i installed the alsa drivers and that was it.
 
Old 05-27-2003, 12:11 PM   #14
cratos
Member
 
Registered: Feb 2003
Posts: 95

Original Poster
Rep: Reputation: 15
When i start slackware i am pretty sure that there is an error being thrown when it tries to load the lines that i put in /etc/rc.d/rc.modules ::
# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-via82xx
# module options should go here

# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0

# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss

I can't figure out what it is saying because it is not logging it in /var/log/messages
Where would these things be loged?
 
Old 05-27-2003, 12:37 PM   #15
cratos
Member
 
Registered: Feb 2003
Posts: 95

Original Poster
Rep: Reputation: 15
ok it works in kde. i still get white noise in aplay i guess its not reading the wav correctly.
I dont know why it works though. I am still getting the errors on boot about the alias lines in rc.d/rc.modules but above those lines i also put ::
modprobe snd-via82xx
modprobe snd-pcm-oss
modprobe snd-seq-oss
modprobe snd-mixer-oss

I figured it was getting the error at boot time because the modules werent loaded when it was trying to alias them.

If I can figure out where it logs those errors, I would like to eliminate them also.

Thx for the help everyone.
 
  


Reply



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
no sound in slack 10 buffed317 Slackware 64 03-03-2006 06:54 AM
no sound in slack 10 greyhound Slackware 4 07-15-2004 02:08 PM
Sound in Slack 9.1 linuxbeginner99 Slackware 4 10-29-2003 01:25 AM
Sound for slack Crunch Linux - Newbie 3 02-23-2003 03:07 PM
Sound On Slack jasekase Linux - General 4 06-30-2002 08:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:08 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration