I am trying to detect a signal when a headphone is connected or disconnected from the system. What is the best way to do this?If there is a special board with drivers, that will be my preferred way. 
Detecting headphone connection/disconnection in Linux
linux;audio;hardware