LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-06-2004, 11:52 PM   #1
MrFubar
LQ Newbie
 
Registered: May 2004
Distribution: SuSE 9.1
Posts: 18

Rep: Reputation: 0
Question SB Live 5.1 for Mandrake 10


I am a linux n00b and am having problems getting my SB live card to work in Mandrake 10. I had 9.1 installed before I downloaded 10, and the sound worked just fine. From what I can see (and again im a n00b) when i try to configure my soundcard in the KDE Control Center, I get a message that says /dev/dsp cannot be opened, it doesn't exist, linux will load a null device

i went into my dev folder, and there is no dsp folder, but there is a sound folder so i tried overriding the device folder in KDE CC, and i get the same error except it points to /dev/sound instead of /dev/dsp. the dev/sound folder doesn't have anything in it, but all of my other device folders do so im guessing i dont have something installed properly...

I went into the Mandrake Control Center and checked the hardware it has listed for a soundcard, and it does recognize the SB Live card, but i can't find out any other information about it. Ive tried all of the suggested drivers (em10k1, snd-em10k1, and audigy) and non of them work. Is there some file i can look at that will give me more info on how linux is recognizing my card? Does anyone know how i can fix this so that i can load my card right?

Please help!! thanks!
 
Old 05-07-2004, 12:45 AM   #2
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Could you post the output of lspci and lsmod? Also, uname -r.

Last edited by adz; 05-07-2004 at 10:07 PM.
 
Old 05-07-2004, 08:37 PM   #3
MrFubar
LQ Newbie
 
Registered: May 2004
Distribution: SuSE 9.1
Posts: 18

Original Poster
Rep: Reputation: 0
Ok this is what I got for lspci:

00:0b.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 07)
00:0b.1 Input device controller: Creative Labs SB Live! MIDI/Game Port (rev 07)

And here is what I got for lsmod:

snd-seq-oss 31232 0
snd-seq-midi-event 7552 1 snd-seq-oss
snd-seq 51024 4 snd-seq-oss,snd-seq-midi-event
snd-pcm-oss 51812 0
snd-mixer-oss 17952 1 snd-pcm-oss
snd-emu10k1 85508 0
snd-rawmidi 23616 1 snd-emu10k1
snd-pcm 93156 2 snd-pcm-oss,snd-emu10k1
snd-timer 24484 2 snd-seq,snd-pcm
snd-seq-device 8008 4 snd-seq-oss,snd-seq,snd-emu10k1,snd-rawmidi
snd-ac97-codec 58148 1 snd-emu10k1
snd-page-alloc 11972 2 snd-emu10k1,snd-pcm
snd-util-mem 4448 1 snd-emu10k1
snd-hwdep 8928 1 snd-emu10k1
snd 52484 13 snd-seq-oss,snd-seq-midi-event,snd-seq,snd-pcm-oss,snd-mixer-oss,snd-emu10k1,snd-rawmidi,snd-pcm,snd-timer,snd-seq-device,snd-ac97-codec,snd-util-mem,snd-hwdep
soundcore 9248 1 snd

kernel info: 2.6.3-7mdk

thanks for the help!
 
Old 05-07-2004, 10:35 PM   #4
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
That's a little bizarre. All of your modules are loaded including the OSS emulation. It's obviously looking for a /dev/dsp device so you'll have to create one. Try a MAKEDEV dsp (as root) in the /dev directory. Also try dsp0, dsp1, dsp2 if dsp doesn't work. Then just symlink dspX to dsp.

If that doesn't work then we'll have to try editting the /etc/asound.conf file.

Last edited by adz; 05-07-2004 at 10:49 PM.
 
Old 05-08-2004, 01:50 AM   #5
MrFubar
LQ Newbie
 
Registered: May 2004
Distribution: SuSE 9.1
Posts: 18

Original Poster
Rep: Reputation: 0
I just tried the MAKEDEV dsp command and now when i check it in KDE CC, the artsmessage error just says "device /dev/dsp/ can't be opened (Is a directory)" instead of the No Such File or Directory error I was getting before, so I guess that didn't work unless there is something I'm missing
 
Old 05-08-2004, 09:50 PM   #6
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
OK... Bit weird... Could you do an ls -l dsp* in the /dev directory?
 
Old 05-09-2004, 02:55 AM   #7
MrFubar
LQ Newbie
 
Registered: May 2004
Distribution: SuSE 9.1
Posts: 18

Original Poster
Rep: Reputation: 0
I just did that and i got a HUGE list of files. . . is there something in particular that I should be looking for?
 
Old 05-09-2004, 03:19 AM   #8
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Errr... Are you sure you typed it in correctly? the command "ls -l dsp*" should only come up with one file on your system - the one you created with MAKEDEV. What I specifically wanted to see was the properties and permissions of dsp. Here are mine:
Code:
adz@hades:/dev$ ls -l dsp*
lrwxrwxrwx    1 root     root            9 Feb  5 00:54 dsp -> /dev/dsp0
crw-rw----    1 root     audio     14,   3 Feb  5 00:54 dsp0
crw-rw----    1 root     audio     14,  19 Feb  5 00:54 dsp1
crw-rw----    1 root     audio     14,  35 Feb  5 00:54 dsp2
crw-rw----    1 root     audio     14,  51 Feb  5 00:54 dsp3

Last edited by adz; 05-09-2004 at 03:20 AM.
 
Old 05-09-2004, 03:27 AM   #9
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
One other thing you can try is to create a dsp virtual device in ALSA. To do this you'd edit/create /etc/asound.conf (or ~/.asoundrc for the individual user) and enter the following:
Code:
pcm.dsp {
    type plug
    slave.pcm "dmix"
}
# mixer can stay unchanged, because it isn't used anyway, I guess ;)
ctl.mixer {
    type hw
    card 0
}
The above was ripped off directly from the ALSA WIKI. It is actually designed to let you play two sounds at once but may be helpful here in creating the dsp virtual device. Note that dsp and mixer can also be changed to dspX and mixerX where X 0, 1, 2, or 3.

Last edited by adz; 05-09-2004 at 03:29 AM.
 
Old 05-09-2004, 03:47 AM   #10
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Go into Mandrake Control Center. Click on System and then Services. Look for alsasound and sound. Turn them off and then turn them on again. If you do not see alsasound you may want to install the alsa RPM files for now. Also in KDE, turn off artsd. If that does not work, go into your BIOS and enable an option that refreshes the BIOS device information table. If it still does not work, try putting the card in a different pci slot.

Go to into "/proc/asound". Do you see a directory called card0 and maybe EMU10K1.

Try "ls -l /dev/dsp" to find out if its linking to a directory. On my system its linking to "/dev/sound/dsp".

What does dmesg say.

What is listed in your "/etc/modules.conf".

I do not know what options Mandrake has picked for kernel version 2.6.3. Type grep -v "#" /boot/config .
 
Old 05-09-2004, 04:39 AM   #11
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
I think I may have led you down the garden path with the /etc/asound.conf file. But just to humour me (I should have asked this at the beginning) can you get sound out of ALSA output apps (like XMMS with the ALSA output plugin and mplayer)?
 
Old 05-11-2004, 01:59 AM   #12
MrFubar
LQ Newbie
 
Registered: May 2004
Distribution: SuSE 9.1
Posts: 18

Original Poster
Rep: Reputation: 0
adz: when i did the MAKEDEV /dsp it took a really long time to finish, and when it did i opened the folder it made a ton of other files and folders (for example, it created a bunch of usb devices), so im not sure if there was something i left out in the makedev command, but i think thats why the ls -l /dsp listed so many files. Is there something specific i need to add in the command so that it only creates a sound device?

i created the asound.conf file because there wasn't one there. is there something i can do with that file now?

I can't get sound out of any apps at all. XMMS was actually the first app i tried when i got an error. the error in XMMS is different, however, but its more basic; stuff like make sure your soundcard is configured correctly.

electro:

Thanks for joining in on this I went into services and the sound option is working fine when i stop and restart it. but when i click start on the alsa option it says the alsa driver isn't running, and it is stopped by default.

this is what is listed in my modules.conf file:

probeall scsi_hostadapter usb-storage
probeall usb-interface usb-uhci ehci-hcd
alias eth0 via-rhine
above snd-emu10k1 snd-pcm-oss
alias sound-slot-0 emu10k1

Last edited by MrFubar; 05-11-2004 at 02:04 AM.
 
Old 05-11-2004, 03:13 AM   #13
MrFubar
LQ Newbie
 
Registered: May 2004
Distribution: SuSE 9.1
Posts: 18

Original Poster
Rep: Reputation: 0
I just found this information in /etc/modules.devfs, thought it might help:

# Soundcard
#alias /dev/sound sound-slot-0
#alias /dev/audio /dev/sound
#alias /dev/mixer /dev/sound
#alias /dev/dsp /dev/sound
#alias /dev/dspW /dev/sound
#alias /dev/midi /dev/sound

This may answer electro's question of what is everything linking to...

Im guessing that the /dev/sound/ folder is being referred to as the /dev/dsp folder, but there aren"t any files in the sound folder. just thought this might help out

Last edited by MrFubar; 05-11-2004 at 02:03 PM.
 
Old 05-13-2004, 10:54 PM   #14
MrFubar
LQ Newbie
 
Registered: May 2004
Distribution: SuSE 9.1
Posts: 18

Original Poster
Rep: Reputation: 0
i was reading another post from someone who is having the same problem and they were saying that kernel 2.6 uses modprobe.conf to load modules instead of modules.conf. Could this be the problem? should i be working with modprobe.conf to fix the problem?

Here is what i have in my modprobe.conf file:

alias eth0 via-rhine
alias sound-slot-0 snd-emu10k1
install scsi_hostadapter /sbin/modprobe usb-storage; /bin/true
install snd-emu10k1 /sbin/modprobe --first-time --ignore-install snd-emu10k1 && { /sbin/modprobe snd-pcm-oss; /bin/true; }
install usb-interface /sbin/modprobe usb-uhci; /sbin/modprobe ehci-hcd; /bin/true
remove snd-emu10k1 { /sbin/modprobe -r snd-pcm-oss; } ; /sbin/modprobe -r --first-time --ignore-remove snd-emu10k1

Any help would be greatly appreciated!
 
Old 05-13-2004, 11:55 PM   #15
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Yes you should be using modprobe.conf if you're using a 2.6 kernel. I didn't notice the discrepancy, sorry.

One question. When you tried XMMS was is configured to use the ALSA output plugin (Options -> Preferences)? If not, try that. Make sure you try a few different audio devices to see if they work (press "Configure"). Report any errors. If no workie try adding this to /etc/asound.conf (make sure it's not being overridden by ~/.asoundrc):
Code:
pcm.!default {
    type plug
    slave.pcm "dmix"
}
If still no success, try changing "dmix" to "plug". With the above file make sure your audio device is "default".
 
  


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
Mandrake 10.1 no sound w/SB Live 5.1 aaghai Linux - Newbie 2 06-05-2005 10:40 AM
Mandrake 10.1 no sound w/SB Live 5.1 aaghai Mandriva 3 06-04-2005 05:37 PM
Soundblaster Live + Mandrake 9.2 avaxxo Linux - Hardware 0 02-18-2004 05:51 PM
Mandrake 9.1 and SB Live Gerrard Linux - Hardware 19 06-23-2003 03:48 PM
SB Live in Mandrake 9 Rampage_be Linux - Hardware 3 10-18-2002 07:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:32 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