LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-11-2017, 08:44 AM   #1
yod
LQ Newbie
 
Registered: Aug 2017
Posts: 24

Rep: Reputation: Disabled
How to handle 2 audio channels/outputs?


Hi, I have a xonar dx that is located in the back of the pc and my sound speakers are connected to it. My headphones are connected to the motherboard audio because I have the jack input in front of the pc case and its more handy for me. In windows, when I want to use headphones I change the default audio channel / output through options.
How do I handle this in Linux Arch?
I installed "alsa-utils"
And when I tested it with the command "speaker-test -c 2" I could listen the headphones
So I guess this is the default audio device selected and its ok, but what I have to do if sometimes I want to listen the speakers?
I do not really want to edit a file everytime I have to switch speakers / headphones
Greetings
 
Old 09-11-2017, 09:02 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by yod View Post
Hi, I have a xonar dx that is located in the back of the pc and my sound speakers are connected to it. My headphones are connected to the motherboard audio because I have the jack input in front of the pc case and its more handy for me. In windows, when I want to use headphones I change the default audio channel / output through options.
How do I handle this in Linux Arch?
I installed "alsa-utils"
And when I tested it with the command "speaker-test -c 2" I could listen the headphones
So I guess this is the default audio device selected and its ok, but what I have to do if sometimes I want to listen the speakers?
I do not really want to edit a file everytime I have to switch speakers / headphones
Greetings
Have a look at pavucontrol (PulseAudio Volume Control)

You should be able to install it though your package manager.
 
1 members found this post helpful.
Old 09-11-2017, 09:31 AM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
I got a headphone preamp, so all I have to do is turn knobs or hit a mute button.

In the case of laptops where there's speakers and a headphone jack, there's hardware that turns off the speakers when the headphone jack is in use. When you have two different soundcards there's no such hardware feature (that affects the other soundcard). Pulseaudio lets you select which soundcard to use, but you have to run pavucontrol and change things. With alsa you have to edit .asoundrc. You could have two .asoundrc files that you swap out and set a hotkey to do the swap in the wm/de via a script or other means. But you'll have to restart things for that change to take in terms of things that use the soundcard.

Various other routes like using snd-aloop and changing how you forward the audio output via alsaloop. The snd-aloop creates a dummy soundcard (Loopback) where the things that use it can be forwarded. The output is the input, as in what would go to speakers can be captured on the mic channel. I mostly use it to run jack and forward that to pulse over the network. But I have kind of the opposite problem. One good soundcard and good set of speakers and many computers. And the pulseaudio daemon runs on the non-main computer.
 
  


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
Pulseaudio limits to 4 audio outputs junior-s Linux - Software 0 03-25-2014 03:44 AM
Single audio stream to multiple outputs? exodist Linux - Hardware 1 11-13-2011 06:38 AM
[SOLVED] gmplayer outputs only audio when playing a movie. stf92 Slackware 11 08-15-2010 06:12 PM
BT878: outputs tv audio instead of FM Radio mad_ady Linux - Hardware 4 02-05-2006 11:48 AM
6 channels audio AKded Linux - Hardware 0 07-29-2004 11:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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