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?
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.
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...
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?
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?
I am running OpenIndiana development version oi_148 32-bit on a seven-year-old Dell Inspiron 8600.
Seems to be running fine except for one particular annoyance: It freezes whenever a system bell/beep plays.
I have mitigated this by turning the system bell off in gnome-terminal, which I use... (3 Replies)
I don't know why, but when I issue echo -e '\a' or beep. I get only some sound, set in my OS (Ubuntu Karmic). I tried to run these on Lenovo Y510KA and Lenovo S10-2. Is there another way to make my laptops beep?.. (3 Replies)
Hello,
I did a search on this forum and a global search to try and find out how to disable that annoying beep that you get when you mistype or hit the esc key in VI and i didn't have that problem last week.
I'm using Solaris and bash shell and i've put these commands into my .profile file:
... (2 Replies)
still the old question (didn't find the satisfied answer in the forum)
how to disable the awful beep in linux workstation?
i tried this: /etc/inputrc -〉set bell-style none
but it can only disable the beep whenever you input wrongly in the console. in some othercases, i still can hear... (1 Reply)
Hi,
I'm moniroting numerous logs in my new job (tail -f JOE.log | grep ALERT) and I want to be able to make the Terminal BEEP when ever something comes up.
Is this something I can do easily?
Any help with the above (or an alternative) would be appreciated, so I can stop staring at the... (1 Reply)
I need to know how to turn off the beep in my unix environment. I tried with the Common Desktop Environment on solaris but it didn't work. I used to know the environment variable to set but I have forgotten it. (1 Reply)
hiho,
who has an idea how i can tell my shell that it should not beep on errors or when i'm using the TAB in bash to complete
noone needs to know when i make mistakes ;-)
solaris 9 (SPARC)
bash 2.05
thx a lot
Preßy (1 Reply)