Programs 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 the
What is "C sort order"?
Does "a similar named file" mean two files with the same filename?
I have two files
When resume and thaw, which one is run first and which second?