After resuming from suspend my PC speaker becomes silent. I need to run
alsamixer and arbitrarily adjust its volume either up or down for it to come back again. But if I suspend and then resume a second time the same problem happens again.
Any ideas what might be making it silent?
I have already checked the following:
lsmod | grep pcspkr
As suggested below, a useful workaround is to create a hook
/etc/pm/sleep.d/alsa to run
alsactl restore upon resuming from sleep. But I still don't know what the problem is.