Currently speakers are connected to a sound-card and headphones are connected to another. In the sound settings in the Output menu I can see both and I can choose which one to get output from.
Is there a way that when I disconnect the headphones, sound is automatically output from the speakers? And vice-versa when I reconnect the headphones. Kind of like how a laptop does it. When you disconnect headphones it automatically outputs sound from speakers.
Firstly how do I check whether ubuntu can "see" when I unplug my headphones? (just to know if the approach is possible)