Asidhu11, You can perform a clean boot by following these steps. If you need to know how to proceed with a system restore, here are the steps as well.  
My laptop doesn't detect my headphones right away when I plug them in. They're not even shown under "Output" in the sound settings. They only work if I restart my laptop while the headphones are plugged in. Also, I've noticed that if I play something without the headphones being plugged in and plug them in while something is being played they get detected. I hope you understand what is happening and please help. Update-Resolved-Clean boot resolved the issue.
m17 R4, doesn't detect headphones