root@ghostbsd-pc:/home/admin # kldstat -v | grep snd
268 hdac/snd_hda
267 pci/snd_hda
266 hdaa/snd_hda_pcm
265 hdacc/snd_hda
264 pci/snd_via8233
263 pci/snd_ich
262 pci/snd_es137x
261 emu10kx/snd_emu10kx_midi
260 emu10kx/snd_emu10kx_pcm
259 pci/snd_emu10kx
258 csa/snd_csapcm
257 pci/snd_csa
256 pci/snd_cmi
root@ghostbsd-pc:/home/admin # cat /dev/sndstat
Installed devices:
pcm0: <Intel Haswell (HDMI/DP 8ch)> (play)
pcm1: <Realtek ALC887 (Rear Analog)> (play/rec) default
pcm2: <Realtek ALC887 (Front Analog)> (play/rec)
No devices installed from userspace.
root@ghostbsd-pc:/home/admin # sysctl hw.snd.default_unit
hw.snd.default_unit: 1
root@ghostbsd-pc:/home/admin # dmesg | grep "Realtek"
hdacc1: <Realtek ALC887 HDA CODEC> at cad 2 on hdac1
hdaa1: <Realtek ALC887 Audio Function Group> at nid 1 on hdacc1
pcm1: <Realtek ALC887 (Rear Analog)> at nid 20 and 24,26 on hdaa1
pcm2: <Realtek ALC887 (Front Analog)> at nid 27 and 25 on hdaa1
root@ghostbsd-pc:/home/admin # dmesg | grep pcm
pcm0: <Intel Haswell (HDMI/DP 8ch)> at nid 3 on hdaa0
pcm1: <Realtek ALC887 (Rear Analog)> at nid 20 and 24,26 on hdaa1
pcm2: <Realtek ALC887 (Front Analog)> at nid 27 and 25 on hdaa1
root@ghostbsd-pc:/home/admin # mixer
Mixer vol is currently set to 84:84
Mixer pcm is currently set to 100:100
Mixer speaker is currently set to 74:74
Mixer line is currently set to 1:1
Mixer mic is currently set to 67:67
Mixer mix is currently set to 74:74
Mixer rec is currently set to 35:35
Mixer igain is currently set to 0:0
Mixer ogain is currently set to 100:100
Recording source: mic
Glad you are here. "I can hear you now" Verizon TV quote.
pulseaudio , gstreamer-plugins-all... sudo sysctl hw.snd.default_unit=2 you unit may differ try that.
Please keep text notes on what you try and fail AND what you try and works. In the near future, I am working on application to support starting and enabling sound on new Ghostbsd installations. your intermediate notes on failures and success will help me write that Python app.
wb7odyfred wrote: ↑Wed Oct 18, 2023 2:05 pm
Glad you are here. "I can hear you now" Verizon TV quote.
pulseaudio , gstreamer-plugins-all... sudo sysctl hw.snd.default_unit=2 you unit may differ try that.
Please keep text notes on what you try and fail AND what you try and works. In the near future, I am working on application to support starting and enabling sound on new Ghostbsd installations. your intermediate notes on failures and success will help me write that Python app.
nids values are important.
Okay, I'll do, Lol, yes I did understand the joke!
Last edited by Darknessraptor on Thu Oct 19, 2023 1:11 am, edited 1 time in total.
wb7odyfred wrote: ↑Wed Oct 18, 2023 2:05 pm
Glad you are here. "I can hear you now" Verizon TV quote.
pulseaudio , gstreamer-plugins-all... sudo sysctl hw.snd.default_unit=2 you unit may differ try that.
Please keep text notes on what you try and fail AND what you try and works. In the near future, I am working on application to support starting and enabling sound on new Ghostbsd installations. your intermediate notes on failures and success will help me write that Python app.
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
luisadmin@luis-ghostbsd-pc ~> pulseaudio
W: [(null)] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because PulseAudio was built without capabilities support.
E: [(null)] pid.c: Daemon already running.
E: [(null)] main.c: Ha fallado pa_pid_file_create().
luisadmin@luis-ghostbsd-pc ~ [1]> sudo pulseaudio
Contraseña:
W: [(null)] main.c: Este programa no tiene por qué ser ejecutado como root (a menos que --system sea especificado).
W: [(null)] oss-util.c: '/dev/dsp0' doesn't support full duplex
W: [(null)] authkey.c: Failed to open cookie file '/root/.config/pulse/cookie': No such file or directory
W: [(null)] authkey.c: Failed to load authentication key '/root/.config/pulse/cookie': No such file or directory
W: [(null)] authkey.c: Failed to open cookie file '/root/.pulse-cookie': No such file or directory
W: [(null)] authkey.c: Failed to load authentication key '/root/.pulse-cookie': No such file or directory
W: [(null)] cli-command.c: stat('/usr/local/etc/pulse/default.pa.d'): No such file or directory
luisadmin@luis-ghostbsd-pc ~> gstreamer-plugins-all
fish: Unknown command: gstreamer-plugins-all
luisadmin@luis-ghostbsd-pc ~ [127]> sudo gstreamer-plugins-all
sudo: gstreamer-plugins-all: command not found
luisadmin@luis-ghostbsd-pc ~ [1]> su
Password:
root@luis-ghostbsd-pc:/home/luisadmin # gstreamer-plugins-all
su: gstreamer-plugins-all: not found
root@luis-ghostbsd-pc:/home/luisadmin # sysctl hw.snd.default_unit=2
hw.snd.default_unit: 1 -> 2
root@luis-ghostbsd-pc:/home/luisadmin #
root@luis-ghostbsd-pc:/home/luisadmin #
wb7odyfred wrote: ↑Wed Oct 18, 2023 2:05 pm
Glad you are here. "I can hear you now" Verizon TV quote.
pulseaudio , gstreamer-plugins-all... sudo sysctl hw.snd.default_unit=2 you unit may differ try that.
Please keep text notes on what you try and fail AND what you try and works. In the near future, I am working on application to support starting and enabling sound on new Ghostbsd installations. your intermediate notes on failures and success will help me write that Python app.
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
luisadmin@luis-ghostbsd-pc ~> pulseaudio
W: [(null)] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because PulseAudio was built without capabilities support.
E: [(null)] pid.c: Daemon already running.
E: [(null)] main.c: Ha fallado pa_pid_file_create().
luisadmin@luis-ghostbsd-pc ~ [1]> sudo pulseaudio
Contraseña:
W: [(null)] main.c: Este programa no tiene por qué ser ejecutado como root (a menos que --system sea especificado).
W: [(null)] oss-util.c: '/dev/dsp0' doesn't support full duplex
W: [(null)] authkey.c: Failed to open cookie file '/root/.config/pulse/cookie': No such file or directory
W: [(null)] authkey.c: Failed to load authentication key '/root/.config/pulse/cookie': No such file or directory
W: [(null)] authkey.c: Failed to open cookie file '/root/.pulse-cookie': No such file or directory
W: [(null)] authkey.c: Failed to load authentication key '/root/.pulse-cookie': No such file or directory
W: [(null)] cli-command.c: stat('/usr/local/etc/pulse/default.pa.d'): No such file or directory
luisadmin@luis-ghostbsd-pc ~> gstreamer-plugins-all
fish: Unknown command: gstreamer-plugins-all
luisadmin@luis-ghostbsd-pc ~ [127]> sudo gstreamer-plugins-all
sudo: gstreamer-plugins-all: command not found
luisadmin@luis-ghostbsd-pc ~ [1]> su
Password:
root@luis-ghostbsd-pc:/home/luisadmin # gstreamer-plugins-all
su: gstreamer-plugins-all: not found
root@luis-ghostbsd-pc:/home/luisadmin # sysctl hw.snd.default_unit=2
hw.snd.default_unit: 1 -> 2
root@luis-ghostbsd-pc:/home/luisadmin #
root@luis-ghostbsd-pc:/home/luisadmin #
I hope this could help.
Thank you!
Yes it's very helpful.
Thanks for sharing this with us.
I updated ghostbsd 24.07.1 on my AMD machine but got no sound from my HDMI monitor. I discovered the correct sound output by sending random output to the various /dev/dsp devices (cat /dev/random > /dev/dspX). In my case X was 3 then I set sysctl hw.snd.default_unit=X and added the same line to /boot/loader.conf. Now I have sound on my HDMI monitor which persists after reboot.