LinuxQuestions.org
Review your favorite Linux distribution.
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 05-05-2009, 11:39 AM   #1
wilson47
Member
 
Registered: Jan 2009
Posts: 50

Rep: Reputation: 15
Make system bell/beep play through sound card


Hello everyone,

My question arises out of the fact that for whatever reason, my internal pc speaker does not function. See here for further details about that http://www.linuxquestions.org/questi...n-1420-722983/ .

I would really like to have some sort of "system bell", however, and I am curious if it is possible to have the system bell instead play a .wav file or something through my sound card which functions. Is it possible to convince my computer that my regular speakers are both the internal pc speaker and the normal ones?

I really have googled around on this one, and the majority of posts are trying to eliminate the bell.
Thank you very much for your continued assistance!
Glen
 
Old 05-05-2009, 12:03 PM   #2
radu124
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Rep: Reputation: 1
System bell

In order to get the system bell you need to have the pcspkr kernel module installed (which is usually the case). Personally I remove that one as it annoys the hell out of me, but I guess it's a matter of preference.

Of course, that only works if you have a physical speaker (or, on most integrated recent sound cards, if the output of the tone generator is connected to the sound card). In that case you also need to unmute and set the volume level of the appropriate entry.

You may need to dig through the settings of your particular mixer as some mixers hide some less used settings by default.
 
Old 05-05-2009, 12:03 PM   #3
wilson47
Member
 
Registered: Jan 2009
Posts: 50

Original Poster
Rep: Reputation: 15
Sorry, I just realized that it is important to mention that I do not use any GUI. I am also using Slackware 12.2 and Ubuntu 8.10.
 
Old 05-05-2009, 12:10 PM   #4
wilson47
Member
 
Registered: Jan 2009
Posts: 50

Original Poster
Rep: Reputation: 15
Thanks for the reply! I really appreciate it. I have checked those configurations, and everything seems to be properly configured. The real insult to injury is that the internal speaker functions properly with the system bell after a pm-suspend until i change anything in alsamixer. Things are explained more in depth in the thread I posted above.

Is there anyway to have a daemon running in the background that realizes the system has attempted to make a system beep, and then plays something with aplayer? It would be much better I think if there was some option in setterm or something, but I haven't had luck with that.
 
Old 05-05-2009, 12:32 PM   #5
radu124
LQ Newbie
 
Registered: Apr 2009
Posts: 7

Rep: Reputation: 1
Alsamixer can control the volume of the "PC speaker" when the output of the speaker is connected to the soundcard (I assume this is done internally, as there used to be another chip generating the tone, now they are all integrated into the same chip).

Normally you should have an entry in alsamixer for mute/volume level of the pc speaker. If not, what you may try is to specify a sound card model when you load the module responsible for your sound card.

you can usually do this with

rmmod snd-hda-intel
modprobe snd-hda-intel model=ref

(I'm assuming this is correct for the laptop model you have)
You should also include this in your startup scripts

in Ubuntu you can find them in /etc/modprobe.d/alsa-base.conf
under Slackware it might be:
/etc/modprobe.conf
 
Old 05-05-2009, 03:17 PM   #6
wilson47
Member
 
Registered: Jan 2009
Posts: 50

Original Poster
Rep: Reputation: 15
I tried your suggestion with the rmmod and modprobe. I did get an extra slider bar in alsamixer, but still no sound. I even edited those files and tried a restart, but it didnt help.

I also found a kernel module called "beep" which creates a device called /dev/beep to play the system bell through alsa or something. I was able to get it installed on Ubuntu, but not on Slackware. I kept getting an error that seems to mean I don't have the headers installed, but I sure seem to. Even after changing the path to where they were, /usr/include/linux, this didn't work. Are those actually the headers? At any rate, the daemons they provided didn't work in Ubuntu. This is getting rather frustrating!

The beep program I mentioned can be found here: http://www.carcosa.net/jason/software/beep/ . Any help on anything would be great... Thanks so much
 
  


Reply



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
System Beep No Sound Sauls Linux - Newbie 4 08-21-2008 06:06 AM
Beep/Bell in computer with no speaker crxssi Linux - Hardware 2 01-05-2007 09:01 PM
route system bell (system beep) through ALSA... mr.v. Linux - Software 1 07-03-2006 07:26 AM
System bell but no sound __spc__ Linux - Hardware 2 03-02-2006 12:59 AM
No sound system bell-9.2 akihandyman Mandriva 1 02-11-2004 06:34 PM

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

All times are GMT -5. The time now is 11:56 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