VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: System bell  (Read 2515 times)

roarde

  • Vectorian
  • ****
  • Posts: 610
  • move the needle
System bell
« on: September 29, 2013, 02:37:35 pm »

How do I get the system to execute 'play somesound.wav' (or some substitute) when the system bell (beep) is called?
Logged
Robert
VL 7.1 Light

overthere

  • Vectorian
  • ****
  • Posts: 1364
Re: System bell
« Reply #1 on: September 29, 2013, 03: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
Logged
Everything Is Relative

roarde

  • Vectorian
  • ****
  • Posts: 610
  • move the needle
Re: System bell
« Reply #2 on: September 29, 2013, 09: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.
Logged
Robert
VL 7.1 Light

overthere

  • Vectorian
  • ****
  • Posts: 1364
Re: System bell
« Reply #3 on: September 29, 2013, 11:09:00 pm »

does echo -en "\007" help
Logged
Everything Is Relative

roarde

  • Vectorian
  • ****
  • Posts: 610
  • move the needle
Re: System bell
« Reply #4 on: September 30, 2013, 12:27:41 pm »

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.
Logged
Robert
VL 7.1 Light

overthere

  • Vectorian
  • ****
  • Posts: 1364
Re: System bell
« Reply #5 on: September 30, 2013, 01: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, 02:16:55 pm by overthere »
Logged
Everything Is Relative