Play 2 different audios on laptop speaker and jack earphone #77
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Like to play a sleeping audio for someone and me still having my work music.
+5
DuckDuckGo search Play 2 different audios on laptop speaker and jack earphone.
luisbocanegra/linux-guide-split-audio-ports has 101 stars and last commit was 3 months ago.
It seems complex.
I stopped reading at luisbocanegra/linux-guide-split-audio-ports/blob/7cf2026f609e488d2c3e11ac8e18ef3403ed8429/README.md#requirements (included).
https://linuxconfig.org/how-to-enable-multiple-simultaneous-audio-outputs-on-pulseaudio-in-linux seems to be for the same audio.
Google search Linux play 2 different audios on laptop speaker and jack earphone.
https://chat.mistral.ai/chat/93f8cd31-1d2c-4992-acf9-f10fc2036cae
seems quite simple.
https://pim.etesync.lemnoslife.com/pim/events/KZ_e7ykAkYyWD3ECaZgHyCYAweZhp_Rm|eNu8KszayEMW2ENXpdmdXMtNAYJcIIXK is a reminder within the day.
Switching to Speaker only emits a sound on speakers for about 0.1s.
paprefsstands for PulseAudio PreferencesOutput Devices does not change.
DuckDuckGo and Google search
"Speakers (unavailable)".DuckDuckGo search Disable Auto-Mute mode in ALSA mixer.
The Ask Ubuntu answer 282640:
https://bbs.archlinux.org/viewtopic.php?id=257964 thread does not help.
are unclear.
Output:
ryuukyu/helvum redirects to pipewire/helvum has 134 FreeDesktop GitLab stars and last commit was 6 months ago.
Output:
does not help.
Dotted lines mean no audio ongoing it seems.
Output:
does not mention
default.pa.does not return anything.
Output:
Output:
Output:
https://chatgpt.com/c/69b9d647-1438-8327-b5cb-0b6c4d263e2d
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1025388/comments/11
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1025388/comments/25
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1025388/comments/26
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1025388/comments/41 (TRS and TRRS)
is unclear.
Should keep reading at (included): https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1025388/comments/43
Should investigate https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git/commit/sound/pci/hda/patch_realtek.c?id=84f98fdf7865fbd35b312eb39ea91e5618c514c7
Output:
Even if I enabled back Auto-Mute, unplugging jack (by mistake) results in playing loudly the audio on speakers which is unwanted.
DuckDuckGo search Linux mute speaker when unplug earphone.
The Ask Ubuntu answer 542147 let me think that Auto-Mute should maybe be configured both with and without earphones, but it does not seem to help.
Well as volume for both setups is different and kept on each setup type, I am fine with that for the moment.
Google search Linux mute speaker when unplug earphone.
Output:
Output:
Output:
If plug earphones:
Output:
Output:
/etc/alsa-card-profile/mixer/paths/analog-output-speaker.conf:does not return anything and stopped playing in earphones YouTube from Firefox and no audio resulting on speakers, while the YouTube quality change makes audio back on earphone.
does not return anything.
Output:
I proceeded to the potentially unnecessary step in 4..
does not return anything.
If earphone plugged:
It correctly plays in earphone and speaker at the same time, but as the earphone is closer even with a single earphone it seems that the speaker does not play, but it does.
Can't control both volumes.
If earphone unplugged:
Replugging does not require additional work, but maybe there an audio spike for a second in earphone.
OBS audio volume seems to show that still able to leverage earphone microphone or laptop one, but maybe only if unmute laptop one.
Output:
Output:
Unclear if I am on a non-immutable distribution.
Could specify name as an example to be precise.
/lib/firmware/hda-jack-retask.fw:I quickly went through titles of open and closed issues and pull requests.
seems to be missing a word compared to:
Using Blame:
luisbocanegra/linux-guide-split-audio-ports/commit/d804143586c900fdbdafa2edd597910d51f0f5dd#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R149
so
-fis not justified and introduced since the command introduction.After reboot still same behavior as before reboot.
Output:
Output:
does not return anything.
does not return anything.
Output:
I interrupted after multiple minutes as I was unable to change volume with F{2,3} and changing playing device it seems.
No more button right widget.
Maybe it is now more silent and I hear that
speaker-test -Dhw:0,0 -c2comes from the speakers.Note that it is a noise sound.
Output:
plays in the speakers.
does not return anything.
Output:
After reboot:
Output:
It works as wanted!