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
Here's how the script in
/etc/pm/sleep.d
should look like. Name it20_mute_audio