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.
How can i happily marry arts and alsa together so i can get sound with everything and make everything happy? Right now i don't get sound with kde, and i have to killall artsd to get sound in ut2004 with alsa. Yet alsa works fine and xmms and everything is just happy. How can i get around to getting sound in kde, making arts happy, while not loosing my alsa and everything? I know there are a thousand posts like this, but i've read through alot and most haven't helped me. Thanks.
I'd like an answer to this too. KDE forces you to use arts, but arts needs "exclusive control". Thank you very much. A lot of apps can't use arts yet, and some have problems with it. So what's the deal here?
Originally posted by Haiyadragon I'd like an answer to this too. KDE forces you to use arts, but arts needs "exclusive control". Thank you very much. A lot of apps can't use arts yet, and some have problems with it. So what's the deal here?
What i found to be the best solution is to get rid of kde. I've done a complete system reinstall without installed kde and it's working out really well. I'm having alot better support with everything from printers to sound. The only thing i miss from the kde days is k3b. But i'll just wait till GnomeBaker comes out and enjoy that.
Originally posted by bobbens What i found to be the best solution is to get rid of kde. I've done a complete system reinstall without installed kde and it's working out really well. I'm having alot better support with everything from printers to sound. The only thing i miss from the kde days is k3b. But i'll just wait till GnomeBaker comes out and enjoy that.
So what do you run now? Gnome? I found that anything that uses gtk is slow and uses that horrible file dialog (especially Gnome). Anything else can't manage themes so every app looks different. I'm having a hard time choosing. Whatever I choose it means sacrifice.
I found a solution to the original problem though. Make sure that on the configuration screen Sound & Multimedia -> Sound System -> Hardware -> Select audio device is set to Advanced Linux Audio Architecture (alsa). I think autodetect chooses alsa but I'm not sure. Then put the following script in /etc/asound.conf:
Code:
pcm.dmix0 {
type dmix
ipc_key 673138
slave {
pcm "hw:0,0"
rate 48000
period_time 80000
buffer_time 320000
period_size 4096
buffer_size 16384
}
bindings {
0 0
1 1
}
}
# 'dsp0' is espected by OSS emulation etc.
pcm.dsp0 {
type plug
slave.pcm "dmix0"
}
ctl.dsp0 {
type hw
card 0
}
pcm.!default {
type plug
slave.pcm "dmix0"
}
ctl.!default {
type hw
card 0
}
ctl.mixer {
type hw
card 0
}
Now alsa and arts can play sound at the same time.
Originally posted by Haiyadragon So what do you run now? Gnome? I found that anything that uses gtk is slow and uses that horrible file dialog (especially Gnome). Anything else can't manage themes so every app looks different. I'm having a hard time choosing. Whatever I choose it means sacrifice.
Fluxbox with gdesklets for the starter. It’s really nice. I'm getting alot better speed and it's really comfortable, it just takes quite a bit more configuration. I've even dropped kdm/gdm for startx so i can get some startup scripts running. I've never been happier :P. I'm starting to get good at using the console too.
Quote:
I found a solution to the original problem though. Make sure that on the configuration screen Sound & Multimedia -> Sound System -> Hardware -> Select audio device is set to Advanced Linux Audio Architecture (alsa). I think autodetect chooses alsa but I'm not sure. Then put the following script in /etc/asound.conf:
I tried configuring the Sound & Multimedia with my asoundrc file and i never got it to work fully and perfectly. xmms always sounded flaky while ut2004 always said "do killall artsd to get sound while playing". Now i have no problems, no competition and i mainly use gtk programs except some gnome things, but no kde whatsoever. The important thing is to feel at home in your system and i feel completely at home in my new system.
My method for 'fixing' this is to set the suid bit on the artswrapper script in the KDE bin directory, arts will then run with realtime scheduling and auto suspend when other apps wish to use the sound devices via alsa. works just fine with Q3-Arena, ut2004, doom3, NWN etc. If you run the KDE 'Sound Server Control' tool in the multimedia menu, it will tell you that the suid bit needs to be set on artswrapper for arts to schedule correctly
you can turn off arts (not enable it) and set mplayer as the KDE external player and set mplayer and everything else to use alsa.
and force software mixing in ~/.asoundrc (very similar to Haiyadragon's solution)
Code:
pcm.dsp {
type plug
slave.pcm "dmix"
}
pcm.dsp0 {
type plug
slave.pcm "dmix"
}
# this makes native ALSA apps default to using dmix
pcm.!default {
type plug
slave.pcm "dmix"
}
Originally posted by Haiyadragon But kde apps need arts for their notification sounds. Most important for me is Kopete. There seems to be no way to have kde apps use alsa.
i think i just told you how
by setting mplayer as external player in Control center -> sound and mm -> system notification -> Player settings -> use external player -> mplayer -> apply -> ok
i must admit i never use this though does it not work for things like kopete ?
i made it make all those horrid KDE sounds once -- oooh that was bad
but it was certainly kde apps making noise without arts
Last edited by foo_bar_foo; 03-12-2005 at 12:08 AM.
Originally posted by foo_bar_foo i think i just told you how
by setting mplayer as external player in Control center -> sound and mm -> system notification -> Player settings -> use external player -> mplayer -> apply -> ok
i must admit i never use this though does it not work for things like kopete ?
i made it make all those horrid KDE sounds once -- oooh that was bad
but it was certainly kde apps making noise without arts
Ok, sorry, I didn't know about that option. I will try it. Arts sucks
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.