From: bbcda on
On 2010-03-14 10:27:34 -0400, Jolly Roger said:

> In article <4b9bf5d9$0$4974$607ed4bc(a)cv.net>,
> bbcda <office8(a)eml.bbcda.de> wrote:
>
>> my
>> MacBook Pro (13", current model - 2.53 GHz) shuts down after a while of
>> standing idle, no matter if connected to the power supply or the
>> battery only (the latter I would understand).
>
> Have you examined the /var/log/system.log to see what messages are
> posted there?

Hi, JR!

Good point! I think I tried it once, but couldn't find anything helpful
(but that's some weeks ago)... as of yet, it didn't happen again. I
switched to normal sleep mode now, as suggested, and will see tomorrow
(when I leave the computer unattended standing for a longer time over
lunch) what happens... if it tries to shut down again, I'll have a
closer look into the system.log (the last time the system tried to halt
- but was interrupted by running applications with unchanged data - was
on friday, and the sys-log has been wiped in the mean time, so that I
can't fand any info on that now...).

I'll post again when I have more info!

Thanks again! Best,
Bj�rn

From: bbcda on
Hey, JR!!

> It would be best to figure out when the event happens, then look for
> entries in the log time stamped with that time.

Well, for today, that wasn't easy, because I left my computer for about
1.5 hours - and A LOT has appeared in the syslog in the meantime
(hundreds of those senseless Mail-entries...).

>
> Barring that, I would search the log for "sleep", and see what you find.

To my understanding, the problem isn't that the computer goes to sleep
- but that it wants to completely shut down (something out of the old
days... people may want to do that with Windows - but with a Mac? ;-)
just kidding... but, really, I don't want to shut down my computer
every day, because I usually keep a lot of documents, settings and
software open, which I need for work...).

That said, there are hundreds of items with "sleep" - but none from the
middle of the day (when the system was going for shutdown). those are
the last entry from the morning, and the first in the evening about
"sleep":
Mar 15 11:41:47 host-b-6 System Preferences[7791]:
HibernationFile:/var/vm/sleepimage
Mar 15 19:20:36 host-b-6 loginwindow[29]: loginwindow SleepWakeCallback
WILL sleep
While the problem has appeared some time between 12:40 and 14:15 h...

Do You have another search term to look for? What would be the typical
string for a shut down event?

>
> Feel free to post any select messages you don't understand here for
> diagnosis.

Thanks for You input!

Kind regards,
Bj�rn

From: Jolly Roger on
In article <4b9ee4bf$0$4975$607ed4bc(a)cv.net>,
bbcda <office8(a)eml.bbcda.de> wrote:

> Hey, JR!!
>
> > It would be best to figure out when the event happens, then look for
> > entries in the log time stamped with that time.
>
> Well, for today, that wasn't easy, because I left my computer for about
> 1.5 hours - and A LOT has appeared in the syslog in the meantime
> (hundreds of those senseless Mail-entries...).
>
> >
> > Barring that, I would search the log for "sleep", and see what you find.
>
> To my understanding, the problem isn't that the computer goes to sleep
> - but that it wants to completely shut down (something out of the old
> days... people may want to do that with Windows - but with a Mac? ;-)
> just kidding... but, really, I don't want to shut down my computer
> every day, because I usually keep a lot of documents, settings and
> software open, which I need for work...).
>
> That said, there are hundreds of items with "sleep" - but none from the
> middle of the day (when the system was going for shutdown). those are
> the last entry from the morning, and the first in the evening about
> "sleep":
> Mar 15 11:41:47 host-b-6 System Preferences[7791]:
> HibernationFile:/var/vm/sleepimage
> Mar 15 19:20:36 host-b-6 loginwindow[29]: loginwindow SleepWakeCallback
> WILL sleep
> While the problem has appeared some time between 12:40 and 14:15 h...
>
> Do You have another search term to look for? What would be the typical
> string for a shut down event?
>
> >
> > Feel free to post any select messages you don't understand here for
> > diagnosis.

Sorry. I don't know why I said "sleep"! Searching for "sleep" probably
won't get you what you're looking for.
Here's what a user-initiated shutdown looks like with Mac OS X 10.6 on
my Mac Pro:

Mar 15 15:31:52 macpro shutdown[40845]: halt by jr:
Mar 15 15:31:52 macpro shutdown[40845]: SHUTDOWN_TIME: 1268685112 917917
Mar 15 15:31:53 macpro mDNSResponder[16]: mDNSResponder
mDNSResponder-214.0.2 (Dec 15 2009 16:58:04) stopping
Mar 15 15:31:53 macpro PubSubAgent[40812]: rlsCancel notifycancel():
(ipc/mig) server died

You might try searching for "halt" or "mDNSResponder" to see if you can
find the spot where the shutdown happened.

--
Send responses to the relevant news group rather than email to me.
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR
From: bbcda on
Hey, JR!

> Here's what a user-initiated shutdown looks like with Mac OS X 10.6 on
> my Mac Pro:
>
> Mar 15 15:31:52 macpro shutdown[40845]: halt by jr:
> Mar 15 15:31:52 macpro shutdown[40845]: SHUTDOWN_TIME: 1268685112 917917
> Mar 15 15:31:53 macpro mDNSResponder[16]: mDNSResponder
> mDNSResponder-214.0.2 (Dec 15 2009 16:58:04) stopping
> Mar 15 15:31:53 macpro PubSubAgent[40812]: rlsCancel notifycancel():
> (ipc/mig) server died
>
> You might try searching for "halt" or "mDNSResponder" to see if you can
> find the spot where the shutdown happened.


Thanks! I tried searching for "halt" - nothing! Also "SHUTDOWN_TIME"
didn't appear one single time in my current log (which extends at least
over one complete day, so that it should cover the shutdown from today
around lunch...). The mDNSResponder appears very often - but not in the
time frame in question (over my lunch break)... Strange! Very strange!
Okay, I have found that the mDNSResponder still tries to connect to
mobileMe (I once had a test account - though that's more than a month
ago and deleted... wonder why the system still tries to connect to the
service, though it is switched off...). But that's another problem only
- and likely doesn't have anything to do with this :-D Anyway.

Hm. Does anybody have any other suggestion about the possible reasons
of this curious auto-shut down - or how to find out about them? Any
other possible terms to search for in the log file? I will keep an eye
on it - I suspect that the problem will occur again tomorrow during the
lunch break :-D


Thanks, JR, for Your suggestions! This seems to be a very strange behaviour...

Best,
Bj�rn
From: Jolly Roger on
In article <4b9ef811$0$31260$607ed4bc(a)cv.net>,
bbcda <office8(a)eml.bbcda.de> wrote:

> Hey, JR!
>
> > Here's what a user-initiated shutdown looks like with Mac OS X 10.6 on
> > my Mac Pro:
> >
> > Mar 15 15:31:52 macpro shutdown[40845]: halt by jr:
> > Mar 15 15:31:52 macpro shutdown[40845]: SHUTDOWN_TIME: 1268685112 917917
> > Mar 15 15:31:53 macpro mDNSResponder[16]: mDNSResponder
> > mDNSResponder-214.0.2 (Dec 15 2009 16:58:04) stopping
> > Mar 15 15:31:53 macpro PubSubAgent[40812]: rlsCancel notifycancel():
> > (ipc/mig) server died
> >
> > You might try searching for "halt" or "mDNSResponder" to see if you can
> > find the spot where the shutdown happened.
>
> Thanks! I tried searching for "halt" - nothing! Also "SHUTDOWN_TIME"
> didn't appear one single time in my current log (which extends at least
> over one complete day, so that it should cover the shutdown from today
> around lunch...). The mDNSResponder appears very often - but not in the
> time frame in question (over my lunch break)... Strange! Very strange!
> Okay, I have found that the mDNSResponder still tries to connect to
> mobileMe (I once had a test account - though that's more than a month
> ago and deleted... wonder why the system still tries to connect to the
> service, though it is switched off...). But that's another problem only
> - and likely doesn't have anything to do with this :-D Anyway.
>
> Hm. Does anybody have any other suggestion about the possible reasons
> of this curious auto-shut down - or how to find out about them? Any
> other possible terms to search for in the log file? I will keep an eye
> on it - I suspect that the problem will occur again tomorrow during the
> lunch break :-D
>
> Thanks, JR, for Your suggestions! This seems to be a very strange behaviour...

One thing you could do is write a little "stay running" Applescript
applet that would create a text file with a time stamp each time you
quit it. Then leave it running so that when the automatic shutdown
occurs you have a time stamp of exactly when it happened that you can
use to match up to various log files.

Paste this script into a new script window in Applescript Editor:

-- begin script
on quit
set filePath to (the path to the desktop from the user domain)
set filePath to filePath & "Detect Shutdown Log.txt" as text
set fileRef to open for access file (filePath) with write permission
set eof fileRef to 0
write ((current date) as text) to fileRef
close access fileRef
continue quit
end quit
-- end script

Then save the script with File Format: Application, and "Stay Open"
checked. Then add it to your System Preferences > Accounts > Login Items
list to have it launch each time you log in. Whenever the script quits,
it will create a file named "Detect Shutdown Log.txt" on your desktop
with a time stamp in it.

--
Send responses to the relevant news group rather than email to me.
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR