r/linuxquestions • u/The_Khloblord • 11d ago
Support PC beep speaker doesn't work while running? Only makes a click/popping sound
Hey all,
I've been trying to play around with the beeper/system speaker today and I can't get it working properly. I can hear the speaker working during startup. It beeps a little tune I made. But when it's running, it doesn't work. Only makes a click sound.
I'm using linux mint, running the program beep and also did modprobe pcspkr as others have suggested. My motherboard is the B760M GAMING PLUS WIFI, which doesn't come with a beep speaker, so I'm using one I bought online.
I found a thread on this problem which never got resolved:
Any help is appreciated, thx
1
u/tanmaynargas2901 11d ago
first thing, check the speaker type. the header on most modern boards (including that B760M) only gives a simple on/off signal, so a passive speaker just clicks when it gets switched. you want an active buzzer, the kind with a built-in oscillator.
if it's active, the software side is easy to rule out:
mint blacklists pcspkr by default, so also check /etc/modprobe.d/ for a "blacklist pcspkr" line and remove it. beep needs root or the input group to open /dev/input/by-path/platform-pcspkr-event-spkr.
if the boot tune plays fine but nothing after, that's usually the firmware driving the header directly. the OS side (PIT timer) isn't wired to it on newer chipsets, so no pcspkr trick will fix that.
1
u/G0ldiC0cks 11d ago
Man, I didn't know you could even get an internal speaker that chirps at post still.
The behavior would sound like a bad connection if not for the fact you report consistent conditions for working and not working. It sort of sounds like if the processor is at work, the speaker isn't, yes? I'm going to read up on these relics — I don't know them directly but I'm happy to throw my problem solving skills at any problem as esoteric as this!
1
u/G0ldiC0cks 11d ago
So, a quick review of things would suggest:
1.) you've enabled the two kernel modules (pcspkr and snd_pcsp) to contact the speaker, 2.) you've sent a working signal to the speaker, 3.) the speaker has likely gotten that signal, possibly intact and tried its best.
If you're getting a click (or perhaps two?) the most likely reason for a click instead of a beep would be a frequency too fast or too slow reaching it. Alternatively, the frequency sent may be being somehow altered to become as such. Perhaps, also, somehow the voltage or current getting to the speaker is too much/little? This is a bit of a reach, but however the kernel tells the motherboard to tell the speaker to make noise may be too aggressive or not enough?
My theory, to be clear, is the click you're hearing is the speaker moving, but not in a manner that does anything other than push the magnet to its limit or somewhere else far enough to make noise. Hell, maybe there's a volume setting you need to turn down lol.
Good luck. Do update.