You are not logged in.
I have 2 output; Headset and monitor.
I learned how to set default output. Also, 2 output working good while I set them default output but I want to use them via pavucontrol systray.
This is what I did:
.include /etc/pulse/default.pa
############## Headset ##############
#set-default-source alsa_output.pci-0000_28_00.3.analog-surround-71.monitor
#set-default-sink alsa_output.pci-0000_28_00.3.analog-surround-71
#set-card-profile alsa_card.pci-0000_28_00.3 output:analog-surround-71+input:analog-stereo
############ Monitor ################3
set-default-sink alsa_output.pci-0000_26_00.1.hdmi-stereo-extra1
set-default-source alsa_output.pci-0000_26_00.1.hdmi-stereo-extra1.monitor
set-card-profile alsa_card.pci-0000_26_00.1 output:hdmi-stereo-extra1
This didn't work:
#asoundrc
pcm.pulse_monitor {
type pulse
device alsa_output.pci-0000_26_00.1.hdmi-stereo-extra1.monitor
}
ctl.pulse_monitor {
type pulse
device alsa_output.pci-0000_26_00.1.hdmi-stereo-extra1.monitor
}
pcm.pulse_headset {
type pulse
device alsa_output.pci-0000_28_00.3.analog-surround-71.monitor
}
ctl.pulse_headset {
type pulse
device alsa_output.pci-0000_28_00.3.analog-surround-71.monitor
}
English is not my native language. Please excuse my typing errors. You free to correct me.
Offline
Which systray are you talking about? pavucontrol doesn't have a systray icon/implementation. If you are talking about pasystray see it's upstream docs: https://github.com/christophgysin/pasys … e-bindings
Offline
Which systray are you talking about? pavucontrol doesn't have a systray icon/implementation. If you are talking about pasystray see it's upstream docs: https://github.com/christophgysin/pasys … e-bindings
xfce4-pulseaudio-plugin. Actually my codes are working. All I have to do is put it in the options in this plugin, but the options in this plugin are provided with pavucontrol, which I could not find.
Last edited by m2arch (2022-09-26 17:24:23)
English is not my native language. Please excuse my typing errors. You free to correct me.
Offline
I've searched the pulseaudio documentation and the web. I found this, but it didn't work exactly as I wanted either:
load-module module-stream-restore restore_device=false
Script I changed this script bash to sh by the way.
When I use this script and command, I can switch between outputs, but when I manually change the minute of any video, music (like forwarding a video on youtube), it switches to default-sink.
I cannot select "set as fallback" for my headset in any way in the pavucontrol application. The monitor always stays on the "set as fallback" button and becomes active again even though I select the headset. I wonder if I made a setting elsewhere and forgot? Maybe I should clear all settings completely and research how I can swap the two cards. Waiting for your suggestions. If you have a document you can direct me to, I would appreciate it.
Last edited by m2arch (2022-09-27 11:37:29)
English is not my native language. Please excuse my typing errors. You free to correct me.
Offline
What is your end goal exactly? Do you want to be able to switch the default device and all currently playing applications switch to that?
The script you posted should work for that purpose but you need to additionally switch the default device.
Last edited by V1del (2022-09-27 17:44:06)
Offline
What is your end goal exactly? Do you want to be able to switch the default device and all currently playing applications switch to that?
The script you posted should work for that purpose but you need to additionally switch the default device.
Via the pavucontrol systray I want to output the output of all applications to the output I click and change that output whenever I want. When I use the script, I don't have any problems using the stop, change and continue keyboard options, but when I want to open a specific minute, it returns to the output I set by default.
So I found the command I wrote above and thought maybe it would work for this specific minute issue, but it didn't change anything.
English is not my native language. Please excuse my typing errors. You free to correct me.
Offline
The "minute issue" is a bug in firefox because their implementation of their pulse backend is too dumb (or rather tries to be too smart and in the process does things one does not expect) literally any other browser/chromium wouldn't have this issue.
Firefox creates a completely new stream and forces that to the default device no matter what you normally want to do. It is incredibly annoying and one of the main reasons I can't use firefox as my main browser on linux
Offline
The "minute issue" is a bug in firefox because their implementation of their pulse backend is too dumb (or rather tries to be too smart and in the process does things one does not expect) literally any other browser/chromium wouldn't have this issue.
Firefox creates a completely new stream and forces that to the default device no matter what you normally want to do. It is incredibly annoying and one of the main reasons I can't use firefox as my main browser on linux
I don't prefer to use Chromium for some reason. If you know, how can I write code to turn comments on and off in default.pa or client.conf files? Maybe for even easier it can be typed two separate default.pa to activate one after another with a keyboard key? If you have another solution, you can suggest it as well. Thank you very much for your help.
English is not my native language. Please excuse my typing errors. You free to correct me.
Offline
Bind the script that does the sink change to a keybind, you don't need an adjusted default.pa for this, all of this can be controlled on the live pulse with pacmd/pactl commands.
Offline
Bind the script that does the sink change to a keybind, you don't need an adjusted default.pa for this, all of this can be controlled on the live pulse with pacmd/pactl commands.
Am I doing wrong ?
#!/bin/sh
pacmd set-default-source alsa_output.pci-0000_28_00.3.analog-surround-71.monitor &&
pacmd set-default-sink alsa_output.pci-0000_28_00.3.analog-surround-71 &&
pactl set-card-profile alsa_card.pci-0000_28_00.3 output:analog-surround-71+input:analog-stereo
English is not my native language. Please excuse my typing errors. You free to correct me.
Offline
You generally want to do the card profile change as the first operation since that is what will provide/ensure the correct sinks being available, and then run the default changing operations. Other than that this should work.
Offline
You generally want to do the card profile change as the first operation since that is what will provide/ensure the correct sinks being available, and then run the default changing operations. Other than that this should work.
The code started working after I did what you said, but I guess I can't run it because there is another problem with the monitor output. I also couldn't run my headset without setting the default output device.
I wonder if the case code in the pulseaudio part will not be useful for me? Maybe I'll switch with a code like that. I need more specific code though.
English is not my native language. Please excuse my typing errors. You free to correct me.
Offline