I am making a solution where I want to control headphone detection by PC externally as I have no control over the PC to do it through software. Below are my attempted solutions.
My first try was to make solenoid push and pull the headphone jack in and out of the PC but don't know whether it will have enough force correctly push/pull. Also mechanical solution will increase cost and make system unstable.
I wanted to insert headphone plug only(like in below figure)and control the circuit open/close to make head phone detection. I inserted the plug like in image and my showed that the headphone connected even though its just a plug because headphone sockets have switches which get activated and show headphone connected so this also is not possible.
The second solution seems the correct way. so Please let me know whether there is another way like directly controlling headphone socket electrically.