I get into a state sometimes where the headphones just ill not register. I think it is some lock file that prevents the headphones from being detected. To fix this:
alsactl restore
I think the key thing is to boot the PC with the headset plugged in and first attempt to plug/unplug if they do not work. If that fails, try the above command.
Leave a comment