FreeBSD Disable Bell / Beep ( Hardware beep )

in Categories , , , last updated February 22, 2014

I know how to disable beep sound under Linux, but the settings are not working under FreeBSD laptop. How do I disable beep sound on FreeBSD operating system?

To enable or disable bell use MIB hw.syscons.bell on FreeBSD operating systems. To set MIB on FreeBSD use the sysctl comamnd line utility, which retrieves kernel state and allows processes with appropriate privilege to set kernel state.

Disable bell with systctl command

Type the following command to disable for current session:
# sysctl hw.syscons.bell=0

Make sure settings remains same after you reboot the laptop, enter:
# echo "hw.syscons.bell=0" >> /etc/sysctl.conf

Test it:
# reboot

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Share this on (or read 5 comments/add one below):

5 comment

    1. FreeBSD != Linux, so it is not distro!

      It is complete operating system used by many users around the world.

    Have a question? Post it on our forum!