You are not logged in.
Pages: 1
Hi.
I'm trying to execute an action after resuming from suspend-to-disk.
I currently use a service which starts after hibernate.target, however this does not seem to include a resume from hibernation after suspend-then-hibernate. I want to have a service, which starts always after resuming the system from disk but not when resuming from RAM.
How can I achieve this out the box? The wiki although infinitely helpful on most subjects unfortunately has nothing on this.
Offline
There's a suspend-then-hibernate.target as well, hooking your existing service to that additionally should give you what you want. Though I don't know whether this has any fine granularity to state only coming from the hibernation phase... What is it that you want to do exactly?
Last edited by V1del (2020-01-11 12:30:43)
Offline
Thanks for the suggestion. Unfortunately it does not offer any information about the state. Suspend-then-hibernate.target fires both on resuming from S3 and from S4 without any indication as to what exactly happened. Kernel knows though, so I thought maybe there is a non-hacky (not through e.g. reading kernel logs or making your own suspend then hibernate with the rtc clock) way of doing this.
What I want is to bypass the lockscreen when waking from hibernation but not when waking from suspend for... reasons.
Last edited by newbie115 (2020-01-11 16:15:47)
Offline
Pages: 1