You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not really an issue with iStats it is just something i noticed and i thought that you are the guy to discuss this with.
I was curious about the battery temperature on my mac, and came across iStats (thanks for your work on it!). Reading the source code i noticed it uses ioreg -rn AppleSmartBattery for some measurements (i.e. capacities and cycles).
ioreg -rn AppleSmartBattery also returns a Temperature reading. Somewhere else i saw that the value is read as it was in Celsius * 100.
But that seems not quite in agreement with the iStats battery temperature, that as far as i can tell is read using SMC and the TB0T key.
So, i collected around 10 days of minute by minute simultaneous readings from both sources, the ioreg -rn AppleSmartBattery``Temperature and istats battery temperature, then i ran a linear regression using those values. And given the resulting coefficient and intercept, i have the theory that the ioreg -rn AppleSmartBatteryTemperature reading is in tenths of Kelvin. Do you think that is possible?
What bothers me is that while the conversion is very good (.975 Rˆ2 with the tenths of kelvin to celsius conversion) it is not perfect, there are some different ioreg readings with the same istats value. That could be maybe that the sensor changed value before the second measurement was taken, they are technically not simultaneous. Or that they are coming from different sensors. If they come from different sensors, which is the one to trust?
Well, i hope you find this interesting and share your expert insights.
Thank you!
The text was updated successfully, but these errors were encountered:
Hi,
This is not really an issue with iStats it is just something i noticed and i thought that you are the guy to discuss this with.
I was curious about the battery temperature on my mac, and came across iStats (thanks for your work on it!). Reading the source code i noticed it uses
ioreg -rn AppleSmartBattery
for some measurements (i.e. capacities and cycles).ioreg -rn AppleSmartBattery
also returns aTemperature
reading. Somewhere else i saw that the value is read as it was in Celsius * 100.But that seems not quite in agreement with the iStats battery temperature, that as far as i can tell is read using SMC and the TB0T key.
So, i collected around 10 days of minute by minute simultaneous readings from both sources, the
ioreg -rn AppleSmartBattery``Temperature
andistats battery temperature
, then i ran a linear regression using those values. And given the resulting coefficient and intercept, i have the theory that theioreg -rn AppleSmartBattery
Temperature
reading is in tenths of Kelvin. Do you think that is possible?What bothers me is that while the conversion is very good (.975 Rˆ2 with the tenths of kelvin to celsius conversion) it is not perfect, there are some different ioreg readings with the same istats value. That could be maybe that the sensor changed value before the second measurement was taken, they are technically not simultaneous. Or that they are coming from different sensors. If they come from different sensors, which is the one to trust?
Well, i hope you find this interesting and share your expert insights.
Thank you!
The text was updated successfully, but these errors were encountered: