Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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've looked around for a solution for my problem in other threads but nothing seems to work.
I'm running a Mandrake 9.1 system. While waiting for a new monitor to come I connected an old 14" to my box just so that I could play some mp3's from the command line. I was playing mp3's using mpg123 (and all was fine) then decided to suspend playback by hitting ctrl+z. About an hour later I returned and fg'ed my mpg123 app and it happily continued running, but no sound came from my speakers.
To help narrow down the problem I rebooted under windows - sound works fine. I then rebooted under linux and tried starting WindowMaker and playing some mp3's using xmms - still no sound (yet the equalizer shows that there is music playing).
What's wrong? Why would I lose sound after suspending a mpg123 process?
I once "lost sound" on my Linux system, but I "found" it again by running aumix and turing up the main volume control. I'm not sure how it got turned down in the first place, but that fixed my problem.
i am not sure if /dev/dsp is used for all sound boards. If you have strace and are root, you can try:
strace -f play /usr/share/sounds/KDE_Error.wav 2>&1|grep "open.*dev"
On my box, this includes:
open("/dev/dsp", O_WRONLY ...
if /dev/dsp, try
cat /usr/share/sounds/KDE_Error.wav>/dev/dsp
if no sound, volume has been set low - I use KMix to adjust.
strace -f play /usr/share/sounds/KDE_Error.wav 2>&1|grep "open.*dev"
I get the following:
[pid 4767] open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = -1 ENXIO (No such device or address)
[pid 4767] open("/dev/pts/1", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 5
[pid 4767] open("/dev/dsp", O_WRONLY|O_NONBLOCK) = 7
When trying:
cat /usr/share/sounds/KDE_Error.wav>/dev/dsp
I can hear white noise from the speakers (like suddenly they were turned up very loud but not playing anything) but no sound. I tried out kmix and found that no channels were muted, and all volumes were turned up. And something seems to be working as the static from the previous command would get louder/softer as I moved the PCM volume up and down.
Are we getting closer?
Oh, also I tried turning ALSA and sound on and off in the mandrake control panel but there was no change.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.