Based on much experimentation, I have found that when I have my Dell 7720 laptop running Ubuntu 22.10, the operating system cannot tell if the audio jack is plugged in or not. This is in contrast to Windows 10 or 11 which knows when the audio jack or the speakers are in use. Indeed, If one is suing the aufio jack and you pull it out, Windows asks if you want to use the audio jack or the built-in speakers.
Is such a function part of the Ubuntu OS?
John