Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 1 down vote accepted

You can look in /var/log/syslog for a general system log, it will contain messages from the kernel about the hibernate process.

The delta from when processes start being frozen to when there are no more kernel log messages (until it starts at 0.0000000 on reboot) is the time your computer took to hibernate.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.