OK, thanks for the answers. Here's my suggestion. It uses a stereo jack socket with no switch.
It works by applying a low DC voltage (about 0.7V), at a very low current, to the left and right contacts of the plug. When no headphones are plugged in, this voltage biases transistor Q1 ON, and it...