News for hackers. Stuff that matters.
Re:Tell HN: MacOS turns off the fans when Siri is listening by DigitalJack on Tuesday September 13, 2016 @11:01AM (#12488852)
yes. I've got 3 cores pegged now, fan shuts off for a few seconds and if I don't say anything it bails and the fans come back.

just takes about 10 seconds.

edit: I was able to keep activating siri and have the fans off while 4 cores pegged for quite a while. I don't know if CPU throttling kicked in or not, not sure how to check.

Re:Tell HN: MacOS turns off the fans when Siri is listening by ianbertolacci on Tuesday September 13, 2016 @11:07AM (#12488914)
We were also wondering about existing temperature conditions. For example, I might be running some super benchmark that pegs the core temperature high. What happens when Siri turns on? If it still shuts down the fan thats bad. I could potentially keep prompting Siri (to turn off the fan) and drive the temperature a bit higher.
Re:Tell HN: MacOS turns off the fans when Siri is listening by DigitalJack on Tuesday September 13, 2016 @11:15AM (#12488983)
I don't have an app for monitoring cpu temps right now, and don't know if there is a CLI way to do it.

I was able to keep the fan off for probably a minute before I stopped. I am interested to find out if intel's cpu throttling kicked in.

edit: installed Intel Power Gadget.

with 4 cores pegged (4 actual cores), the CPU was turbo-boosted (3.0GHz on my laptop). As I prevented the fans from running via Siri, the cpu throttled back to normal rated speed. Temperature varied by a few degrees C hovering around 99C. I did this for approximately a minute or so.

It didn't go below the rated speed (2.5GHz on my laptop).

edit2: I did it again with 4 cores pegged and 4 HT cores pegged. It didn't throttle below 2.5, but I did see that the "yes" processes were throttled back. when I glanced before stopping, they were all at 80% instead of 95+%

Re:Tell HN: MacOS turns off the fans when Siri is listening by burke on Tuesday September 13, 2016 @11:24AM (#12489076)
There's no default utility for this. There's some sysctl values for the CPU and the GPU but they don't actually give you a temperature.

There's an API for this in IOKit. Easiest way I've found to get at it on the CLI is:

    gem install istats
    istats cpu temp | awk '{gsub(/[^0-9\.]/,"",$3);print $3}'
Re:Tell HN: MacOS turns off the fans when Siri is listening by grkvlt on Tuesday September 13, 2016 @11:37AM (#12489208)
Just FYI, I had to do the following:

    $ gem install istats
    ERROR:  Could not find a valid gem 'istats' (>= 0) in any repository
    ERROR:  Possible alternatives: iStats
    $ gem install iStats
    Fetching: sparkr-0.4.1.gem (100%)
    ERROR:  While executing gem ... (Gem::FilePermissionError)
        You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
    $ sudo gem install iStats
    Fetching: sparkr-0.4.1.gem (100%)
    Successfully installed sparkr-0.4.1
    [...]
    This could take a while...
Then, I discovered it uses sparklines for output:

    $ istats cpu
    CPU temp: 60.625°C  
Which is pretty cool.

EDIT: the sparkline doesn't show here, but it's a little bar-chart histogram

Re:Tell HN: MacOS turns off the fans when Siri is listening by DigitalJack on Tuesday September 13, 2016 @11:35AM (#12489177)
I installed Intel Power Gadget. It's pretty nice actually, no options to configure but it's pretty useful information.