Headphones randomly don't work

Hello.

Sometimes, without warning, my headphones go silent. No output, nothing. Putting the computer to sleep and waking it up again temporarily fixes the issue.

How are they connected? Wireless? Maybe it’s a kind of powersaving?