Skip to content
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

Add support for get temperature on m1 #792

Merged
merged 8 commits into from
Aug 21, 2022

Conversation

Mark3K
Copy link
Contributor

@Mark3K Mark3K commented Jul 9, 2022

Hi, I trying to help with this issue #456, and it almost work, but I am a newbie to rust and not familiar with MacOS development.
when I run the code on my m1 mac, I got 63 sensors' value, but some of are duplicated, like there are 4 sensors with name PMU tdie1, and I do not known if it is right, so I need some help with this.

PMU tdie10: 39.083206°C (max: 0°C)
PMU tdie7: 39.260803°C (max: 0°C)
PMU TP2s: 38.9944°C (max: 0°C)
NAND CH0 temp: 35°C (max: 0°C)
PMU tdev1: 37.094604°C (max: 0°C)
PMU tdie10: 38.816803°C (max: 0°C)
PMU TP3g: 39.172012°C (max: 0°C)
PMU tdev4: 35.31082°C (max: 0°C)
PMU TP2s: 39.260803°C (max: 0°C)
PMU tdev7: 37.319824°C (max: 0°C)
PMU TP3g: 38.9944°C (max: 0°C)
PMU tdev4: 35.391907°C (max: 0°C)
PMU tdie2: 39.083206°C (max: 0°C)
PMU tdev7: 38.099106°C (max: 0°C)
gas gauge battery: 34°C (max: 0°C)
PMU tdie2: 39.083206°C (max: 0°C)
PMU tdie2: 39.172012°C (max: 0°C)
gas gauge battery: 34.299988°C (max: 0°C)
PMU tdie5: 39.260803°C (max: 0°C)
PMU tdie2: 39.260803°C (max: 0°C)
PMU tdie8: 39.083206°C (max: 0°C)
PMU tdie5: 38.728012°C (max: 0°C)
PMU TP0s: 39.172012°C (max: 0°C)
PMU tdie8: 39.79361°C (max: 0°C)
PMU TP1g: 39.260803°C (max: 0°C)
PMU tdev2: 38.38739°C (max: 0°C)
PMU TP0s: 39.172012°C (max: 0°C)
PMU tcal: 51.850006°C (max: 0°C)
PMU tdev5: 38.60811°C (max: 0°C)
PMU TP1g: 39.260803°C (max: 0°C)
PMU tdev2: 38.099106°C (max: 0°C)
PMU tdev8: 36.41443°C (max: 0°C)
PMU tdev5: 37.27928°C (max: 0°C)
gas gauge battery: 34.299988°C (max: 0°C)
PMU tdie0: 39.172012°C (max: 0°C)
PMU tdev8: 37.01802°C (max: 0°C)
gas gauge battery: 34.299988°C (max: 0°C)
PMU tdie3: 39.172012°C (max: 0°C)
PMU tdie0: 39.260803°C (max: 0°C)
PMU tdie6: 39.260803°C (max: 0°C)
PMU tdie3: 38.90561°C (max: 0°C)
PMU tdie9: 39.616013°C (max: 0°C)
PMU tdie6: 39.083206°C (max: 0°C)
PMU TP1s: 39.4384°C (max: 0°C)
PMU tcal: 51.850006°C (max: 0°C)
PMU tdie9: 39.34961°C (max: 0°C)
PMU TP2g: 39.083206°C (max: 0°C)
PMU tdev3: 37.90091°C (max: 0°C)
PMU TP1s: 39.083206°C (max: 0°C)
PMU tdev1: 37.707214°C (max: 0°C)
PMU tdev6: 37.477478°C (max: 0°C)
PMU TP2g: 39.083206°C (max: 0°C)
PMU tdev3: 37.27928°C (max: 0°C)
PMU tdie1: 39.260803°C (max: 0°C)
PMU tdev6: 36.463974°C (max: 0°C)
gas gauge battery: 33°C (max: 0°C)
PMU tdie1: 39.083206°C (max: 0°C)
PMU tdie1: 39.260803°C (max: 0°C)
gas gauge battery: 33.899994°C (max: 0°C)
PMU tdie4: 39.172012°C (max: 0°C)
PMU tdie1: 39.260803°C (max: 0°C)
PMU tdie7: 38.728012°C (max: 0°C)
PMU tdie4: 39.260803°C (max: 0°C)

src/lib.rs Outdated Show resolved Hide resolved
@GuillaumeGomez
Copy link
Owner

Thanks for working on this. It indeed looks very promising.

@Mark3K Mark3K force-pushed the m1-components-support branch from b127791 to f7a9eb0 Compare July 10, 2022 04:46
@Mark3K
Copy link
Contributor Author

Mark3K commented Jul 10, 2022

I am learning rust and happen to have M1 Mac, so it's an opportunity for me to practice and I am gland I can help

src/apple/system.rs Outdated Show resolved Hide resolved
@GuillaumeGomez
Copy link
Owner

Don't forget to take a look at the CI too. fmt and clippy will be both very useful to you in rust. :)

@Mark3K Mark3K force-pushed the m1-components-support branch 2 times, most recently from 246c542 to 8c7e09d Compare July 10, 2022 16:45
@Mark3K Mark3K changed the title [WIP] Add support for get temperature on m1 Add support for get temperature on m1 Jul 11, 2022
Comment on lines 51 to 54
if client.is_none() {
return;
}
let client = client.unwrap();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if client.is_none() {
return;
}
let client = client.unwrap();
let client = match client {
Some(c) => c,
None => return,
};

pub(crate) fn refresh(&mut self) {
self.inner.clear();

let client = || -> Option<CFReleaser<_>> {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure to understand why you needed to make this into a closure. Why not a simple block instead?

Comment on lines 69 to 72
if key_ref.is_none() {
return;
}
let key_ref = key_ref.unwrap();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if key_ref.is_none() {
return;
}
let key_ref = key_ref.unwrap();
let key_ref = match key_ref {
Some(k) => k,
None => return,
};

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please note that you could match directly on CFReleaser::new(...).

let client = client.unwrap();

unsafe {
let services = IOHIDEventSystemClientCopyServices(client.inner());
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

services needs to be freed using CFRelease. And before every return too. The best thing you can do is wrapping it into a struct which implements Drop (which calls CFRelease automatically).

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah you already added CFReleaser so you already have the needed struct. :)

Comment on lines 77 to 81
let service = CFReleaser::new(CFArrayGetValueAtIndex(services, i) as *const _);
if service.is_none() {
continue;
}
let service = service.unwrap();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let service = CFReleaser::new(CFArrayGetValueAtIndex(services, i) as *const _);
if service.is_none() {
continue;
}
let service = service.unwrap();
let service = match CFReleaser::new(CFArrayGetValueAtIndex(services, i) as *const _) {
Some(s) => s,
None => continue,
};

Comment on lines 83 to 90
let name = CFReleaser::new(IOHIDServiceClientCopyProperty(
service.inner(),
key_ref.inner(),
));
if name.is_none() {
continue;
}
let name = name.unwrap();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let name = CFReleaser::new(IOHIDServiceClientCopyProperty(
service.inner(),
key_ref.inner(),
));
if name.is_none() {
continue;
}
let name = name.unwrap();
let name = match CFReleaser::new(IOHIDServiceClientCopyProperty(
service.inner(),
key_ref.inner(),
)) {
Some(n) => n,
None => continue,
};

Comment on lines 158 to 167
let event = CFReleaser::new(IOHIDServiceClientCopyEvent(
self.service.inner() as *const _,
kIOHIDEventTypeTemperature,
0,
0,
));
if event.is_none() {
return;
}
let event = event.unwrap();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

self.temperature = IOHIDEventGetFloatValue(
event.inner(),
IOHIDEventFieldBase(kIOHIDEventTypeTemperature),
) as f32;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
) as f32;
) as _;

pub fn IOHIDEventGetFloatValue(event: IOHIDEventRef, field: i64) -> f64;
}

// pub type CFMutableArrayRef = *mut __CFArray;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the unused code.

@Mark3K Mark3K force-pushed the m1-components-support branch from 4c1a5b1 to 15c964d Compare August 12, 2022 08:56
@Mark3K
Copy link
Contributor Author

Mark3K commented Aug 12, 2022

Thanks for the time and advices and the code indeed looks more cleaner :)

@Mark3K Mark3K force-pushed the m1-components-support branch from 7ad87ba to 044871f Compare August 12, 2022 09:51
@GuillaumeGomez
Copy link
Owner

GuillaumeGomez commented Aug 20, 2022

Looks all good to me now, thanks! I'll ask on twitter if someone with a M1 mac can double-check and then I merge.

EDIT: tweet is here

@evanrichter
Copy link

On M2 it reports incorrect temperatures:

[nix-shell:~/projects/sysinfo]$ cargo run --example simple
   Compiling sysinfo v0.25.1 (/Users/evan/projects/sysinfo)
    Finished dev [unoptimized + debuginfo] target(s) in 0.70s
     Running `target/debug/examples/simple`
Getting processes' information...
Done.
To get the commands' list, enter 'help'.
> temperature
PMU tdie2: 0°C (max: 0°C)
gas gauge battery: 0°C (max: 0°C)
PMU2 TR3d: 0°C (max: 0°C)
PMU tdev4: 0°C (max: 0°C)
PMU2 TR6b: 0°C (max: 0°C)
gas gauge battery: 0°C (max: 0°C)
PMU tdie6: 0°C (max: 0°C)
gas gauge battery: 0°C (max: 0°C)
PMU2 TR5d: 0°C (max: 0°C)
PMU tdev7: 0°C (max: 0°C)
PMU2 TR7l: 0°C (max: 0°C)
PMU2 TR2d: 0°C (max: 0°C)
PMU tdev1: 0°C (max: 0°C)
PMU tdie3: 0°C (max: 0°C)
PMU tdev5: 0°C (max: 0°C)
PMU2 TR3b: 0°C (max: 0°C)
PMU tdie7: 0°C (max: 0°C)
gas gauge battery: 0°C (max: 0°C)
PMU tdev8: 0°C (max: 0°C)
PMU tdev2: 0°C (max: 0°C)
PMU2 TR5b: 0°C (max: 0°C)
PMU tdie8: 0°C (max: 0°C)
gas gauge battery: 0°C (max: 0°C)
PMU tdie4: 0°C (max: 0°C)
PMU2 TR0Z: 0°C (max: 0°C)
gas gauge battery: 0°C (max: 0°C)
PMU2 TR1b: 0°C (max: 0°C)
PMU tdie1: 0°C (max: 0°C)
PMU2 TR8l: 0°C (max: 0°C)
PMU2 TR4d: 0°C (max: 0°C)
PMU tdev3: 0°C (max: 0°C)
PMU2 TR2b: 0°C (max: 0°C)
PMU tdie5: 0°C (max: 0°C)
PMU2 TR1d: 0°C (max: 0°C)
PMU tdev6: 0°C (max: 0°C)
PMU tcal: 0°C (max: 0°C)
PMU2 TR4b: 0°C (max: 0°C)
NAND CH0 temp: 0°C (max: 0°C)
> 

@GuillaumeGomez
Copy link
Owner

Thanks @evanrichter ! So it seems that the list of components is retrieved as it should but not their information. Then ping @Mark3K. 😉

@evanrichter
Copy link

yeah I know the call for volunteers was for M1, but if it worked on M2 that would be pretty good evidence it also works on M1

@GuillaumeGomez
Copy link
Owner

I expect that if it doesn't work on M2, it doesn't work on M1. So thanks a lot for testing it!

@weihanglo
Copy link

weihanglo commented Aug 20, 2022

M1 result here. (with commit 044871f)

Click to expand
$ sysctl -a | grep brand_string
machdep.cpu.brand_string: Apple M1 Pro
$ cargo run --example simple
   Compiling ...
    Finished dev [unoptimized + debuginfo] target(s) in 3.32s
     Running `target/debug/examples/simple`
Getting processes' information...
Done.
To get the commands' list, enter 'help'.
> temperature
PMU tdie10: 0°C (max: 0°C)
PMU tdie7: 0°C (max: 0°C)
PMU tdev1: 0°C (max: 0°C)
PMU tdie10: 0°C (max: 0°C)
PMU tdev4: 0°C (max: 0°C)
PMU TP2s: 0°C (max: 0°C)
PMU tdev1: 0°C (max: 0°C)
PMU tdev7: 0°C (max: 0°C)
PMU TP3g: 0°C (max: 0°C)
PMU tdev4: 0°C (max: 0°C)
PMU tdie2: 0°C (max: 0°C)
PMU tdev7: 0°C (max: 0°C)
gas gauge battery: 0°C (max: 0°C)
PMU tdie2: 0°C (max: 0°C)
PMU tdie2: 0°C (max: 0°C)
gas gauge battery: 0°C (max: 0°C)
NAND CH0 temp: 0°C (max: 0°C)
PMU tdie5: 0°C (max: 0°C)
PMU TP2s: 0°C (max: 0°C)
PMU tdie2: 0°C (max: 0°C)
PMU tdie8: 0°C (max: 0°C)
PMU TP3g: 0°C (max: 0°C)
PMU tdie5: 0°C (max: 0°C)
PMU TP0s: 0°C (max: 0°C)
PMU tdie8: 0°C (max: 0°C)
PMU tdev2: 0°C (max: 0°C)
PMU TP0s: 0°C (max: 0°C)
PMU tdev5: 0°C (max: 0°C)
PMU TP1g: 0°C (max: 0°C)
PMU tdev2: 0°C (max: 0°C)
PMU tdev8: 0°C (max: 0°C)
PMU tdev5: 0°C (max: 0°C)
gas gauge battery: 0°C (max: 0°C)
PMU tdie0: 0°C (max: 0°C)
PMU tdev8: 0°C (max: 0°C)
gas gauge battery: 0°C (max: 0°C)
PMU tdie3: 0°C (max: 0°C)
PMU tdie0: 0°C (max: 0°C)
PMU tdie6: 0°C (max: 0°C)
PMU TP1g: 0°C (max: 0°C)
PMU tdie3: 0°C (max: 0°C)
PMU tdie9: 0°C (max: 0°C)
PMU tdie6: 0°C (max: 0°C)
PMU tcal: 0°C (max: 0°C)
PMU tdie9: 0°C (max: 0°C)
PMU tdev3: 0°C (max: 0°C)
PMU TP1s: 0°C (max: 0°C)
PMU tcal: 0°C (max: 0°C)
PMU tdev6: 0°C (max: 0°C)
PMU TP2g: 0°C (max: 0°C)
PMU tdev3: 0°C (max: 0°C)
PMU tdie1: 0°C (max: 0°C)
PMU tdev6: 0°C (max: 0°C)
gas gauge battery: 0°C (max: 0°C)
PMU tdie1: 0°C (max: 0°C)
PMU tdie1: 0°C (max: 0°C)
gas gauge battery: 0°C (max: 0°C)
PMU tdie4: 0°C (max: 0°C)
PMU TP1s: 0°C (max: 0°C)
PMU tdie1: 0°C (max: 0°C)
PMU tdie7: 0°C (max: 0°C)
PMU TP2g: 0°C (max: 0°C)
PMU tdie4: 0°C (max: 0°C)

@Mark3K
Copy link
Contributor Author

Mark3K commented Aug 21, 2022

The problem is when refresh component list, its not refresh the new component

if refreshes.components_list() {
       self.refresh_components_list();
} else if refreshes.components() {
       self.refresh_components();
}

so I fixed it by refresh the components immediately after create it

$ sysctl -a | grep brand_string
machdep.cpu.brand_string: Apple M1 Pro
$ cargo run --example simple
   Compiling sysinfo v0.25.1
    Finished dev [unoptimized + debuginfo] target(s) in 0.81s
     Running `target/debug/examples/simple`
Getting processes' information...
Done.
To get the commands' list, enter 'help'.
> temperature
PMU tdie10: 40.7704°C (max: 0°C)
PMU tdie9: 40.859207°C (max: 0°C)
PMU TP2s: 40.415207°C (max: 0°C)
PMU tdev1: 38.69821°C (max: 0°C)
PMU TP3g: 40.948013°C (max: 0°C)
PMU tdev4: 36.009018°C (max: 0°C)
PMU TP2s: 40.68161°C (max: 0°C)
PMU tdev6: 38.099106°C (max: 0°C)
PMU tdie3: 40.68161°C (max: 0°C)
PMU tdev7: 39.14865°C (max: 0°C)
PMU tdev1: 38.7838°C (max: 0°C)
PMU TP3g: 40.504013°C (max: 0°C)
PMU tdie1: 40.415207°C (max: 0°C)
PMU tdie5: 40.948013°C (max: 0°C)
PMU tdie2: 40.7704°C (max: 0°C)
PMU tdie1: 41.036804°C (max: 0°C)
gas gauge battery: 34°C (max: 0°C)
PMU tdie6: 40.7704°C (max: 0°C)
PMU tdie2: 40.859207°C (max: 0°C)
gas gauge battery: 34.799988°C (max: 0°C)
PMU tdie5: 40.504013°C (max: 0°C)
PMU tdie8: 40.7704°C (max: 0°C)
PMU tdie2: 40.859207°C (max: 0°C)
PMU tdie8: 41.2144°C (max: 0°C)
PMU TP0s: 40.68161°C (max: 0°C)
PMU TP1g: 41.036804°C (max: 0°C)
PMU tdev2: 39.88739°C (max: 0°C)
PMU TP0s: 40.859207°C (max: 0°C)
PMU tdev4: 35.824326°C (max: 0°C)
PMU tdev5: 34.20804°C (max: 0°C)
PMU TP1g: 41.12561°C (max: 0°C)
PMU tdev7: 39.66667°C (max: 0°C)
PMU tdie4: 40.859207°C (max: 0°C)
PMU tdev8: 39.55406°C (max: 0°C)
PMU tdev2: 39.833344°C (max: 0°C)
PMU tdie2: 40.3264°C (max: 0°C)
gas gauge battery: 34.799988°C (max: 0°C)
NAND CH0 temp: 36°C (max: 0°C)
PMU tdie0: 40.859207°C (max: 0°C)
gas gauge battery: 34.799988°C (max: 0°C)
PMU tdie3: 41.12561°C (max: 0°C)
PMU tdie6: 40.7704°C (max: 0°C)
PMU tdie9: 41.036804°C (max: 0°C)
PMU TP1s: 41.2144°C (max: 0°C)
PMU tcal: 51.850006°C (max: 0°C)
PMU tdie10: 40.504013°C (max: 0°C)
PMU TP2g: 41.2144°C (max: 0°C)
PMU tdev3: 39.88739°C (max: 0°C)
PMU TP1s: 41.036804°C (max: 0°C)
PMU tdev5: 35.360367°C (max: 0°C)
PMU tdev6: 38.51352°C (max: 0°C)
PMU tcal: 51.850006°C (max: 0°C)
PMU TP2g: 40.859207°C (max: 0°C)
PMU tdev8: 39.55406°C (max: 0°C)
PMU tdie1: 40.504013°C (max: 0°C)
PMU tdev3: 39.9955°C (max: 0°C)
PMU tdie0: 41.036804°C (max: 0°C)
gas gauge battery: 34°C (max: 0°C)
PMU tdie1: 41.12561°C (max: 0°C)
gas gauge battery: 34.699997°C (max: 0°C)
PMU tdie4: 40.948013°C (max: 0°C)
PMU tdie7: 40.68161°C (max: 0°C)
PMU tdie7: 40.859207°C (max: 0°C)
>

@Mark3K Mark3K force-pushed the m1-components-support branch from c69275d to f20b920 Compare August 21, 2022 07:25
@Mark3K
Copy link
Contributor Author

Mark3K commented Aug 21, 2022

@evanrichter @weihanglo it will be great helpful if you guys give a another test

@weihanglo
Copy link

Now looks nicer. Sorry I didn't look into it more, and thanks for your quick fix, @Mark3K !

click to expand
$  cargo run --example simple
   Compiling sysinfo v0.25.1 (/projects/sysinfo)
    Finished dev [unoptimized + debuginfo] target(s) in 3.28s
     Running `target/debug/examples/simple`
Getting processes' information...
Done.
To get the commands' list, enter 'help'.
> temperature
PMU tdie10: 36.330414°C (max: 0°C)
PMU tdie7: 36.419205°C (max: 0°C)
PMU TP2s: 35.975204°C (max: 0°C)
PMU tdev1: 34.357666°C (max: 0°C)
PMU tdie10: 36.419205°C (max: 0°C)
PMU TP3g: 36.50801°C (max: 0°C)
PMU tdev4: 28.159775°C (max: 0°C)
PMU TP2s: 35.886414°C (max: 0°C)
PMU tdev1: 34.75183°C (max: 0°C)
PMU tdev7: 36.373886°C (max: 0°C)
PMU TP3g: 36.419205°C (max: 0°C)
PMU tdev4: 28.881668°C (max: 0°C)
PMU tdie2: 36.419205°C (max: 0°C)
PMU tdev7: 35.630646°C (max: 0°C)
gas gauge battery: 26°C (max: 0°C)
PMU tdie2: 36.330414°C (max: 0°C)
PMU tdie2: 36.330414°C (max: 0°C)
gas gauge battery: 26°C (max: 0°C)
PMU tdie5: 36.241608°C (max: 0°C)
PMU tdie2: 36.1528°C (max: 0°C)
PMU tdie8: 36.419205°C (max: 0°C)
PMU tdie5: 36.419205°C (max: 0°C)
PMU TP0s: 35.797607°C (max: 0°C)
PMU tdie8: 36.50801°C (max: 0°C)
PMU TP1g: 36.774414°C (max: 0°C)
PMU tdev2: 35.337845°C (max: 0°C)
PMU TP0s: 35.975204°C (max: 0°C)
PMU tdev5: 29.896454°C (max: 0°C)
PMU TP1g: 36.330414°C (max: 0°C)
PMU tdev2: 35.828842°C (max: 0°C)
PMU tdev8: 35.963974°C (max: 0°C)
PMU tdev5: 30.321182°C (max: 0°C)
gas gauge battery: 25.899994°C (max: 0°C)
PMU tdie0: 36.50801°C (max: 0°C)
PMU tdev8: 37.490997°C (max: 0°C)
gas gauge battery: 25.899994°C (max: 0°C)
PMU tdie3: 36.419205°C (max: 0°C)
PMU tdie0: 35.442413°C (max: 0°C)
PMU tdie6: 36.1528°C (max: 0°C)
PMU tdie3: 36.330414°C (max: 0°C)
PMU tdie9: 36.241608°C (max: 0°C)
PMU tdie6: 35.975204°C (max: 0°C)
PMU TP1s: 35.975204°C (max: 0°C)
PMU tcal: 51.850006°C (max: 0°C)
PMU tdie9: 36.241608°C (max: 0°C)
PMU TP2g: 36.50801°C (max: 0°C)
PMU tdev3: 35.522537°C (max: 0°C)
PMU TP1s: 36.06401°C (max: 0°C)
PMU tcal: 51.850006°C (max: 0°C)
PMU tdev6: 37.90541°C (max: 0°C)
PMU TP2g: 36.5968°C (max: 0°C)
PMU tdev3: 35.945953°C (max: 0°C)
PMU tdie1: 35.975204°C (max: 0°C)
PMU tdev6: 38.486496°C (max: 0°C)
gas gauge battery: 25°C (max: 0°C)
PMU tdie1: 36.330414°C (max: 0°C)
PMU tdie1: 35.975204°C (max: 0°C)
gas gauge battery: 25.59999°C (max: 0°C)
PMU tdie4: 36.685608°C (max: 0°C)
PMU tdie1: 36.419205°C (max: 0°C)
PMU tdie7: 36.330414°C (max: 0°C)
NAND CH0 temp: 28°C (max: 0°C)
PMU tdie4: 36.685608°C (max: 0°C)

@GuillaumeGomez
Copy link
Owner

Thanks everyone for your help on this! Time to merge it then. 😃

@cherish-ltt
Copy link

emmm,Which label represents the temperature of CPU1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants