Sierra no sound in headphones after sleep If my headphones are plugged in, after going to sleep my Mac doesn't have any sound in headphones. After re-plugging, everything works well. Sometimes, changing the output in sys/Sound works, but not always. 
I'm on MacBook Pro 2017, Sierra 10.12.6

Is there a solution to this? While working I need to put laptop to sleep frequently, and I don't want to mess with the headphones jack too much on daily basis. If any additional info needed, please let me know.
You can try:

sudo kextunload /System/Library/Extensions/AppleHDA.kext
sudo kextload /System/Library/Extensions/AppleHDA.kext
sudo pkill coreaudiod


This means:


unload sound kernel module,
reload sound kernel module,
stop sound service, il will restart automatically.