FreeBSD Disable Bell / Beep ( Hardware beep )

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?

Tutorial details
Difficulty level Easy
Root privileges Yes
Requirements FreeBSD
Est. reading time 1m
[/donotprint]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

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 5 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
5 comments… add one
  • ashwani Jun 7, 2009 @ 13:23

    nice info…
    but i wonder who use this distro….which one is Vivek favorite ?? ;-)

    • 🐧 nixCraft Jun 7, 2009 @ 17:55

      FreeBSD != Linux, so it is not distro!

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

  • Govind Singh Jun 8, 2009 @ 6:50

    its working

  • 落水狗 Sep 14, 2009 @ 14:46

    Thank you
    Really a great job
    I’ve been looking for this solution for days

    • Kris Feb 22, 2014 @ 18:37

      Me too :)))

      It is working so ……..HAPPY DAYS!!!!!!

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum