Doug Scott wrote:
The appropriate ioctl
KBD_CMD_BELL and KBD_CMD_NOBELL are already in
sys/kbd.h.
Those ioctls don't make it so the bell doesn't sound
in the future - they
are used for sounding the bell. In the X server, to
make a 100ms beep,
we do:
kbdCmd = KBD_CMD_BELL
I have noticed, a few posts asking how to disable the console beep/bell on some
laptops. While it is possible to disable some applications such as bash, and
gnome, you should be able to disable it globally with the kdb command or in
/etc/default/kbd. This can already be done for the keyboard