I have a computer with a front panel audio jack, and a screen with built-in speakers, connected with an hdmi cable.

What can I do to make my computer switch to headphones automatically when they are plugged in, and vice-versa ?

marked as duplicate by Tom Brossman, karel, Fabby, Zanna, Bruni Nov 1 '18 at 7:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.