Add a custom fan daemon

From OpenFSG
Jump to: navigation, search

Contents

Introduction

What FAND is?

Original FAND settings

temp1low=62; temp1hi=80;      (t1 measured at power supply)
temp2low=37; temp2hi=56;      (t2 measured at IDE / WLAN)
temp3low=47; temp3hi=56;      (t3 measured at CPU)

Why to change FAND?

Settings Advised

temp1low=62; temp1hi=80;
temp2low=44; temp2hi=56;
temp3low=47; temp3hi=64;

This temperature settings begins fan 7º up (at 44º instead of 37º) at IDE/WLAN and allow 8º more at CPU. That is not much. Just thing that "HOT and SILENT" mode begings fan at 50º at IDE/WLAN and allow 65º at CPU.

temp1low=62; temp1hi=80;
temp2low=41; temp2hi=56;
temp3low=47; temp3hi=60;

Custom FAND



Using this fan daemon is at your own risk. Picking wrong setting can ultimately lead to a dead FSG, so be careful.


Requirements

The custom fan daemon for 4.x

The custom fan daemon for 3.x


Procedure

1. Download the custom fan daemon

2. Login as root using SSH

3. Make a backup of the standard fand, located in /usr/bin/fand

This will create a copy called "fand.bk"
/ # cp /usr/bin/fand fand.bk

4. Make a backup of the current master.conf file, located in /etc/master.conf

This will create a copy called "master.conf.bk"
/ # cp /etc/master.conf master.conf.bk

5. Place the custom fan daemon in /usr/bin and rename to fand OR place the custom fan daemon anywhere and make a symbolic link in /usr/bin

/ # mv <location>/custom_fand /usr/bin/fand

OR

/ # ln -s <location>/custom_fand /usr/bin/fand

6. Give correct rights to fand:

/usr/bin # chmod +x /usr/bin/fand


7. Edit the master.conf file

/ # vi /etc/master.conf

Look for the line that says: "fand_method=<N>" (N can be 0, 1 or 2 depending on the fan cooling method you have selected) Change the value to 3, so it says "fand_method=3" Add de following lines underneath and change the <N> values. NOTE THAT: N values are in centigrade

fand_temp1low=<N>
fand_temp1hi=<N>
fand_temp2low=<N>
fand_temp2hi=<N>
fand_temp3low=<N>
fand_temp3hi=<N>

The file should now look something like this: (with the "conservative" values advised before)

...
tz=GMT0.26
dst=MEST,M3.5.0/1,M10.5.0/1
hd_time=0
fand_method=3
fand_temp1low=62
fand_temp1hi=80
fand_temp2low=41
fand_temp2hi=56
fand_temp3low=47
fand_temp3hi=60

log_files=
...

8. Test the fand

/ # killall fand

This stops the old "fand" program running on memory. The "physical" fan stops, too. Now, you must run the new fand:

/ # /usr/bin/fand

The application will spit out useful info

9. Reboot the FSG

Errors

Permission denied

If get a "permission denied" when you try to run the program:

/usr/bin # fand
/bin/sh: fand: Permission denied

Is because you forget to let the correct permissions to "fand".

Whenever you get a "/bin/sh: <app>: Permission denied" you know it has something to do with your app being in the wrong location or having the wrong rights. It should work after you do a chmod.

I can not select other Cooling Methods from Freecom Web Interface

Edit master.conf and let "fand_method=<N>", were N can be 0, 1 or 2. When the 0,1,2 values are set, the Freecom Web Interface runs properly in the Cooling method selection. When the "3" value is set, you'll get the new custom cooling method, but the FWI will not run in the cooling method selection.

Coming back to the original state

Just come back with the backuped files:

/ # mv /usr/bin/fand.bk fand
/ # mv /etc/master.conf.bk master.conf

And then, stop the running custom_fand and re-start the old fand:

/ # killall fand
/ # /usr/bin/fand

Download

custom_fand.zip

Custom_fand_3_x.zip


Info about temperatures

Acceptable Temperatures:

Here you can find the comments of Rbar (nice guy from Freecom), about the temperatures:

The conclusion is that the temperatures must be:

In addition you should also care for the hard disk of your Freecom device: hard disks also have a maximum operating temperature. You can look it up in the data sheet of the respective hard disk manufacturer. Often the maximum hard disk temperature is around 65º.

Practical Temperatures

The conditions of testing were these:

Many days testing my FSG, and here are the results:


Practical FSG Teperatures
MODE Hot&Silent Standard (Working) Standard (sleeping) Max Ref Conservative
T1 (Power Suply) 63-66º 60-63 59 59-61 61-66
T2 (IDE / WLAN) 52-56º 49-52 48 48-51 51-55
T3 (CPU) 55-60 52-55 51 52-53 55-59

Are the "conservative" temperatures acceptables?

According to both previos points, YES.

More Info

New fan Daemon for the FSG

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox