Sitecom MD253 noisy fan

MD-253 & MD-500 Discussion
brogio
Posts: 3
Joined: Mon May 24, 2010 5:24 pm

Sitecom MD253 noisy fan

Post by brogio » Mon May 24, 2010 5:35 pm

Hi, I would like to replace the fan of my sitecom MD253 with a quieter one, but I am been unable to open the case of the NAS.

Anyboy has tried successfully (maybe voiding warranty.... :( ) ?

Aybody found how to change the fan speed

the fan speed can be read on /proc/mp_fan_speed

the case temperature seems to be readable on /proc/mp_therm-fan

how can the speed be modulated ?

Thanx

Mijzelf
Posts: 6207
Joined: Mon Jun 16, 2008 10:45 am

Re: Sitecom MD253 noisy fan

Post by Mijzelf » Mon May 24, 2010 7:29 pm

brogio wrote:the fan speed can be read on /proc/mp_fan_speed
the case temperature seems to be readable on /proc/mp_therm-fan

how can the speed be modulated ?
Have you tried to write to /proc/mp_fan_speed ?

brogio
Posts: 3
Joined: Mon May 24, 2010 5:24 pm

Re: Sitecom MD253 noisy fan

Post by brogio » Mon May 24, 2010 9:23 pm

Of course, but this don't work.

-r--r--r-- 1 root root 0 May 24 21:51 mp_fan_speed
-r--r--r-- 1 root root 0 May 24 21:51 mp_therm-fan

these two are read only.

** WAIT**

I think I found something.

In /sys/module/mp_thermAndFan/parameters

there is this:

Code: Select all

-rw-r--r--    1 root     root            0 May 24 22:02 cold_limit
-r--r--r--    1 root     root         4096 May 24 21:55 current_speed
-r--r--r--    1 root     root         4096 May 24 21:55 current_temp
-r--r--r--    1 root     root         4096 May 24 21:55 error_fan
-r--r--r--    1 root     root         4096 May 24 21:55 error_temp
-rw-r--r--    1 root     root         4096 May 24 21:55 fan_pulse_per_rev
-rw-r--r--    1 root     root            0 May 24 22:02 hot_limit
-rw-r--r--    1 root     root         4096 May 24 21:55 min_fan_speed_ratio
-rw-r--r--    1 root     root            0 May 24 22:01 output_flag

My factory settings

Code: Select all

/sys/module/mp_thermAndFan/parameters # cat cold_limit 
104
/sys/module/mp_thermAndFan/parameters # cat current_speed 
0
/sys/module/mp_thermAndFan/parameters # cat current_temp 
0
/sys/module/mp_thermAndFan/parameters # cat error_fan 
0
/sys/module/mp_thermAndFan/parameters # cat error_temp 
0
/sys/module/mp_thermAndFan/parameters # cat fan_pulse_per_rev 
1
/sys/module/mp_thermAndFan/parameters # cat hot_limit 
16
/sys/module/mp_thermAndFan/parameters # cat min_fan_speed_ratio 
64
/sys/module/mp_thermAndFan/parameters # cat output_flag 
N
google is your friend...

nothig with mp_thermAndFan but with only thermAndFan... there is a world :-)

WARNING

what follow is at your own RISK

changing cold_limit from 104 to 50 (as seen on many pages found with google, regarding WD and some other NAS) the fan noise stop, and the fan itself goes from 3000 rpm to 600/1200, without /proc/mp_therm-fan going over 35/38 Celsius.

Warning, nothing scientific, only late night tweaking.

I think it's time to look in the kernel code.

Byebye, goodnight!

langerak
Posts: 160
Joined: Sat May 29, 2010 6:37 pm

Re: Sitecom MD253 noisy fan

Post by langerak » Sat May 29, 2010 6:50 pm

Great! This works perfectly, now the fan ain't that noisy anymore!

seansan
Posts: 19
Joined: Wed Apr 07, 2010 10:25 am

Re: Sitecom MD253 noisy fan

Post by seansan » Sun Jun 20, 2010 1:27 pm

More on hot & cold limits
http://hacksomethingtonight.blogspot.co ... emperature

So there seems to be something we can do about when the fan starts, and also how (slow) it speeds up

My questions are:

Does the MD-253 "remember" the settings we set via SSH?

What are the "ideal" values that you use?

EDIT
Some suggested settings from the inet (http://www.noh.ro/weblog/)

Code: Select all

Additionally, there is a lot of fine tuning in /etc/rc.local to optimize power usage, temperature and fan control.

echo 1 > /sys/module/mp_thermAndFan/parameters/output_flag
echo 50 > /sys/module/mp_thermAndFan/parameters/cold_limit
echo 1 > /sys/module/mp_thermAndFan/parameters/hot_limit
echo 32 > /sys/module/mp_thermAndFan/parameters/min_fan_speed_ratio
echo "60" > /proc/sys/vm/dirty_ratio
echo "1" > /proc/sys/vm/dirty_background_ratio
echo "core.%e" > /proc/sys/kernel/core_pattern

output_flag = ?? no idea
cold_limit = when the fan kicks in (50 is eq. to )
hot_limit = when the device shuts down cause too hot
min_fan_speed_ratio = how the fan starts up (32 is more slowly then 64)

dirty_ratio = lets processes save up cache (in % of mem)
dirty_background_ratio =  decides how much cache after processes before the write/flush (in % of mem)
core_pattern = core_pattern is used to specify a core dumpfile pattern name

More on thermAndFan: ??
More on dirty/flushing: http://www.westnet.com/~gsmith/content/linux-pdflush.htm
More on core: http://aplawrence.com/Linux/limit_core_files.html

Reading the temperature can be done through
smartctl -a -d ata /dev/sda | awk '/Temperature/ {print $10}'
Feedback appreciated

Protheus
Posts: 21
Joined: Sun May 30, 2010 11:18 am

Re: Sitecom MD253 noisy fan

Post by Protheus » Mon Jun 21, 2010 2:35 pm

I can answer quickly:

No, the values u enter via SSH are not permament. After a reboot everything is gone.

You have to patch the firmware to step into the startup procedures and start something you like after the normal system startup.

seansan
Posts: 19
Joined: Wed Apr 07, 2010 10:25 am

Re: Sitecom MD253 noisy fan

Post by seansan » Mon Jun 21, 2010 7:53 pm

Any feedback what file to edit? Or is this a difficult endeauvour?

Protheus
Posts: 21
Joined: Sun May 30, 2010 11:18 am

Re: Sitecom MD253 noisy fan

Post by Protheus » Sun Aug 29, 2010 4:39 pm

Sorry, I was offline for a while ;)

Okay it is a difficult task, as all scripts are in the non writeable parts of the firmware.

I worked around it, by loading the root file system - chaning the main startupscript to run a script inside the changeable area, after all other steps of the normal startup happend.

This enables me to call nearly anything I like, as I created a new directory on the hard disk which contains the actual differencies.

The problem is, you have to patch the original firmware files and then flash them to the root area. If anything goes wrong, and the system will not be able to startup the sshd anymore, you are dead.

seansan
Posts: 19
Joined: Wed Apr 07, 2010 10:25 am

Re: Sitecom MD253 noisy fan

Post by seansan » Fri Sep 24, 2010 12:56 pm

Do share how, because sitecom is doing nada to change anything

Mijzelf
Posts: 6207
Joined: Mon Jun 16, 2008 10:45 am

Re: Sitecom MD253 noisy fan

Post by Mijzelf » Fri Sep 24, 2010 3:26 pm

He already shared it in the wiki.

langerak
Posts: 160
Joined: Sat May 29, 2010 6:37 pm

Re: Sitecom MD253 noisy fan

Post by langerak » Fri Oct 01, 2010 3:26 pm

I also state that the fan in the box is made of crappy material e.g. cheapass sleeve bearing fan. Mine and one of a friend of mine are already making that *harrrrrrrrrr* sound stating that it's going dead sooner or later. So i guess i still have to open the box or something, don't want to turn it in...

michelinok
Posts: 22
Joined: Tue Nov 30, 2010 11:21 pm

Re: Sitecom MD253 noisy fan

Post by michelinok » Sun Dec 05, 2010 4:18 pm

Is there a way to "WRITE" a value for the fan?
I've the ssh access but if i try to do

echo 50 > /sys/module/mp_thermAndFan/parameters/cold_limit

it says that it's read only :(

Any idea???? :cry:

seansan
Posts: 19
Joined: Wed Apr 07, 2010 10:25 am

Re: Sitecom MD253 noisy fan

Post by seansan » Mon Feb 28, 2011 7:26 pm

What if ???

Somebody could post a "tweaked" FW with these settings hardcoded?

(I just dont have the skills to take such risks ... )

michelinok
Posts: 22
Joined: Tue Nov 30, 2010 11:21 pm

Re: Sitecom MD253 noisy fan

Post by michelinok » Mon Feb 28, 2011 8:05 pm

seansan wrote:What if ???

Somebody could post a "tweaked" FW with these settings hardcoded?

(I just dont have the skills to take such risks ... )
My question is quite old...
Anyway yes, it's possible, there're 2 ways, one simple and one difficult.
The simple way is to enable ssh and login with toor/MapoweR (and you'll loose the tweak after a reboot), the difficult one is too difficult for me atm (it needs to uncompress and recompile the firmware).

seansan
Posts: 19
Joined: Wed Apr 07, 2010 10:25 am

Re: Sitecom MD253 noisy fan

Post by seansan » Sat Mar 05, 2011 11:16 am

Maybe it can be the first tweak for the custom FW

viewtopic.php?f=235&t=2677

Post Reply