-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
Read more temperature data from hwmon on linux #827
Read more temperature data from hwmon on linux #827
Conversation
6208a51
to
79f2e16
Compare
small forcepush to rebase onto |
Thanks for early review, sorry for the hwmon thing noise, learned a lot while toying around, i did a big comment but can split if it's worth it, had a big design hesitation while doing it. |
Made some change to fix CI. Had issue with |
ffc687d
to
c2ca79d
Compare
c2ca79d
to
b48f05b
Compare
src/traits.rs
Outdated
/// ## Linux hwmon | ||
/// | ||
/// Read current Maximum value encountered may be computed by sysinfo | ||
/// or from kernel in case of an errors, returns `f32::NAN`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// ## Linux hwmon | |
/// | |
/// Read current Maximum value encountered may be computed by sysinfo | |
/// or from kernel in case of an errors, returns `f32::NAN`. | |
/// ## Linux | |
/// | |
/// Returns `f32::NAN` if an error occurred. |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried to found a common ground on about to explain the behaviour without being too verbose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed some fixup!
to address review feedback. On some to end up bikesheding I tried to formulate a consensus.
On some I simply droped the info because either we went something possibly false or exposing implementation details to dev-user.
src/traits.rs
Outdated
/// ## Linux hwmon | ||
/// | ||
/// Read current Maximum value encountered may be computed by sysinfo | ||
/// or from kernel in case of an errors, returns `f32::NAN`. |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Fix clippy lint error
Not needed since raspbian 10.
What it does? Expose new things: (Read only) - Expose a label that mimic `sensors` own (breaking change) - Sensor type - Allow reading of everything with a temp sensor. - Highest form kernel/chip maximum historical read value, is read from hardware OR from computation. - Thresolds max, critical, low Also fully remove raspberry-pi special code. Not everything is used, maybe a HwmonLinux specific trait can be done and use a degraded view to comply with existing cross-os `Component`. Future work? Read Fan, Voltage, Intrusion alert?
40f9ea3
to
8e95cf8
Compare
Thanks a lot for all these improvements! |
No problem that was fun! Don't hesitate to @-me in case of regression, bugs or any issue about it. Also opened #826 for discussing reading more data from hwmon. |
May supplant #823, may help in #826.
Component
/ComponentExt
traits (labels
andmax
)Read things that are not used now, maybe doing a Linux specific Hwmon richer trait?
Not exhaustive checklist of what is done:
tempN_highest
value or computed max (may need testing?)Backport some doc?