Temperature reading / sensor failure

1,246 views
Skip to first unread message

Dmitri Passaita

unread,
Nov 2, 2015, 10:42:53 PM11/2/15
to Alt-F
Hi there,

This is my day three running Alt-F on DNS-320 and I finally transferred all my files from the old WD MyBookWorld.
This afternoon I have noticed that cooler wasn't noisy any-more so I assumed this was due to finished data transfer.
Later I decided to check status of the box and found out that System temperature readings were 0.0C/32F cooler speed was zero RPM but hard drives reached 52C
I immediately powered off the box (I am a second hand owner) and checked the cooler it was clean and propelling freely.
After 5-10 minutes hard drives cooled down a little bit so I powered the box again and System temperature was 44C/111.2F and Fan speed was 3000 RPM
Now I am not sure what could cause this failure and if the box can be left unattended.
Please let me know if anybody had similar problem?
Thank you.

Sincerely,
Dmitri

Paulo Elifaz Andrielli

unread,
Nov 3, 2015, 1:43:29 AM11/3/15
to al...@googlegroups.com

Dmitri,

In first place, try to reduce the threshold of the cooler to 52-50 degrees. I believe today the default config is that.

As João mentioned in another topic (by the way, thanks João, Im yet to reply there), there's a place where you can configure that, in addition to make the unit turn it off when overheated (it's called sysctrl, check my screenshots).

Now, if even you setting the threshold, the unit does not shut down, I don't know that it could be.

BTW, my HDs are now 40-42 due to the fact that I removed the front lid, so the air intake could improve. Before that, it was 44-45.

[]'s
Paulo
sent from Android

--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/alt-f.
For more options, visit https://groups.google.com/d/optout.
IMG_20151103_043805.jpg
IMG_20151103_043730.jpg
IMG_20151103_043701.jpg

Dmitri Passaita

unread,
Nov 3, 2015, 6:25:57 AM11/3/15
to al...@googlegroups.com
Hi Paulo,

Thank you so much for the information provided.
Actually I was looking for these setting but was unable to find them.
Could not believe there is no such control.
Obviously my drives are not producing the heat.
Would it make sense to install heat-sink on CPU?
Thanks again!!!


Sincerely,


Dmitri Passaita

--
You received this message because you are subscribed to a topic in the Google Groups "Alt-F" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/alt-f/S3y_1LTNmVg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to alt-f+un...@googlegroups.com.
Capture.PNG

João Cardoso

unread,
Nov 3, 2015, 1:37:43 PM11/3/15
to al...@googlegroups.com


On Tuesday, 3 November 2015 03:42:53 UTC, Dmitri Passaita wrote:
Hi there,

This is my day three running Alt-F on DNS-320

From your pictures it's a DNS-320-rev-A, which is different from the DNS-320-rev-B; the DNS-320-rev-B circuitry is identical to the DNS-320L-rev-A.
Don't know if the outer case of both the DNS-320 rev-A/B are identical or not.
In my opinion, the 320L-rev-A has a terrible thermal design ( in fact all models labeled L), and the fan is constantly turning on/off to keep the temp between 38 and 40ºC; eventually I set it up so that it is always on low speed, in order to lower the fan start/stop wear.
 
and I finally transferred all my files from the old WD MyBookWorld.
This afternoon I have noticed that cooler wasn't noisy any-more so I assumed this was due to finished data transfer.
Later I decided to check status of the box and found out that System temperature readings were 0.0C/32F

That is an error! The following is specific to the DNS-320-rev-Ax:

The temperature reading and fan control is done through a shell script (dns320-temp.sh) that should be always running. That script writes the temperature to the file  /tmp/sys/temp1_input, and that file is read by the 'sysctrl' process who sets the desired fan speed.

It seems that either dns320-temp.sh was not running or that if couldn't read the temp and write it into the file.

That's better for you to keep an eye on that, as I don't have a DNS-320-rev-A to test it myself. Everything should be logged at the system log, System->Utilities->View Logs, System Log. You can then filter the log by using the string  'dns320-temp\|sysctrl\|init:' at the log page end and press Refresh (not auto refreshing)

Alternatively, form the command line use
logread | grep -E 'dns320-temp|sysctrl|init:'

That should shows you how sysctrl is reading the temp and setting the fan speed, as well as other errors that might arise because of dns320-temp

If the issue happens again, besides the unfiltered System Log also post attached the output from the following commands:

ps
ls
-la /var/lock/temp-lock # the "No such file or directory" message is harmless

Of course now is too late to diagnose it.

The DNS-320-rev-Bx doesn't has dns320-temp, it's called dns320l-daemon and the behaviour is different.
 
cooler speed was zero RPM but hard drives reached 52C
I immediately powered off the box (I am a second hand owner) and checked the cooler it was clean and propelling freely.
After 5-10 minutes hard drives cooled down a little bit so I powered the box again and System temperature was 44C/111.2F and Fan speed was 3000 RPM
Now I am not sure what could cause this failure and if the box can be left unattended.

Keep and eye on it while you are near it, if possible. Or login remotely as the 'root' user (same pass as the webUI) and watch the temp and fan speed:

cat /tmp/sys/temp1_input /tmp/sys/fan1_input

If you are away and can't turn the box off or reboot it, execute the commands 'reboot' or 'poweroff' as needed (saving the logs first, so I can diagnose the issue and find a cure).

Thanks

Dmitri Passaita

unread,
Nov 3, 2015, 6:32:54 PM11/3/15
to al...@googlegroups.com
Thank you for the prompt response.

Now I understand I personally ignored one of the error messages and cleared my log file.
There was a message about (I don't remember exact wording so will list keywords) "dns 320 temp pid exiting".
I assumed that wasn't related to temperature but temporary files and cleared the log.
This explains why there is no error logs stored in the file.


Since my last message I physically modified the box:
  • enlarged air intake holes at the bottom of the unit,
  • installed heat sink on the CPU


These modifications significantly helped in equalizing the temperature:
  • System 37.0°C/98.6°F
  • Both HDDs stay at 34°C/93.2°F

Currently looking at installing bigger 80x80x15 fan (there is plenty of space by the way).






Sincerely,


Dmitri Passaita

On Tue, Nov 3, 2015 at 11:37 AM, João Cardoso <whoami...@gmail.com> wrote:


On Tuesday, 3 November 2015 03:42:53 UTC, Dmitri Passaita wrote:
Hi there,

This is my day three running Alt-F on DNS-320

From your pictures it's a DNS-320-rev-A, which is different from the DNS-320-rev-B; the DNS-320-rev-B circuitry is identical to the DNS-320L-rev-A.
Don't know if the outer case of both the DNS-320 rev-A/B are identical or not.
In my opinion, the 320L-rev-A has a terrible thermal design ( in fact all models labeled L), and the fan is constantly turning on/off to keep the temp between 38 and 40ºC; eventually I set it up so that it is always on low speed, in order to lower the fan start/stop wear.
 
and I finally transferred all my files from the old WD MyBookWorld.
This afternoon I have noticed that cooler wasn't noisy any-more so I assumed this was due to finished data transfer.
Later I decided to check status of the box and found out that System temperature readings were 0.0C/32F

That is an error! The following is specific to the DNS-320-rev-Ax:

The temperature reading and fan control is done through a shell script (dns320-temp.sh) that should be always running. That script writes the temperature to the file  /tmp/sys/temp1_input, and that file is read by the 'sysctrl' process who sets the desired fan speed.

It seems that either dns320-temp.sh was not running or that if couldn't read the temp and write it into the file.

That's better for you to keep an eye on that, as I don't have a DNS-320-rev-A to test it myself. Everything should be logged at the system log, System->Utilities->View Logs, System Log. You can then filter the log by using the string  'dns320-temp\|sysctrl\|init:' at the log page end and press Refresh (not auto refreshing)

Alternatively, form the command line use
logread | grep -E 'dns320-temp|sysctrl|init:'

That should shows you how sysctrl is reading the temp and setting the fan speed, as well as other errors that might arise because of dns320-temp

If the issue happens again, besides the unfiltered System Log also post attached the output from the following commands:

ps
ls
-la /var/lock/temp-lock # the "No such file or directory" message is harmless


Of course now is too late to diagnose it.

 
cooler speed was zero RPM but hard drives reached 52C
I immediately powered off the box (I am a second hand owner) and checked the cooler it was clean and propelling freely.
After 5-10 minutes hard drives cooled down a little bit so I powered the box again and System temperature was 44C/111.2F and Fan speed was 3000 RPM
Now I am not sure what could cause this failure and if the box can be left unattended.
Keep and eye on it while you are near it, if possible. Or login remotely as the 'root' user (same pass as the webUI) and watch the temp and fan speed:

cat /tmp/sys/temp1_input /tmp/sys/fan1_input

If you are away and can't turn the box off or reboot it, execute the commands 'reboot' or 'poweroff' as needed (saving the logs first, so I can diagnose the issue and find a cure).

Thanks

 
Please let me know if anybody had similar problem?
Thank you.

Sincerely,
Dmitri

--

Paulo Elifaz Andrielli

unread,
Nov 3, 2015, 7:43:35 PM11/3/15
to al...@googlegroups.com

Dmitri,

I was thinking to do the same, i stalling fans and something else to decrease temperature. However, I want to use the USB port to provide power to the cooler. Did you do something like this?

My HDs are around 42-44, so anything below that will be good.

[]'s
Paulo
sent from Android

You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.

Dmitri Passaita

unread,
Nov 3, 2015, 8:05:43 PM11/3/15
to al...@googlegroups.com
Hi Paulo,

I am not using USB port as I have an USB memory stick for Aft-F system files and user folders.
Still running on the stock cooler but considering updating it in the near future.
CPU heat-sink did it's trick you can see one screenshot when the system is idle and another one after playing HD video using miniDLNA.
The only change is HDD temperature and I consider this acceptable.


​Stock fan didn't run on high after these changes.
My room temperature is 21.5C this could be important too.


Sincerely,


Dmitri Passaita

João Cardoso

unread,
Nov 4, 2015, 12:32:38 PM11/4/15
to Alt-F


On Tuesday, 3 November 2015 23:32:54 UTC, Dmitri Passaita wrote:
Thank you for the prompt response.

Now I understand I personally ignored one of the error messages and cleared my log file.
There was a message about (I don't remember exact wording so will list keywords) "dns 320 temp pid exiting".

This probably means that the issue started at the dns320-temp.sh script.
It must be always running, and if for some reason it is killed/stopped/crashed, the 'init' process, the "mother of all processes" will relaunch it, writing to the logs something similar to "dns 320 temp pid exiting". If the message continues repeating, then there exists some bug in the script itself, probably related with the exclusive lock mechanism that uses files in /var/lock/temp-lock.
So, if you detect the same issue again, before reboot take note of the output of the 'logread/ps/ls' commands I posted.
 
I assumed that wasn't related to temperature but temporary files and cleared the log.
This explains why there is no error logs stored in the file.


Since my last message I physically modified the box:
  • enlarged air intake holes at the bottom of the unit,
  • installed heat sink on the CPU


These modifications significantly helped in equalizing the temperature:
  • System 37.0°C/98.6°F
  • Both HDDs stay at 34°C/93.2°F


Good.
But I'm afraid that the system temperature was lowered because of the larger intake opening, not because of the CPU heatsink. The system temperature is not the CPU temperature, it is measured by another circuit, an LM75 compatible sensor. So it measures the ambient temperature at the board level.

ARM processors are very energy efficient, and don't warm significantly, that's why they don't generally have heatsinks. Your cell phone probably has one, but the heat you feel when using it probably comes from the battery (guessing).

Completely removing the front panel is tempting, but not wise, better widening the air intake. That's because disk vibration is harmful to them, and the front panel usually has a pressure spring that avoids disk vibration induced by its own working (or from the fan).

 
Currently looking at installing bigger 80x80x15 fan (there is plenty of space by the way).






Sincerely,


Dmitri Passaita

Jackson Chan

unread,
Aug 8, 2016, 2:09:23 PM8/8/16
to al...@googlegroups.com
I just got RC5 on my DNS 320 A1, how come the system temperature is always close to 50 degree(and fan speed is always at 6000 which is very noisy)? and harddrive temp is around 40-42. Is that normal? (my room temperature is around 25 degree)
altf_rc5.jpg

João Cardoso

unread,
Sep 22, 2016, 12:13:24 PM9/22/16
to Alt-F


On Monday, 8 August 2016 19:09:23 UTC+1, Jackson Chan wrote:
I just got RC5 on my DNS 320 A1, how come the system temperature is always close to 50 degree(and fan speed is always at 6000 which is very noisy)? and harddrive temp is around 40-42. Is that normal? (my room temperature is around 25 degree)

The "system" temperature is read at the circuit board level, and controls the fan speed.
So, its reading depends on the box thermal design, and is different for different box models. Its normal for the dns-320L/327L, don't know if your 320 looks like those or the old DNS-323/325

Konrád Lőrinczi

unread,
Oct 29, 2016, 8:25:38 AM10/29/16
to Alt-F
I also have DNS-320 A1, and having 0 Celsius degree displayed on status.

My log, filtered:
Oct 29 00:03:24 dns320 daemon.info sysctrl: Starting
Oct 29 00:03:24 dns320 daemon.info sysctrl: reading /etc/bay
Oct 29 00:03:24 dns320 daemon.info sysctrl: reading /etc/misc.conf
Oct 29 00:03:24 dns320 daemon.info sysctrl: reading /etc/sysctrl.conf
Oct 29 00:03:24 dns320 user.notice root: Starting sysctrl: OK.
Oct 29 00:03:24 dns320 daemon.info sysctrl: args.lo_fan=2000
Oct 29 00:03:24 dns320 daemon.info sysctrl: args.hi_fan=5000
Oct 29 00:03:24 dns320 daemon.info sysctrl: args.lo_temp=45
Oct 29 00:03:24 dns320 daemon.info sysctrl: args.hi_temp=50
Oct 29 00:03:24 dns320 daemon.info sysctrl: args.hist_temp=1.0
Oct 29 00:03:24 dns320 daemon.info sysctrl: args.fan_mode=AUTO
Oct 29 00:03:24 dns320 daemon.info sysctrl: args.mail=1
Oct 29 00:03:24 dns320 daemon.info sysctrl: args.recovery=1
Oct 29 00:03:24 dns320 daemon.info sysctrl: args.fan_off_temp=38
Oct 29 00:03:24 dns320 daemon.info sysctrl: args.max_fan_speed=6000
Oct 29 00:03:24 dns320 daemon.info sysctrl: args.crit_temp=54
Oct 29 00:03:24 dns320 daemon.info sysctrl: args.warn_temp=52
Oct 29 00:03:24 dns320 daemon.info sysctrl: args.crit_temp_command="/usr/sbin/poweroff"
Oct 29 00:03:24 dns320 daemon.info sysctrl: args.warn_temp_command="(null)"
Oct 29 00:03:24 dns320 daemon.info sysctrl: args.front_button_command1="(null)"
Oct 29 00:03:24 dns320 daemon.info sysctrl: args.front_button_command2="(null)"
Oct 29 00:03:24 dns320 daemon.info sysctrl: args.back_button_command="(null)"
Oct 29 00:03:24 dns320 daemon.info sysctrl: sda left rdwr=0 last=0 spindow=1200 power=1
Oct 29 00:03:24 dns320 daemon.info sysctrl: (null) (null) rdwr=0 last=0 spindow=1200 power=1
Oct 29 00:03:25 dns320 daemon.info sysctrl: temp=0.0 pwm=127 fan=3000
Oct 29 00:03:42 dns320 daemon.info sysctrl: temp=0.0 pwm=0 fan=0
Oct 29 00:12:48 dns320 user.notice root: sysctrl running
Oct 29 00:12:59 dns320 daemon.info sysctrl: reading /etc/misc.conf
Oct 29 00:13:09 dns320 user.notice root: sysctrl running
Oct 29 00:53:30 dns320 daemon.info sysctrl: left disk (sda) standby
Oct 29 10:56:33 dns320 daemon.info sysctrl: left disk (sda) wakeup
Oct 29 11:02:47 dns320 daemon.info sysctrl: signaled to quit, quiting

Konrád Lőrinczi

unread,
Oct 29, 2016, 8:41:53 AM10/29/16
to al...@googlegroups.com

Also there is the output of ps:

[root@dns320]# ps
PID   USER     COMMAND
    1 root     init
    2 root     [kthreadd]
    3 root     [ksoftirqd/0]
    5 root     [kworker/0:0H]
    7 root     [khelper]
    8 root     [writeback]
    9 root     [bioset]
   10 root     [kblockd]
   11 root     [ata_sff]
   12 root     [khubd]
   13 root     [md]
   14 root     [rpciod]
   16 root     [kswapd0]
   17 root     [fsnotify_mark]
   18 root     [nfsiod]
   19 root     [crypto]
   32 root     [scsi_eh_0]
   33 root     [scsi_eh_1]
   34 root     [kworker/u2:1]
   36 root     [kworker/u2:3]
   41 root     [deferwq]
   55 root     {rcS} /bin/sh /etc/init.d/rcS
  101 root     [loop0]
  263 root     [kworker/0:1H]
  301 root     {hot_aux.sh} /bin/sh /usr/sbin/hot_aux.sh fs
  363 root     [jbd2/sda2-8]
  364 root     [ext4-dio-unwrit]
  426 root     {aufs.sh} /bin/sh /usr/sbin/aufs.sh -m
  498 root     udhcpc -R -b -p /var/run/udhcpc.eth0.pid -i
  569 root     {rcall} /bin/sh /sbin/rcall start
  573 root     syslogd -C -m 0 -D
  576 root     klogd
  608 root     crond
  617 root     smartd -i 1800
  666 root     dropbear -i
  671 root     inetd
  674 root     -sh
  691 root     usleep 500000
  692 root     ps
  717 root     nmbd -D
  724 root     smbd -D
  736 root     {S98ffp} /bin/sh /etc/init.d/S98ffp start
  737 root     {rc} /ffp/bin/sh /ffp/etc/rc start
  738 root     smbd -D
  740 root     {sshd.sh} /ffp/bin/sh /ffp/start/sshd.sh sta
  744 root     /ffp/bin/ssh-keygen -t ecdsa -f /ffp/etc/ssh
  824 aria2    aria2c --daemon --conf-path /etc/aria2/aria2
1192 root     [kworker/0:1]
2215 transmis transmission-daemon --logfile /var/log/trans
2218 transmis transmission-daemon --logfile /var/log/trans
2219 transmis transmission-daemon --logfile /var/log/trans
2220 transmis transmission-daemon --logfile /var/log/trans
2686 minidlna minidlna -R
2703 minidlna minidlna -R
2705 minidlna minidlna -R
3632 root     [kworker/0:2]
[root@dns320]# ls -la /var/lock/temp-lock # the "No such file or directory" message is harmless
ls: /var/lock/temp-lock: No such file or directory

Konrád Lőrinczi

unread,
Oct 29, 2016, 8:46:40 AM10/29/16
to al...@googlegroups.com

Finally:
[root@dns320]# cat /tmp/sys/temp1_input /tmp/sys/fan1_input
0
3000

Konrád Lőrinczi

unread,
Oct 29, 2016, 8:50:24 AM10/29/16
to al...@googlegroups.com

After starting the temperature reading daemon:
root@dns320]# dns320-temp.sh &


[root@dns320]# cat /tmp/sys/temp1_input /tmp/sys/fan1_input

40000
3000

Konrád Lőrinczi

unread,
Oct 29, 2016, 9:05:08 AM10/29/16
to al...@googlegroups.com

After starting the temperature reading daemon, seems to be work.
Attaching screenshot.

But I get the following error since I upgraded the kernel to 3.18:
Hardware board DNS-320-A1A2 not supported, exiting.

Screenshot_20161029-145551.png

João Cardoso

unread,
Oct 29, 2016, 2:49:18 PM10/29/16
to Alt-F


On Saturday, 29 October 2016 13:50:24 UTC+1, Konrád Lőrinczi wrote:

After starting the temperature reading daemon:
root@dns320]# dns320-temp.sh &


That should be launched automatically by 'init' and relaunched if terminated or killed
Have you edited /etc/inittab? On a dns-320 It should read
# DNS-320 temperature reading
null::respawn:/usr/sbin/dns320-temp.sh
where the second line is uncommented by the rcS init script (and 'init' notified of the fact) at boot time.

Konrád Lőrinczi

unread,
Oct 29, 2016, 9:29:13 PM10/29/16
to al...@googlegroups.com

Hi,

I didn't edit /etc/inittab.

It seems there doesn't exist /etc/inittab :-(

cat /etc/inittab
cat: /etc/inittab: No such file or directory

Missing inittab file may have caused the problems I noticed?

Thanks for your help!
Konrad

João Cardoso

unread,
Oct 30, 2016, 12:39:36 PM10/30/16
to Alt-F


On Sunday, 30 October 2016 01:29:13 UTC, Konrád Lőrinczi wrote:

Hi,

I didn't edit /etc/inittab.

It seems there doesn't exist /etc/inittab :-(

cat /etc/inittab
cat: /etc/inittab: No such file or directory


It should be there, it is essential:

 [root@DNS-325]# cat  /etc/inittab
# /etc/inittab
#
# Copyright (C) 2001 Erik Andersen <ande...@codepoet.org>
#
# Note: BusyBox init doesn't support runlevels.  The runlevels field is
# completely ignored by BusyBox init. If you want runlevels, use
# sysvinit.
#
# Format for each entry: <id>:<runlevels>:<action>:<process>
#
# id        == tty to run on, or empty for /dev/console
# runlevels == ignored
# action    == one of sysinit, respawn, askfirst, wait, and once
# process   == program to run

# Startup the system
::sysinit:/etc/init.d/rcS

# Put a getty on the serial port
ttyS0::respawn:/sbin/getty -n -l /bin/sh -L ttyS0 115200 vt100

# DNS-320 temperature reading
#null::respawn:/usr/sbin/dns320-temp.sh

# DNS-320L MCU daemon
#null::respawn:/usr/sbin/dns320l-daemon

# Logging junk
#null::sysinit:/bin/touch /var/log/messages

# Stuff to do before reboot/shutdown
null::shutdown:/etc/init.d/rcE

But this is going off-topic and must be related with the issue you refer to in another topic

alex razor

unread,
May 24, 2017, 8:20:35 AM5/24/17
to Alt-F
Hi

In order not to start a new thread I wonder if there is a place where you can change fan params to adjust:

May 24 12:55:29 DNS-320 daemon.info sysctrl: args.lo_fan=2000
May 24 12:55:29 DNS-320 daemon.info sysctrl: args.hi_fan=5000

the thing that I replaced the fan to a bigger one which is obviously more efficient and 2000 RPM is too much for it. Thank you
Reply all
Reply to author
Forward
0 new messages