Page 1 of 1

how can i access the T61 Nvidia temperature sensor?

Posted: Thu Sep 19, 2013 12:59 pm
by xirtyllo
I'm trying to figure out how I can read the Nvidia NVS 140M temperature sensor in the T61..

for example if I do

Code: Select all

cat /proc/acpi/ibm/thermal
I can read most temperature sensors (I think they are coming from the thinkpad_acpi module)
but which is the corresponding path for the Nvidia thermal sensor?

PS: I know that sensor 4 in /proc/acpi/ibm/thermal refers to the GPU, but from what I read it an additional sensor outside the GPU, not the sensor in the Nvidia chip. and in fact the temperature reading of

Code: Select all

nvidia-settings
or

Code: Select all

nvidia-smi
is about 8-10 degrees higher than sensor 4.

I ask because I'm setting up the thinkfan program to regulate fan activity, but I'm finding that relaying on sensor 4 is not accurate enough. (e.g. the temperature shown by nvidia-smi raises earlier and faster than on sensor 4)

thx for any input!

Re: how can i access the T61 Nvidia temperature sensor?

Posted: Fri Sep 20, 2013 3:51 pm
by xirtyllo
ok,

after some googling I found out that I can display the temperature in the following way:

Code: Select all

$ nvidia-settings -q gpucoretemp -t
61
or also:

Code: Select all

$ nvidia-smi -q -d TEMPERATURE | grep Gpu | cut -c35-36
61
but I don't know how to feed the resulting reading (in this case 61) to thinkfan...

I also tried creating a cron job to periodically execute nvidia-settings -q gpucoretemp -t and output the result to a file (e.g. /var/log/test-temp)
then I put

Code: Select all

sensor /var/log/test-temp
in thinkfan.conf, but when thinkfan starts it reads 0 (even if in the file there is actually a number (e.g. 61).

any Linux guru around..?