[…] I don't wan't to hear anything on the speaker on pressing backspace in an empty command line.
printf "\007" should still work, so no sysctl […]
terminal_beep procedure. Neither terminal_beep nor every location calling terminal_beep consult some configuration switch. Error condition → unconditionally ring bell.sysctl kern.vt.enable_bell=0
Never noticed. It's an old syscons annoyance. Disabling the speaker entirely would be better but I've never seen a command for that. Maybe a problem because it's a stone-age device.Unfortunately this is not possible. sh(1) uses editline(3). It has oneterminal_beepprocedure. Neitherterminal_beepnor every location callingterminal_beepconsult some configuration switch. Error condition → unconditionally ring bell.
This is already the default and for non‑root users it’s kbdcontrol(1)‑b offanyway.
Never noticed. It's an old syscons annoyance. Disabling the speaker entirely would be better but I've never seen a command for that. Maybe a problem because it's a stone-age device.
It's still somehow relevant. I have a PC that I boot without a monitor. If it beeps with the speaker it's gone through POST succesfully and tries to find the boot device. If it can't boot because of broken memory or whatever, it doesn't beep either or a lot because of a RAM error. There's still a piece of feedback in it that's not in the hifi PCI amp.Ever since I no longer need to do PCM voice generation on the PC speaker I've found it a useless piece of hardware. I'd disconnect the speaker, or if it is on the mobo then chew a piece of gum and stick it on the component. LOL
Signalling POST errors and low battery warnings on laptops are both very useful though.Ever since I no longer need to do PCM voice generation on the PC speaker I've found it a useless piece of hardware. I'd disconnect the speaker, or if it is on the mobo then chew a piece of gum and stick it on the component. LOL
As others have mentioned, that’s not possible. You can silence the terminal bell, but thenI.e. I don't wan't to hear anything on the speaker on pressing backspace in an empty command line.
printf "\007" should still work, so no sysctl
printf "\007" doesn’t work either./dev/speaker to emit sounds if you want to, even if the terminal bell has been disabled. You just have to load the speaker kernel module (it’s not in the GENERIC kernel, I think). Also make sure that you have permission to write to the device – usually that means you have to be member of the right group, or change the permissions and/or group of the device accordingly, see /etc/devfs.conf./dev/speaker to emit short melodies in certain cases to catch my attention (i.e. not really that often).beep_happy ()
{
echo "l8ceg" > "/dev/speaker"
}
beep_oh_no ()
{
echo "l16ol<<cba+acba+a" > "/dev/speaker"
}
/dev/speaker will emit the sounds on the machine where you access the device. When logged into a machine remotely, the remote machine will emit the sounds. This is different from printf "\007" that always rings the bell of the terminal in front of your face.