WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Audio Beep on Completion of Boot-Up  (Read 6758 times)

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Audio Beep on Completion of Boot-Up
« on: March 20, 2011, 07:18:00 AM »
A headless TC machine is being planned.  Is there a simple way of producing multiple beeps from an on-board sounder/loudspeaker?  It is not essential to the running of the machine - simply to indicate the boot process has ended.  There will be no audio software installed (OSS/ALSA).
   

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Audio Beep on Completion of Boot-Up
« Reply #1 on: March 20, 2011, 07:48:12 AM »
Without OSS or alsa that would require the pcspkr module which does not appear to be enabled in kernel config.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: Audio Beep on Completion of Boot-Up
« Reply #2 on: March 22, 2011, 02:54:58 AM »
Without OSS or alsa that would require the pcspkr module which does not appear to be enabled in kernel config.
It will be interesting to learn the reason for its omission.  Is it recorded  somewhere?  Possibly, one of the development team might comment.  Is it due to the additional size etc?

A couple of suggestions why it might be worthwhile enabling sounder/beeper support
  • Core is interested in positioning itself within the embedded sector
  • As the popularity of the distro increases there may be a corresponding growth in the number of headless installations
 
« Last Edit: March 22, 2011, 02:57:33 AM by SamK »

Offline llondel

  • Newbie
  • *
  • Posts: 22
Re: Audio Beep on Completion of Boot-Up
« Reply #3 on: March 22, 2011, 03:13:44 AM »
Recompile the kernel or compile the module and add it in if you need it. I've added a few things  (and removed others) and repacked the initrd image, and now I have a few scripts to automate some parts of the process it's quite easy. You could probably add it as a tcz as well.

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: Audio Beep on Completion of Boot-Up
« Reply #4 on: March 22, 2011, 03:53:33 AM »
Recompile the kernel...
I try to stay with the standard base wherever possible and in this case activating the on-board beeper is helpful rather than essential to the headless unit.  It is really an enquiry about whether the reasons for it being disabled by default remain applicable as the distro matures.
   

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Audio Beep on Completion of Boot-Up
« Reply #5 on: March 22, 2011, 07:26:21 AM »
Quote
A couple of suggestions why it might be worthwhile enabling sounder/beeper support
Core is interested in positioning itself within the embedded sector
As the popularity of the distro increases there may be a corresponding growth in the number of headless installations

A completely arbitrary decision, since one of the first things I usually do on new systems is to disable the PC speaker. ;)

Will enable it in the next build, since there's now demand for it.
The only barriers that can stop you are the ones you create yourself.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Audio Beep on Completion of Boot-Up
« Reply #6 on: March 22, 2011, 08:53:14 AM »
Behold, the days of playing TOM BOMBEM: Merciless Marauding Malicious Marketers under TC with sound are near!
 ;D
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: Audio Beep on Completion of Boot-Up
« Reply #7 on: March 23, 2011, 03:12:21 AM »
...
Will enable it in the next build, since there's now demand for it.
Thanks.

Will this alone be able to produce a user specified number of beeps or will an extension be required generate them?  If the latter is anything available in the repo or within busybox?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Audio Beep on Completion of Boot-Up
« Reply #8 on: March 23, 2011, 07:03:51 AM »
You can beep from a shell, I can't remember the escape code though.
The only barriers that can stop you are the ones you create yourself.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Audio Beep on Completion of Boot-Up
« Reply #9 on: March 23, 2011, 11:05:22 AM »
echo -en "\007"

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Audio Beep on Completion of Boot-Up
« Reply #10 on: March 23, 2011, 12:00:28 PM »
There is small program, beep which can do the job:

http://johnath.com/beep/

Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Audio Beep on Completion of Boot-Up
« Reply #11 on: March 23, 2011, 12:38:27 PM »
There is also a busybox applet 'beep' (not enabled in TC busybox config):

Usage: beep -f FREQ -l LEN -d DELAY -r COUNT -n
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: Audio Beep on Completion of Boot-Up
« Reply #12 on: March 24, 2011, 02:23:50 AM »
Thanks for the suggestions.

From the perspective of being most obvious/easy to use, the busybox applet is potentially a good fit.  Perhaps it might be considered for possible inclusion at a future date.