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.
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
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.
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.
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.
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.