I have noticed this also. After testing it seems to be a race condition. I can only reproduce it when headphones are unplugged (not plugged in). Essentially what is happening is that the headphone port becomes unavailable therefore the backend goes to remove that output which results in the UI moving to the next available port. Meanwhile the speaker port becomes available but at that stage the damage is done as the UI thinks the other device should be default. One potential solution would be for the backend to always guarantee that the port which has just become available to always send it's signal first ahead of the signal which will remove the unavailable port.
** Changed in: gnome-control-center (Ubuntu) Status: New => Triaged ** Changed in: gnome-control-center (Ubuntu) Importance: Undecided => Low -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/989893 Title: [soundnua] Audio doesn't correctly switch when headphones are plugged in/unplugged To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/989893/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs