Skip to content
sudo rmmod pcspkr

If you want to keep the setting persistent, create a file /etc/modprobe.d/blacklist.conf with the following contents:

blacklist pcspkr