https://github.com/osquery/osquery logo
#macos
Title
s

Steve Poe

06/22/2022, 10:10 PM
Running osquery 5.3.0 on my i9 MBP. Running a check on fan speed sensors and not seeing what I thought would be actual speed results:
Copy code
/usr/local/bin/osqueryi --line "select * from fan_speed_sensors desc;"  
   fan = 0
  name = 0
actual = -1
   min = -1
   max = -1
target = -1

   fan = 1
  name = 0
actual = -1
   min = -1
   max = -1
target = -1
The result is the same on my M1 Pro.
z

zwass

06/22/2022, 11:02 PM
I'm seeing the same for a handful of macs. I wonder if the APIs have been deprecated? @Steve Poe can you please file an issue? @sharvil any idea?
s

sharvil

06/22/2022, 11:11 PM
Very likely that apple has changed the actual SMC keys we use to correlate this:
Copy code
std::map<std::string, std::string> kSMCFanSpeeds = {
    {"F%dID", "name"},
    {"F%dAc", "actual"},
    {"F%dMn", "min"},
    {"F%dMx", "max"},
    {"F%dTg", "target"}};
s

Steve Poe

06/22/2022, 11:39 PM
3 Views