Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

When I run this script I don't here any beeps - I suppose it is because there is no speaker attached to the mainboard.
Is there a way to redirect this beeps to the "normal" audio?

#!/usr/bin/env perl
use warnings;
use strict;

$|++;
my $beep = "\07";

print $beep;
sleep 2;
print $beep;
sleep 2;
print $beep;
share|improve this question
    
I'm unsure, but I suspect the handling of the Bell character is terminal emulator-specific... If you're using Perl, however, there might be other ways. –  sr_ Apr 25 '12 at 7:39
add comment

1 Answer 1

Load the snd-pcsp module to route beeps to the Alsa subsystem. This module is blacklisted by many distributions because it can be annoying. Comment out blacklist snd-pcsp from /etc/modprobe.conf or /etc/modprobe.d/*.

share|improve this answer
1  
I'd like to accept your answer, but I didn't find snd-pcsp on my system (openSUSE 12.1) so I couldn't test this solution. –  sid_com Apr 26 '12 at 7:49
add comment

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.