Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The X window system provides the command

xset b on

to turn on the 'bell' that rings when Ctl-G is sent to an xterm, for example. Unfortunately, the default seems to be to try to play the bell on the PC speaker, which I don't have on my hardware.

How can I get X to play the bell on the default audio device, like /dev/dsp or something of that nature?

share|improve this question

migrated from Jul 1 '10 at 18:04

This question came from our site for system and network administrators.

up vote 3 down vote accepted

pulseaudio has an option to do this:

pulseaudio --daemonize  # If you aren't already running it

pactl upload-sample /usr/share/sounds/generic.wav bell-windowing-system
pactl load-module module-x11-bell sample=bell-windowing-system

This can be globally enabled in /etc/pulse/

share|improve this answer
Awesome! Thanks. – Norman Ramsey Nov 25 '09 at 20:37
@NormanRamsey: Since this worked, accept the answer with the green checkmark next to the answer. – Wuffers Jan 25 '11 at 0:32
@Mark: unfortunately I haven't been able to get it to work reliably. As far as I can tell, pulseaudio is a festival of pain. – Norman Ramsey Feb 5 '11 at 5:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.