From manpage pm-action(8):
/etc/pm/sleep.d, /usr/lib/pm-utils/sleep.dPrograms in these directories (called hooks) are combined and executed in C sort order before suspend and hibernate with as argument ´suspend´ or ´hibernate´.
Afterwards they are called in reverse order with argument ´resume´ and ´thaw´ respectively.
If both directories contain a similar named file, the one in
/etc/pm/sleep.dwill get preference. It is possible to disable a hook in the distribution directory by putting a non-executable file in/etc/pm/sleep.d, or by adding it to theHOOK_BLACKLISTconfiguration variable.
What is "C sort order"?
Does "a similar named file" mean two files with the same filename?
I have two files /usr/lib/pm-utils/sleep.d/94cpufreq and /etc/pm/sleep.d/20_cpu_freq.
When resume and thaw, which one is run first and which second?
Thanks.