PDA

View Full Version : help no sound


corneliu
June 25th, 2009, 03:19
Hey guys,

I just installed FreeBSD 7.2 + gonme2-lite and I have no sound. I followed the instructions here (http://www.bsdguides.org/guides/freebsd/misc/enable_sound.php) but my creative sound card is still dead.

Thanks in advance,

Corneliu

DrJ
June 25th, 2009, 03:53
Specifics would help a lot. What sound card? What have you done so far? What do you have in /boot/loader.conf? What does the output of "mixer" give you? What do the Gnome sound menus tell you in System/Preferences? What does (as su) "cat /dev/sndstat" tell you?

SirDice
June 25th, 2009, 08:12
If snd_driver didn't pick up any soundcards is quite likely your card isn't supported.

If you have a soundblaster X-Fi card you will need to install audio/oss.

corneliu
June 26th, 2009, 04:31
Thank you for helping,
What sound card?

Creative SoundBlaster live EMU10k1

What have you done so far?

I've done everything that the tutorial linked in my first post adviced me to do.

What do you have in /boot/loader.conf?

$ cat /boot/loader.conf
snd_cmi_load="YES"
$

What does the output of "mixer" give you?

$ mixer
Mixer vol is currently set to 75:75
Mixer bass is currently set to 50:50
Mixer treble is currently set to 50:50
Mixer synth is currently set to 75:75
Mixer pcm is currently set to 75:75
Mixer speaker is currently set to 75:75
Mixer line is currently set to 75:75
Mixer mic is currently set to 0:0
Mixer cd is currently set to 75:75
Mixer igain is currently set to 0:0
Mixer ogain is currently set to 50:50
Mixer monitor is currently set to 75:75
Recording source: mic
$

What do the Gnome sound menus tell you in System/Preferences?

A dialog window opens with this message: "Waiting for sound system to respond" and it just stays there.

What does (as su) "cat /dev/sndstat" tell you?

# cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386)
Installed devices:
pcm0: <CMedia CMI8738> at io 0x9800 irq 17 kld snd_cmi [MPSAFE] (1p:1v/1r:1v channels duplex default)

corneliu
June 26th, 2009, 04:32
Thank you for helping,
If snd_driver didn't pick up any soundcards is quite likely your card isn't supported.

If you have a soundblaster X-Fi card you will need to install audio/oss.

That sounds scary. I hope I don't have to do that.

DrJ
June 26th, 2009, 05:12
You won't. I've had an SBlive card working with the native OSS.

I'm still sifting through your other files.

DrJ
June 26th, 2009, 05:26
I *think* the generic kernel loads the sound system. To be sure, add " sound_load="YES" " to /dev/loader.conf as the first line and reboot. See if Gnome can run the test files from the appropriate menu.

What do you have in /etc/rc.conf?

SirDice
June 26th, 2009, 07:56
If you have an emu10k1 why not load that driver instead of cmi?

Instead of snd_cmi_load in /boot/loader.conf put snd_emu10k1_load in there. You can also try the snd_emu10kx driver.

corneliu
June 27th, 2009, 05:33
Thanks DrJ,
I *think* the generic kernel loads the sound system. To be sure, add " sound_load="YES" " to /dev/loader.conf as the first line and reboot. See if Gnome can run the test files from the appropriate menu.

/dev/loader.conf does not exist and I get a permission denied even as root, it looks like /dev is read only, check this $ ls -la
total 59
drwxr-xr-x 21 root wheel 512 Jun 25 23:04 .
drwxr-xr-x 21 root wheel 512 Jun 25 23:04 ..
-rw-r--r-- 2 root wheel 793 May 1 02:56 .cshrc
-rw-r--r-- 2 root wheel 260 May 1 02:56 .profile
drwxrwxr-x 2 root operator 512 Jun 24 10:02 .snap
-r--r--r-- 1 root wheel 6197 May 1 02:56 COPYRIGHT
drwxr-xr-x 2 root wheel 1024 Jun 24 10:03 bin
drwxr-xr-x 7 root wheel 512 Jun 24 10:04 boot
drwxr-xr-x 2 root wheel 512 Jun 24 10:03 cdrom
drwxr-xr-x 2 root wheel 512 Jun 24 10:03 cdrom1
lrwxr-xr-x 1 root wheel 10 Jun 24 10:04 compat -> usr/compat
dr-xr-xr-x 6 root wheel 512 Jun 26 17:47 dev
drwxr-xr-x 2 root wheel 512 Jun 24 10:03 dist
-rw------- 1 root wheel 4096 Jun 25 23:04 entropy
drwxr-xr-x 20 root wheel 2048 Jun 25 22:37 etc
lrwxr-xr-x 1 root wheel 8 Jun 24 10:30 home -> usr/home
drwxr-xr-x 3 root wheel 1536 May 1 04:59 lib
drwxr-xr-x 2 root wheel 512 Jun 24 10:03 libexec
drwxr-xr-x 2 root wheel 512 Jun 26 21:47 media
drwxr-xr-x 2 root wheel 512 May 1 02:53 mnt
dr-xr-xr-x 1 root wheel 0 Jun 26 23:29 proc
drwxr-xr-x 2 root wheel 2560 Jun 24 10:03 rescue
drwxr-xr-x 14 root wheel 512 Jun 25 22:37 root
drwxr-xr-x 2 root wheel 2560 Jun 24 10:03 sbin
lrwxrwxrwx 1 root wheel 11 Jun 24 10:03 sys -> usr/src/sys
drwxrwxrwt 12 root wheel 1536 Jun 26 23:20 tmp
drwxr-xr-x 16 root wheel 512 Jun 24 10:30 usr
drwxr-xr-x 26 root wheel 512 Jun 26 17:47 var
$


What do you have in /etc/rc.conf?

$ cat /etc/rc.conf

# -- sysinstall generated deltas -- # Wed Jun 24 10:09:56 2009
# Created: Wed Jun 24 10:09:56 2009
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
hostname="localhost.corneliu"
ifconfig_sis0="DHCP"
inetd_enable="YES"
ipv6_enable="YES"
keymap="us.iso"
linux_enable="YES"
moused_enable="YES"
sshd_enable="YES"
gnome_enable="YES"
$

DrJ
June 27th, 2009, 05:36
/dev/loader.conf does not exist and I get a permission denied even as root, it looks like /dev is read only, check this

Oops. That should be /boot/loader.conf.

corneliu
June 27th, 2009, 05:42
Thanks SirDice,
If you have an emu10k1 why not load that driver instead of cmi?

Instead of snd_cmi_load in /boot/loader.conf put snd_emu10k1_load in there.

I just tried your suggestion. Same result unfortunately.

You can also try the snd_emu10kx driver.

I'll try this tomorrow and I'll report the results.

corneliu
June 27th, 2009, 05:53
Thanks DrJ,
I *think* the generic kernel loads the sound system. To be sure, add " sound_load="YES" " to /dev/loader.conf as the first line and reboot. See if Gnome can run the test files from the appropriate menu.

I added " sound_load="YES" " to /boot/loader.conf and now this is the message I get:
The volume control did not find any elements and/or devices to control. This means either that you don't have the right GStreamer plugins installed, or that you don't have a sound card configured.

You can remove the volume control from the panel by right-clicking the speaker icon on the panel and selecting "Remove From Panel" from the menu.

It seems a step backwards to me :)

DrJ
June 27th, 2009, 06:19
Do you have the various gstreamer stuff installed? Sounds to me like you have a bad driver. What is the sound card (complete model number)?

joel@
June 27th, 2009, 08:45
corneliu:

Put

snd_driver_load="YES"

into /boot/loader.conf and reboot. This will load all available sound drivers.

If that doesn't work, remove the previus line and try to load just the emu10kx driver instead with:

snd_emu10kx_load="YES"

corneliu
June 27th, 2009, 23:44
Thanks DrJ,
What is the sound card (complete model number)?

CM8738

Do you have the various gstreamer stuff installed?

Yes.
$ pkg_info | grep gstreamer
gstreamer-0.10.22_1 Development framework for creating media applications
gstreamer-ffmpeg-0.10.7 GStreamer plug-in for manipulating MPEG video streams
gstreamer-plugins-0.10.22_1,3 GStreamer written collection of plugins handling several me
gstreamer-plugins-a52dec-0.10.11,3 Gstreamer ATSC A/52 stream aka AC-3 (dvd audio) plugin
gstreamer-plugins-bad-0.10.11,3 Bad gstreamer-plugins
gstreamer-plugins-cdparanoia-0.10.22_1,3 Gstreamer CDDA extraction (aka audio ripping) plugin
gstreamer-plugins-core-0.10_10 Core set of typical audio and video gstreamer-plugins
gstreamer-plugins-dts-0.10.11,3 Gstreamer dts plugin
gstreamer-plugins-dvd-0.10.11,3 Gstreamer dvd plugin set
gstreamer-plugins-esound-0.10.14,3 Gstreamer enlightenment sound library plugin
gstreamer-plugins-flac-0.10.14,3 Gstreamer free lossless audio encoder/decoder plugin
gstreamer-plugins-gconf-0.10.14,3 Gstreamer gconf plugin
gstreamer-plugins-gio-0.10.22_1,3 Gstreamer gio (Glib I/O) plugin
gstreamer-plugins-good-0.10.14,3 Good gstreamer-plugins
gstreamer-plugins-hal-0.10.14,3 Gstreamer hal plugin
gstreamer-plugins-libpng-0.10.14,3 Gstreamer png plugin
gstreamer-plugins-mad-0.10.11,3 Gstreamer mp3 decoder plugin
gstreamer-plugins-mp3-0.10.0_1 Gstreamer Plugins Mp3 decoder meta-port
gstreamer-plugins-mpeg2dec-0.10.11,3 Gstreamer mpeg decode plugin
gstreamer-plugins-ogg-0.10.22_1,3 Gstreamer Ogg bitstream plugin
gstreamer-plugins-pango-0.10.22_1,3 Gstreamer pango textoverlay plugin
gstreamer-plugins-soup-0.10.14,3 Gstreamer soup http src plugin
gstreamer-plugins-theora-0.10.22,3 Gstreamer theora plugin
gstreamer-plugins-ugly-0.10.11,3 Ugly gstreamer-plugins
gstreamer-plugins-vorbis-0.10.22_1,3 Gstreamer vorbis encoder/decoder plugin
gstreamer-plugins-xvid-0.10.11,3 Gstreamer xvid plugin
py25-gstreamer-0.10.14 A set of Python bindings for gstreamer
totem-2.26.1 A gstreamer-based video player for the GNOME 2 Desktop
$


Sounds to me like you have a bad driver.

I am a bad driver.

corneliu
June 27th, 2009, 23:46
Thanks Joel,
Put

snd_driver_load="YES"

into /boot/loader.conf and reboot. This will load all available sound drivers.

I did that but still no sound

If that doesn't work, remove the previus line and try to load just the emu10kx driver instead with:

snd_emu10kx_load="YES"


I think I did that as I mentioned in my post #11