

Hdajackretask Screenshot to switch the headphone to speakers:Īfter you click "Apply now" a shell script is created to make the changes and prompts for super user password to execute. I found that overriding both the headphones and speakers at the same time works best. However, if the OS detects when a line is plugged in the headphone jack then the audio is most likely not mechanically switched. Note: If the headphone jack has a built in hardware switch that re-routes the audio then you are SOL (Sorry outta luck).


On some systems you may also need to disable Front by adding this snippet: Ĥ. We need to completely cut off Line Out when we use headphones.Įdit: /usr/share/pulseaudio/alsa-mixer/paths/nfĪdd this snippet to the end of the file: Add this snippet to the end of the file: ģ. By default, Line Out's volume controlled only by Master, and not by Line Out slider itself. If you're using the jacks on the front of your computer's case change instead. We tell pulseaudio that headphones are always plugged in.Įdit: /usr/share/pulseaudio/alsa-mixer/paths/nf To achieve this, you should directly edit Pulseaudio mixer's configuration. This is extremely useful if you want to remap Realtek's jacks to have, say, Rear Green for headphones and Blue for speakers (with the help of hdajackretask from alsa-tools). What we want is to have Headphone and Line Out sliders working separately and at the same time. You can observe this behavior in alsamixer. Having both speakers and headphones plugged in and switching in software on-the-flyīy design, Pulseaudio automatically turns off Line Out when headphones are plugged in and uses Headphone slider instead.
