beep

Linux: Let internal BIOS PC speaker make beep (mainboard speaker) (Systemlautsprecher)

Install beep.

apt-get install beep

Load the kernel module pcspkr.

modprobe pcspkr

To load the pcspkr module on every startup comment out this line in /etc/modprobe.d/blacklist.conf.

#blacklist pcspkr
beep

https://www.reddit.com/r/linuxquestions/comments/10jg9ip/pc_speaker_makes_clicking_sound_instead_of_beep/

https://askubuntu.com/questions/175602/periodic-clicking-sound-from-pc-speaker

https://bbs.archlinux.org/viewtopic.php?id=287771