Is there a system resource for monitoring operating temperature

I have a Macbook Pro running Yosemite.

But this question can apply to any Mac:


Is there system resource for monitoring operating temperature

in real time? I would prefer not to have to obtains 3rd party softawre.


There is presently a heat wave where I live and the temperature

inside my residence can get to 95 deg. I don't have air conditioning.

I would like to be able to monitor the temp so I can shut the machine

down before it gets too hot.


But I am also not aware of what actually happens when the CPU or

other components get too hot.


I have been looking at Activity Monitor and I don't see anything

representing temperature.


I have seen a partial list of similar questions. But often the one

I look at is off the mark, AND I can't step back to the ask question

page with CMD-[ in Firefox.


Thank you for time and attention;

JK

MacBook Pro 15″, macOS 10.13

Posted on Aug 15, 2020 10:08 PM

Reply

Similar questions

8 replies

Aug 16, 2020 12:02 PM in response to anotherJeff273

In the Terminal, copy/paste the following command line, and then enter. The sudo command will prompt for, but not echo your administrator password. I do not have Yosemite, so uncertain if Apple provided the powermetrics command back then.


sudo powermetrics -n 1 --samplers smc | grep "(CPU|GPU) die|Fan"



The output will look something like this for a Mac with a discrete GPU such as my Late-2013 iMac. Note that I have the grep match color set to vivid yellow.


and the following for a MacBook Air with integrated CPU/GPU on the same die:


Aug 16, 2020 6:04 AM in response to anotherJeff273

The mac is full of temperature sensors on CPU, RAM etc etc etc, that is how the fans are controlled.

If these sensors detect your mac is in danger of overheating it will shut down.

Why Apple does not provide a display of temperatures is one of those mysteries,

however any third party app that displays the temperatures just taps into the mac and

gives you that information, they will not harm your mac in any way.

This free app is very popular, https://crystalidea.com/macs-fan-control

or you can get download this, https://bjango.com/mac/istatmenus/


Why are you scared of third party apps.


Aug 16, 2020 3:33 PM in response to anotherJeff273

The die temperature is the CPU/GPU die temperature at the time you run powermetrics, and not the actual shutdown temperatures which Apple does not publish. What Apple does publish in the technical specifications for its machines is the ambiant operating, and storage temperatures, where 95°F is the upper limit of that ambiant operating range.


Running your Mac in ambiant temperatures at or above 95°F and/or relative humidity above 90% can risk forced hardware shutdowns, and shorten the life of your Mac. Unless you can find a safe means to reduce the ambiant air temperature around that MacBookPro below 95°F, then I suggest you either go where there is air-conditioning, or not use the Mac until the temperatures decline to safer levels.

Aug 17, 2020 5:01 AM in response to anotherJeff273

See my previous post about the CPU/GPU die temperatures are actual (right now) temperatures when powermetrics is run.


See my original reply for the correct powermetrics command-line usage which you did not show correctly in your preceding Added in edit: content. That -n 1 is important because it tells the application to get 1 sample. If you use -n without an argument, it will run infinite samples, and you would have to terminate the command with a control-c.

Aug 16, 2020 10:09 AM in response to Eau Rouge

So, if there is no built in resource for temp monitoring

I guess I will have to get a third party app.


I presume that if the system decides to shut down due

to temperature, it will give me enough warning to save

files and such.


I actually have been using Macs since about 1996 and

have never had one shut down from overheating. Even

my TI powerbook, which normally ran hot never shut

down from heat.


Thank you for the response an guidance

JK

Aug 16, 2020 10:00 PM in response to VikingOSX

I'm sorry, I am still struggling a bit with 'die temperature'. Is that

the actual temperature 'at the time you run powermetrics'?


I have a thermometer in the vacinity of the Macs I use and

have not seen the temperature get quite as high as 95 deg.


It is generally low humidity in the area I live in, southern Oregon.

On Saturday the high temperature reported on commercial tv

weather report was 107 at the airport in Medford Oregon. Where

I live, the inside (my residence) temp was just around 95. It is

difficult to read my thermometer precisely. I also use fans to keep

the air moving in the environment.


Added in edit:

sudo powermetrics -n --samplers smc | grep "(CPU|GPU) die|Fan"

Result:

This system doesn't support display of c-state info.

unable to get smc values


In addition the command is still running so 'exit' has

no effect.


Thank you for your response and info

JK



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Is there a system resource for monitoring operating temperature

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.