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 07-03-2006, 06:28 PM   #1
Oxagast
Member
 
Registered: Aug 2003
Location: Mocksville, NC, USA
Distribution: Gentoo, Slackware.
Posts: 410

Rep: Reputation: 30
Sound stops working randomly when changing songs


Hi,
I have a problem with my sound. Usually it sounds and works, with no problems. But it seems that almost at random, when I am playing music through XMMS, it will just stop in the middle of the playlist. Then all the rest of the sounds will stop playing (like the sounds from games, gaim, etc). If I try to tell XMMS to play again, it will say there's a problem with the audio out plugin. If I wait a while (sometimes a minute or two, sometimes hours) it will just start working again with no user intervention. If I kill X by using ctrl+alt+backspcae, and then get back in, it always works again. But this has been a continuing problem, even from my last install (I had another install, formatted, reinstalled, and I noticed that this is still a problem). I am using the snd-intel8x0 module, which I believe to be correct for my card. The output from lspci is:

00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 04)

Does anybody know what would cause this? I do not thinkg that I am using a sound deamon such as arts, I think it is just working through alsa, and it all works fine with two sounds playing at once (such as playing music, but still hearing gaim sounds), so I don't think it is that. As far as I know it has never stopped playing in the middle of a song, only right after one ends, and then the next is about to begin, and its like the driver locks up or something. It seems that it does it alot more often if I am using the computer at the time, although I don't know what triggers it, because I can ususally leave the computer on all night playing music, and it hardly ever cuts off doing that, but if I use it durring the day, it'll lock up like this 4 or 5 times on any given day. It gets very frustrating, because I either have to wait for it to work again, or kill x and log back in for it to work. Anybody know what causes this, and a fix?

Thanks,
Marshall
 
Old 07-04-2006, 12:56 AM   #2
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
You said you don't think you are running arts? Are you or aren't you? Try disabling the KDE sound system in the control panel and make sure xmms is configured to use alsa. This is most likely the cause of the problem.

Otherwise, run xmms from a terminal and see what errors it spits out when the sound stops.

regards,
...aaron
 
Old 07-04-2006, 03:20 AM   #3
Oxagast
Member
 
Registered: Aug 2003
Location: Mocksville, NC, USA
Distribution: Gentoo, Slackware.
Posts: 410

Original Poster
Rep: Reputation: 30
No, I just checked the ps output for arts, and it is not running. I said I didn't think I was using arts, because I know I shouldn't be, and don't have it set to up to, but I knew that may cause a problem if it kept trying to access the card at the same time.

This is what it says in the terminal when the sound locks up when its trying to play another:

--- snip ---

ALSA lib pcm_dmix.c:862snd_pcm_dmix_open) unable to open slave

** WARNING **: alsa_setup(): Failed to open pcm device (default): Device or resource busy
xmms-mad-Message: failed to open audio output: ALSA 1.2.10 output plugin

--- snip ---

Last edited by Oxagast; 07-04-2006 at 03:25 AM.
 
Old 07-04-2006, 03:23 AM   #4
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
I used to have this trouble on Fedora all the time, basically the sound output could only be used by 1 program at a time, so any other sound would cut out the music, a right pain.

That was fedora autodetecting the card, on arch where i configured alsa manually and loaded the modules myself, i can have several different sound sources going at once
 
Old 07-04-2006, 05:37 AM   #5
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
Well unfortunately, this looks like buggy errors and not configuration errors. I'm not sure if this helps, but I have the same audio device. In order for me to get it working completely, I had to scrap the Slackware alsa driver and use the one in the 2.6 kernel. In addition, I had to change sound support, alsa, and the intel driver all as modules instead of being hard coded in the kernel. I'm not sure why, but that did the trick for me. If you are still getting the same errors, try playing around a bit. See if it happens with a different media player, as root, etc.

Let me know how it turns out.

regards,
...aaron

**edit**
err.. sorry. I usually only post in the Slackware forum. I just realized this is the "Software Forum". Hopefully it will apply to your distro as well.

**edit again**
looks like ethics beat me to it. At least it's probably a good sign when two people have the same responce

Last edited by drkstr; 07-04-2006 at 05:41 AM.
 
Old 07-04-2006, 08:07 PM   #6
Oxagast
Member
 
Registered: Aug 2003
Location: Mocksville, NC, USA
Distribution: Gentoo, Slackware.
Posts: 410

Original Poster
Rep: Reputation: 30
Hmm, I will try compiling them all as modules. I am not using any stock compiled modules, I built the kernel myself, however, I believe the only thing I have compiled as a module with regards to sound is the intel driver, not the alsa or sound, they are both hardcoded. I will recompile my kernel and see if that helps. Now that you said that, it may make sence, because I had the EXACT same problem when I would hardcode all the agp stuff and my graphics card in the kenrel, they just wouldn't work right, but as soon as I tried compiling them as modules they worked perfectly. I still don't know why it doesn't like them hardcoded in there. Buggy.
 
Old 07-07-2006, 01:34 AM   #7
Oxagast
Member
 
Registered: Aug 2003
Location: Mocksville, NC, USA
Distribution: Gentoo, Slackware.
Posts: 410

Original Poster
Rep: Reputation: 30
Ohhh I think that did work. Changing the stuff to modules I mean. Thank you! Muchhhhhhh less annoying to listen to music now. I'll keep my fingers crossed, it hasn't done its thing in over a day.
 
  


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
YDL installation stops randomly MACSRULE Linux - General 1 09-27-2006 02:55 PM
XMMS stops between songs. bad_andy Linux - Software 8 02-22-2005 07:28 AM
Sound randomly stopped working- FC3 Yakolev Linux - Software 2 01-21-2005 03:44 PM
2.6.7 Net connection randomly stops working? Ninwa Linux - General 2 06-24-2004 06:59 PM
WTF... songs play randomly fsu_slacker Linux - General 20 09-02-2003 01:03 PM


All times are GMT -5. The time now is 05:24 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration