Scott
]]>convert your scripts to systemd unit files and keep them in /etc/systemd/system
So basically making a service out of them?
Are there any steps that I can follow to create the unit files?
]]>It is up to you to know if you still have need for the pm-utils package. That is, if any other package you still want to use depends on it. Make sure to use the recursive option when removing it and pacman will most likely tell you.
]]>I have a working custom script now.
Just two final questions.
1. The custom scripts are located in /usr/lib. Will they be overwritten or deleted with updates of systemd? Why are they not located in /etc?
2. Am I safe to remove pm-utils now?
I presume this might be related to systemd not running pm-utils hook nor custom hooks if you have set it to handle ACPI events.
Check out the wiki in order to know where to place your script or try to convert it to a systemd unit file.
I have a script /etc/pm/sleep.d/90_startup which contains the following code:
#!/bin/sh
case $1 in
resume)
/home/orschiro/.startup
;;
thaw)
/home/orschiro/.startup
;;
*)
/home/orschiro/.startup
;;
esac
However, it is not run on resume. I am using Gnome 3.6. Is there something with Gnome that prevents running the script?
]]>