System audible beep

 
Thread Tools Search this Thread
Operating Systems Linux Slackware System audible beep
# 1  
Old 12-24-2010
System audible beep

I have tried everything with sounds on Slackware and after over a decade am at the end of it.
I have uncommented /sbin/modprobe pcspkr in rc.modules.
I have commented blacklist pcspkr in /etc/modprobe.d/blacklist.conf
I have set bell-style audible in /etc/inputrc
and I still can't get echo 007 or \a or ctrl-v,ctrl-G to produce a sound on the system speaker. It does beep during boot so it is working somewhere somehow. Can someone show me how to get bash echo to produce a beep from the system speaker?
# 2  
Old 12-24-2010
Quote:
Originally Posted by slak0
It does beep during boot so it is working somewhere somehow.
That's just the system POST beep.
Quote:
Can someone show me how to get bash echo to produce a beep from the system speaker?
First of all, you have to be logged into a local console for that to work. xterm or ssh won't cut it.

Second, your kernel has to be configured to use it. device drivers -> input device support -> miscellaneous devices -> <M> PC Speaker support which should produce CONFIG_INPUT_PCSPKR=m in your .config file.

Third, the module actually has to be loaded.
Code:
$ modprobe pcspkr

Fourth, depending on your system and soundcard, you may need to enable the pcspkr channel in your mixer settings.

You might also try installing the beep utility. While this won't fix your terminals, you can use it to at least confirm the kernel is using the PC speaker...
# 3  
Old 12-25-2010
System audible beep

Corona688 THANX. The problem is with #1 apparently since I had taken care of 2-3. So are you saying for #1 that I can only invoke a beep from a virtual console using echo command and must use xset in an X-window?
I have (#4?) P C Speak unmuted and set to 80% in alsamixer -c2 is that what you meant by enabling the channel?
# 4  
Old 12-26-2010
Quote:
Originally Posted by slak0
Corona688 THANX. The problem is with #1 apparently since I had taken care of 2-3. So are you saying for #1 that I can only invoke a beep from a virtual console using echo command and must use xset in an X-window?
xterms are virtual consoles too. But only a raw text terminal, like you get with ctrl-alt-f1, is handled directly by the kernel in a way to enable console beeps by default afaik.

If you have working PC beeps this should work from any console: sudo echo -e '\a' > /dev/console

The beep utility I suggested would also work.

There may also be ways to tell X to use console beeps that I'm unaware of.
Quote:
I have (#4?) P C Speak unmuted and set to 80% in alsamixer -c2 is that what you meant by enabling the channel?
Yes.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

System hangs (freezes) on system bell/beep

I am running OpenIndiana development version oi_148 32-bit on a seven-year-old Dell Inspiron 8600. Seems to be running fine except for one particular annoyance: It freezes whenever a system bell/beep plays. I have mitigated this by turning the system bell off in gnome-terminal, which I use... (3 Replies)
Discussion started by: DeadBadger
3 Replies

2. Ubuntu

I can't make my pc speakers beep

I don't know why, but when I issue echo -e '\a' or beep. I get only some sound, set in my OS (Ubuntu Karmic). I tried to run these on Lenovo Y510KA and Lenovo S10-2. Is there another way to make my laptops beep?.. (3 Replies)
Discussion started by: Sapfeer
3 Replies

3. UNIX for Dummies Questions & Answers

How to get ride of the BEEP in Solaris

Hello, I did a search on this forum and a global search to try and find out how to disable that annoying beep that you get when you mistype or hit the esc key in VI and i didn't have that problem last week. I'm using Solaris and bash shell and i've put these commands into my .profile file: ... (2 Replies)
Discussion started by: bobk544
2 Replies

4. Linux

the old question: how to disable the beep ?

still the old question (didn't find the satisfied answer in the forum) how to disable the awful beep in linux workstation? i tried this: /etc/inputrc -〉set bell-style none but it can only disable the beep whenever you input wrongly in the console. in some othercases, i still can hear... (1 Reply)
Discussion started by: princelinux
1 Replies

5. UNIX for Dummies Questions & Answers

How do I make 'tail -f' beep?

Hi, I'm moniroting numerous logs in my new job (tail -f JOE.log | grep ALERT) and I want to be able to make the Terminal BEEP when ever something comes up. Is this something I can do easily? Any help with the above (or an alternative) would be appreciated, so I can stop staring at the... (1 Reply)
Discussion started by: the_big_v
1 Replies

6. UNIX for Dummies Questions & Answers

Need to shut off beep

I need to know how to turn off the beep in my unix environment. I tried with the Common Desktop Environment on solaris but it didn't work. I used to know the environment variable to set but I have forgotten it. (1 Reply)
Discussion started by: jpedicone
1 Replies

7. HP-UX

Turn off awful beep

. (1 Reply)
Discussion started by: Driver
1 Replies

8. UNIX for Dummies Questions & Answers

no beep in shell??

hiho, who has an idea how i can tell my shell that it should not beep on errors or when i'm using the TAB in bash to complete noone needs to know when i make mistakes ;-) solaris 9 (SPARC) bash 2.05 thx a lot Preßy (1 Reply)
Discussion started by: pressy
1 Replies
Login or Register to Ask a Question