-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
SensorsTemperatures returns 0 values for all sensors on darwin arm64 (M1) #1332
Comments
Can confirm also happens on M2 Pro,
|
Is there progress in solving the problem? |
Same problem with v4. Macs have no temperatures. Test code:
Partial output (the rest looks like the original post):
|
@Girbons - any chance you know how to fix this? <3 |
I'll take a look why it isn't working on arm |
Describe the bug
the temperature value of each TemperatureStat object in the array returned by host.SensorsTemperatures() is 0 on an M1.
To Reproduce
Here's the output:
Expected behavior
Return valid temperature sensor data for one or more of the sensors.
Environment (please complete the following information):
$ sw_vers
ProductName: macOS
ProductVersion: 12.4
BuildVersion: 21F79
$ uname -a
Darwin xxxx 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:37 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T6000 arm64
Additional context
go version go1.18 darwin/arm64
In contrast, here's the output from the same program built and executed on a darwin x86_64 host:
The text was updated successfully, but these errors were encountered: