Re: Run script after/before suspending/hibernating
Reply #2 –
Looks good for system actions.
I tried:
#!/bin/sh
case "$1" in
pre)
/usr/bin/notify-send "pre"
touch /path/to/my/home/post-executed
;;
post)
/usr/bin/pamixer -u -d 5
/usr/bin/notify-send "post"
touch /path/to/my/home/post-executed
;;
esac
If I launch it manually it works but when suspending no file is created.
Is elogind supposed to be able to do things in my home?
I made the file /etc/modprobe.d/alsa.conf with this content:
options snd_hda_intel index=1
And now after suspending/hibernating audio streams is fine.
I tried a little let's see if it is fixed properly.