- Arch Linux
- #1 2020-05-26 16:04:50
- [SOLVED] How to change audio source in linux (KDE Plasma)?
- #2 2020-05-26 16:32:20
- Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
- #3 2020-05-26 18:13:56
- Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
- #4 2020-05-26 20:46:21
- Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
- #5 2020-05-29 20:48:36
- Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
- #6 2020-05-29 23:31:33
- Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
- #7 2020-05-30 00:37:34
- Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
- #8 2020-06-04 08:56:50
- Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
- #9 2020-06-04 09:47:13
- Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
- #10 2020-06-07 05:18:43
- Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
- #11 2020-06-07 10:52:35
- Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
- #12 2020-06-07 19:49:13
- Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
- #13 2020-06-08 07:22:19
- Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
- How to quickly change audio output to HDMI device in Ubuntu and Fedora
- Adding Audio Output devices to the Status Menu in Ubuntu and Fedora
Arch Linux
You are not logged in.
#1 2020-05-26 16:04:50
[SOLVED] How to change audio source in linux (KDE Plasma)?
how do i change the audio source from rear port to front audio in linux? and also how do i adjust the left and right balance for speakers?
im using Arch Linux with KDE Plasma
something like this would be useful — Audio Source
i have already posted this exact thread on
no luck so far if any can help, please
i have also tried to separate the sinks according to the arch wiki
according to archwiki i ran «pacmd list-sinks» command and got this output there were 2 sinks 1 was the GPU HDMI output which is not useful here the other one is —>
then according to wiki i added these lines in «/etc/pulse/default.pa»
then i got 2 sinks in the system tray widget after logging out and logging back in but none of those 2 sinks give any output nor speakers neither headphones
Last edited by apoorv569 (2020-06-08 10:07:19)
#2 2020-05-26 16:32:20
Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
This might be a driver toggle, if at all, what’s your output for
One thing you can try on pulse’s side though it doesn’t look like the hardware properly declares this availability is forcing it to the detected headphone port:
but I don’t think that will suffice if you actually need a driver/hardware toggle.
As for adjusting the speaker seperately, you can either do via proper pactl/pacmd invocations or in pavucontrol you can toggle the lock icon at the end of a given stream to adjust the channels individually (I have faint memory that plasma-pa used to be able to do this as well but that doesn’t seem to be the case anymore. You might want to opt for kmix instead of plasma-pa (though I’m not 100% whether it could do that anymore either))
Last edited by V1del (2020-05-26 16:43:00)
#3 2020-05-26 18:13:56
Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
This might be a driver toggle, if at all, what’s your output for
One thing you can try on pulse’s side though it doesn’t look like the hardware properly declares this availability is forcing it to the detected headphone port:
but I don’t think that will suffice if you actually need a driver/hardware toggle.
As for adjusting the speaker seperately, you can either do via proper pactl/pacmd invocations or in pavucontrol you can toggle the lock icon at the end of a given stream to adjust the channels individually (I have faint memory that plasma-pa used to be able to do this as well but that doesn’t seem to be the case anymore. You might want to opt for kmix instead of plasma-pa (though I’m not 100% whether it could do that anymore either))
i tried amixer -c0 and i got this output
and pacmd set-sink-port gave me this
#4 2020-05-26 20:46:21
Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
i did some research on internet and found these 2 threads
according to this i tried running the command
so i tried 1 instead of 0
and i ran successfully and i got audio in headphones however the speakers still has output but i noticed something that it switched to HDMI GP106 and the volume of speakers lowered a bit. KDE Audio Widget
and switching back to
switched to Built-in Audio Analog Stereo and the volume of speakers raised a bit.
The other thread i found is Arch Linux Forum
according to i found about a tool called hdajackretast, although im not sure how to use this if anyone can help with this tool or weather is this tool is what i should be using for my problem.
Last edited by apoorv569 (2020-05-27 08:18:33)
#5 2020-05-29 20:48:36
Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
wow absolutely no help, i have this thread 5 different places everywhere people stopped responding after a while no one asks me for some info or terminal output that i show or try to fix this.
#6 2020-05-29 23:31:33
Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
If you have KDE, install PulseAudio Manager, pulseaudio-ctl from AUR
#7 2020-05-30 00:37:34
Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
If you have KDE, install PulseAudio Manager, pulseaudio-ctl from AUR
how is this going to fix my issue its just some bunch of scripts that i can map to keybidings to control volume or mute unmute mic.
#8 2020-06-04 08:56:50
Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
I’m not sure I parse that last real post. Does changing the ports work or not (safe for not muting the speakers explicitly)? The approach if it does will be different than if it doesn’t. If it doesn’t you will indeed want to use hdajackretask. But how and what you can do here is hardware specific, but the utility is fairly safe in/with it’s defaults but you have to look at the options you have available and try them out. You’ll need to stop pulseaudio in order to apply hda jack overrides use
to stop pulse and then check in what ways you can manipulate the detection.
#9 2020-06-04 09:47:13
Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
I’m not sure I parse that last real post. Does changing the ports work or not (safe for not muting the speakers explicitly)? The approach if it does will be different than if it doesn’t. If it doesn’t you will indeed want to use hdajackretask. But how and what you can do here is hardware specific, but the utility is fairly safe in/with it’s defaults but you have to look at the options you have available and try them out. You’ll need to stop pulseaudio in order to apply hda jack overrides use
to stop pulse and then check in what ways you can manipulate the detection.
you told me to run this command
which gave me this output
then i searched the internet for something useful and i found a thread Unix Stackexchange, where they were saying to run this command
so i tried 1 instead of 0
and i ran successfully and i got audio in headphones however the speakers still has output but i noticed something that the volume of speakers lowered a bit. (like from vol 100 to 80)
and switching back to
switched to Built-in Audio Analog Stereo and the volume of speakers raised back. ( like 80 to 100)
hope this explains.
the thing is when i open up alsamixer, and raise the headphone volume output next to master, when showing all outputs, i do get output in headphones but also in the speakers at the same time i have to lower the speakers volume to just have audio in headphones. so it works, i just need a way to be able to switch between the 2 so that the other output gets muted and my volume +/- button on the keyboard control that current output. you can ask for anything i will provide screenshots or output in terminal if required
and about the arch wiki way i tried it splitting front and rear i ran
and this output there were 2 sinks showing 1st one was HDMI GPU audio which is not useful here the other one is
then according to wiki i added these lines in
then i got 2 sinks in the system tray widget after logging out and logging back in but none of those 2 sinks give any output nor speakers neither headphones
Last edited by apoorv569 (2020-06-04 10:00:28)
#10 2020-06-07 05:18:43
Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
on Level1Techs Forum someone told me about this LinuxMint’s Forum where he edited this file
which solved half of my problem, which was whenever i switch to headphones using the pacmd set-sink command i used to get audio in both speakers and headphones at the same time. now by editing the «analog-output-headphones.conf» whenever i switch to headphones it mutes the other output (i.e Speakers) and vice versa. so 1 problem solved. as from the terminal i can switch between the 2 ports from terminal just fine by these commands
and as i have also added these 2 lines in
is there a way to specify these 2 sinks that i created by adding these lines, to control a specific port
Speakers controls = pacmd set-sink-port 1 analog-output-lineout
Headphones controls = pacmd set-sink-port 1 analog-output-headphones
#11 2020-06-07 10:52:35
Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
I highly doubt that you can have your cake and eat it too. If your hardware is mapped in such a way that it plays everything through the speaker port regardless you won’t be able to have a logical split where this doesn’t happen. And in that way you must have them be seperate from each other because they directly conflict. You can’t have a headphone sink active at the same time as the speaker sink as the headphone sink has to mute your hardware’s speaker control.
The only way you can have this from what we see so far is check with hdajackretask whether there’s a way to decouple the headphone port from the speaker out completely. If you can’t do that on a driver/hardware level you cannot enforce that via pulseaudio.
Edit: So I read some of the other threads, if your entire end goal is just switching between these two port options via GUI, you can do so in pavucontrol, or follow the last advice on the level1tech forum for marking the headphone as available unconditionally, if it is marked as available that should make plasma-pa show a dropdown to switch between the ports. But yes remap-sink is the wrong approach/solution here.
Maybe with all those edits in place repost
Last edited by V1del (2020-06-07 11:41:38)
#12 2020-06-07 19:49:13
Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
I highly doubt that you can have your cake and eat it too. If your hardware is mapped in such a way that it plays everything through the speaker port regardless you won’t be able to have a logical split where this doesn’t happen. And in that way you must have them be seperate from each other because they directly conflict. You can’t have a headphone sink active at the same time as the speaker sink as the headphone sink has to mute your hardware’s speaker control.
The only way you can have this from what we see so far is check with hdajackretask whether there’s a way to decouple the headphone port from the speaker out completely. If you can’t do that on a driver/hardware level you cannot enforce that via pulseaudio.
Edit: So I read some of the other threads, if your entire end goal is just switching between these two port options via GUI, you can do so in pavucontrol, or follow the last advice on the level1tech forum for marking the headphone as available unconditionally, if it is marked as available that should make plasma-pa show a dropdown to switch between the ports. But yes remap-sink is the wrong approach/solution here.
Maybe with all those edits in place repost
in the last post i already told you i was able to edit this file
which allowed me to mute the other output for example i switch to headphones it mutes the other output (i.e Speakers) and vice versa. and as from the terminal i can switch between the 2 ports from terminal just fine by these commands
there should be a way to control both sinks in the lines i added in
or somewhere else
I DONT WANT THEM OUTPUTTING AT THE SAME TIME.
im able to switch between the 2 in Windows 10 just fine. so it should be that my hardware is not mapped in that way.
please try to read the thread before answering. i have said this 3 times.
this has 2 extra sinks as i have created 2 sinks for speakers and headphones as i have mentioned many times above by editing
Last edited by apoorv569 (2020-06-07 20:03:16)
#13 2020-06-08 07:22:19
Re: [SOLVED] How to change audio source in linux (KDE Plasma)?
Again remap sinks are the wrong thing here (they «might» incidentally work but for that you’d have to switch the profile to analog-surround-40 and apply the remap sink on that). You can’t have two sinks for this as that would be a conflict. What you want is a port switch which switches the active sink between the headphone and the speaker sink (one sink, different jacks) exclusively. We’ve already solved the port switch side. The problem right now is that pulse does not register a headphone as present, so most guis will only show you the one that is marked as present.
Did you try the
suggestion from Velen?
To summarize, at the current state, your end goal is to turn this line
regardless of what the hardware reports.
I still think you should give hdajackretask a shot here, you should be able to enforce a configuration that marks the headphone jack as present unconditionally.
Источник
How to quickly change audio output to HDMI device in Ubuntu and Fedora
Here is how to add audio output device selector to the status menu for quick access.
H DMI audio management can get tricky sometimes in the GNOME desktop environment. The issue faced by users when playing multimedia via HDMI connection is no audio. Unlike Windows and Mac OS, Linux doesn’t directly sound to the HDMI device by default settings.
Audio must be manually switched to HDMI device from the Audio settings, else audio will keep playing through the computer speakers, and video will play on the HDMI source such as an external monitor or a projector.
In this tutorial, you will see how to easily tweak settings to add audio output devices on to the status panel. This will let you quickly change the audio output to the external device.
Adding Audio Output devices to the Status Menu in Ubuntu and Fedora
Step 1) The first thing to do is to enable GNOME extensions on your Ubuntu and Fedora PC. Refer our detailed guide using the below links and continue to step next.
Step 2) Go to the Sound input & Output Device Chooser using the same browser in which you have installed the GNOME shell extensions in the Step (1).
Step 3) Turn the slider to “ON” and install the extension.
Sound Input & Output device chooser
Step 4) To configure the extension, go to https://extensions.gnome.org/local/ page and click on “Installed extensions.”
Step 5) Click on the gear icon next to the “Sound input & Output Device Chooser.”
Configure the extension
Step 6) By default settings, the extension shows input devices too in the status menu. You can configure the settings only to show the output devices so that you are not making the status menu overcrowded.
Sound Input & Output Device Chooser Settings
Step 7) Go ahead and plug in the HDMI connection now and click on the Status bar. You should see the Audio Output HDMI profiles, including Stereo, Surround 5.1, and Surround 7.1. You can select the profile to play the sound through HDMI.
Select Audio Output Device
Источник