1db75 Sound card not detected... Help? - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > System Hardware

System Hardware Internal storage, motherboards, PCI cards, stuff inside the case.

Reply
 
Thread Tools Display Modes
  #1  
Old June 5th, 2009, 00:56
spoon's Avatar
spoon spoon is offline
Junior Member
 
Join Date: May 2009
Posts: 20
Thanks: 6
Thanked 0 Times in 0 Posts
Default Sound card not detected... Help?

Hello all, i'm very new(noob) to FreeBSD, an Ubuntu user, and former winblow$ user... Anyway who cares, on to my dilemma. I'm unable to get my SB X-fi sound card working. I tried setting up my sound card with "kldload snd_emu10k1" in the terminal, but then I get this error: "kldload: can't load snd_emu10k1: File exists".

At first I though this was FreeBSD's way of saying installation was successful and reboot, but um... suffice to say that wasn't the case as KMix won't show anything.

I was able to get this same sound card(duh) working under Ubuntu 64 without any problems, but it refuses to work under freebsd. I'm running FreeBSD 7.1 64bit with KDE 3.5 and everything else works wonderfully(as can be expected) except this sound card, which doesn't work at all.

I'm not concerned about any special BS features/frills ect. I just want to be able to hear sound. Please if anyone can help, I really want this to work, for the most part I'm enjoying freebsd, as it's faster than ubuntu, and if I get my sound card working I may just replace ubuntu entirely. Is there a way I could port the X-fi linux driver to FreeBSD?

Thanks in advance for any assistance you can provide me.
Reply With Quote
  #2  
Old June 5th, 2009, 01:14
ale's Avatar
ale ale is offline
Senior Member
 
Join Date: Nov 2008
Location: Roma
Posts: 1,064
Thanks: 0
Thanked 160 Times in 146 Posts
Default

Did you tried following the handbook?
http://www.freebsd.org/doc/en_US.ISO...und-setup.html

Can you try as root kldload sound; cat /dev/sndstat ?
Reply With Quote
  #3  
Old June 5th, 2009, 06:08
joel@'s Avatar
joel@ joel@ is offline
Administrator
 
Join Date: Sep 2007
Location: Arentorp, Sweden
Posts: 240
Thanks: 2
Thanked 37 Times in 30 Posts
Default

FreeBSD does not support the Creative X-FI soundcard. Maybe if you try the OSS port.
Reply With Quote
  #4  
Old June 5th, 2009, 12:26
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,712
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

Indeed, you need to install audio/oss to get the X-Fi working.

Mine works fine with it:

Code:
dice@williscorto:~>ossinfo
Version info: OSS 4.1 (b 1052/200906022100) (0x00040100) BSD
Platform: FreeBSD/i386 7.2-STABLE FreeBSD 7.2-STABLE #0: Tue May  5 13:09:54 CEST 2009     root@molly.dicelan.home:/usr/obj/usr/src/sys/CORTO (williscorto.dicelan.home)

Number of audio devices:        2
Number of audio engines:        6
Number of mixer devices:        1


Device objects
 0: oss_sbxfi0 Sound Blaster X-Fi (SB073x) interrupts=22320665 (22320665)
    PCI device 1102:0005, subdevice 1102:0031


Mixer devices
 0: Sound Blaster X-Fi (SB073x) (Mixer 0 of device object 0)

Audio devices
Sound Blaster X-Fi (SB073x) output  /dev/oss/oss_sbxfi0/pcm0  (device index 0)
Sound Blaster X-Fi (SB073x) input  /dev/oss/oss_sbxfi0/pcmin0  (device index 1)
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
The Following User Says Thank You to SirDice For This Useful Post:
spoon (June 6th, 2009)
  #5  
Old June 6th, 2009, 02:59
spoon's Avatar
spoon spoon is offline
Junior Member
 
Join Date: May 2009
Posts: 20
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Thanks for your help guys, but the OSS port doesn't work.
I got this error:

Code:
oss-4.1.b1052 is already installed
      You may wish to ``make deinstall'' and install this port again
      by ``make reinstall'' to upgrade it properly.
      If you really wish to overwrite the old port of audio/oss
      without deleting it first, set the variable "FORCE_PKG_REGISTER"
      in your environment or the "make install" command line.
*** Error code 1
I also tried kldload sound, but got this error:

Code:
kldload: can't load sound: File exists
Oh well thanks for helping anyway, I guess I'll just use freebsd without sound...

Last edited by DutchDaemon; June 6th, 2009 at 15:04. Reason: [code] tags
Reply With Quote
  #6  
Old June 6th, 2009, 03:21
Oko's Avatar
Oko Oko is offline
Member
 
Join Date: Nov 2008
Location: Kosovo, Srbija
Posts: 326
Thanks: 27
Thanked 66 Times in 49 Posts
Default

Quote:
Originally Posted by spoon View Post
Thanks for your help guys, but the OSS port doesn't work.
I got this error:

Code:
oss-4.1.b1052 is already installed
      You may wish to ``make deinstall'' and install this port again
      by ``make reinstall'' to upgrade it properly.
      If you really wish to overwrite the old port of audio/oss
      without deleting it first, set the variable "FORCE_PKG_REGISTER"
      in your environment or the "make install" command line.
*** Error code 1
I also tried kldload sound, but got this error:

Code:
kldload: can't load sound: File exists
Oh well thanks for helping anyway, I guess I'll just use freebsd without sound...
Even better. Do not use FreeBSD pardon PC-BSD (which you obviously use) at all.

Did you even read what people suggested you to read? What does
kldload mean? kldload loads kernel modules drivers! You have been already instructed that your sound card is not supported by
any of kernel drivers. There is nothing to load into the kernel.

Sir Dice specifically told you that your card is supported by OSS. He even showed you his ossinfo. He has the same audio card as you.

The fact that OSS is already installed tells me that you do not use Vanilla FreeBSD but probably PC-BSD. On Vanilla FreeBSD you will enable OSS drivers
after installing the port by editing rc.conf with oss_enable="yes". Read the post compilation message! Then rebooting and you will have the sound. You probably want also to read documentation which comes with OSS since OSS port uses its own miser ossmixer and other things.
If you want to use VoIP you will have to adjust few permissions.
__________________
Wanting to learn is so rare a merit that it should be encouraged.

Last edited by joel@; June 7th, 2009 at 12:30. Reason: Removed inappropriate language.
Reply With Quote
  #7  
Old June 6th, 2009, 15:04
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,835
Thanks: 30
Thanked 1,888 Times in 1,333 Posts
Default

Please do not use bold and colour for system output, use [code] tags.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Adminstrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #8  
Old June 6th, 2009, 18:03
spoon's Avatar
spoon spoon is offline
Junior Member
 
Join Date: May 2009
Posts: 20
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Oko, please calm down. Besides, there is no reason why you should be more upset than I am about my sound card not working. I am in fact running FreeBSD and not PC-BSD. Below is a screen shot of FreeBSD detailing an error with the sound driver.

Reply With Quote
  #9  
Old June 7th, 2009, 14:24
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,712
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

Just add to /etc/rc.conf:
Code:
oss_enable="YES"
No need to kldload anything the startup script will take care of it.

Not sure about KDE/ARTS working with oss though. I use Xfce and I try to stear clear of pulseaudio, esound or arts. Just set all your applications to use /dev/dsp0.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
The Following User Says Thank You to SirDice For This Useful Post:
spoon (June 12th, 2009)
  #10  
Old June 7th, 2009, 20:54
spoon's Avatar
spoon spoon is offline
Junior Member
 
Join Date: May 2009
Posts: 20
Thanks: 6
Thanked 0 Times in 0 Posts
Default

I added the code to the rc.conf file using ee (pic below) and rebooted but still no sound.


Below this sentence is the code from ossinfo; am I doing something wrong?

Code:
# ossinfo
Version info: OSS 4.1 (b 1052/200906060125) (0x00040100) BSD
Platform: FreeBSD/amd64 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan  1 08:58:24 UTC 2009     root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC (.gateway.2wire.net)

Number of audio devices:        2
Number of audio engines:        6
Number of mixer devices:        1


Device objects
 0: oss_sbxfi0 Sound Blaster X-Fi (SB055x) interrupts=105127 (105127)
    PCI device 1102:0005, subdevice 1102:0022


Mixer devices
 0: Sound Blaster X-Fi (SB055x) (Mixer 0 of device object 0)

Audio devices
Sound Blaster X-Fi (SB055x) output  /dev/oss/oss_sbxfi0/pcm0  (device index 0)
Sound Blaster X-Fi (SB055x) input  /dev/oss/oss_sbxfi0/pcmin0  (device index 1)
Reply With Quote
  #11  
Old June 8th, 2009, 06:27
Bunyan's Avatar
Bunyan Bunyan is offline
Member
 
Join Date: Jan 2009
Posts: 139
Thanks: 7
Thanked 16 Times in 15 Posts
Default

Try soundon. This command enables the sound.
And test the sound from the black and white console with osstest
Reply With Quote
The Following User Says Thank You to Bunyan For This Useful Post:
spoon (June 12th, 2009)
  #12  
Old June 9th, 2009, 19:00
spoon's Avatar
spoon spoon is offline
Junior Member
 
Join Date: May 2009
Posts: 20
Thanks: 6
Thanked 0 Times in 0 Posts
Default

I got this error when I tried soundon:
Code:
# soundon
kldload: can't load /usr/local/lib/oss/modules/osscore.ko: File exists
Loading the osscore module failed
However, when I tried osstest I was able to hear a short piano song out of both my speakers. Does this mean the sound is working? Why did I get the error above?
Reply With Quote
  #13  
Old June 9th, 2009, 19:20
adamk adamk is offline
Senior Member
 
Join Date: Nov 2008
Posts: 1,605
Thanks: 6
Thanked 262 Times in 243 Posts
Default

You got that error because having oss_enable="YES" in /etc/rc.conf will start up oss and load the necessary module. There was no reason to run 'soundon'.

Based on the output from 'ossinfo' it looks like your card is detected and the driver loaded. osstest seems to confirm that.

Adam
Reply With Quote
The Following User Says Thank You to adamk For This Useful Post:
spoon (June 12th, 2009)
  #14  
Old June 9th, 2009, 20:13
Bunyan's Avatar
Bunyan Bunyan is offline
Member
 
Join Date: Jan 2009
Posts: 139
Thanks: 7
Thanked 16 Times in 15 Posts
Default

Startx and run ossxmix.
Reply With Quote
The Following User Says Thank You to Bunyan For This Useful Post:
spoon (June 12th, 2009)
  #15  
Old June 9th, 2009, 22:47
malexe's Avatar
malexe malexe is offline
Junior Member
 
Join Date: Dec 2008
Posts: 33
Thanks: 2
Thanked 2 Times in 2 Posts
Default

regarding your kde error message, I would start by following it, change the sample rate.

You can find the appropriate option in your control center.
Reply With Quote
  #16  
Old June 10th, 2009, 19:26
spoon's Avatar
spoon spoon is offline
Junior Member
 
Join Date: May 2009
Posts: 20
Thanks: 6
Thanked 0 Times in 0 Posts
Default

I ran ossmix and got this:
Code:
# ossmix
Selected mixer 0/Sound Blaster X-Fi (SB055x)
Known controls are:
play [<leftvol>:<rightvol>] (currently 14.4:14.4 dB)
rec [<leftvol>:<rightvol>] (currently 14.4:14.4 dB)
recsrc <mic|line|video|aux|none> (currently line)
vmix0-enable ON|OFF (currently ON)
vmix0-rate <decimal value> (currently 96000) (Read-only)
vmix0-src <Fast|Low|Medium|High|High+|Production|OFF> (currently Fast)
vmix0-outvol <monovol> (currently 24.7 dB)
vmix0-invol <monovol> (currently 25.0 dB)
vmix0.pcm2 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm3 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm4 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm5 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
I also changed the sample rate from 44100 to 96000 no more pop-up error but after I ran osstest I got this error:

Code:
*** Scanning sound adapter #-1 ***
/dev/oss/oss_sbxfi0/pcm0 (audio engine 0): Sound Blaster X-Fi (SB055x) output
- Performing audio playback test...
  <left> Device returned error: Input/output error
/dev/oss/oss_sbxfi0/pcmin0 (audio engine 1): Sound Blaster X-Fi (SB055x) input
- Skipping input only device

*** Some errors were detected during the tests ***
So now osstest fails completely and I still have no sound. This is really odd because the audio works perfectly on XFCE (yes i'm also using XFCE) but when I tired the same procedure while running KDE I still can't seem to get any sound.
Reply With Quote
  #17  
Old June 12th, 2009, 23:10
spoon's Avatar
spoon spoon is offline
Junior Member
 
Join Date: May 2009
Posts: 20
Thanks: 6
Thanked 0 Times in 0 Posts
Lightbulb

Nevermind, I got it working. Thank you for all your help as well as your patience, I wouldn't have been able to do it without you all.
Reply With Quote
  #18  
Old June 13th, 2009, 00:19
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,835
Thanks: 30
Thanked 1,888 Times in 1,333 Posts
Default

At least post the solution for other people encountering these problems.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules
FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki
Before you post: How to ask questions the smart way
If you must know .. So, what does an Adminstrator/Moderator do?
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] Sound card not working dennylin93 Multimedia 7 May 30th, 2009 01:41
nic detected differently depending OS knotabot System Hardware 1 May 12th, 2009 06:27
Autodetect sound card (script) soko1 Howtos & FAQs (Moderated) 12 May 6th, 2009 18:46
Ethernet card and Graphics card Problem guro System Hardware 4 January 13th, 2009 13:16
Sound Card - Optical Out Fozzy System Hardware 4 November 19th, 2008 15:33


All times are GMT +1. The time now is 20:03.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0