Josh Wisenbaker
Josh Wisenbaker
Do you want help testing and merging this?
Cool. I’ll look to find some time to take a look.
Yeah, the issue is that the older code is using the SMC to get temperatures and M1 Macs don't have a SMC. They share the sensor layout with iOS devices...
I installed rust and read some docs last night to take a look at this in more depth. Seems like it's pretty straightforward to get the C working and then...
Going through this it seems we can get the temps without resorting to private SPI calls. As a question though, which temperature sensor are most interested in? I assume it's...
Well, a M1 Pro (10-core CPU) has 64 HIDEvent temp sensors it seems. Since the M1 Macs are all SoC based I suppose the differences in distance are minimal. How...
Here is a list of the sensors and temps on a 10 Core M1 Pro. Some of the names are easier than others to figure out. In your [code you...
Ok. That actually makes the ARM sensors easier to get as I’m just asking for all the HID events with the usage page for the internal temperature sensors. The only...
OK, taking a look at how to get this working in Rust now. It seems like I add my function prototypes to this [ffi.rs file](https://github.com/GuillaumeGomez/sysinfo/blob/9fe6a35de9d8ef4dc499197b9578be5625e84dca/src/apple/macos/ffi.rs) and then implement them in...
I guess the first step is learning how to define and call non-public types and functions in C from Rust. :D In my main.c I setup the non-public types like...