/etc/apm/scripts.d/alsa is in alsa-base 1.0.25+dfsg-0ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 | #!/bin/sh
#
# apmd proxy script for ALSA
[ -x /sbin/alsactl ] || exit 0
case "$1,$2" in
suspend,*) /sbin/alsactl store && /sbin/alsa suspend ;;
resume,suspend) /sbin/alsa resume && /sbin/alsactl restore ;;
esac
|