List loaded kernel modules
lsmod
Unload the pcspkr and snd_pcsp kernel modules
sudo modprobe --remove pcspkr snd_pcsp
Permanently disable loading the modules
/etc/modprobe.d/nobeep.conf
:
blacklist pcspkr
blacklist snd_pcsp
lsmod
sudo modprobe --remove pcspkr snd_pcsp
/etc/modprobe.d/nobeep.conf
:
blacklist pcspkr
blacklist snd_pcsp