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.
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.