LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 02-14-2005, 08:11 AM   #1
bobbens
Member
 
Registered: Sep 2004
Location: Barcelona
Distribution: Debian, FreeBSD, Gentoo
Posts: 586

Rep: Reputation: 30
arts and alsa -> happy together?


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.
 
Old 03-11-2005, 09:55 AM   #2
Haiyadragon
Member
 
Registered: Sep 2003
Location: Gorredijk, Netherlands
Distribution: Arch Linux
Posts: 400

Rep: Reputation: 30
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?
 
Old 03-11-2005, 11:15 AM   #3
bobbens
Member
 
Registered: Sep 2004
Location: Barcelona
Distribution: Debian, FreeBSD, Gentoo
Posts: 586

Original Poster
Rep: Reputation: 30
Quote:
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.
 
Old 03-11-2005, 11:23 AM   #4
Haiyadragon
Member
 
Registered: Sep 2003
Location: Gorredijk, Netherlands
Distribution: Arch Linux
Posts: 400

Rep: Reputation: 30
Quote:
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.
 
Old 03-11-2005, 11:28 AM   #5
Haiyadragon
Member
 
Registered: Sep 2003
Location: Gorredijk, Netherlands
Distribution: Arch Linux
Posts: 400

Rep: Reputation: 30
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.
 
Old 03-11-2005, 11:55 AM   #6
bobbens
Member
 
Registered: Sep 2004
Location: Barcelona
Distribution: Debian, FreeBSD, Gentoo
Posts: 586

Original Poster
Rep: Reputation: 30
Quote:
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.
 
Old 03-11-2005, 03:17 PM   #7
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
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

HTH

Mad.
 
Old 03-11-2005, 05:41 PM   #8
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
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"
   
}
yes it's really that simple
 
Old 03-11-2005, 05:48 PM   #9
Haiyadragon
Member
 
Registered: Sep 2003
Location: Gorredijk, Netherlands
Distribution: Arch Linux
Posts: 400

Rep: Reputation: 30
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.
 
Old 03-11-2005, 10:01 PM   #10
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Just use the "auto suspend" option in KDE Sound System and set it to a low value like 10 seconds.

So if idle for 10 secs, KDE will give up control of your sound system and ALSA programs will work fine.

Or disable the KDE sound system altogether.
 
Old 03-12-2005, 12:04 AM   #11
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
Quote:
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.
 
Old 03-12-2005, 12:24 AM   #12
Haiyadragon
Member
 
Registered: Sep 2003
Location: Gorredijk, Netherlands
Distribution: Arch Linux
Posts: 400

Rep: Reputation: 30
Quote:
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
 
  


Reply



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
KDE + arts/alsa heri0n Slackware 5 09-13-2005 05:35 AM
alsa and arts jnsenit Linux - General 1 12-05-2004 05:47 PM
Arts and Alsa conflict pitufobcn Slackware 1 12-02-2004 01:51 PM
Running aRTs with ALSA badar52 Linux - Software 2 12-08-2003 09:13 AM
Arts alsa config AUM_HA Linux - Software 0 05-30-2003 04:49 PM

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

All times are GMT -5. The time now is 07:53 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