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 Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1740971 Title: Can't detect external headset via line-out jack on some Dell machines Status in HWE Next: New Status in linux package in Ubuntu: Confirmed Status in linux-oem package in Ubuntu: Confirmed Bug description: insert a headset to line-out jack Expected results: system should detect line-out port and sound output through line-out jack Actual results: Can't detect external headset via line-out jack To manage notifications about this bug go to: https://bugs.launchpad.net/hwe-next/+bug/1740971/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp