Skip to content
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

Temperature and fans are broken on M1 #14

Open
pixelcmtd opened this issue Feb 16, 2021 · 6 comments
Open

Temperature and fans are broken on M1 #14

pixelcmtd opened this issue Feb 16, 2021 · 6 comments

Comments

@pixelcmtd
Copy link

----- CPU -----
Temperature: 0°C

----- Fans -----
Fan #0: 0

----- Battery -----
Battery Installed:  ✔
Is Charged:         ✔
Capacity:           102%
Cycle Count:        20 (2%)
Design Cycle Count: 1000
Current Charge:     4603 mAh
Maximum Charge:     5221 mAh
Design Capacity:    5103 mAh
Time Remaining:     00:12:41
Temperature:        25°C

MBP 13" Late 2020

@timleg002
Copy link

still broken. seems that some paid macos apps have figured it out, no answers for that yet though

@pixelcmtd
Copy link
Author

The problem is that Apple silicon doesn't have SMC, as far as I think I get it, and documentation on how to get this information from other APIs is difficult to find.

@timleg002
Copy link

yujitach/MenuMeters@5604e76

This open source app has it implemented and this commit shows the M1 implementation.

@pixelcmtd
Copy link
Author

So we'd basically need to implement this?

How the f- does IOHIDEventSystemClientCreate handle temperatures, not...mouses?

@timleg002
Copy link

Apparently it's IO and human interfacing so.. yeah? I also made a sample app in Swift which does this but removes a lot of ugly Objective-C stuff.

@pixelcmtd
Copy link
Author

I'm also rn trying to hack up something with that API in C++, but my IOKit doesn't seem to implement the functions (wtf?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants