Switching between Speakers and Headphones
I have written a couple of simple scripts that can switch the speakers and headphones and thought I share it. Pretty straightforward though, but maybe it can be updated to be written in one script and can detect whether the auxiliary port is connected to an auxiliary cable or not.

amixer -c 0 set 'Headphone' unmute
amixer -c 0 set 'Line Out' mute

amixer -c 0 set 'Headphone' mute
amixer -c 0 set 'Line Out' unmute

Messages In This Thread
Switching between Speakers and Headphones - by DrewTechs - 07-20-2020, 04:10 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)