Solved PC speaker won't beep properly.

I installed FreeBSD 13.2 on a physical machine today. As always, I placed the speaker on the motherboard and it beeped as expected when I turned on the machine. But when I tried to get anything out it of using beep, it just gave me low-pitch clicking sounds. That did not use to happen with versions prior to 13.

Does anyone know what is happening? How can I tackle this issue?
 
What about printf '\a'.
Is this the one that was changed? sys/dev/speaker

Maybe, I have no idea really. I am stuck and must find a solution. I need my system give audio feedback when it is fully loaded.

NB: I use this command to get what I need:
Code:
/bin/echo "\msl16oldcd4mll8pcb-agf+4.g4" > /dev/speaker
 
I have to say I am very surprised speaker was removed from FreeBSD.

I thought alot of people use FreeBSD headless?

A server OS with no beep. A port for beep? Wow is all I can say.

This must be what POLA means. I am astonished.
 
I have to say I am very surprised speaker was removed from FreeBSD.

I thought alot of people use FreeBSD headless?

A server OS with no beep. A port for beep? Wow is all I can say.

This must be what POLA means. I am astonished.
I know for sure that pfSense 2.7.0 is built on FreeBSD 14.0 and it does beep.
Also I can get the speaker to beep, but just not the way I would like it to. It just gives me clicking sounds instead of the loud, clear melody.
 
I had a similar problem on Lenevo ThinkCentre M73 : speaker do not work. After disabled internal soundcard, the speaker - and spkrtest(8) - works. Note that /usr/bin/beep does not work anymore since it use /dev/dsp.
 
I had a similar problem on Lenevo ThinkCentre M73 : speaker do not work. After disabled internal soundcard, the speaker - and spkrtest(8) - works. Note that /usr/bin/beep does not work anymore since it use /dev/dsp.
Disabled the sound card and tried again. It didn't work.
 
Going back to post #1 ...

I installed FreeBSD 13.2 on a physical machine today. As always, I placed the speaker on the motherboard and it beeped as expected when I turned on the machine.

Please clarify whether this is new hardware ("placed the speaker on the motherboard ..."?) or this unchanged hardware previously beeped with an earlier version of FreeBSD?

But when I tried to get anything out it of using beep, it just gave me low-pitch clicking sounds. That did not use to happen with versions prior to 13.

Again, on this hardware?

I'm wondering whether a possible physical fault with this speaker, or its wiring, might be the issue here?

Does anyone know what is happening? How can I tackle this issue?

Can you boot the 13.2 install medium into LiveCD mode, kldload speaker if need be, and try spkrtest?
 
I have to say I am very surprised speaker was removed from FreeBSD.

What makes you think it's been removed?

I'm on 12.4 here, but the 3 manpages I referred to in post #3 above were all from 13.2.

And the OP says speaker is loaded and spkrtest runs, just that it sounds weird.
 
Going back to post #1 ...



Please clarify whether this is new hardware ("placed the speaker on the motherboard ..."?) or this unchanged hardware previously beeped with an earlier version of FreeBSD?



Again, on this hardware?

I'm wondering whether a possible physical fault with this speaker, or its wiring, might be the issue here?



Can you boot the 13.2 install medium into LiveCD mode, kldload speaker if need be, and try spkrtest?

Speaker beeps fine when I turn the machine on.

The issue is that after FreeBSD 13.2 is loaded and running, sending echo to /dev/speaker only causes the speaker to generate clicking sounds.

I just tried doing the same using the live CD, and got the same thing.

Running this command used to give me a nice melody:
/bin/echo "\msl16oldcd4mll8pcb-agf+4.g4" > /dev/speaker
 
Think of musical scales.
 
Think of musical scales.

Both of these did the same thing:
echo "O0 G G G L8 D#. L16 A# L4 G L8 D#. L16 A# L2 G" > /dev/speaker
echo "FGABC" > /dev/speaker

Just clicking sounds.
 
Running this command used to give me a nice melody:
/bin/echo "\msl16oldcd4mll8pcb-agf+4.g4" > /dev/speaker
I tested this under VMware on my 13.2 and it works just fine - it's Bach's Toccata and Fugue in Dmi.

I've one free PC laying around with 13.x, I'll try to test this once I'll have more time. I'm not sure if it has PC speaker though.
 
I tested this under VMware on my 13.2 and it works just fine - it's Bach's Toccata and Fugue in Dmi.

I've one free PC laying around with 13.x, I'll try to test this once I'll have more time. I'm not sure if it has PC speaker though.

These work for me.
On VMWare, it works fine for me too.

Why does it beep like normal when the power is triggered but not when FreeBSD 13.2 is loaded?
 
Back
Top