PC Speaker in Linux

By | 10 Dec 2009

Enable in Ubuntu

If you want some scripts to emit beeps, e.g. because you don’t always have your headphones on, you first have to enable the pcspkr module. This is per default disabled in Ubuntu. To enable it again, do the following:

  1. open /etc/modprobe.d/blacklist.conf in your favorite editor (using sudo)
  2. find these lines:
    # ugly and loud noise, getting on everyone's nerves; this should be done by a
    # nice pulseaudio bing (Ubuntu: #77010)
    blacklist pcspkr
  3. comment out the last line
  4. finally, do a sudo modprobe pcspkr

After that, you can play around with the beep program.

Leave a Reply

Your email address will not be published. Required fields are marked *

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)