2

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;
1
  • 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, 2012 at 7:39

1 Answer 1

2

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/*.

1
  • 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, 2012 at 7:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .