You are not logged in.
When I use pm-hibernate, I have a few scripts that I would like to run upon de-thawing. At the moment, all I want to do is module-related: I want to remove the pcskpr mod (which I have blacklisted in my rc.conf MODULES array, but HAL loads it upon thawing) and reprobe the ath9k mod (wireless doesn't work until I modprobe it).
I see that you can insert your own hooks for pm-utils, but when are they run? I need my script to run after HAL has its way with my module-probing/loading and I'm not getting a clear impression that this is the case. If not, then what other options exist?
Offline
Offline
btw, you can blacklist pcspkr in /etc/modprobe.conf - then you won't have to bother about it on resume.
Offline
The Arch wiki is mostly the same as that. I still don't know *when* the hooks are executed, big-picture-wise.
btw, you can blacklist pcspkr in /etc/modprobe.conf - then you won't have to bother about it on resume.
Very nice, I didn't know about that. Thanks.
Offline
The hooks in this directory will be called in alphabetic order during suspend (that's the reason their names all start with 2 digits, to make the ordering explicit) and in the reverse order during resume.
That seems clear to me. What else are you looking for?
Offline
Arch wiki wrote:The hooks in this directory will be called in alphabetic order during suspend (that's the reason their names all start with 2 digits, to make the ordering explicit) and in the reverse order during resume.
That seems clear to me. What else are you looking for?
But pm-hibernate does some of its own work for hibernation/thawing. I'd like to know where in relation to *that* the hooks are run. Ie, during hibernation, are they run before or after the vanilla pm-hibernate functionality?
Offline
Couldn't say exactly, but module operations are handled by /usr/lib/pm-utils/sleep.d/75modules. Put the ones you need in the SUSPEND_MODULES array.
This is all covered in the wiki.
Offline
Your custom hooks are merged with the default ones so they will run in between.
Offline
Ah, I see, /etc/pm/sleep.d/ is merged with /usr/lib/pm-utils/sleep.d/. I'm not sure how I missed that. Thanks for pointing out the obvious to me, guys.
Offline