Solved No Sound on FreeBSD, help!

Good community:

And followed the FreeBSD Handbook, which can be going on? FreeBSD does not play Sound.

Version of FreeBSD:

# uname -a
Code:
FreeBSD local.domain.com 10.3-RELEASE FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 03:51:29 UTC 2016  root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  i386
#

The output of cat /dev/sndstat:

# cat /dev/sndstat
Code:
Installed devices:
pcm0: <Intel ICH (82801AA)> (play/rec) default
#

This is the output of dmseg:

# dmesg
Code:
Copyright (c) 1992-2016 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
   The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 03:51:29 UTC 2016
  root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
CPU: Intel(R) Core(TM) i7-4510U CPU @ 2.00GHz (2593.57-MHz 686-class CPU)
  Origin="GenuineIntel"  Id=0x40651  Family=0x6  Model=0x45  Stepping=1
  Features=0x783fbbf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2>
  Features2=0x5ed8220b<SSE3,PCLMULQDQ,MON,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,RDRAND>
  AMD Features=0x8000000<RDTSCP>
  AMD Features2=0x21<LAHF,ABM>
  Structured Extended Features=0x2000<NFPUSG>
  TSC: P-state invariant
real memory  = 1046413312 (997 MB)
avail memory = 998637568 (952 MB)
pnpbios: Bad PnP BIOS data checksum
random: <Software, Yarrow> initialized
Cuse4BSD v0.1.36 @ /dev/cuse
kbd1 at kbdmux0
acpi0: <VBOX VBOXXSDT> on motherboard
acpi0: Power Button (fixed)
acpi0: Sleep Button (fixed)
attimer0: <AT timer> port 0x40-0x43,0x50-0x53 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci_link2: BIOS IRQ 9 for 0.7.INTA does not match previous BIOS IRQ 10
pci0: <ACPI PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd000-0xd00f at device 1.1 on pci0
ata0: <ATA channel> at channel 0 on atapci0
ata1: <ATA channel> at channel 1 on atapci0
vgapci0: <VGA-compatible display> mem 0xe0000000-0xe07fffff irq 11 at device 2.0 on pci0
vgapci0: Boot video device
em0: <Intel(R) PRO/1000 Legacy Network Connection 1.1.0> port 0xd010-0xd017 mem 0xf0000000-0xf001ffff irq 10 at device 3.0 on pci0
em0: Ethernet address: 08:00:27:c8:7d:64
pcm0: <Intel ICH (82801AA)> port 0xd100-0xd1ff,0xd200-0xd23f irq 11 at device 5.0 on pci0
pcm0: <SigmaTel STAC9700/83/84 AC97 Codec>
ohci0: <OHCI (generic) USB controller> mem 0xf0804000-0xf0804fff irq 11 at device 6.0 on pci0
usbus0 on ohci0
pci0: <bridge> at device 7.0 (no driver attached)
ehci0: <Intel 82801FB (ICH6) USB 2.0 controller> mem 0xf0805000-0xf0805fff irq 10 at device 11.0 on pci0
usbus1: EHCI version 1.0
usbus1 on ehci0
battery0: <ACPI Control Method Battery> on acpi0
acpi_acad0: <AC Adapter> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse Explorer, device ID 4
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xe2000-0xe2fff pnpid ORM0000 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
atrtc0: <AT realtime clock> at port 0x70 irq 8 on isa0
Event timer "RTC" frequency 32768 Hz quality 0
ppc0: parallel port not found.
fuse-freebsd: version 0.4.4, FUSE ABI 7.8
Timecounters tick every 1.000 msec
pcm0: ac97 link rate calibration timed out after 1996702 us
em0: link state changed to UP
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 480Mbps High Speed USB v2.0
ugen0.1: <Apple> at usbus0
uhub0: <Apple OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <Intel> at usbus1
uhub1: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
random: unblocking device.
ada0 at ata0 bus 0 scbus0 target 0 lun 0
ada0: <VBOX HARDDISK 1.0> ATA-6 device
ada0: Serial Number VB9a220996-f25bec90
ada0: 33.300MB/s transfers (UDMA2, PIO 65536bytes)
ada0: 21504MB (44040528 512 byte sectors)
ada0: Previously was known as ad0
cd0 at ata1 bus 0 scbus1 target 0 lun 0
cd0: <VBOX CD-ROM 1.0> Removable CD-ROM SCSI device
cd0: Serial Number VB2-01700376
cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present
Timecounter "TSC-low" frequency 1296782936 Hz quality 1000
Root mount waiting for: usbus1 usbus0
uhub0: 12 ports with 12 removable, self powered
Root mount waiting for: usbus1
Root mount waiting for: usbus1
Root mount waiting for: usbus1
Root mount waiting for: usbus1
uhub1: 12 ports with 12 removable, self powered
Trying to mount root from ufs:/dev/gpt/rootfs [rw]...
vboxguest0 port 0xd020-0xd03f mem 0xf0400000-0xf07fffff,0xf0800000-0xf0803fff irq 9 at device 4.0 on pci0
vboxguest: loaded successfully
pflog0: promiscuous mode enabled
pid 1242 (xfce4-power-manager), uid 1001: exited on signal 11
#
 
It's detected correctly. Did you enable audio on the host side of Virtualbox?
 
SirDice said:
It's detected correctly. Did you enable audio on the host side of Virtualbox?
If this enabled by default, but there is No Sound in the system.

BUGG.jpg

By the way, the guest VBoxClient of entry to the desktop does not work.
 
As I proceed with the report of this port pulseaudio?

# pkg info -D pulseaudio
Code:
pulseaudio-8.0:
Always:
Pulseaudio doesn't know about the hw.snd.default_unit=3 sysctl for the
FreeBSD OSS driver that is used to select the active input/output. So
for Pulseaudio we also need to tell it which input/output to use. The
difference is that Pulseaudio has separate input and output configure lines.

To change the default sink (output):
# pacmd set-default-sink 3
To change the default source (input):
# pacmd set-default-source 3

This can also be set in /usr/local/etc/pulse/default.pa

Replace the number '3' with the new default your want to set.


The audio/freedesktop-sound-theme is needed if the default sound files
are uncommented in the /usr/local/etc/pulse/default.pa file.
#

And also as I proceed with the report of this command kldstat -v | grep snd? Is that I have No Sound in FreeBSD. :(

# kldstat -v | grep snd
Code:
     324 hdac/snd_hda
     323 pci/snd_hda
     322 hdaa/snd_hda_pcm
     321 hdacc/snd_hda
     320 pci/snd_via8233
     319 pci/snd_ich
     318 pci/snd_es137x
     317 emu10kx/snd_emu10kx_midi
     316 emu10kx/snd_emu10kx_pcm
     315 pci/snd_emu10kx
     314 csa/snd_csapcm
     313 pci/snd_csa
     312 pci/snd_cmi
2  1 0xc180c000 36c0  snd_driver.ko (/boot/kernel/snd_driver.ko)
     30 snd_driver
3  2 0xc1810000 5f34  snd_vibes.ko (/boot/kernel/snd_vibes.ko)
      1 pci/snd_vibes
4  2 0xc1816000 4d24  snd_via82c686.ko (/boot/kernel/snd_via82c686.ko)
      2 pci/snd_via82c686
5  2 0xc181b000 463c  snd_t4dwave.ko (/boot/kernel/snd_t4dwave.ko)
      3 pci/snd_t4dwave
6  4 0xc1820000 2d20  snd_spicds.ko (/boot/kernel/snd_spicds.ko)
7  2 0xc1823000 6b78  snd_solo.ko (/boot/kernel/snd_solo.ko)
      4 pci/snd_solo
8  5 0xc182a000 4fa8  snd_sbc.ko (/boot/kernel/snd_sbc.ko)
      6 acpi/snd_sbc
      5 isa/snd_sbc
9  2 0xc182f000 4fd8  snd_sb8.ko (/boot/kernel/snd_sb8.ko)
      7 sbc/snd_sb8
10  2 0xc1834000 52d8  snd_sb16.ko (/boot/kernel/snd_sb16.ko)
      8 sbc/snd_sb16
11  2 0xc183a000 11b50  snd_neomagic.ko (/boot/kernel/snd_neomagic.ko)
      9 pci/snd_neomagic
12  3 0xc184c000 e56c  snd_mss.ko (/boot/kernel/snd_mss.ko)
     15 acpi/snd_gusc
     14 isa/snd_gusc
     13 gusc/snd_guspcm
     12 acpi/snd_pnpmss
     11 isa/snd_pnpmss
     10 isa/snd_mss
13  2 0xc185b000 a5c4  snd_maestro3.ko (/boot/kernel/snd_maestro3.ko)
     16 pci/snd_maestro3
14  2 0xc1866000 a05c  snd_maestro.ko (/boot/kernel/snd_maestro.ko)
     17 pci/snd_maestro
15  2 0xc1871000 48b0  snd_fm801.ko (/boot/kernel/snd_fm801.ko)
     18 pci/snd_fm801
16  2 0xc1876000 5bb8  snd_ess.ko (/boot/kernel/snd_ess.ko)
     19 sbc/snd_ess
17  2 0xc187c000 846c  snd_envy24ht.ko (/boot/kernel/snd_envy24ht.ko)
     22 pci/snd_envy24ht
18  2 0xc1885000 96a0  snd_envy24.ko (/boot/kernel/snd_envy24.ko)
     23 pci/snd_envy24
19  2 0xc188f000 b82c  snd_ds1.ko (/boot/kernel/snd_ds1.ko)
     24 pci/snd_ds1
20  2 0xc189b000 5c44  snd_cs4281.ko (/boot/kernel/snd_cs4281.ko)
     25 pci/snd_cs4281
21  2 0xc18a1000 6ea8  snd_atiixp.ko (/boot/kernel/snd_atiixp.ko)
     26 pci/snd_atiixp
22  2 0xc18a8000 5b14  snd_als4000.ko (/boot/kernel/snd_als4000.ko)
     27 pci/snd_als4000
23  2 0xc18ae000 6734  snd_ad1816.ko (/boot/kernel/snd_ad1816.ko)
     29 acpi/snd_ad1816
     28 isa/snd_ad1816
#
 
Hi Teo,
what I normally do is:

I install drivers.
I look for my card with cat /dev/sndstat
I try the sound with sysctl hw.snd.default_unit=NUMBER

Once I success with my sound, I edit /etc/sysctl.conf and I add:
Code:
# to make /dev/dsp point to /dev/dsp1.0
hw.snd.default_unit=NUMBER
And also I edit /boot/loader.conf and I add:
Code:
snd_hda_load="YES"
And finally, I install audio/pulseaudio and I configure it adding in /usr/local/etc/pulse/default.pa:
Code:
To change the default sink (output):
# pacmd set-default-sink NUMBER
To change the default source (input):
# pacmd set-default-source NUMBER
And that's all I do on my PC and my laptop, both Lenovo.
I hope you'll solve it.
 
joancatala said:
And that's all I do on my PC and my laptop, both Lenovo.
I hope you'll solve it.

Hello joancatala,

Thanks for the Guide, still No Sound in FreeBSD. I am practicing FreeBSD in virtualbox.

For example, the report card is to:

# cat /dev/sndstat
Code:
Installed devices:
pcm0: <Intel ICH (82801AA)> (play/rec) default
#
Check:

# sysctl hw.snd.default_unit=0
Code:
hw.snd.default_unit: 0 -> 0
#
And added to the /etc/sysctl.conf file:

# ee /etc/sysctl.conf
Code:
# To make input/output on my board
hw.snd.default_unit=0
At the end, and added this:

# ee /usr/local/etc/pulse/default.pa
Code:
To change the default sink (output):
# pacmd set-default-sink 0

To change the default source (input):
# pacmd set-default-source 0
Checking the /boot/loader.conf file:

$ kldstat
Code:
Id Refs Address  Size  Name
1  111 0xc0400000 140bd98  kernel
2  1 0xc180c000 36c0  snd_driver.ko
3  2 0xc1810000 5f34  snd_vibes.ko
4  2 0xc1816000 4d24  snd_via82c686.ko
5  2 0xc181b000 463c  snd_t4dwave.ko
6  4 0xc1820000 2d20  snd_spicds.ko
7  2 0xc1823000 6b78  snd_solo.ko
8  5 0xc182a000 4fa8  snd_sbc.ko
9  2 0xc182f000 4fd8  snd_sb8.ko
10  2 0xc1834000 52d8  snd_sb16.ko
11  2 0xc183a000 11b50  snd_neomagic.ko
12  3 0xc184c000 e56c  snd_mss.ko
13  2 0xc185b000 a5c4  snd_maestro3.ko
14  2 0xc1866000 a05c  snd_maestro.ko
15  2 0xc1871000 48b0  snd_fm801.ko
16  2 0xc1876000 5bb8  snd_ess.ko
17  2 0xc187c000 846c  snd_envy24ht.ko
18  2 0xc1885000 96a0  snd_envy24.ko
19  2 0xc188f000 b82c  snd_ds1.ko
20  2 0xc189b000 5c44  snd_cs4281.ko
21  2 0xc18a1000 6ea8  snd_atiixp.ko
22  2 0xc18a8000 5b14  snd_als4000.ko
23  2 0xc18ae000 6734  snd_ad1816.ko
24  1 0xc18b5000 7cb0  cuse4bsd.ko
25  1 0xc18bd000 f8a0  fuse.ko
26  1 0xc18cd000 2b8fc  bwn_v4_ucode.ko
27  1 0xc6417000 4000  fdescfs.ko
28  1 0xc6443000 2a000  vboxguest.ko
29  1 0xc6478000 3000  pflog.ko
30  1 0xc65e8000 3b000  pf.ko
31  1 0xc648e000 8000  linprocfs.ko
32  1 0xc6afc000 45000  linux.ko
$
 
I don't think the issue is on the guest side of things. FreeBSD properly detects the card. I would look for the issue on the host side.
 
SirDice said:
I would look for the issue on the host side.

Solved, in the settings menu of the hardware of virtualbox, activate the extended features for I/O APIC. In the device for Audio, proceeded to choose the driver Audio Intel HD which is under the tab of PulseAudio, this were the results.

# cat /dev/sndstat
Code:
Installed devices:
pcm0: <Sigmatel STAC9221 (Analog 5.1/2.0)> (play/rec) default
pcm1: <Sigmatel STAC9221 (Analog)> (play/rec)
pcm2: <Sigmatel STAC9221 (Rear Digital)> (play/rec)
#
With respect to the guest host, please follow the link of the topic that you post the image of the side that presents the errors. Thanks to users for helping to solved the problems.

https://forums.freebsd.org/threads/50862/
 
Back
Top