LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-19-2004, 05:41 PM   #1
zimon
Member
 
Registered: Sep 2004
Posts: 42

Rep: Reputation: 16
How to redirect console beep with ALSA to a soundcard?


How to redirect console beep with ALSA to a soundcard?

Those ^A's (Ctrl+A) alarms, which beeps on PC-speaker, how one redirects that to some *.wav or *.ogg file, or just "beep" played through ALSA?
 
Old 09-19-2004, 10:25 PM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

in kernel config there is one option in the kernel of

device driver---->input device support---->PC Speaker support

look out there,if u get ur support

regards
 
Old 09-20-2004, 06:14 AM   #3
zimon
Member
 
Registered: Sep 2004
Posts: 42

Original Poster
Rep: Reputation: 16
Quote:
Originally posted by masand
hi there

in kernel config there is one option in the kernel of

device driver---->input device support---->PC Speaker support

look out there,if u get ur support

regards
OS is Fedora 2, and yes, there is pcspkr.ko module.
I did # modprobe pcspkr
Syslog got this:

Sep 20 14:08:40 localhost kernel: input: PC Speaker
Sep 20 14:08:41 localhost udev[8990]: configured rule in '/etc/udev/rules.d//50-udev.rules' at line 25 applied, 'event2' becomes 'input/%k'
Sep 20 14:08:41 localhost udev[8990]: creating device node '/udev/input/event2'

What then? How do I now redirect all beeps which would go to PC-speaker to go through soundcard instead?

(Just to make sure, I do not mean to use PC-speaker as a soundcard, but rather use soundcard as a PC-speaker also)
 
Old 10-04-2004, 06:17 PM   #4
zimon
Member
 
Registered: Sep 2004
Posts: 42

Original Poster
Rep: Reputation: 16
Anyone any ideas?
There used to be some way, other than connecting wires inside the PC-case from PC-speaker to a soundcard, but I seem not to find the page with Google or otherwise anymore.
 
Old 10-16-2004, 06:58 AM   #5
deadfee7
LQ Newbie
 
Registered: Oct 2004
Posts: 1

Rep: Reputation: 0
Two steps
* Find some way for the kernel to send all pc speaker activity to a userland program
* find a program that can play sound.

I found this really old patch (1996)
http://www.ibiblio.org/pub/Linux/ker...beep.0.0.1.tgz



I'm most interested in disable pc speaker, so this is how to do it on the VTs (anno 2001 2.4.4):
http://www.ussg.iu.edu/hypermail/lin...05.0/0696.html

In the same thread they say:
Quote:
Userspace problem, userspace fix.
setterm -blength 0 (text)
xset b 0 (X11)

Last edited by deadfee7; 10-16-2004 at 08:39 AM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to redirect the soundcard output to a file? jr0 Linux - General 2 10-31-2005 06:29 AM
How do I beep PC speaker without a console? PFudd Linux - Hardware 1 08-30-2005 06:52 PM
FC3 no console beep Soabirw Linux - Software 2 06-21-2005 04:22 PM
no sound at all no console beep nothing debian ensnaregod Linux - Hardware 5 08-09-2004 12:54 PM
Disable the console beep? csvke Linux - General 6 03-01-2004 04:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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