CSUF LogoCSUF Site Navigation
optics.csufresno.edu

F12 Laptop & General Settings beep

Department of Electrical and Computer Engineering
Associate Professor Gregory R. Kriehn
Forums
Wiki
F12 beep

Most people hate it, but I love the beep implemented by the curses bell when using the Tab key for file/auto completion. Others will rant for hours that using the curses screen flash is infinitely better if you wish to be considered a sophisticated Linux user. It depends upon what you are used to, I guess. It probably helps that I've always only been in a single office. At any rate, it works great on my laptop, but not on my server. This is easily fixed. To turn on the PC speaker when tabbing for a single session, simply type:
~> sudo modprobe pcspkr
To enable it every time the computer is booted, we need to make sure that this command is executed locally at the end of the startup process. This is done simply by adding a command to /etc/rc.local. Open the file with sudo:
~> sudo nano /etc/rc.local
Add the following line:
/sbin/modprobe pcspkr
Save and exit. Hit the Tab key to test it out.



On the other hand, the PC speaker for my Dell laptop is way too loud, and for whatever reason, alsamixer does not seem to be able to find it for me to be able to adjust its volume. Therefore, if you find that need to turn it off, then you can simply execute the following command:
~> su -c '/sbin/modprobe -r pcspkr ; echo "install pcskpr :" >> /etc/modprobd.d/modprobe.conf.dist'
Hit the Tab key, and you should see that the bell is now turned off.