Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.
Fedora 14 xfce

I am looking for the log messages where I can find out what time my netbook hibernated?

I have checked in the /var/log. And all I could see was pm-suspend.log and pm-powersave.log.

Is there one which would tell me what time my computer hibernated?

The reason for this is when I go out I leave my netbook running on the battery. When the battery get to about 5% it will hibernate. I just what to see what time it did hibernate?

share|improve this question
1  
Try who -a /var/log/wtmp. –  geekosaur Mar 21 '11 at 16:09
add comment

1 Answer

up vote 2 down vote accepted

Here is a thread with a couple of ideas on how you can catch the hibernate event and log it yourself: http://serverfault.com/questions/199895/how-can-i-flush-my-ssh-keys-on-power-management-activity/199896#199896 - Use dbus-python - Write PM scripts

I have never used dbus myself, but if you need help, here are some references: - http://www.freedesktop.org/wiki/Software/dbus - http://dbus.freedesktop.org/doc/dbus-python/doc/tutorial.html - http://wiki.python.org/moin/DbusExamples

share|improve this answer
add comment

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.