PDA

View Full Version : [SOLVED] Missing my beep (again)



silbar
September 21st, 2012, 03:58 AM
Greetings,

A little over a year ago I posted

In the upgrade to Ubuntu 10.04 LTS I seem to have lost my ability to beep within a script. Other sounds seems to work fine, as in videos on YouTube or with Rhythmbox. Re-installing the beep app in Synaptic did not bring it back. Any clues?
and got no responses to that posting. So, I lived without beeps.

I have now upgraded to Ubuntu 12.04 LTS and I have the same problem: no beep. Any enlightenment out there? Does it have something to do with my sound card? If I go into System Settings > Sound > Sound Effects, I get no audio response from any of the alerts. I do get sound from radio stations and video or Flash clips.

papibe
September 21st, 2012, 04:03 AM
Hi silbar.

Could you post the script code you are using to beep?

Regards.

stinkeye
September 21st, 2012, 08:43 AM
The pc speaker is blacklisted.
See HERE (http://ubuntuforums.org/showpost.php?p=12035806&postcount=1).
Beep works here after editing /etc/modprobe.d/blacklist.conf

silbar
September 21st, 2012, 06:43 PM
Hi silbar.

Could you post the script code you are using to beep?

Regards.

For what it's worth:


#!/bin/sh
# script for copying tar file to Jaz disk

ls -l /home

if [ -d /media/4B40-1A08/ ]; then
echo 'The disk is present'
else
echo 'Disk not present, please insert'
exit
fi

if [ -f /media/4B40-1A08/silbar.tar.gz ]; then
echo 'The tar file is there'
rm -f /media/4B40-1A08/silbar.tar.gz
fi

cp /home/silbar.tar.gz /media/4B40-1A08
wait
ls -l /media/4B40-1A08
umount /media/4B40-1A08
beep

silbar
September 21st, 2012, 06:57 PM
The pc speaker is blacklisted.
See HERE (http://ubuntuforums.org/showpost.php?p=12035806&postcount=1).
Beep works here after editing /etc/modprobe.d/blacklist.conf

And that fixes it! I can beep again. Thank you.