How is "plug-in auto detection" realized with this circuit?
Typically, the shield is connected "somewhere" to the ground connection.  Either at this connector or at the other end of the cable.  In either instance, plugging in the cables will short the case/shield to ground which is equivalent to closing the PB switch.