Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use a different command for fan activity #1

@lukaszsobala

Description

@lukaszsobala

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions