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?

link|improve this question

80% accept rate
feedback

migrated from serverfault.com Jul 1 '10 at 18:04

This question came from our site for system administrators and desktop support professionals.

1 Answer

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/default.pa.

link|improve this answer
Awesome! Thanks. – Norman Ramsey Nov 25 '09 at 20:37
1  
@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
feedback

Your Answer

 
or
required, but never shown

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