Shared publicly  - 
Dear G+ users,

I am trying to make some music with Perl following but it seems that /usr/bin/beep does not make any sound on my system.

Even if I run it as sudo /usr/bin/beep

Any idea why and how to fix it? (this is an Ubuntu 12.4 and other software can make sounds)
An internal speaker can bring a lot of geeky fun. Let's start with a simple tune. Audio::Beep can recognize notes, so we are able to play sheet music through a speaker: What about more interesting...
Jon Mitchell's profile photoAndrew Pam's profile photoGabor Szabo's profile photo
Do you have the pcspkr kernel module loaded?
That was the problem. Thank you!
You'll note that the pcspkr module is intentionally not loaded on Ubuntu. According to /etc/modprobe.d/blacklist.conf in both 10.04 and 12.04:

# low-quality, just noise when being used for sound playback, causes
# hangs at desktop session start (Ubuntu: #246969)
blacklist snd_pcsp

# ugly and loud noise, getting on everyone's nerves; this should be done by a
# nice pulseaudio bing (Ubuntu: #77010)
blacklist pcspkr

The article you linked to mentions this as one of the prerequisites, though it would help if it mentioned that it's disabled by default on Ubuntu.
Add a comment...