Skip to content

PC Speaker in Linux

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.


No Trackbacks


Display comments as Linear | Threaded

No comments

Add Comment

Markdown format allowed
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.

Form options