How to configure wired headphone detection

You can follow my possibly helpful adventure here: