Skip to main content
Share Your Experience: Take the 2024 Developer Survey
264 votes
Accepted

Can I get the CPU temperature and fan speed from the command line in OS X?

Option #1) you may consider using inbuilt utility powermetrics to get the cpu and gpu temperature and lot more other details. To get CPU temperature: sudo powermetrics --samplers smc |grep -i "...
Satish's user avatar
  • 2,792
60 votes

Can running `yes > /dev/null` harm a Mac?

The instructions for yes have this little gem from the man page : Using yes results in 100% processor usage, for this reason it is rarely used other than for testing e.g. to max out a computer's ...
Allan's user avatar
  • 103k
16 votes
Accepted

When using an external monitor, does a mid-2015 Retina Macbook Pro with only integrated graphics run cooler than one with discrete graphics?

The short answer appears to be: yes, 12 degrees C (22 degrees F) or more cooler. I got ahold of a custom-build Macbook Pro that has identical specifications except that it had no discrete graphics ...
abyrd's user avatar
  • 411
15 votes

How can I get the CPU temperature from the command line on Apple Silicon M1

Temperature is not mapped to the power metrics command line app on Apple Silicon. What is easy to see thermal pressure which aggregates temperature across the 15 to 42 cores present on M1 integrated ...
bmike's user avatar
  • 237k
13 votes

Monitor GPU performance on OSX

You can use Activity Monitor that comes with MacOS in Applications>Utilities Choose Window>GPU History or press ⌘4
fvlasie's user avatar
  • 133
13 votes

Can I get the CPU temperature and fan speed from the command line in OS X?

The SMC sampler is not available on the M1 (or on Big Sur, not sure which). You can get frequencies and power usage for CPU and GPU with powermetrics, but not the temperature, as far as I can tell. ...
Rishab Surana's user avatar
12 votes

How to control fan speed in macOS Sierra?

I am a firm believer in avoiding software "hacks" to fix hardware issues. To fix this problem, you need the sensor. Unfortunately, as you have found out, your SSD doesn't support this connection. ...
Allan's user avatar
  • 103k
10 votes
Accepted

Set PATH variable so that it is detected in all applications, even outside terminal. (El Captain)

The loginwindow process sets a user's environment. It sets the variables TMPDIR and PATH, consults Directory Services and sets SHELL HOME USER LOGNAME . PATH is set to /usr/bin:/bin:/usr/sbin:/sbin ...
fd0's user avatar
  • 10.8k
9 votes
Accepted

Can I completely turn off the fans on a MacBook Pro (0 RPM)

Disabling the fans is not recommended but appears possible through the software below: smc-command This tool will allow you to write values to the SMC which could irreversably damage your ...
Graham Miln's user avatar
  • 44.1k
8 votes

Get disk temperature in terminal

Without add on software there is no command to get the disk temperature, after: brew install smartmontools One can run the following command o retrieve de disk temperature: $ smartctl -a disk0 | grep ...
Pro Backup's user avatar
  • 3,956
8 votes

Monitor GPU performance on OSX

Update: MacOS includes the in-built powermetrics command line tool which allows for access to varity of performance and power info. e.g. to obtain running GPU info every 5 seconds: sudo powermetrics --...
Pierz's user avatar
  • 3,677
8 votes

Can running `yes > /dev/null` harm a Mac?

The yes command simply repeatedly writes a string to stdout, the character y by default. Redirecting (>) it to /dev/null simply causes for the stream data to be forgotten. In other words this has ...
le3th4x0rbot's user avatar
7 votes

CPU Die temperatures reaches 90° C, is that normal?

The MacBook Air 13", Mid 2011, comes with an Intel Core i5 or Core i7 (2557M, 2677M) ("Sandy Bridge") Processor and the maximum temperature allowed at the die is 100° C, per Intel's documentation on ...
user3439894's user avatar
  • 58.9k
7 votes
Accepted

MacBook Air CPU core PECI temperature

Here are some things to keep in mind for your streaming event. If the CPU gets too hot, the MacBook will throttle and reduce clock speed. That could result in dropped frames. Most of the time you ...
n1000's user avatar
  • 7,734
6 votes

Can I get the CPU temperature and fan speed from the command line in OS X?

There are two main ways to view your CPU stats if you don‘t want to install additional software you can view a lot of details from the terminal / command line. Type on the terminal... sudo ...
Asher's user avatar
  • 248
6 votes
Accepted

Can running `yes > /dev/null` harm a Mac?

Certainly as others have said: the CPU and kernel both have their own self-preservation strategies. I'll add some flavour concerning how yes uses computer resources. It's worth distinguishing ...
Birchlabs's user avatar
  • 314
6 votes

Are these normal temperatures?

Totally normal if on the low side. If your CPU is less than 15% idle, I expect you to get to 85 C internal for CPU proximity and higher for all the on die thermocouples. Running just unde 100 C is how ...
bmike's user avatar
  • 237k
6 votes

Is it possible to turn down the frequency on a LG 5K Ultrafine and will it help reduce GPU heat?

It's not possible to change the frequency and the physical resolution of this display. IMHO changing that will not lower the thermal load of your MBP, because once you connect an external display the ...
mspasov's user avatar
  • 6,392
5 votes
Accepted

When will SIP shutdown the computer to prevent overheating?

System Integrity Protection has nothing to do with controlling what happens if the CPU breaches it thermal limit. System Integrity Protection is a security technology in OS X El Capitan and later ...
user3439894's user avatar
  • 58.9k
5 votes

Macbook pro 13" - 2017 - heating issues when connected to external monitor

I just saw many people had the same issue as my self and first i didn't understand why. Now i do. The reason it gets so hot when hooked up to a monitor, even when you’re just running Word or Safari, ...
Lui P's user avatar
  • 91
5 votes

High CPU and GPU temperature, high fan speed, low activity

Since you've established that you don't have the problem in Safe Mode, but still do after logging in normally again, then it's time to investigate login items, fonts, and kernel extensions ...
Monomeeth's user avatar
  • 64.7k
5 votes

Is it possible to turn down the frequency on a LG 5K Ultrafine and will it help reduce GPU heat?

According to the monitor manual, the monitor itself does not support 30 Hz. In the section regarding "Signal Timing" they only list 60 Hz as supported. In the product specification sheet, they write ...
jksoegaard's user avatar
  • 78.2k
5 votes

Mac Mini's fan is not speeding up when it's under pressure

Hmmmm, maybe you should look at Macs Fan Control app to set fan rules and try to manually start your fans to make sure they are still functional. Download Macs Fan Control
ADeveloper's user avatar
4 votes

Is this a normal fan speed and CPU temperature for an idle MacBook Pro (Retina, 15-inch, Mid 2015)

The various temperature readings look absolutely 100% fine! This resource (which can be filtered) clearly shows that your CPU temp at 52.38°C is nothing to worry about. My MBP temp is regularly ...
Monomeeth's user avatar
  • 64.7k
4 votes
Accepted

How to get the temperature of MacBook hardware without extra software?

There seems to be no discernable way to find the temperature of hardware components purely without 3rd party software. Reference: https://discussions.apple.com/message/12919985#message12919985
twothirtyfive's user avatar
4 votes

Macbook pro 2018 with Mojave overheating when connected to external monitor

The higher power GPU in some MacBooks Pro puts out a lot more wattage than the low power GPU. The reason it gets so hot when hooked up to a monitor, even when you’re just running Word or Safari, is ...
Lui P's user avatar
  • 91
4 votes
Accepted

Does an iPhone battery drain faster in cold?

Yes - run times are shorter when the battery is cold. Apple has this to say: - https://www.apple.com/batteries/maximizing-performance/ When using your device in a very cold environment, you may ...
ernie's user avatar
  • 189
4 votes

Overheating Macbook Pro

Yes, frequency spikes like that are normal - it is a feature of these CPU. Intel calls this "Turbo Boost", and allows for for example your 2.8 Ghz Core i7 processor to Turbo Boost up to 3.8 Ghz for ...
jksoegaard's user avatar
  • 78.2k
4 votes
Accepted

Are 82°C to 98°C Temperatures extreme for a MacBook Pro?

I'm assuming you have the Mid 2018 15" MacBook Pro with the Intel i7-8850H CPU. This CPU has a maximum junction temperature of 100°C. That means that hitting 82°C while browsing or 98°C while gaming ...
jksoegaard's user avatar
  • 78.2k
4 votes

Mac mini fan never surpasses 7%, even while stress testing

What the OP has effectively demonstrated is that Apple's extensive efforts and expenditure towards building out a thermal management solution that covers the entire performance envelope have been ...
pion's user avatar
  • 4,857

Only top scored, non community-wiki answers of a minimum length are eligible