Unix/Linux Go Back    


Slackware The Official Release of Slackware Linux by Patrick Volkerding is an advanced Linux operating system, designed with the twin goals of ease of use and stability as top priorities.

System audible beep

Slackware


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 12-24-2010
slak0 slak0 is offline
Registered User
 
Join Date: Dec 2009
Last Activity: 16 December 2012, 4:48 AM EST
Posts: 66
Thanks: 2
Thanked 2 Times in 2 Posts
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?
Sponsored Links
    #2  
Old Unix and Linux 12-24-2010
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 24 February 2017, 3:55 PM EST
Location: Saskatchewan
Posts: 21,938
Thanks: 1,050
Thanked 4,099 Times in 3,798 Posts
Quote:
Originally Posted by slak0 View Post
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...
Sponsored Links
    #3  
Old Unix and Linux 12-25-2010
slak0 slak0 is offline
Registered User
 
Join Date: Dec 2009
Last Activity: 16 December 2012, 4:48 AM EST
Posts: 66
Thanks: 2
Thanked 2 Times in 2 Posts
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 Unix and Linux 12-26-2010
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 24 February 2017, 3:55 PM EST
Location: Saskatchewan
Posts: 21,938
Thanks: 1,050
Thanked 4,099 Times in 3,798 Posts
Quote:
Originally Posted by slak0 View Post
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.
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to get ride of the BEEP in Solaris bobk544 UNIX for Dummies Questions & Answers 2 03-10-2008 11:43 AM
How do I make 'tail -f' beep? the_big_v UNIX for Dummies Questions & Answers 1 10-13-2005 06:47 PM
Need to shut off beep jpedicone UNIX for Dummies Questions & Answers 1 08-31-2005 03:33 PM
no beep in shell?? pressy UNIX for Dummies Questions & Answers 1 08-08-2003 10:56 AM



All times are GMT -4. The time now is 10:40 PM.