Page 1 of 1

[Request]PC Speaker Audio Driver

Posted: Mon 22 Jun 2009, 12:24
by ecomoney
http://www.geocities.com/stssppnn/pcsp.html

Sound is very much part of the "online experience" nowadays. Many old computers from offices etc dont have a dedicated sound card. There is however a way of getting mp3's and such to play via the pc speaker...not with great quality so I understand but they play. It would be great as a "last resort".

Apparently the pc speaker driver is included with kernels > 2.6.26, but Im interested n getting it working with the 2.6.18.1 kernel used by 2 series puppies.

Has anyone any experience with this driver, or could create a package for it?

Posted: Mon 22 Jun 2009, 14:19
by jamesbond
Out of curiosioty, I tested this (happen to have have a kernel 2.6.28 thanks to kirk - so module is already compiled in).

Believe me - if you want to listen to mp3, save your ears from high-frequency damage and get a soundcard - any soundcard.

cheers!

EDIT: I tested it on an nForce chipset, which the module author already warns of a very bad output. YMMV.

Posted: Mon 22 Jun 2009, 15:30
by ecomoney
I think a lot of the reason would be the extremely small size of the pc speaker, not good for bass response. I have heard you can rig it up to a bigger speaker for better bass.

Another reason I wish to use it is as a notification when a computer setup is complete...the "beep" bash command isnt included in puppy either.

Posted: Mon 22 Jun 2009, 15:43
by rcrsn51
To get Puppy to beep, use

Code: Select all

echo -e "\007"

Posted: Tue 23 Jun 2009, 12:23
by ecomoney
I think you can probably work out what Im needing the PC speaker for rcrsn51 :wink: :) Thank you yet again for another contribution to this.

There is also the "beep" command, which is currently not installed in Puppy Linux

Like in this tutorial
http://www.developer.com/open/article.p ... 0_631191_1

the "beep" package is here, I even had a go at compiling it ( :shock: ) but failed. :cry:

http://sourceforge.net/projects/freshmeat_beep/

Posted: Tue 23 Jun 2009, 14:07
by rcrsn51
Here is a beep PET. Contrary to what the tutorial above says, you need to run the command like this:

Code: Select all

beep -f 880 -l 500  (880 Hz for 500 ms)
beep -f 880 -l 500 -r 3 (repeat three times)
beep -f 880 -l 500 -n -f 440 -l 800 (play two tones)
Then you can start playing around:

Code: Select all

#!/bin/sh
for N in 261.6 293.7 329.6 349.2 392.0 440.0 493.9 523.2; do
  beep -f $N -l 500
done

Posted: Tue 23 Jun 2009, 15:05
by ecomoney

Code: Select all

beep -f 440 -l  250
beep -f 1     -l  10
beep -f 660 -l  125
beep -f 880 -l 250
beep -f 660 -l 100
beep -f 1     -l  40
beep -f 880 -l 300
Heres the "Puppy Power" beep sequence as a BASH script, from here.. Since its also the bugle call for "advance" it will not be copyright.

Guess we all have our talents :wink:

Moving on....a PC speaker driver would still be useful enough to enough people to need it to be available.