Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 serverfault.com Jul 1 '10 at 18:04

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

1 Answer 1

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.

share|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

Your Answer

 
discard

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.