Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 15315  / 1 Year ago, tue, april 18, 2023, 5:38:01

I've seen a few similar questions however couldn't find a solution and they were all a few years old.



When I plug my laptop into the TV HDMI port I have to manually go through the sound options and select HDMI to get the sound to play through the TV. Is there a way to make it switch automatically on connection?



thanks


More From » 13.04

 Answers
2

It is not as easy as it looks at first sight to acchieve this. See the discussion below for reasons why it is in fact rather complicated:





The existing modules module-switch-on-connect, and module-switch-on-port-available will not work consistently with HDMI.



At present there is much effort being done to implement a priority list feature which will let us define the priority of an audio device for pulseaudio to route to it (or not):





Until this will be generally available in a future release of PulseAudio we have not much more choice than manually switching the audio output sink whenever we connect to a HDMI audio device.



To make life easier in case we often have to switch our output devices we may consider writing a small script to enable toggling between two output sinks. See these questions for a start:




[#30400] Wednesday, April 19, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bblerest

Total Points: 240
Total Questions: 119
Total Answers: 113

Location: Wallis and Futuna
Member since Mon, May 18, 2020
4 Years ago
bblerest questions
Sun, Apr 16, 23, 13:50, 1 Year ago
Fri, Nov 4, 22, 06:21, 2 Years ago
Tue, Sep 27, 22, 12:22, 2 Years ago
;