-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid fan speed on Catalina #28
Comments
I'm interested in working on this, if nobody else is! (I'm experiencing this issue on macOS 10.15.4 with my new MacBook Pro)
Just guessing here, I know nothing about macOS or SMC, but maybe the library this uses to get SMC information is finally incompatible with a macOS update? If so, maybe another library I ran into today trying to get my computer's temperature may help: DanielStormApps/SMC. It's written in Swift not C, but perhaps it would be useful. Again, just riffing. If nobody has come back to this before I do again (which may be a long while) I'll look at it closer. With any luck it'll be a small change, but 🤷 |
I found a useful tool istats which allows grabbing the CPU temperature, fan speeds and battery information on OS X. |
iStats is cool, but I'm a minimalist ;) I'd use powermetrics if the single-sample command wasn't so hard to remember. |
This is a command-line tool, not the famous iStat Menu. |
Yeah, I know :) Regardless, I'm experiencing this issue and would like to try to fix it. Issues #19 and #21 report similar problems with strange reports of fans. @lavoiesl mentioned in #21 that taking some fan-printing code from smcFanControl would be wise. Both of these projects are GPLv2 licensed, so although I'm not well versed in how one usually goes about crediting such it seems very doable. Again, I haven't looked at the code so maybe it's more difficult that it seems. |
The datatype in SMCGetFanRPM doesn't match. This fixes getting the data:
Also I'm not sure what values are supposed to be printed. I changed it to:
The code formatting doesn't work very well. The important lines are the two with IS_FLT in. |
Get fan speed but returns fan number
The text was updated successfully, but these errors were encountered: