Linux - NewbieThis 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
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.
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
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by yod
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.