Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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).
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/???
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.