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

Use a different command for fan activity #1

Open
lukaszsobala opened this issue Sep 9, 2024 · 4 comments
Open

Use a different command for fan activity #1

lukaszsobala opened this issue Sep 9, 2024 · 4 comments

Comments

@lukaszsobala
Copy link

lukaszsobala commented Sep 9, 2024

Hello,

The current command reporting fan activity assumes that the levels reflect the actual speed (ie level 1 means 0%, level 2 means 12% etc). This is almost never true, especially if the fan profile is configured using an overlay.

I think that a better approach would be to report the actual pwm value of the kernel driver, so:
cat /sys/devices/platform/pwm-fan/hwmon/hwmon9/pwm1 - the values here are from 0 to 255, so add 1 to it, divide by 256 and report as percentage.

For me, the value reported now is almost always 0 as I use pwm 146 as the first level (and many subsequent ones). But it should be about 57% instead (147/256).

@Qengineering
Copy link
Owner

When updating rtop, it will be implemented.

@lukaszsobala
Copy link
Author

Thank you @Qengineering. Just keep in mind that the number after hwmon in the folder name sometimes changes, not sure why.

@Qengineering
Copy link
Owner

And that is just what I saw a minute ago. I had to use hwmon7 instead of hwmon9

@lukaszsobala
Copy link
Author

A simple regex should be enough to fix it :)

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

No branches or pull requests

2 participants