I have tried and tried to get the system beep working, but with no success.

I have selected System-->Sound-->System Beep-->Enable Audible Beep (from the Gnome Desktop) I have tried from a Terminal window Edit-->General Tab-->Selecting terminal bell checkbox I have tried entering modprobe pcspkr at the command line.

Trying echo -e '\a' or using the beep application - Nothing works!

I know my hardware speaker works, because if on startup the battery is low it will beep.

Update: It is a laptop computer. It is an IBM Thinkpad, iSeries.

I did look at the modprobe blacklist, and pcspkr was not listed.

link|improve this question
1  
Just a note, I hope you get your answer, but this probably belongs on SuperUser.com instead of StackOverflow. SuperUser is dedicated to general computer usage/setup questions of this nature, while StackOverflow is oriented toward programming-related questions. :) – Dav Aug 14 '09 at 5:11
feedback

migrated from stackoverflow.com Aug 14 '09 at 11:46

This question came from our site for professional and enthusiast programmers.

10 Answers

This might be a possible solution

What happens sometimes is the pcspkr might be added to blacklist to remove it from the blacklist

Edit /etc/modprobe.d/blacklist and remove these lines if they exist :

# get rid of system beep

blacklist pcspkr

Reboot to de-activate this line.To disable the speaker (that emits the beep), add these lines and reboot.

This might solve your problem. Can provide more information if we know the system details.

link|improve this answer
I did check the blacklist, but it wasn't listed. – Melissa W Aug 14 '09 at 11:44
Why rebooting? Just load the module manually. – Pascal Thivent Oct 13 '09 at 13:36
This is the default for 10.04 – charlesbridge May 27 '10 at 20:21
Sadly, did not help. – Tal Weiss Feb 20 at 8:33
feedback
  • Check if pcspkr module is currently loaded

    $ lsmod | grep pcspkr
    pcspkr 10496 0

  • Check if there are any related errors in /var/log/dmesg

    $ sudo grep pcspkr /var/log/dmesg
    [ 15.620198] input: PC Speaker as /devices/platform/pcspkr/input/input8

If there's still no clue, do a full manual check of /var/log/dmesg for other errors. A quick grep of the other logs in /var/log/* with today's timestamp might also turn up something.

The above steps are just to help you narrow down the possible issue. With these kind of problems, it can be difficult to guess the answer right off the bat.

link|improve this answer
feedback

First, you need to be sure the right module is loaded. If not, the sound control center won't do nothing AFAIK (and even if the module is loaded, I don't know if the bugs mentioned in this thread are solved in Jaunty).

What version of Ubuntu are you using? Prior to Jaunty, the module was name snd_pcspkr.

Can you give us the output of:

lsmod | grep pcspkr

Can you give us the output of:

grep pcspkr /etc/modprobe.d/blacklist*

BTW, pcspkr is blacklisted by default again in Karmic.

link|improve this answer
feedback

My laptop doesn't have a PC speaker, so I needed a software-only solution. I found an article about setting up GNOME to play an audio file for the system beep.

The idea is to set up xkbevd(1) to run a command when a certain event occurs; in this case, the event Bell. For Ubuntu 9.04 Jaunty (and possibly previous versions as well), many of the sound files provided are in ogg vorbis format instead of wave, so depending on which sound you want to play on a terminal bell, using aplay(1) may not work. If you don't already have it, you'll need to install the vorbis-tools package:

sudo aptitude install vorbis-tools

After that, you'll need to create ~/.xkb/xkbevd.cf (note the spelling, the article has a typo here) and insert the following:

soundDirectory="/usr/share/sounds/"
soundCmd="ogg123 -q"

Bell() "ubuntu/stereo/bell.ogg"

In order to have the daemon run on login, you can edit your profile as the article suggests, or you can add it to your Startup Applications (System -> Preferences ->Startup Applications). Click on Add to create a new startup program, set the Name to XKB Event Daemon, the command to xkbevd -bg, and the comment to Software terminal bell.

link|improve this answer
feedback

I had the same problem. For me, it was solved by opening "alsamixer" on the console and unmuting the "Beep" slider.

link|improve this answer
This worked great for me on Ubuntu 10.04 – Rian Sanderson Dec 28 '11 at 1:39
feedback

Try this:

sudo modprobe pcspkr
link|improve this answer
feedback

This could depend on the type of computer you are using. Are you using a laptop or desktop PC? What is the model. That will hopefully help find a solution. :)

link|improve this answer
It is an IBM ThinkPad iSeries laptop – Melissa W Aug 14 '09 at 11:43
feedback

http://ubuntu-virginia.ubuntuforums.org/showthread.php?t=1315929

Post number 6 solved it for me. In short do the following in a terminal:

  1. run 'alsamixer'
  2. move to PC Beep
  3. press m to unmute
  4. set volume
  5. press escape
link|improve this answer
feedback

I installed beep with:

sudo aptitude install beep

Now I can call beep from shell or script with

beep
beep -r 3

This program can do much more. See man beep.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown