Ubuntu is intentionally designed to automatically prefer the USB (or Bluetooth) audio over the internal audio.
It sounds like you want to disable that feature, so just remove/comment these lines from /etc/pulse/default.pa:
### Use hot-plugged devices like Bluetooth or USB automatically (LP: #1702794)
.ifexists module-switch-on-connect.so
load-module module-switch-on-connect
.endif
Ubuntu is intentionally designed to automatically prefer the USB (or Bluetooth) audio over the internal audio.
It sounds like you want to disable that feature, so just remove/comment these lines from /etc/pulse/ default. pa:
### Use hot-plugged devices like Bluetooth or USB automatically (LP: #1702794) switch- on-connect. so switch- on-connect
.ifexists module-
load-module module-
.endif