Depending on the "get back" condition pm-utils passes the first positional argument with value "thaw" (hibernate) and "resume" (suspend) to scripts located in this folder /etc/pm/sleep.d
Examples can be found here
https://wiki.archlinux.org/index.php/pm-utils
As usual don't forget the executable bit.
This is an example to attend the issue with the official realtek driver