Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27886 - get system sounds, but can't play mp3's or other
Summary: get system sounds, but can't play mp3's or other
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-03 17:56 UTC by Monica Jae
Modified: 2003-09-10 09:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Monica Jae 2003-09-03 17:56:59 UTC
i'm using the pre2 kernel and normally am in windowmaker and listen to mp3's
there, but when i am in kde on occasion, i cannot listen to anything but the
system sounds that occur when maximizing or minimizing or closing an
application, etc.  I have been able to get both with other distributions, so i
know it isnt a hardware problem.

Reproducible: Always
Steps to Reproduce:
1. start kde
2.open xmms, try to play an mp3
3.

Actual Results:  
got error message that either there's something is blocking the card or there
isn't the right pluginor it isnt configged rright

Expected Results:  
play music
Comment 1 aethyr 2003-09-03 18:45:52 UTC
Sounds like some kind of arts/OSS problem.

I can't help too much as I don't use KDE, but maybe try changing the sound daemon used?
Comment 2 Patrick Kursawe (RETIRED) gentoo-dev 2003-09-04 00:51:49 UTC
KDE starts the artsd sound daemon.
artsd has an autosuspend feature which will (at least for my kde installation) free the sound card after 1 minute of inactivity. You can change this by using the artsshell command or the KDE control panel.
artsshell autosuspend 5 (free it after 5 seconds)
artsshell suspend (free it now)
artsshell terminate (kill the daemon)

Another possibility is using the xmms-arts plugin which is not developed any more and therefore masked. So I'd rather recommend using a little wrapper script for starting xmms in KDE:

#!/bin/bash
artsshell suspend; xmms

HTH
Comment 3 Monica Jae 2003-09-04 12:32:51 UTC
ok, but, now i don't have kde sounds, why can't i have both? there are other kernels 
where i've had both, but why downgrade...i'm in test4...and i don't know much about 
shell scripting...do i make it a file and make it executable and put it...where? 
Comment 4 Patrick Kursawe (RETIRED) gentoo-dev 2003-09-04 22:11:22 UTC
What is "now"? I told you several possibilities you could have tried. Without specifying what you actually did, it's impossible to give you any advice.

Or did you enter all three commands in a row and are now wondering why artsd isn't running any more?
Comment 5 Monica Jae 2003-09-05 12:28:04 UTC
ok...artsshell suspend does nothing, i haven't tried autosuspend yet, i will try that now and get back to you.  "now" is a place in time.
Comment 6 Monica Jae 2003-09-08 15:18:38 UTC
well, i tried the other commands to no avail.  i can run xmms with sound, but, with no 
other sound, i.e. kde system sounds, btw, i don't get gnome system sounds either.   
Comment 7 Patrick Kursawe (RETIRED) gentoo-dev 2003-09-08 22:32:11 UTC
Of course you don't get both sounds at the same time as long as xmms and your KDE/Gnome don't use the same sound daemon. KDE uses artsd, so you would have to use the unmaintained xmms arts output plugin if you want to use OSS instead of ALSA. With ALSA, you can use the ALSA output plugin. AFAIK Gnome uses ESD, and there should be an output plugin for this available with xmms.

My recommendation: Get ALSA running, use the ALSA output plugin for xmms and you are done.
Comment 8 Monica Jae 2003-09-09 09:00:01 UTC
well, i am now using alsa, or at least i emerged the test4 kernel, activated the alsa module, and i get an error now when i enable the alsa plugin within xmms. when i click the apply button i get the pop-up box with "snd_mixer-attach: No such file or directory" so i click "configure" and change "mixer device" from "PCM" to "/dev/sound/mixer" click apply, don't get above error.  Click "ok".
now when i start xmms to play a song, i get 2 pop-ups:
1. error opening alsa device: No such file or directory
2. a.Please check that you have the correct pluginselected
   b. No other programs is blocking the sound card
   c. your soundcard is configured properly
I get the plugin error pop-up as well with esound within xmms...
and when i activate esd from command line (as root of course) i get:
 "audio_alsa: no cards found!"
so, i'm at quite a loss with this sound stuff
Comment 9 Patrick Kursawe (RETIRED) gentoo-dev 2003-09-10 02:58:04 UTC
I recommend reading http://www.gentoo.org/doc/en/alsa-guide.xml

Please do so.
Comment 10 Monica Jae 2003-09-10 05:44:30 UTC
i understand the feedback, but like i said, i emerged the test4 kernel, and now, i'm using the test5 kernel and with those, you dn't emerge the alsa-driver, so that document is useless to me or anyone else.
Comment 11 Patrick Kursawe (RETIRED) gentoo-dev 2003-09-10 09:12:01 UTC
You should not consider a document unusable just because it slightly differs from what you have...
a) you still need to build the right driver for your soundcard
   HINT: you need a driver for _your_ card, not just "the alsa module".
b) you still need to configure this driver and load it
c) you still should start Alsa as mentioned in section 3
d) having alsa-utils won't hurt aswell

If you can't get it running, please include at least the minimum necessary information, like the type of your soundcard, the output of "lsmod" and such stuff. Otherwise nobody can help you. Btw, I'd like to redirect you to
forums.gentoo.org or to #gentoo on IRC, because this really has nothing to do with a gentoo linux bug any more.

Don't want to be rude, but this simply doesn't belong here.

Another hint about supplying necessary information with bug reports/questions:
http://www.catb.org/~esr/faqs/smart-questions.html

Good luck,

Patrick