razer-laptop-control icon indicating copy to clipboard operation
razer-laptop-control copied to clipboard

Feature Request - fan RPM in sensors framework

Open dagbdagb opened this issue 4 years ago • 3 comments

How hard can it be ( :-D ) to get the fan RPM into the sensors framework? I.e. ability to read the fan RPM with the 'sensors' command.

dagbdagb avatar Mar 29 '20 12:03 dagbdagb

Quite difficult. Ill have to research how to translate the RPM sensors into ACPI data that lm-sensors uses

rnd-ash avatar Mar 29 '20 12:03 rnd-ash

Hmm. Sure about that?

The libsensors library offers an interface to the raw sensors data
through the sysfs interface. Since lm-sensors 3.0.0, libsensors is
completely chip-independent. It assumes that all the kernel drivers
implement the standard sysfs interface described in this document.
This makes adding or updating support for any given chip very easy, as
libsensors, and applications using it, do not need to be modified.
This is a major improvement compared to lm-sensors 2.

dagbdagb avatar Mar 29 '20 14:03 dagbdagb

So I have been looking at this for a few hours. It should be possible. and I might give it a go I found this code for a guy that integrated corsair cooler the i80 into the sensors platform, so that should be helpful.

https://github.com/jameshilliard/CorsairLink/blob/f155421a632756a3df8c3ef7cd7e955b87a743a6/h80/h80i.c

riyadh144 avatar Apr 16 '20 22:04 riyadh144