LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-04-2007, 09:12 AM   #1
crxssi
Member
 
Registered: Apr 2005
Location: USA
Distribution: Mageia,Fedora,RHEL,CentOS
Posts: 95

Rep: Reputation: 16
Beep/Bell in computer with no speaker


This is not a question but an answer. Thought I would share what I learned incase someone else runs into this issue:

Some programs we use require the BELL (BEL) function. This is the ancient teletype bell that rings when a ^G is sent to a terminal emulator.

Under Linux, you can tell if yours works by pressing Control-G in an Xterm. If you hear a beep- it works. Normally this used to be done through the "PC SPEAKER" which is a separate speaker in the computer. Under KDE/Gnome, there are functions to reroute this to the Linux sound system to simulate the bell.

But in our environment, we don't use KDE/Gnome, we use thin clients talking to a remote icewm. The solution on most of the machines was easy- just load the "pcspkr" kernel module and wham, you will hear beeps again.

But on the new Shuttle machines, they have no speaker or even connection for one. So I had a problem. Fortunately, I was not the only one with such a problem- and the solution was found on this site:

http://gentoo-wiki.com/HOWTO_Virtual_PC_Speaker

Which directed me to this site:

http://www.carcosa.net/jason/software/beep/

There is a kernel driver called "beep" that compiled perfectly under Mandriva 2007.0. It creates a /dev/beep device that a (supplied) daemon can use to play sounds (with aplay) when a BEL occurs. I
already sent the author Email thanking him.
 
Old 01-05-2007, 06:29 PM   #2
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
There is also a visual beep that inverts the screen.
 
Old 01-05-2007, 09:01 PM   #3
crxssi
Member
 
Registered: Apr 2005
Location: USA
Distribution: Mageia,Fedora,RHEL,CentOS
Posts: 95

Original Poster
Rep: Reputation: 16
True, of course, that only inverts that one window, though... and doesn't do much good when not looking at the screen and for non xterm programs that ring the bell
 
  


Reply

Tags
beep, bell, driver, icewm, kernel, module, shuttle, speaker


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make pc speaker beep in slackware vrillusions Linux - Hardware 5 03-02-2010 10:15 PM
"set bell-style none" won't stop my internal speaker from beeping Lokathor Debian 7 11-26-2005 01:52 PM
obsd: constant pc speaker beep with gigabyte board Fonk *BSD 0 09-26-2005 03:07 AM
How do I beep PC speaker without a console? PFudd Linux - Hardware 1 08-30-2005 06:52 PM
Incredibly annoying pc speaker beep on error in MySql in Windows XP nazdrowie Programming 2 07-15-2005 01:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration