LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-17-2006, 03:38 PM   #1
bluethumb
Member
 
Registered: Jan 2006
Distribution: RHEL 4, Scientific Linux, Centos, Ubuntu
Posts: 58

Rep: Reputation: 15
Post No gnome terminal bell


It's fairly easy to turn off the gnome terminal bell. I'm frustrated trying to turn it on.

We have 4 boxes running RHEL or Scientific Linux. On 3 of them, the gnome terminal bell doesn't beep. On the other one it does. This may seem trivial, but some of the users are annoyed. They have come to depend on it as an alert signal. It appears that the terminal beep, unlike all the other sounds, is supposed to come from the internal speaker or perhaps a buzzer on the motherboard. (The KDE terminal beep seems to come through the sound card, but everybody likes gnome.)

I can try to activate it by preferences-->sound-->System Bell. There's a checkbox for "audible bell". On 3 machines nothing happens. On the other one it does what you would expect. The same window has a check box for a "visual bell". This works as expected. On all four machines /etc/inputrc has the line
#set bell-style none
already commented out.

These machines are all different hardware. Three of them are Dells of various ages: a Dimension L800CXE, a Precision 340, and a new Optiplex GX620. Only the GX620 beeps properly. I'm pretty sure all of these have internal speakers. The fourth box is custom-made with a Tyan motherboard. It came without an internal speaker, so I installed one and added the jumper to enable the beep, according to the motherboard manual. No luck. The BIOS has no setting for this.

I've run out of ideas. Does anyone have any fresh ones?
 
Old 01-17-2006, 04:05 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I don't know about RHEL or Scientific Linux but it's not loaded by default in FC4.

Here are my notes:

Turn on system bell: Even when /etc/inputrc is commented out.
modprobe -l pcspkr
modprobe pcspkr
echo "pcspkr" >> /etc/modules
Note: Make sure the bell is enabled in terminal settings.
 
Old 01-17-2006, 05:11 PM   #3
bluethumb
Member
 
Registered: Jan 2006
Distribution: RHEL 4, Scientific Linux, Centos, Ubuntu
Posts: 58

Original Poster
Rep: Reputation: 15
Exclamation

Hot dog. Thanks. Loading pcspkr does the job. For some reason that module is loaded automatically on the one machine that does beep. I haven't figured out why.

Now I'm stuck on a more elementary problem. How to make pcspkr load automatically at boot time. These modern unices (2.6 kernel) have updated modprobe and I can't figure out how to make it do what I want. I have added things to /etc/modprobe.conf: the bare name of the module (as suggested), an alias, and an install command. Nothing works. It's probably something simple, but I haven't found it yet.
 
Old 01-17-2006, 05:38 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
They may not all have the same kernel version.

Didn't this part make it load at boot?

echo "pcspkr" >> /etc/modules
 
Old 01-17-2006, 05:46 PM   #5
bluethumb
Member
 
Registered: Jan 2006
Distribution: RHEL 4, Scientific Linux, Centos, Ubuntu
Posts: 58

Original Poster
Rep: Reputation: 15
Nope. I tried it, but /etc/modules is now ignored. The man pages for modprobe and modprobe.conf don't mention it. They say that the new, improved modprobe is so versatile that it can do anything.

Anyway, I had an idea. I put "modprobe pcspkr" into /etc/rc.local. That does the job. It's not as tidy as I would have liked, though.
 
Old 01-17-2006, 08:25 PM   #6
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
From man modprobe.conf , it would seem this line would work but, it doesn't ....
install pcspkr /sbin/modprobe

So, I got to looking around and saw a line in /etc/rcsysinit
Code:
# Load other user-defined modules
for file in /etc/sysconfig/modules/*.modules ; do
  [ -x $file ] && $file
done
So, I found a file in /etc/sysconfig/modules/ called udev-stw.modules .
Don't know if it's proper and what-not but, I just added it to the loop and she beeped at me on boot and nothing seems to have crashed.
Code:
#!/bin/sh
for i in nvram floppy parport_pc parport lp pcspkr ; do
        modprobe $i >/dev/null 2>&1
done
lsmod |grep pcspkr
pcspkr 3653 0
 
Old 07-24-2008, 04:05 AM   #7
fleachy
LQ Newbie
 
Registered: Jul 2008
Posts: 1

Rep: Reputation: 0
Cool Double negative sentences are tedious!

Thanks for the quick resolution post!

Last edited by fleachy; 07-24-2008 at 04:16 AM. Reason: Wrongly interpretated
 
  


Reply

Tags
bell, gnome



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
centos 4.2: terminal bell works remotely, but not locally hawarden Linux - General 2 10-28-2005 02:39 PM
Linux Terminal Bell noeffred Linux - General 1 10-25-2005 02:29 PM
terminal configuration: font, cursor, bell, screensvr;dhcpcd introuble Linux - General 3 09-09-2005 03:39 AM
aterm: display bell and audio bell hallamigo Linux - Software 4 05-02-2004 12:00 AM
Terminal Bell K3yMaster Linux - General 0 10-01-2003 12:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:34 AM.

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