LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-29-2008, 12:37 PM   #1
Melkor
Member
 
Registered: Aug 2003
Location: MN
Distribution: Linux Mint
Posts: 179

Rep: Reputation: 34
Question Command to restart sound server?


I'm trying to script something on my Slackware machine to restart the sound server. I've been doing it manually via the KDE Control Center sound screen, but is there a command line way of doing this that I could incorporate into a script?

I haven't had much luck in my searching the web and LQ for that.

Thanks.
 
Old 01-29-2008, 03:02 PM   #2
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Do you mean artsd?

Then take a look at artsshell
 
Old 01-29-2008, 03:12 PM   #3
Melkor
Member
 
Registered: Aug 2003
Location: MN
Distribution: Linux Mint
Posts: 179

Original Poster
Rep: Reputation: 34
Nope, sorry I should have mentioned, I'm running alsa.
 
Old 01-29-2008, 03:14 PM   #4
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Why do you need to restart alsa? It's inside the kernel (afaik, kernel service) and I don't think it can be simply restarted.
 
Old 01-29-2008, 03:20 PM   #5
Melkor
Member
 
Registered: Aug 2003
Location: MN
Distribution: Linux Mint
Posts: 179

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by Alien_Hominid View Post
Why do you need to restart alsa? It's inside the kernel (afaik, kernel service) and I don't think it can be simply restarted.
How does KDE do it from the Control Center then, I wonder?

I'm wanting to script this so I don't have to do it manually before starting another app.
 
Old 01-29-2008, 03:30 PM   #6
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
kde restarts arts, which is the kde sound mixer
 
Old 01-29-2008, 04:00 PM   #7
Melkor
Member
 
Registered: Aug 2003
Location: MN
Distribution: Linux Mint
Posts: 179

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by Alien_Hominid View Post
kde restarts arts, which is the kde sound mixer
Even if in the KDE Control Center I'm specifying ALSA?

That seems goofy to me.
 
Old 01-29-2008, 04:14 PM   #8
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Ok, I'll try to explain a bit. There are several audio layers. OSS (deprecated) or/and alsa provides drivers for your audio chipsets and that's why you enable their drivers in the kernel. You run kernel and so you run alsa, which requires your audio chipset module modprobed. There is an interaction between userspace alsa (you can configure it, adjust sound levels) and kernelspace alsa server. As well, there are esd and arts. Esd is used by gnome and arts is used by kde. Those are software mixers provided by mentioned desktop environments. You may not use esd or arts and use alsa asoundrc instead. Those mixers just mix the sound and send combined digital soundwave to alsa, which works with your soundcard and lets your hear it.

Last edited by Alien_Hominid; 01-29-2008 at 04:16 PM.
 
1 members found this post helpful.
Old 01-29-2008, 04:49 PM   #9
Melkor
Member
 
Registered: Aug 2003
Location: MN
Distribution: Linux Mint
Posts: 179

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by Alien_Hominid View Post
Ok, I'll try to explain a bit. There are several audio layers. OSS (deprecated) or/and alsa provides drivers for your audio chipsets and that's why you enable their drivers in the kernel. You run kernel and so you run alsa, which requires your audio chipset module modprobed. There is an interaction between userspace alsa (you can configure it, adjust sound levels) and kernelspace alsa server. As well, there are esd and arts. Esd is used by gnome and arts is used by kde. Those are software mixers provided by mentioned desktop environments. You may not use esd or arts and use alsa asoundrc instead. Those mixers just mix the sound and send combined digital soundwave to alsa, which works with your soundcard and lets your hear it.
Ahhhh, okay. Thanks for the explanation, I've always had a hard time grokking how this worked on different levels.

I'll give that a try. Thanks again!
 
Old 01-29-2008, 11:42 PM   #10
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
There are more than this, especially if you work in sound production area. You could read those projects web pages too for better understanding.
 
  


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
What is the command for restart to Windows ? bukake Linux - General 5 06-19-2007 03:22 PM
quick restart-X command?? snwright Linux - Software 11 05-12-2004 04:14 PM
restart sound server xconspirisist Linux - Software 9 01-03-2004 07:33 PM
use command vncserver after each restart? ziggie216 Linux - Software 1 11-25-2003 07:54 AM
Shell-Command to restart Server Luc Linux - Newbie 4 11-03-2002 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:53 AM.

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