In an upcoming post, we will be talking in depth about the /dev/input directory in Linux and this is like a teaser to that post. This video talks about how the computer knows whether a headphone jack has been plugged in or not from a software point of view.
The series will cover in detail on what is happening in the back-end and we will also write python programs to read this data on our own without needing any external libraries.