turing-smart-screen-python icon indicating copy to clipboard operation
turing-smart-screen-python copied to clipboard

Is it possible to view fan speed ?

Open kang2k10 opened this issue 2 years ago • 5 comments

Is it possible to view fan speed ?

kang2k10 avatar Mar 27 '23 08:03 kang2k10

This would be a great addition to this program! It seems supported by LibreHardwareMonitor on Windows (mostly for desktop, not laptops), for Linux and MacOS i have to find a Python library for it

mathoudebine avatar Apr 27 '23 06:04 mathoudebine

For linux, you can try bindings for lm-sensors: https://pypi.org/project/PySensors/

smandon avatar May 14 '23 16:05 smandon

It could work, but i'm worried about lm-sensors that has not been updated since Feb. 2021, it seems unmaintained. The PySensors Python library itself seems not to be maintained anymore since Sept. 2019

mathoudebine avatar May 16 '23 09:05 mathoudebine

Using the psutils that is in sensors_python.py its possible to use: sensors = psutil.sensors_fans()

In my case, all labels is empy, but the speeds is there:

{
    "nct6798": [
        [
            "",
            1106
        ],
        [
            "",
            936
        ],
        [
            "",
            3033
        ],
        [
            "",
            0
        ],
        [
            "",
            1075
        ],
        [
            "",
            1347
        ],
        [
            "",
            0
        ]
    ],
    "amdgpu": [
        [
            "",
            0
        ]
    ]
}

I dont know why is empty, but i will find why...

looking in psutils source, its get the values from rmon ...

alexwbaule avatar Jun 06 '23 00:06 alexwbaule

https://github.com/giampaolo/psutil/pull/2263

alexwbaule avatar Jun 06 '23 01:06 alexwbaule