4

This question already has an answer here:

When this question was asked in 2012, specifically mentioning the "command line" requirement, an answer suggested Temperature Monitor (a "legacy" product). Running all three, Temperature Monitor along with smcFanControl and iStat Menu, side-by-side shows the problem. I don't want this level of perpetual distraction.

menu bar temperature monitors

I suspect the following answer: It is not possible to see the CPU&GPU temperatures from the command line. I suspect this because both iStat and Temperature Monitor install additional drivers. If that's the case, it would be nice to record that answer.

smcFanControl and iStat Menu are nice utilities to make you keep an eye on the temperature of your CPU. The former shows only the CPU temperature, and both are too distracting (the latter's precursor, iStat Nano, could sit silently in the Dashboard until one needed it, plus iStat Menu seems rather sticky: I haven't figured out how to delete it yet—just removing the program from /Applications is insufficient.)

It was nice to find that ioreg will reveal the Maximum Capacity of a battery (in contrast to the static Design Capacity, the Maximum Capacity signals the health of the battery). Using a program (such as CoconutBattery) is not necessary.

A script (still using ioreg) will reveal the battery temperature

AppleSmartBattery Temperature: 30 °C 62.0 °F

and so I'm hoping for a renewed answer in 2017 to the following question.

How can I view the CPU temperature from the command line? It would especially be nice to also see the GPU temperature. OS X just crashed and rebooted on its own, and the Console logs ("Event: GPU Reset" and "GPU HangState 0x00000000") suggest that the GPU might be the culprit. I'm trying to determine if it's time to reapply the thermal paste and reattach the heatsinks (never done this before; not even sure it's within my ability).

marked as duplicate by nohillside Aug 4 '17 at 16:42

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • iStat Menu (or iStat Menus) is a different app than iStat Nano – Skeleton Bow Aug 4 '17 at 15:13
  • There are several answers to the question you've linked to, some of them mentioning command line tools. Can you try these first as well? And, if necessary, come back and indicate in the question text why none of them matches your needs? – nohillside Aug 4 '17 at 16:43
  • not a duplicate. GPU temps would be different than CPU temps, assuming there's different sensors to tap into. – worc Jun 5 '18 at 0:14
1

It looks like a suitable solution might be in one of the less-voted answers on the question you linked:

This open source command line utility worked for me: https://github.com/lavoiesl/osx-cpu-temp.

M. Lavoie is using code Apple released a while back: Apple System Management Control (SMC) Tool Copyright (C) 2006 but it works fine on my 2011 Mini.

If smcFanControl is functional for you, but you dislike the display format, then perhaps this little C program is a better fit for your use case.

  • 2
    You're right. As is clear from my question, I had looked carefully at the four other answers, but missed this one-liner. It does half the job—no GPU temp. I'll accept this answer if no one suggests a fuller solution, or else delete the question if it continues to be downvoted as duplicate. – Calaf Aug 4 '17 at 17:09

Not the answer you're looking for? Browse other questions tagged .