DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 23rd March 2009
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 506
Thanked 39 Times in 39 Posts
Default Beep Beep!

I usually use FreeBSD with a sound card, but there still were system sounds (like beeps) that were transmitted by the case loudspeaker. Well, my current box has no case speaker, and while I could add one, it seems silly when there is a much better audio system attached.

How do I redirect system audio to the sound card?

To be clear, there are no issues with audio playback of any sort, including sounds from Gnome (such as they are).
Reply With Quote
  #2   (View Single Post)  
Old 24th March 2009
jb_daefo jb_daefo is offline
Package Pilot
 
Join Date: May 2008
Posts: 197
Thanked 5 Times in 5 Posts
Default

no time to check, but I would investigate /yell/ and /beep/ (in /audio/)
__________________
using /LOOKAT/ with /var/db/pkg files and portmaster/aliases/pipes/find/grep to meteorically speedup port upgrades/installs...
Reply With Quote
  #3   (View Single Post)  
Old 24th March 2009
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 506
Thanked 39 Times in 39 Posts
Default

Sorry, but you have to be a bit less cryptic for me to understand your comment.
Reply With Quote
  #4   (View Single Post)  
Old 24th March 2009
indiocolifa indiocolifa is offline
Real Name: Hernán Di Pietro
UnixUser
 
Join Date: Mar 2009
Location: La Plata
Posts: 17
Thanked 0 Times in 0 Posts
Default

I simply turn off the TCSH shell beep with

set nobell
Reply With Quote
  #5   (View Single Post)  
Old 24th March 2009
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 506
Thanked 39 Times in 39 Posts
Default

Ahem. The bell is off because there is no case speaker. I wish to turn it *on*.
Reply With Quote
  #6   (View Single Post)  
Old 24th March 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Quote:
Originally Posted by DrJ View Post
Ahem. The bell is off because there is no case speaker. I wish to turn it *on*.
The problem is that the PC speaker is handled independently of the audio framework..

I did find an old discussion on the FreeBSD mailing list, and a kernel patch designed to redirect console beep events to a special daemon.

The link posted in the reply to that question was moved here.

It's for FreeBSD 4x.. not sure of any viable solution for newer versions of FreeBSD. (..or {Open,Net}BSD)

Hope that helps, apologies for not being able to find something newer..
Reply With Quote
  #7   (View Single Post)  
Old 24th March 2009
jb_daefo jb_daefo is offline
Package Pilot
 
Join Date: May 2008
Posts: 197
Thanked 5 Times in 5 Posts
Default

maybe the ports /yell/ or /beep/ can output to a sound card? ""
Is what I meant.
__________________
using /LOOKAT/ with /var/db/pkg files and portmaster/aliases/pipes/find/grep to meteorically speedup port upgrades/installs...
Reply With Quote
  #8   (View Single Post)  
Old 24th March 2009
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

the audio/yell program just opens /dev/speaker and writes stuff out to it; as far as I know the speaker(4) driver is for the PC's system beeper (which DrJ is missing). I'm not sure about audio/beep but the description sounds like the same thing.


Although I honestly don't know how you could stand that darn thing DrJ, I can only think of 2 ways to do what you want.

0. make programs use the sound system instead of the PCs speaker thing; for example setting stuff to call `mplayer sndbite.ogg` to emit the beep.

1. find out how the system interfaces with the speaker (I assume by reading the speaker drivers source code), and replace it with a compatible interface that instead invokes the sound card or sound system software (e.g. esd) in place of the PC hardware; that may have to be custom coded if no one else has made one publicly available, and I don't know of anyone who has.


my advice: if you want something like vi to beep, and don't feel like touching C code to work around it -- just stick in the hardware (I assume you could do it easily, circumstances permitting).
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #9   (View Single Post)  
Old 24th March 2009
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 506
Thanked 39 Times in 39 Posts
Default

Quote:
Originally Posted by TerryP View Post
my advice: if you want something like vi to beep, and don't feel like touching C code to work around it -- just stick in the hardware (I assume you could do it easily, circumstances permitting).
Yes, it is mainly for vi, and I don't like setting the screen to flash (yuck!). The hardware is a few bucks and not hard to do, but I really hate to add hardware to solve a seemingly simple software problem. If it is this involved, well, then the few bucks and a bit of silicon adhesive is the better route.
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Beep or visual signal after booting OpenBSD/sparc64 hansivers OpenBSD General 10 20th September 2009 04:08 PM
Beep on startup? matt Programming 1 16th July 2008 08:33 AM


All times are GMT. The time now is 12:35 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick