LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 08-09-2003, 11:52 AM   #1
rainwolf
LQ Newbie
 
Registered: Aug 2003
Location: Canada
Distribution: Mandrake 9.1
Posts: 4

Rep: Reputation: 0
Lost sound in Linux but not Windows


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?

Please help!
 
Old 08-09-2003, 03:42 PM   #2
Judland
Member
 
Registered: Jul 2003
Location: Saskatchewan, Canada
Distribution: Mandriva Free 2006
Posts: 42

Rep: Reputation: 16
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.
 
Old 08-09-2003, 04:28 PM   #3
rainwolf
LQ Newbie
 
Registered: Aug 2003
Location: Canada
Distribution: Mandrake 9.1
Posts: 4

Original Poster
Rep: Reputation: 0
Nope, I tried that before posting here. I've tried both aumix and alsamixer and neither make any difference.
 
Old 08-09-2003, 04:41 PM   #4
arnold
Member
 
Registered: Dec 2002
Posts: 226

Rep: Reputation: 30
lsof|grep dsp
if this shows a process (probably artsd), kill process and test.
play /usr/share/sounds/KDE_Error.wav is a simple test
 
Old 08-09-2003, 05:19 PM   #5
rainwolf
LQ Newbie
 
Registered: Aug 2003
Location: Canada
Distribution: Mandrake 9.1
Posts: 4

Original Poster
Rep: Reputation: 0
lsof | grep dsp
didn't come back with anything, and when trying playing a wav file still nothing is heard.

 
Old 08-09-2003, 09:40 PM   #6
arnold
Member
 
Registered: Dec 2002
Posts: 226

Rep: Reputation: 30
check dmesg to see your soundcard is recognized.

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.
 
Old 08-10-2003, 01:47 AM   #7
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
If you are using ALSA, you may want to add dmix in your .asoundrc so you can use other sound programs at the same time.

Try going into Mandrake Control Center and turn off the sound and ALSA. Then turn them on again.

You must have accidently mute the master volume or the PCM volume.

I also use Kmix to adjust my sound settings. Don't forget to click on save as defaults settings when you are done setting the volumes.
 
Old 08-10-2003, 10:41 AM   #8
rainwolf
LQ Newbie
 
Registered: Aug 2003
Location: Canada
Distribution: Mandrake 9.1
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the help so far, but still no joy.

When trying:

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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Windows 98 was lost when Linux 9 was installed. The partition was properly created. lereisch Linux - Software 1 06-14-2005 11:25 AM
Lost sound: ONLY TO LINUX OS sutherncomfort Linux - General 1 02-15-2005 01:18 AM
Reinstalled Windows 98 lost linux dual boot llefty Linux - Newbie 0 08-01-2003 01:23 AM
lost sound in windows right after a debian install MrGardenHoseMan Linux - General 1 07-03-2003 12:40 PM
Gained sound on Linux and lost it on Windows xri Linux - Newbie 3 08-26-2002 08:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:47 PM.

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