Please support VectorLinux!

Author Topic: System bell  (Read 2443 times)

roarde

  • Vectorian
  • ****
  • Posts: 584
  • move the needle
System bell
« on: September 29, 2013, 01:37:35 pm »
How do I get the system to execute 'play somesound.wav' (or some substitute) when the system bell (beep) is called?
Robert
VL Light RC 1.2

overthere

  • Vectorian
  • ****
  • Posts: 1311
Re: System bell
« Reply #1 on: September 29, 2013, 02:52:30 pm »
Are you wanting to do this in a bash script (maybe echo -en ""?) the beep needs to be turned on (in a terminal xset -b?) without a sound card you would need the pc speaker driver, not so good quality. Sorry
Everything Is Relative

roarde

  • Vectorian
  • ****
  • Posts: 584
  • move the needle
Re: System bell
« Reply #2 on: September 29, 2013, 08:08:58 pm »
I'm on a laptop, no physical PC speaker.

If 'echo -en "\a"' would work, that would solve most if not all of the problem. It doesn't work.
Robert
VL Light RC 1.2

overthere

  • Vectorian
  • ****
  • Posts: 1311
Re: System bell
« Reply #3 on: September 29, 2013, 10:09:00 pm »
does echo -en "\007" help
Everything Is Relative

roarde

  • Vectorian
  • ****
  • Posts: 584
  • move the needle
Re: System bell
« Reply #4 on: September 30, 2013, 11:27:41 am »
No. I'm pretty sure the issue is that there's presently nothing, either wired or configured, for use as the bell.

I think the basic question is whether there is something that can be configured to replace bell.
Robert
VL Light RC 1.2

overthere

  • Vectorian
  • ****
  • Posts: 1311
Re: System bell
« Reply #5 on: September 30, 2013, 12:41:57 pm »
If the software thinks there is a pc speaker perhaps it needs to be blacklisted?

Have you seen this, appears to be some code for a software beep

http://www.carcosa.net/jason/software/beep/
« Last Edit: September 30, 2013, 01:16:55 pm by overthere »
Everything Is Relative