* Cut out the protective piece of plastic from the back plate, enlarged the opening, added some padding. After that the unit is MUCH more quiet \\ [[http://forum.dsmg600.info/p1226-Yesterday-182055.html#p1226|ondro727's Fan Hack]]

+

* A simple [[http://wiki.dns323.info/hardware:fan#fan_control_scripts|fan control script]] that turns off the fan at idle/low temperatures, which otherwise will run constantly by default.

+

+

* Cut out the protective piece of plastic from the back plate, enlarged the opening, added some padding. After that the unit is MUCH quieter \\ [[http://forum.dsmg600.info/p1226-Yesterday-182055.html#p1226|ondro727's Fan Hack]]

* [[http://forum.dsmg600.info/t2800-another-controller.html|Yet another fan controller]] (See also [[http://nas-tweaks.net/CH3SNAS:Tutorials/fancontrol|fan control tutorial at nas-tweaks.net]])

====== Related Software/Commands ======

====== Related Software/Commands ======

+

===== fanspeed =====

===== fanspeed =====

+

Fan speed control for a1 and b1 hardware board:

<code>Query and set the FAN Speed control

<code>Query and set the FAN Speed control

Usage: fanspeed [function]

Usage: fanspeed [function]

Line 52:

Line 64:

w rpm, set fan speed(rpm range:1935~30000)

w rpm, set fan speed(rpm range:1935~30000)

g get fan speed</code>

g get fan speed</code>

+

Fanspeed control for c1 hardware board (firmware 1.08):

+

<code>fanspeed - query and set the FAN Speed control

+

+

Usage: fanspeed [function]

+

+

Functions:

+

h high speed(7000rpm)

+

l low speed(2700rpm)

+

s stop fan

+

g get fan status

+

the below option only support in a1 and b1 hardware board

+

w rpm, set fan speed(rpm range:0 for stop, 2700~7000)

+

</code>

+

=== Examples: ===

=== Examples: ===

<code>fanspeed g</code>

<code>fanspeed g</code>

Line 61:

Line 87:

The fancontrol process appears to restart the fan within a minute if it's running.

The fancontrol process appears to restart the fan within a minute if it's running.

<code>fanspeed w 30000</code>

<code>fanspeed w 30000</code>

-

Not recommended! What happens!? Does anyone have the courage to report? : )

+

==== Warnings: ====

+

* It has been reported that the fan doesn't spin faster than 6,301 rpm, regardless of the set fan speed.

+

* **fanspeed w rpm** does not work with C1 hardware board (see label, bottom of hardware). Please test your hardware since the script below will not work. A script that could work is [[http://forum.dsmg600.info/viewtopic.php?id=5643|here]].

=== Questions: ===

=== Questions: ===

* What are the best ways to detect if the hard drive is in sleep mode (for use in a script)?

* What are the best ways to detect if the hard drive is in sleep mode (for use in a script)?

Line 68:

Line 95:

=== File Location: ===

=== File Location: ===

\sys\crfs\sbin\fanspeed

\sys\crfs\sbin\fanspeed

+

Line 89:

Line 117:

* Does anyone have the source? (reverse engineered code: [[http://www.inreto.de/dns323/utils/]])

* Does anyone have the source? (reverse engineered code: [[http://www.inreto.de/dns323/utils/]])

* Does anyone know whether 'temperature g 0' ever reports in Celsius? The wiki's first script seems to think so, but reports so far seem to point to the usage of Fahrenheit as standard.

+

* Does anyone know whether 'temperature g 0' ever reports in Celsius? The wiki's first script seems to think so, but reports so far seem to point to the usage of Fahrenheit as standard. --Yes, it reports in Celsius (in Sweden) (It seems to follow the C/F setting in the web-config's Email-alerts)

=== File Location: ===

=== File Location: ===

\sys\crfs\sbin\temperature

\sys\crfs\sbin\temperature

Line 104:

Line 132:

+

===== Fan Control Scripts: =====

-

===== Sample Fan Control Scripts: =====

-

==== Simple steps to install fan_control script ====

-

(thought it can be useful to you as it would to me as a newbie who is technically challenged. I'm new at this so please feel free to fix/edit)

-

- Get a text editor like Notepad++[[http://http://sourceforge.net/projects/notepad-plus/]] to save files in linux format (LF).

+

-

- Create a new text file called fun_plug (no extensions), with the following line:<code bash>/mnt/HD_a2/ctrl_fanspeed.sh</code>save the text file with linux format (LF) to the root directory of your DNS-323 drive (e.g. X:/)(alternatively you can get [[fonz's fun_plug pack]] and add the above line at the end of the included fun_plug file)

+

-

- create another text file, copy and paste the hands-on version of the fan-control script below. Adjust the parameters to your liking (description in comments), though it works fine without any modification. Save the file as ctrl_fanspeed.sh at the root directory (e.g. X:/) of your DNS-323 drive, same location as the fun_plug file.

+

+

==== Simple steps to install the fan control script ====

+

I hope this can be useful to you as it would to me as a newbie who is technically challenged.

+

+

The script (contributed by a collaboration of members here) replaces the factory fan control process,

+

checks for case temperature at set regular intervals and modify fan rotational speed in a positive ratio

+

When drives spin down at idle, the fan will stop as the box temperature lowers to a user defined value.

+

This is a feature that should have been implemented by the D-Link firmware (but isn't), as it makes no sense

+

to have the fan running all the time. It's quite simple to do, and it effectively reduces noise and wear.

Somehow device store system variables, so incorrectly set it can cause improper functioning even if you reset device to factory default, or even reburn firmware. In script fan_control.sh we have to add another line:

+

export PATH

+

right next after PATH declaration line. After these changes HD usage and heat generation of the device dropped dramatically. Another suggestion set temeratures T1 and T2, 97F and 105F accordingly.)

+

* Open the .rar archive (use [[http://www.rarlab.com/download.htm|WinRAR]]), drop the four files in the archive into your root folder (e.g. /Volume_1/) via ftp or just by simple drag and drop. Reboot immediately.

+

* After the power light stops blinking, wait one minute. Then telnet into your unit's local IP (default is 192.168.0.32) using a telnet/ssh client (try [[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html|PuTTY]]) and type

+

+

+

temperature g 0

+

to check your DNS-323's temperature readings.

+

* If the temperature shows Fahrenheit unit, you are done (you may also type

+

+

+

rm /mnt/HD_a2/ctrl_fanspeed.C

+

in telnet to delete the Celsius version script). If it's below 108F, the fan should have stopped. You can type

+

+

+

fanspeed g

+

to check the fan RPM.

+

* If the temperature shows in Celsius, in the same telnet screen, type:

+

+

+

mv /mnt/HD_a2/ctrl_fanspeed.C /mnt/HD_a2/ctrl_fanspeed.sh

+

reboot

+

The last command of course reboots your unit. After which you can recheck the temperature and fan. If it's below 43C, the fan should have stopped, and you are done. __Warning:__ it's imperative that you follow through steps 3, 4, and 5 to verify temperature units, as the fan may never run if you have the wrong numbers feeding the script, possibly resulting in heat damage to hardware. If you encountered problems and must abort, just remove ctrl_fanspeed.sh from your root directory to reset factory fan

+

control settings.

+

+

**The Nitty Gritty Steps**

+

- Get a text editor like [[http://http://sourceforge.net/projects/notepad-plus/|Notepad++]] to save text files in linux format (LF).

+

- Create a new text file called [[howto:fun_plug|fun_plug]] (no extensions), with the following line:

+

+

/mnt/HD_a2/ctrl_fanspeed.sh

+

+

save the text file with linux format (LF) to the root directory of your DNS-323 drive

+

(e.g. /Volume_1/ or just drag and drop into your mapped drive). \\ Alternatively, you can get

+

[[http://www.inreto.de/dns323/fun-plug/|fonz's fun_plug pack]] (which adds telnet feature among other things) and add the above line

+

at the end of the included fun_plug file (don't drop it into /mnt/HD_a2/fun_plug.d/start/ directory as it's a loop that stops

+

any script that follows it from loading), or use the folowing lines at the end of the fun_plug file:<code bash># run fanspeed

+

controller script

+

+

FAN_SPEED=/mnt/HD_a2/ctrl_fanspeed.sh

+

if [ -x $FAN_SPEED ]; then

+

echo "* Running $FAN_SPEED ..."

+

$FAN_SPEED &

+

echo "* OK"

+

fi

+

+

- Create another text file, copy and paste the "general use" version of the fan-control script below. Adjust the parameters

+

to your liking (description in comments), though it works fine without any modification (assuming your unit reports temperature

+

in Fahrenheit). Save the file as ctrl_fanspeed.sh at the root directory (e.g. /Volume_1/) of your DNS-323 drive, same location

+

as the fun_plug file.

- Reboot the DNS-323 using D-Link's control page and you are done!

- Reboot the DNS-323 using D-Link's control page and you are done!

-

You should notice that immediately after booting (when the power light stops flashing) the fan should stop. That is if your drive is cooler than the lower limit set in the script (default 108F). Also make sure your unit reports temperature in F and not C by default (Important! You don't want 108C as lower limit!), something you can do with simple telnet commands.

+

+

You should notice that immediately after booting (when the power light stops flashing) the fan stops. That is if your drive is

+

cooler than the lower limit set in the script (default 108F or 42C), which will eventually be the case after HD spins down at idle,

+

or if you boot the unit cold.

+

+

Also make sure your DNS-323 unit reports temperature readings that matches the temperature unit in the script, which is

+

in Fahrenheit (Important! You don't want 108C as lower limit!). You can do this with a simple [[howto:telnet|telnet]]

+

command ''temperature g 0''. You will need to convert the temperature parameters in the script if your DNS-323 returns

+

temperature readings in Celsius.

+

+

Is it safe to assume all US models are reporting in Fahrenheit? Mine does.

==== ctrl_fanspeed.sh ====

==== ctrl_fanspeed.sh ====

-

This simple script changes the speed of the fan based on the reported temperature. Note that this script only works if the temperatures are reported in celcius! By running temperature g 0 you can see what temperature-unit your box uses. The script will be update with a more general solution asap. The parameter-values are only given as examples. Make sure that the temperature of your box remain reasonable under different loads.

+

This sample script changes the speed of the fan based on the reported temperature. Note that this script is written with temperature reference in Celsius. By running ''temperature g 0'' via [[http://wiki.dns323.info/howto:telnet|telnet]] you can see what temperature-unit your box uses. The parameter-values are only given as examples.

The script can be run in the background where it will remain active and periodically update the speed of the fan. To avoid clashes with the fancontrol process, it is probably best to kill it before this script is run.

The script can be run in the background where it will remain active and periodically update the speed of the fan. To avoid clashes with the fancontrol process, it is probably best to kill it before this script is run.

Line 148:

Line 250:

</code>

</code>

-

A more "hands on" example of a script to control fanspeeds. As with the above, make sure that the parameters of the temperature and fanspeeds correctly corresponds to your box. Please read through the thread [[http://forum.dsmg600.info/t185-does-time.html|Fan does run all the time]] before you install this script.

+

+

=== A general use ctrl_fanspeed.sh script ===

+

This script automatically kills the factory fancontrol process and loads the script into RAM disk, so to avoid periodic disk spin-ups as the script runs continuously. You can also comment-out (adding # in front of) the 3 lines following ''# Create a logfile on the RAM-disk'' as well as every line that starts with ''echo'' to turn off logging. This script is written with temperature reported in Fahrenheit. You will have to convert the T1/T2 parameter values if your unit reports in Celsius.

+

+

It's a more polished example of a script to control fan speeds. Please read through the thread [[http://forum.dsmg600.info/t185-does-time.html|Fan does run all the time]] before you install this script.