Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[solved more or less]Soundblaster not working, Alsa driver missing?
A newbie with a newbie problem. I've tried to work it out myself and think I'm on to the solution but I'd like to hear the opinion of a more experienced Linux user. Excuse me if I provide too much useless info and not the essentials, I'm really struggling with this matter but you'll see that if you take the trouble of reading this.
Problem: No sound
Possible reasons, not yet considered:
- Sound is kaput but wasn't last week under Windows
- I'm on a Dell
This corresponds with the info I found on the Alsa site, LQ's HCL reports no compatibility issues with GNU/Linux.
I've checked KMix, AlsaMixer and the Gnome sound util but it only gives me a slider for an USB input device. On start-up or changing sound settings I typically get a warning like this (or closely resembling it):
Code:
Sound server informational message:
Error while initializing the sound driver:
device: default can't be opened for playback (No such file or directory)
The sound server will continue, using the null output device.
Based on this my guess is I need to load snd-emu10k1, is that correct?
On the other hand, the system does 'know' something about this:
Code:
modinfo snd-emu10k1
filename: /lib/modules/2.6.9-42.0.2.EL/kernel/sound/pci/emu10k1/snd-emu10k1.ko
author: Jaroslav Kysela <perex@suse.cz>
description: EMU10K1
license: GPL
parm: index:Index value for the EMU10K1 soundcard.
parm: id:ID string for the EMU10K1 soundcard.
parm: enable:Enable the EMU10K1 soundcard.
parm: extin:Available external inputs for FX8010. Zero=default.
parm: extout:Available external outputs for FX8010. Zero=default.
parm: seq_ports:Allocated sequencer ports for internal synthesizer.
parm: max_synth_voices:Maximum number of voices for WaveTable.
parm: max_buffer_size:Maximum sample buffer size in MB.
parm: enable_ir:Enable IR.
vermagic: 2.6.9-42.0.2.EL 686 REGPARM 4KSTACKS gcc-3.4
depends: snd-pcm,snd-ac97-codec,snd-util-mem,snd-page-alloc,snd-rawmidi,snd,snd-hwdep,snd-seq-device
alias: pci:v00001102d00000002sv*sd*bc*sc*i*
alias: pci:v00001102d00000004sv*sd*bc*sc*i*
alias: pci:v00001102d00000008sv*sd*bc*sc*i*
Which confuses me. There is a relevant Alsa page about this driver but I have to admit that I don't understand most (all) of what's been explained there and what I need to do with it. The page on how to get emu10k1 installed is:
The solution as it seems to me would be to do something like modprobe snd-emu10k1, perhaps with some parameters (I haven't done anything like this before, CentOS installs effortlessly). Probably also the missing drivers listed behind "depends" (like snd-ac97-codec). Is this correct?
And if that's the way, I probably need to change some config files too. This bit bothers me a little because I don't have anything resembling modules.conf in /etc. Does anyone have an idea about that?
I'd be really thankful if someone could provide some guidance in this matter. I'll provide additional information when needed of course, tell me what _and_ how please
Last edited by Caesar Tjalbo; 09-06-2006 at 04:30 AM.
Hmm looks like a problem i had when i started out on a Dell, the card is a soundblaster live, but it's OEM made by Dell, and therefore the standard emu10k didnt work for it (which pissed me off no end).
Anyway that's probably no relation to your post, it looks like you need to load the modules yep.
I've tried some different users, groups and permissions to no avail.
Interesting enough though, when I plugged in a Logitech USB headset + mic (that's device 1) it did give me all the sliders etc in AlsaMixer and KMix. The volumecontrol works on the headset (I can tell by the static noise) but I can't hear music as every music player wants to use the 'default' device.
In KMix I can see sliders for both devices. Device 0 only has an input slider, device 1 has output + input sliders. Dev 1 is properly recognized as Logitech USB Headset but dev 0 is called "USB Device 0x46d:0x8b2". That seems odd to me, I'd have thought it would be something like "Soundblaster Live value" or just "default".
Is "USB Device 0x46d:0x8b2" the correct name or does that indicate the hardware detection failed for my soundcard?
Hey
You did almost everything well except you need snd-emu10k1x driver instead. It's a special driver for dell soundcard.
you can get it here ftp://ftp.alsa-project.org/pub/driver
and install it with
tar -xjvf alsa-driver- (latest version)
cd alsa-driver-xxx
./configure --with-cards=emu10k1x --with-sequencer=yes;make;make install;make clean
run
depmod -a (Loads the compiled modules)
after that you need permissions
chmod 777 /dev/mixer
chmod 777 /dev/mixer0
chmod 777 /usr/bin/alsamixer
chmod 777 -R /dev/snd
If your soundcard is digital then you need to turn on the alsamixer Analong/Digital Output Jack switch to on. And use digial speakers
With the help of people on a different forum I found that out aswell (yesterday).
My first problem was having a USB webcam hooked up and with all the searching for a solution to my problem I never came past this issue.
I was aware of issues with a Dell but with the webcam attached the OS install advised emu10k1 in stead of emu10k1X which doesn't seem that strange compared to the Alsa hardware list.
I've done a re-install of the OS and card and driver are recognized (as it should, it's not really a 'bleeding edge' soundcard, more 'bottom edge' in fact) but it's still not working. I'll try this again but now after a night's sleep and not just before that
Will post my findings.
Compilation gave me errors, repeated tries following procedures mentioned above and on Alsa site. I simply lack the experience to solve these issues so I tried a different approach.
But first: CentOS comes pretty complete with Anaconda able to identify my hardware and the appropriate driver. I assume the responsible RPMs are ported exactly like the RHEL RPMs and they're from Alsa.
Tried a Kubuntu Live CD this morning and had sound immediately! WTF???
I think there's an important lesson for us n00bs, boys & girls
Although I found Kubuntu a sweetheart I couldn't resist messing again with CentOS. I solved the soundproblem, did 2 things (at the same time, one of them may not be necessary but I can be asked to sort that out: the damn mother is working now.):
1- /alsa-driver-X.X.X/include/adriver.h
commented line 248, it looks now like this (shown are lines 247, 248 & 249):
In retrospect this "--with-redhat=yes" might have been sufficient, perhaps I'll try that at some point. The hack in adriver.h is dodgy as my kernel is 2.6.9-42.0.2.EL.
modprobe snd-emu10k1x worked, I had system sounds in KDE after unmuting and finetuning the channels. The only response of the mediaplayers that come on the install CD was still silence (for Ogg files, when trying to play an mp3 it pops up a message saying that format is disabled by RedHat). 'Audio Player' (XMMS) finally gave me sound and downloading Kaffeine finished my sound troubles on CentOS.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.