Ctrl + Alt + T
alsamixer
Press F6 and press the up and down keys to select number 1
Use the left and right keys to select, and the up and down keys to adjust the volume. Headphon headphones, Speaker system external amplifier
Set Auto-Mut to Enabled, select Auto-Mu, press the up and down keys, select Enabled, the earphone and system external sound will automatically switch