[Request]PC Speaker Audio Driver

Problems and successes with specific brands/models of computer audio hardware
Post Reply
Message
Author
User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

[Request]PC Speaker Audio Driver

#1 Post 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?
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#2 Post 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.
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#3 Post 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.
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#4 Post by rcrsn51 »

To get Puppy to beep, use

Code: Select all

echo -e "\007"

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#5 Post 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/
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#6 Post 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
Attachments
beep-1.2.2-i486.pet
(3.38 KiB) Downloaded 591 times

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#7 Post 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.
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

Post Reply