-
Notifications
You must be signed in to change notification settings - Fork 9
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
CPU Temp Shows 0.0 | 2023 14", M2 Max (12 Core), Sonoma 14.5 #32
Comments
It looks like the sensor values have changed https://github.com/exelban/stats/blob/e3fb0ae9b369efa33b4e5708a39abc95661cde11/Modules/Sensors/values.swift#L373-L389 UpdateI was going to make a PR as I added the keys and added simple core count logic. However, I can only get proper values to read upon right after building. Not sure what's going on here. I'm not familiar with C++ or MacOS at this level.
|
@kyleyannelli $ system_profiler SPHardwareDataType | grep -iv ID
$ smctemp -l |
Hi @narugit . You have the output of system_profiler above in my initial issue message. |
Hi @kyleyannelli I've reviewed the output from smctemp -l. |
No need to apologize! Here's the screenshot and output. |
@kyleyannelli
Therefore, we've added the attempt logic to read correct sensor value by adding |
No such luck. I have a better chance of getting a real result with higher values such as |
I also want to reiterate I almost always get a proper value if I run |
I see. I guess smctemp is not an app that keeps running in the background, so it might not be a good match. Line 88 in dc5a607
I don't have M2 Max on hand, so I hope you can find a good value. |
Do you mean your manual command works properly? |
Clarification
Sorry let me demonstrate that better.
Will almost always produce incorrect values. While
Will almost always give me proper values. This doesn't make sense to me as it's compiled. I'm not really sure why the behavior is displaying like this. Sleep Time AdjustmentI've set the sleep to 100ms and run with I made a test script to trial how many times the output was 0.0 and over 1000 runs. This will have to be good enough as smctemp is the only CLI tool I have. Pull Request?Edit: PR would only include the 4 extra sensors for 12 - core M2. Not my sleep adjustment.
Sorry for such a long winded reply. I just wanted to be thorough. Hope it's not too much. |
@kyleyannelli The results of your sleep time and retry tuning tests are quite interesting. Regarding the pull request, please go ahead. |
@narugit Yes, I'm a bit puzzled by the difference in results via I can play around with the Thank you for your quick responses and willingness to try things out. |
@narugit I've played around a bit with the hyper attempt feature. It seems a sleep value of 25ms and 1000 retries will consistently get a value. A sleep value any lower will yield more failure than success. TestingRunning the command as such What do you think? |
@kyleyannelli Since the optimal interval likely depends on hardware factors as well, I think it's a good idea to add option to set the interval within a realistic range (20ms to 1000ms). |
I've created the PR #34 |
Hi @kyleyannelli Thank you for your help with opening the issue and debugging! As I'm preparing to release via Homebrew, I need some more stars. (#3 (comment)) |
It seems the prior support added for the M2 Max 8 core PR #14 does not work for the 12 core M2 Max.
The text was updated successfully, but these errors were encountered: