chinf / psensor

A graphical sensor monitoring and logging utility
http://wpitchoune.net/psensor/
GNU General Public License v2.0
64 stars 15 forks source link

How are RPM GPU fan values retrieved by psensor? #16

Open ricciolino opened 1 year ago

ricciolino commented 1 year ago

How are RPM GPU fan values retrieved by psensor?

Screenshot from 2023-03-17 14-09-31

I need a simple way to retrieve it with a command line base utility. Please can you pointing me out which is the piece of code responsible for obtain these values? Which is, under the hood, the nvml call toward the GPU driver to get exactly the live RPM values of the fans?

I already try though a simple python3 script using the following API: py3nvml.nvmlUnitGetFanSpeedInfo

But doesn't work for my RTX 3080 (Driver version 525.85.05). It say: py3nvml.py3nvml.NVMLError_InvalidArgument: Invalid Argument