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;
  • 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
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
    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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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