Main Topics
Browse All TopicsI have just installed Mandriva 2009.1 on a couple of PCs and the PC speaker / system beep is not working.
When I run:
echo -e "\a"
in an xterm or konsole there is no beep.
lsmod shows that the pcspkr module is installed:
pcspkr 2268 0
The speaker beeps on startup and shutdown.
"xset q" says:
bell percent: 100 bell pitch: 400 bell duration: 50
"xrdb -query" says:
XTerm*audibleBell: true
kmixer has the PC Speaker volume at 100%
Clicking on the "test" button in:
System Settings -> Notification -> System bell
does produce a beep.
beep-1.2.2-9mdv2009.0 installed via urpmi does not work (even as root)
-- it seems to be writing to /dev/tty0 instead of /dev/console
beep-1.2.2 compiled from source *does* work, but only when run as root
echo -e "\a" >/dev/console works as non-root
echo -e "\a" > $tty doesn't work
The machine is a Dell Dimension 4100, I have also reproduced the problem on a Dell Precision 380 using a live CD.
See: https://qa.mandriva.com/sh
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
gheist: Thanks for your suggestions. As I said above:
echo -e "\a"
(without any redirection) doesn 't work. $tty (not $TTY as you wrote) is the device file for the current terminal: for example, one of my xterms gives $tty the value /dev/pts/2. /dev/tty is another way to access the current terminal, so:
echo hello
echo hello >$tty
echo hello >/dev/tty
all echo "hello" on the current terminal.
Bug 45386 is about changes to sound-scripts which set the PC Speaker volume to zero by default. As I said above, I used kmixer to reset the PC Speaker volume to 100%.
In an attempt to track down the source of the problem, I downloaded
the source for xterm from here: http://invisible-island.ne
and compiled it and found to my surprise
that the beep worked correctly for my copy of xterm!
The problem appears to be with Mandriva's version of xterm (and konsole).
Fine with me.
try http://easyurpmi.zarb.org/
Business Accounts
Answer for Membership
by: gheistPosted on 2009-10-05 at 21:29:04ID: 25501891
Does it work with xterm without redirecting output to file defined by nonexisting
variable ($TTY should be the one)