I am wanting to make my laptop mute its sound when I suspend, as well as hibernate. I have attempted this by writing a simple script and placing it in my /etc/pm/sleep.d
folder and making the script executable. However when I suspend my laptop nothing happens. Can someone tell me what I need to do to make this goal of mine to work?
#!/bin/bash
#script to make system mute sound on suspend
amixer -q -D pulse sset Master toggle