LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-17-2019, 10:30 AM   #1
Simeonitron
LQ Newbie
 
Registered: Apr 2019
Posts: 3

Rep: Reputation: Disabled
Old Busybox 1.12 need to enable Sound


Hello World!

I want to enable Sound on a old busybox 1.12 system.
This is a very minimal shell.

The Kernel is made without pcspkr support, but we have an sounddevice called intel8x0

I have downloaded an compiled beep.c but there is no pcspkr device, nothing happens.
When i boot knoppix, there is sound for sure.
Then i think beep is for pcspkr only, i can't use this.

Found information that echo -en '\007' generate a beep, but i dont know on which device.
I think this is for pcspkr too, and again i cant use ist

Now i found a basic audio device.
sound card 0 and check with amixer, the sound is @100% and its unmutet

i have no aplay, cause the alsa-utils are not available on the system.
there no speakter-test (even in alsa-utils)

What i need, is making a sound indication in any way.

anyone know a very simple way to make beep to default alsa card0?
 
Old 04-17-2019, 12:57 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Not Sure this is the right place to post this, I,ll get a mod to move it
 
Old 04-18-2019, 01:22 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
pc speaker has NOTHING to do with alsa sound!

you will have to install something that is able to play sound over alsa.
command line solutions include but aren't limited to aplay, play (part of sox).
 
Old 04-18-2019, 12:10 PM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
@Simeonitron,

Welcome to LQ.

We know that the speaker and sound circuitry can work because you hear sound when booting with Knoppix.

In this case you do not say what kernel or distribution you are using where you are having this problem.

You also don't list your system specifications.

Please respond and tell your fellow members what kernel or distribution you are running and more details on your system's specifications.

Otherwise your fellow members do not have enough information to be able to help you with this problem.

The question is also fine for the Newbie forum.

Last edited by rtmistler; 04-18-2019 at 06:12 PM.
 
Old 04-29-2019, 04:57 AM   #5
Simeonitron
LQ Newbie
 
Registered: Apr 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
News

Hello respected Community,

HW Specs:

Pentium M 1,6Ghz - 32Bit ONLY CPU!
512MB / 32MB Shared Memory
HDD 80GB IDE-Drive

OS Specs:
It is an old embedded System. May be totaly self compiled.


uname -a
Linux Host 2.6.20-prep #2 SMP from 2007 i686

The Bootloader is SYSLINUX


i can't find active pcspkr with modprobe

but i getting sshd to run. here is the lsmod:

Code:
~ $ lsmod
Module                  Size  Used by    Tainted: P
bttv                  158452  0
video_buf              22404  1 bttv
ir_common              28036  1 bttv
btcx_risc               7560  1 bttv
tveeprom               16400  1 bttv
vga2usb               786720  0
snd_intel8x0           29980  0
snd_hda_intel          20888  0
snd_hda_codec         132224  1 snd_hda_intel
snd_mpu401_uart        10752  0
snd_rawmidi            22400  1 snd_mpu401_uart
snd_seq_device          9996  1 snd_rawmidi
snd_ac97_codec         77476  1 snd_intel8x0
ac97_bus                6016  1 snd_ac97_codec
snd_pcm_oss            39968  0
snd_mixer_oss          17664  1 snd_pcm_oss
snd_pcm                60676  5 snd_intel8x0,snd_hda_intel,snd_hda_codec,snd_ac9                                                                                                                                                                                                                                             7_codec,snd_pcm_oss
snd_timer              21380  1 snd_pcm
snd                    42500  11 snd_intel8x0,snd_hda_intel,snd_hda_codec,snd_mp                                                                                                                                                                                                                                             u401_uart,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,sn                                                                                                                                                                                                                                             d_pcm,snd_timer
snd_page_alloc         12168  3 snd_intel8x0,snd_hda_intel,snd_pcm
gameport               16008  0
soundcore               9696  1 snd
sg                     33692  0
ide_scsi               19848  0
ext3                  116744  1
jbd                    52648  1 ext3
usblp                  15872  0
lp                     15048  0
parport_pc             24868  1
parport                31944  2 lp,parport_pc
tun                    13696  0
r8169                  29320  0
e1000                 179596  0
e100                   34820  0
8139too                26112  0
via_rhine              25612  0
mii                     8064  2 8139too,via_rhine
pl2303                 20868  0
usbserial              30056  1 pl2303
usbvideo               26116  0
compat_ioctl32          5120  2 bttv,usbvideo
videodev               27520  3 bttv,vga2usb,usbvideo
v4l2_common            23424  2 bttv,videodev
v4l1_compat            15876  1 videodev
uhci_hcd               24208  0
ehci_hcd               31636  0
cpufreq_ondemand       10636  0
button                 10768  0
ata_piix               16516  0
libata                 84760  1 ata_piix
sd_mod                 22400  0
scsi_mod              116396  4 sg,ide_scsi,libata,sd_mod
vfat                   15232  1
fat                    48156  1 vfat
intelfb                35628  1
i2c_algo_bit           10376  2 bttv,intelfb
i2c_core               19456  4 bttv,tveeprom,intelfb,i2c_algo_bit
~ $
~ $ modprobe pcspkr
modprobe: module pcspkr not found.
modprobe: failed to load module pcspkr
now i have ordered a new button with an led.
hope that i can switch the led with /sys/class/leds to do the inidcation that the system is working

anyone out there having a idea playing ANY sound without beep and without using aplay.c from the alsa utils

further information to alsa/amixer

Code:
~ $ amixer -v
amixer version 1.0.14rc2
i'll be back
 
Old 05-08-2019, 11:01 AM   #6
Simeonitron
LQ Newbie
 
Registered: Apr 2019
Posts: 3

Original Poster
Rep: Reputation: Disabled
News:

I think there is no possibility to do changes in this soundsystem.

pcspkr - no mod available (kernel maybe compiled without)
alsa - not implemented well on my system. Not able to use aplay. no other way to generate sound could be found.

Here is the new plan. back to LED indication. Like the Keyboard do (on my usb button the LED is similar to CapsLock LED)
and new problems

my system is very old. there is /sys/class/leds/ but there is nothing inside.

And here is the first question (pointing to older linux users)

Q1: When i booting into Kubuntu 19.04 there are some entries /sys/class/led like input17::capslock input17:numlock
i can do things like ...
echo "1" /sys/class/leds/input17::capslock/brightness to turn it on

On my busybox system:
Now i realize, the Button we used is indicating CapsLock (when i pressed the capslock button on my usb keyboard the USB Button LED inidcator switch on or off)

How older Linux Systems handle CapsLock?
Is there a very basic possibility to switch capslock on cli WITHOUT using /sys/class/led/???

Thank you!
 
Old 05-08-2019, 08:51 PM   #7
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
You seem to have the snd-*-oss things there. Except seq, but if you're not doing midi, moot. This makes available the OLD /dev/dsp0 sound device.

$ cat /dev/random > /dev/dsp0

Probably want to have ^C at the ready. Otherwise a media player (any media) player will do. aplay (alsa), play (sox), mplayer, ffplay, xine, totem, xmms, ... ... ... It might also help if the user is in the audio group so it has permission to use the soundcard.

$ groups

$ id
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Busybox and user permissions: for example enable user to mount numa Linux - Software 4 09-06-2011 09:40 AM
BusyBox - Serial Console Disable/Enable serdark Linux - Embedded & Single-board computer 2 01-17-2008 05:36 AM
Old, old, old laptop just wondering.... Butler615 Linux - General 2 09-02-2007 03:01 PM
want linux for an old old old pc angryfirelord Linux - Distributions 5 05-20-2006 12:22 PM
big plans for old old old laptop vdogvictor Linux - Laptop and Netbook 0 05-26-2004 07:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration