disable console beep

Hello,
I am new to FreeBSD.
One of the first annoying problems I have found is the "console beep". I have found online several ways to disable it, but they seem not to work for me:

Code:
kbdcontrol -b off
doesn't do anything,

Code:
keybell="off"
(inside rc.conf) doesn't do anything,

Code:
sysctl hw.syscons.bell=0
finally this works! However when I reboot the laptop, the beep is again on. What should I do to make this line to be executed at startup?

Thank you all.
 
I tried your method, it couldn't work in my computer. 12.1-RELEASE
I found the the method from manual:

sysctl kern.vt.enable_bell=0

echo kern.vt.enable_bell=0 >> /boot/loader.conf
or

echo kern.vt.enable_bell=0 >> /etc/sysctl.conf
 
Back
Top