lavoiesl / osx-cpu-temp

Outputs current CPU temperature for OSX
GNU General Public License v2.0
925 stars 156 forks source link

Consistently getting no data for Fans - Mojave 10.14.5 #21

Open jpserra opened 5 years ago

jpserra commented 5 years ago

Hey,

I've recently found out about this project, really enjoying it and it is working perfectly for CPU temp, but it seems to be buggy when talking about fan info

❯ osx-cpu-temp -f
Num fans: 1
Fan 0 - Exhaust   at 0 RPM (0%)

I've added this info to the bottom of my console so It's running that command every 5 seconds and I see the the 0 RPM (0%) most of the time, altough sometimes it seems to render accurate data.

lavoiesl commented 5 years ago

Looks like the support is broken and that bringing over the implementation at https://github.com/hholtmann/smcFanControl/blob/master/smc-command/smc.c#L543-L598 would be worth it.