Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Sleep History Log?

Sleep History Log?
Thread Tools
megasad
Grizzled Veteran
Join Date: Oct 2002
Status: Offline
Reply With Quote
Jul 21, 2006, 06:12 PM
 
Bad shenanigans have happened in my house and so I need to find out what times a 12" PowerBook running Mac OS X 10.3.9 was woken from / put to sleep.

Is there any way of doing this? A terminal command? A log file?

The machine has not been switched off for many days and I just need to find out the last day's activities.
( Last edited by megasad; Jul 21, 2006 at 07:43 PM. )
BayBook (13" MacBook Pro, 2.4GHz Core 2 Duo, 4GB RAM, 1TB HD) // BayPhone (iPhone 4, 32GB, black)
     
pat++
Mac Elite
Join Date: May 2001
Location: Earth
Status: Offline
Reply With Quote
Jul 21, 2006, 11:29 PM
 
grep "setting hostname" /var/log/system.log

should give you an idea (the hostname is set on wake from sleep. This is for 10.4.7, so not sure it would show up for 10.3.9. Anyway check system.log, should have some info.
     
GSixZero
Mac Elite
Join Date: Aug 2004
Location: Seattle, WA
Status: Offline
Reply With Quote
Jul 22, 2006, 03:27 AM
 
I'm using 10.4.7, but grep "setting hostname" /var/log/system.log only shows some of the times that my computer woke up today.

Try

grep System Wake System Sleep /var/log/system.log

My machine logs the sleep event at the time it wakes up, that's sort of stupid.
( Last edited by GSixZero; Jul 22, 2006 at 04:00 AM. )

ImpulseResponse
     
megasad  (op)
Grizzled Veteran
Join Date: Oct 2002
Status: Offline
Reply With Quote
Jul 22, 2006, 02:14 PM
 
Originally Posted by GSixZero
I'm using 10.4.7, but grep "setting hostname" /var/log/system.log only shows some of the times that my computer woke up today.

Try

grep System Wake System Sleep /var/log/system.log

My machine logs the sleep event at the time it wakes up, that's sort of stupid.
That worked perfectly. Thanks very much.
BayBook (13" MacBook Pro, 2.4GHz Core 2 Duo, 4GB RAM, 1TB HD) // BayPhone (iPhone 4, 32GB, black)
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 03:08 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,