This script is in /etc/pm/sleep.d/.
I used this as a guide. I am using Ubuntu Mate 18.04.
Execute bit is set.
When my computer resumes, nothing happens.
#!/bin/sh case "$1" in suspend|hibernate) #actions to take on suspend or hibernate ;; resume|thaw) #other actions to trigger on resume gxmessage -fg red -font 'sans 30' -timeout 3 ' Computer has now resumed from suspend state.' ;; esac
I found this in syslog.
Mar 31 02:00:51 7 dbus-daemon: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.95' (uid=0 pid=16760 comm="geany /etc/pm/sleep.d/On_Resume.sh " label="unconfined
I have no /var/log/pm-suspend ?