I have the same problem. The problem is in kernel 4.13 (4.13.0-26 to be exact), since it has appeared as I've installed HWE update. I've tried rebooting with kernel 4.10 and this problem was gone. I've collected the data via ubuntu-bug (was unable to collect it via apport-collect for some reason).
The problem is that both microphone and headphone ports do not detect when the jack gets inserted or removed. So, if you had your headphones connected at the boot time (or at resume time) system would always consider jack inserted (and all sound control frontends, such as pavucontrol, would report it as inserted). However, hdajacksensetest reports jack state correctly. The system changes jack status only on reboot or resume. ** Attachment added: "ubuntu-bug report" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1740971/+attachment/5038351/+files/apport.linux-image-4.13.0-26-generic.qvwtvazv.apport ** Changed in: linux (Ubuntu) Status: Incomplete => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1740971 Title: Can't detect external headset via line-out jack on some Dell machines To manage notifications about this bug go to: https://bugs.launchpad.net/hwe-next/+bug/1740971/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs