Welcome! Log In Create A New Profile

Advanced

Incorrect temperature reading (NSA-310)

Posted by drakulis 
Incorrect temperature reading (NSA-310)
February 27, 2019 12:55PM
I've just migrated my NAS-310 from some debian with kernel 3.x to Bodhi one from here. Due to some NIC issues in kernel 4.20 I'm using kernel 4.19.

I would like to control fan (by fancontrol) on my device depends on temperature. The problem is that temperatures are reported with negative values:
root@nsa310:~ # cat /sys/class/hwmon/hwmon0/device/temp1_input
-28000
root@nsa310:~ # cat /sys/class/hwmon/hwmon0/device/temp2_input
-26000
root@nsa310:~ # cat /sys/class/hwmon/hwmon0/device/temp3_input
-22000

I know that I have to divide temperature by 1000 but why it is negative? I though that maybe "-" is just added by some mistake and all I have to do is to multiply it by -1, but it is not true. When I start some process which heavily utilize CPU, the temperature increase correctly, I mean like: -22000 then -21000 then -20000 and so on.

Can I do anything by myself to correct it or it is some issue deep in the kernel?
Re: Incorrect temperature reading (NSA-310)
February 27, 2019 11:56PM
drakulis,

> I've just migrated my NAS-310 from some debian
> with kernel 3.x to Bodhi one from
> here.
> Due to some NIC issues in kernel 4.20 I'm using
> kernel 4.19.

> Can I do anything by myself to correct it or it is
> some issue deep in the kernel?

There are 3 versions of the NSA310. Which DTB are you using? the last one has adt7476, the first 2 have sensor lm85.

Quote

-rw-rw-r-- 1 root root 2307 Jan 31 21:19 kirkwood-nsa310a.dts
-rw-r--r-- 1 root root 2869 Jan 31 21:19 kirkwood-nsa310b-lmsensor-redusbled.dts
-rw-rw-r-- 1 root root 2839 Jan 31 21:19 kirkwood-nsa310.dts

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Incorrect temperature reading (NSA-310)
February 28, 2019 01:09AM
ah, ok. I though that those dts are for some different (newer) models.

I'm using kirkwood-nsa310.dts since I have first version of NSA-310. Will check other dts while I'm get back home and let you know. Thanks for hint!



Edited 1 time(s). Last edit at 02/28/2019 02:09AM by drakulis.
Re: Incorrect temperature reading (NSA-310)
February 28, 2019 09:59AM
I just checked kirkwood-nsa310a.dts and kirkwood-nsa310b-lmsensor-redusbled.dts - both are working great!
I stick to kirkwood-nsa310b-lmsensor-redusbled.dts since it allows me to control more leds.

Thank you Bodhi!
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: