Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.