hwmonN sensor paths can change #12

Closed
opened 2023-02-21 19:11:18 +00:00 by Alia5 · 1 comment
Alia5 commented 2023-02-21 19:11:18 +00:00 (Migrated from github.com)

As seen in https://github.com/NGnius/Fantastic/blob/main/backend-rs/src/sys.rs, the paths to the sensors are hardcoded to .../hwmon5/...

This really isn't ideal as hwmon indices aren't fixed but dependent on module loading order and thus may change on reboot.
(For me personally fan1_input isn in hwmon4 so I cannot really use this Fantastic (pun intended) plugin)

To fix this, the index should be queried dynamically instead of being hardcoded

As seen in https://github.com/NGnius/Fantastic/blob/main/backend-rs/src/sys.rs, the paths to the sensors are hardcoded to `.../hwmon5/...` This really isn't ideal as hwmon indices aren't fixed but dependent on module loading order and thus may change on reboot. _(For me personally `fan1_input` isn in `hwmon4` so I cannot really use this Fantastic (pun intended) plugin)_ To fix this, the index should be queried dynamically instead of being hardcoded
NGnius commented 2023-02-22 00:21:45 +00:00 (Migrated from github.com)

From my experience, module load order is consistent on Steam Deck so this is good enough. If you're using a different kernel or a completely different system then it's going to break but then that's fine since Fantastic only supports SteamOS 3 on Steam Deck right now.

From my experience, module load order is consistent on Steam Deck so this is good enough. If you're using a different kernel or a completely different system then it's going to break but then that's fine since Fantastic only supports SteamOS 3 on Steam Deck right now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: NG-SD-Plugins/Fantastic#12
No description provided.