Following are some details.
The last command gives a good beep of approximately 1 second duration. If I understand the above correctly, my laptop has 3 sound cards, of which pcm0 is the default. Therefore the beep sound means, things are working correctly so far. However, I think I should be able to choose a different card as the default and still hear the beep. For example, if
then I hear no beep. Same happens if I choose default_unit=2. Is this correct behavior? I think not, because all the three cards show "play" which I assume indicates their capability. Please correct me if I am wrong. If this is a real problem, then I think internally, the cards 2 and 3 may not be signalling the speaker correctly. How is this fixed?
Thanks.
Code:
root@fbsd:~ # uname -a
FreeBSD fbsd 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
root@fbsd:~ # dmesg | grep pcm
pcm0: <Realtek ALC293 (Analog 2.0+HP/2.0)> at nid 20,21 and 25 on hdaa0
pcm1: <Realtek ALC293 (Analog)> at nid 22 and 19 on hdaa0
pcm2: <Intel Skylake (HDMI/DP 8ch)> at nid 3 on hdaa1
root@fbsd:~ # cat /dev/sndstat
Installed devices:
pcm0: <Realtek ALC293 (Analog 2.0+HP/2.0)> (play/rec) default
pcm1: <Realtek ALC293 (Analog)> (play/rec)
pcm2: <Intel Skylake (HDMI/DP 8ch)> (play)
No devices installed from userspace.
root@fbsd:~ # sysctl hw.snd.default_unit
hw.snd.default_unit: 0
root@fbsd:~ # beep -D 1000
Code:
root@fbsd:~ # sysctl hw.snd.default_unit=1
hw.snd.default_unit: 0 -> 1
root@fbsd:~ # beep -D 1000
Thanks.