Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.