This question has been spun off from my question about hibernate being slow.
I know I can run a script when I resume the computer by putting it in /etc/acpi/resume.d
, but that will only run it once. What I was hoping for was a "starting wakeup" script and a "finished wakeup" script, so each one would log it's time somewhere and I could see how long resume works.
I figure this is a long shot, since the "starting wakeup" script would have to run really early, so even if it was possible, there might not be a disk to write to.