rnd-ash / razer-laptop-control

Project to create driver/software to control performance of razer laptops
GNU General Public License v2.0
342 stars 29 forks source link

Feature Request - fan RPM in sensors framework #24

Open dagbdagb opened 4 years ago

dagbdagb commented 4 years ago

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.

rnd-ash commented 4 years ago

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

dagbdagb commented 4 years ago

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.
riyadh144 commented 4 years ago

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