Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#224 closed System Defect (wontfix)

No audio output after PC-BSD 8.0 Install (Solved!)

Reported by: wmichaelb Owned by: kris
Priority: major Milestone:
Component: System Configuration Version: 8.0-BETA
Keywords: Cc: trac-bugs@…

Description

After installing PC-BSD 8.0 beta, I lost all audio output. The system does see the sound card. The KDE info center gives the following data:

Free BSD audio driver (new PCM 32 bit 2009061500/i386)
Installed devices: pcm0: <Intel ICH4 (82801DB)> at io Oxfebff800, Oxfebff400, irq 17 bufsz 16384 kld snd ich [MPSAFE] (1p:4v/1r:4v channels duplex default)

My system is a custom one with an Intel D845GRG2 mother board, an Intel 3.0 GHz P4 processor with 1 GB of RAM, an nVidia GeForce? 6200 AGP video card, and a 400 GB IDE hard drive, if that matters. Please let me know if I can work with you on this issue, and thanks.

Change History (11)

comment:1 follow-up: Changed 5 years ago by kris

  • Owner set to kris

Can you send me the output of "cat /dev/sndstat" on this system? Sometimes the sound-driver is too smart for its own good, and it'll try using a digital output port, like Optical / RCA, instead of defaulting to the analog ;)

comment:2 in reply to: ↑ 1 Changed 5 years ago by wmichaelb

Replying to kris:

Can you send me the output of "cat /dev/sndstat" on this system? Sometimes the sound-driver is too smart for its own good, and it'll try using a digital output port, like Optical / RCA, instead of defaulting to the analog ;)

Kris: thanks for responding so quickly! What I get from the above command is:

FreeBSD Audio Driver (newpcm: 32bit 2009061500/i386)
Installed devices:
pcm0: <Intel ICH4 (82801DB)> at io 0xfebff800, 0xfebff400 irq 17 bufsz 16384 kld snd_ich [MPSAFE] (1p:4v/1r:4v channels duplex default)

Let me know what else I can do, and thanks.

By the way, other than this issue, this release is much smoother and quicker, and KDE isn't
so buggy. Much better!

  • Michael B. in Cincinnati

comment:3 Changed 5 years ago by wmichaelb

Hi Kris, any luck on the audio?
Thanks,

  • Michael B. in Zinzinnati

comment:4 Changed 5 years ago by kris

Well, according to that output, it should be working, its only finding one card / channel, so I'm not sure what the deal is. We should probably try to confirm if its a KDE / Phonon bug, or something broken in the FreeBSD ich driver. Try this:

At the command line, locate some mp3 file, and try to play it with "mplayer"

# mplayer <mymp3>

Do you get any audio output?

comment:5 Changed 5 years ago by wmichaelb

Kris: Thanks for responding! What I got was this:

mplayer Norwegian_Wood.mp3
MPlayer 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.06GHz (Family: 15, Model: 2, Stepping: 9)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing Norwegian_Wood.mp3.
Audio file file format detected.
Clip info:

Title: Norwegian Wood (This Bird Has
Artist: Buddy Rich
Album: Big Swing Face
Year: 1967
Comment: Amazon.com Song ID: 20205921
Track: 1
Genre: Jazz

==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 62.8 (01:02.8) of 440.0 (07:20.0) 1.0%

Exiting... (End of file)

After 30 seconds or so of listening but hearing no sound,
I hit enter, and got the "Exiting... (End of file) result.

As a hardware test, I booted the machine from a Fedora 11 CD,
and the system played internet radio music quite nicely.

...~(8&)...(sound of fingernails scratching head)...

  • Michael B. in Zinzinnati

comment:6 Changed 4 years ago by kris

Well, at this point it sounds like its a driver issue. The snd_ich driver *should* work, but maybe we can use snd_hda instead, try these things first:

FIRST:

edit /boot/loader.conf

Look for:

# Load sound-support
sound_load="YES"
snd_uaudio_load="YES"

Then disable snd_uaudio_load="YES"

# Load sound-support
sound_load="YES"
# snd_uaudio_load="YES"

Reboot, any sound?

If that fails, lets try snd_hda:

edit /etc/rc.conf

# Enable sound-support
snddetect_enable="YES"

Disable this:

# Enable sound-support
# snddetect_enable="YES"

Then edit /boot/loader.conf

add the line:

snd_hda_load="YES"

Reboot, any sound?

If this fails we'll need to report the issue to the freebsd multimedia list, so the driver devs are aware and get us a fix:

http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia

comment:7 Changed 4 years ago by wmichaelb

Kris: thanks for getting back, still no sound.

I backed up both files first. My rc.conf file now looks like this:

background_dhclient="YES"
hostname="pcbsd"
compat5x_enable="YES"
sshd_enable="YES"
usbd_enable="YES"
devd_enable="YES"
devfs_system_ruleset="devfsrules_common"
ldconfig_paths="/usr/lib/compat /usr/local/lib /usr/local/kde4/lib /usr/local/lib/compat/pkg"

# Enable console mouse
moused_type="auto"
moused_enable="YES"

# Enable the pcbsd startup / shutdown scripts
pcbsdinit_enable="YES"

#Enable samba server
samba_enable="YES"
winbindd_enable="YES"

# Disable LPD
lpd_enable="NO"

# Enable CUPS
cupsd_enable="YES"
linux_enable="YES"

# FSCK Enhancements
fsck_y_enable="YES"
background_fsck="NO"

# tmpmfs Flags
tmpmfs="YES"
tmpsize="800m"
tmpmfs_flags="-S"
clear_tmp="YES"

# Denyhosts Startup
denyhosts_enable="YES"

# powerd: adaptive speed while on AC power, adaptive while on battery power
# WARNING: May cause crashes with nvidia driver
#powerd_enable="YES"
#powerd_flags="-a adaptive -b adaptive" # set CPU frequency

# enable HAL / DBUS
dbus_enable="YES"
polkitd_enable="YES"
hald_enable="YES"

# Enables support for HPLIP
hpiod_enable="NO"

# Enable the firewall
pf_rules="/etc/pf.conf"
pf_enable="YES"
pf_flags=""

# Enable ipfw and open it by default since we have PF
firewall_enable="YES"
firewall_type="open"

# Enable sound-support
# snddetect_enable="YES"
mixer_enable="YES"

# Enable avahi_daemon
avahi_daemon_enable="YES"

# Run the port jail
portjail_enable="YES"

# Added for sound support in the portjail, access to /dev/random, /dev/null, etc.
jail_pcbsd_devfs_enable="YES"

# Start the swapmonitor
swapmonitor_enable="YES"

# Enable IPV6 support
ipv6_enable="YES"

warden_enable="YES"
ntpd_enable="YES"
# Auto-Enabled NICs from pc-sysinstallbackground_dhclient="YES"
hostname="pcbsd"
compat5x_enable="YES"
sshd_enable="YES"
usbd_enable="YES"
devd_enable="YES"
devfs_system_ruleset="devfsrules_common"
ldconfig_paths="/usr/lib/compat /usr/local/lib /usr/local/kde4/lib /usr/local/lib/compat/pkg"

# Enable console mouse
moused_type="auto"
moused_enable="YES"

# Enable the pcbsd startup / shutdown scripts
pcbsdinit_enable="YES"

#Enable samba server
samba_enable="YES"
winbindd_enable="YES"

# Disable LPD
lpd_enable="NO"

# Enable CUPS
cupsd_enable="YES"
linux_enable="YES"

# FSCK Enhancements
fsck_y_enable="YES"
background_fsck="NO"

# tmpmfs Flags
tmpmfs="YES"
tmpsize="800m"
tmpmfs_flags="-S"
clear_tmp="YES"

# Denyhosts Startup
denyhosts_enable="YES"

# powerd: adaptive speed while on AC power, adaptive while on battery power
# WARNING: May cause crashes with nvidia driver
#powerd_enable="YES"
#powerd_flags="-a adaptive -b adaptive" # set CPU frequency

# enable HAL / DBUS
dbus_enable="YES"
polkitd_enable="YES"
hald_enable="YES"

# Enables support for HPLIP
hpiod_enable="NO"

# Enable the firewall
pf_rules="/etc/pf.conf"
pf_enable="YES"
pf_flags=""

# Enable ipfw and open it by default since we have PF
firewall_enable="YES"
firewall_type="open"

# Enable sound-support
# snddetect_enable="YES"
mixer_enable="YES"

# Enable avahi_daemon
avahi_daemon_enable="YES"

# Run the port jail
portjail_enable="YES"

# Added for sound support in the portjail, access to /dev/random, /dev/null, etc.
jail_pcbsd_devfs_enable="YES"

# Start the swapmonitor
swapmonitor_enable="YES"

# Enable IPV6 support
ipv6_enable="YES"

warden_enable="YES"
ntpd_enable="YES"
# Auto-Enabled NICs from pc-sysinstall
ifconfig_dc0="DHCP"
ifconfig_fxp0="DHCP"
hostname="pcbsd-5502"
hpssd_enable="YES"

warden_enable="YES"

ifconfig_dc0="DHCP"
ifconfig_fxp0="DHCP"
hostname="pcbsd-5502"
hpssd_enable="YES"

warden_enable="YES"

and my loader.conf file looks like this:

# Kernel Options
kern.ipc.shmseg=1024
kern.ipc.shmmni=1024

# Enable the splash screen
vesa_load="YES"
splash_pcx_load="YES"
bitmap_load="YES"
bitmap_name="/boot/loading-screen.pcx"

# Load Wireless Support
if_ipw_load="YES"
if_iwi_load="YES"
if_wpi_load="YES"
legal.intel_ipw.license_ack=1
legal.intel_iwi.license_ack=1
legal.intel_wpi.license_ack=1

# Load mmc card-reader support
mmc_load="YES"
mmcsd_load="YES"
sdhci_load="YES"

# Load support for scd
scd_load="YES"

# Load sound-support
sound_load="YES"
# snd_uaudio_load="YES"
snd_hda_load="YES"

# Load geom support
geom_journal_load="YES"
geom_uzip_load="YES"
geom_mirror_load="YES"
geom_eli_load="YES"

# Load File-System Support
libiconv_load="YES"
libmchain_load="YES"
cd9660_iconv_load="YES"
msdosfs_iconv_load="YES"
ntfs_load="YES"
ntfs_iconv_load="YES"
udf_load="YES"
udf_iconv_load="YES"
zfs_load="YES"
sem_load="YES"
nvidia_load="YES"
kqemu_load="YES"
aio_load="YES"
hw.ata.atapi_dma="0"
beastie_disable="NO"
autoboot_delay="4"

Finally, the mplayer window says this:

#224 (No audio output after PC-BSD 8.0 Install) ??? PC-BSD.desktop
Applications
Documents
Downloads
Images
Music
PC-BSD.desktop
Videos
guide.desktop
last.fm.desktop
softmanager.desktop
[mikeb1@pcbsd-5502]/home/mikeb1/Desktop(32)% cd /home/mikeb1/Desktop/Music
[mikeb1@pcbsd-5502]/home/mikeb1/Desktop/Music(33)% ls
01 Lay the Shovel Down.wma Norwegian_Wood.mp3
[mikeb1@pcbsd-5502]/home/mikeb1/Desktop/Music(34)% mplayer /home/mikeb1/Desktop/Music/Norwegian_Wood.mp3
MPlayer 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.06GHz (Family: 15, Model: 2, Stepping: 9)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing /home/mikeb1/Desktop/Music/Norwegian_Wood.mp3.
Audio file file format detected.
Clip info:

Title: Norwegian Wood (This Bird Has
Artist: Buddy Rich
Album: Big Swing Face
Year: 1967
Comment: Amazon.com Song ID: 20205921
Track: 1
Genre: Jazz

==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
Audio output truncated at end.7:20.0) 1.1%
A: 222.9 (03:42.9) of 440.0 (07:20.0) 1.1%

Exiting... (End of file)

I'm no programmer, but I notice two things. Please note the first line of the mplayer window:

#224 (No audio output after PC-BSD 8.0 Install) ??? PC-BSD.desktop

and then a bit further down, after the data on the mp3 file, I notice this:

[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory

I will stop here to restore the original files and try again.

comment:8 Changed 4 years ago by wmichaelb

Now, after restoring my backups for those two files, the notes about missing files are gone, but still no sound:

Music/Norwegian_Wood.mp3
MPlayer 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.06GHz (Family: 15, Model: 2, Stepping: 9)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Playing /home/mikeb1/Desktop/Music/Norwegian_Wood.mp3.
Audio file file format detected.
Clip info:

Title: Norwegian Wood (This Bird Has
Artist: Buddy Rich
Album: Big Swing Face
Year: 1967
Comment: Amazon.com Song ID: 20205921
Track: 1
Genre: Jazz

==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...

So I will forward a bug report to the link you've noted.

Thanks for your time and attention. Let's see where this goes...

  • Michael B. in Cincinnati

comment:9 Changed 4 years ago by kris

  • Resolution set to wontfix
  • Status changed from new to closed

Thanks, this confirms it as a problem with the snd_ich driver. We've had another user report a problem with this driver on FreeBSD 8.0 as well now, and they filed a FreeBSD bug report here:

http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/143505

Once this bug gets addressed in FreeBSD, it should fix your problem as well, you may want to follow the above bug report so you can get a heads up when it gets fixed, any any potential patches used which you can apply in the meantime :)

comment:10 Changed 4 years ago by wmichaelb

As a follow up, I filed the following bug report with FreeBSD:

i386/143715: Audio Quit After Installing 8.0

so we'll see what happens.

comment:11 Changed 4 years ago by wmichaelb

  • Summary changed from No audio output after PC-BSD 8.0 Install to No audio output after PC-BSD 8.0 Install (Solved!)

I had some conversation with a developer via the FreeBSD bug report system, but no solution. When the release version of PC-BSD 8.0 ("Galileo") was posted, I downloaded this, used it to upgrade my beta install, and then downloaded the corresponding updates. One of them was a sound bug fix referred to as fixing a "sound mute error". I installed this, rebooted, and voila! I now have good sound. Why this happened in 8.0 and not 7.x I have no clue, but it's fixed in this release.

Note: See TracTickets for help on using tickets.