New and lighweight fan control daemon for NSA 310

Marvell Kirkwood based
User avatar
picard
Posts: 44
Joined: Tue Feb 05, 2013 6:46 am
Location: Germany
Contact:

Re: New and lighweight fan control daemon for NSA 310

Post by picard » Thu Feb 07, 2013 8:12 am

hello mijzelf

many thanks for your great help.

how do I get the information from i2cget
RPM and C values​​?

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

Re: New and lighweight fan control daemon for NSA 310

Post by Mijzelf » Thu Feb 07, 2013 9:50 am

I think the output of cpu temperature is just the temperature in °C. About the fan speed I don't know. Yet.

User avatar
picard
Posts: 44
Joined: Tue Feb 05, 2013 6:46 am
Location: Germany
Contact:

Re: New and lighweight fan control daemon for NSA 310

Post by picard » Thu Feb 07, 2013 11:11 am

Mijzelf wrote:I think the output of cpu temperature is just the temperature in °C.
i didn't think so

Code: Select all

i2cget -y 0x0 0x0a 0x07
0x27
but the webadmin show me 39C

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

Re: New and lighweight fan control daemon for NSA 310

Post by Mijzelf » Thu Feb 07, 2013 11:19 am

Numbers starting with 0x are hexadecimal. And 27 hex happens to equal 39 decimal (2*16+7*1)

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

Re: New and lighweight fan control daemon for NSA 310

Post by Mijzelf » Thu Feb 07, 2013 7:56 pm

More on NSA325 fan speed and cpu temperature: Wiki.


User avatar
kefealo
Posts: 4
Joined: Tue Feb 26, 2013 6:20 am

Re: New and lighweight fan control daemon for NSA 310

Post by kefealo » Wed Feb 27, 2013 6:53 pm

Hello, I try to join this interesting topic (I hate my NSA320 fan noise)
We know how to query NSA 310, 320, 325 fan and tempareture values.

Just a step, how to control fan's RPM.

Code: Select all

#!/bin/sh
for line in `cat /proc/mcu` ; do
    case $line in
            'MagicNumber:'*)
            if [ ${line#MagicNumber:} != 85 ] ; then
                exit
            fi
            ;;
            'Rpss:'*)
                fan1=${line#Rpss:}
                let fan=1000/$fan1*60
                echo fan1=$fan rpm
            ;;
            'Temperature:'*)
                temp1=${line#Temperature:}
                temp=${temp1:0:2}.${temp1:2:1}
                echo temp1=$temp *C
            ;;
    esac
done
I'll try to find how to control the fan speed... As I see, the fanctrld do nothing. at least for me.
-=< life is shit, core was dumped >=-

Rymaan
Posts: 3
Joined: Thu Mar 07, 2013 8:20 am

Re: New and lighweight fan control daemon for NSA 310

Post by Rymaan » Thu Mar 07, 2013 8:30 am

Hi,

Wonder if anyone can help, I recently purchased the NSA310 about a week ago and im looking
to find a solution regarding the slightly loud idle fan noise, before looking down the path of
replacing the fan itself. :( .

I have installed the FFP tools using the built in packages method on the nsa310 (FW 4.40),
im able to get SSH/root access to the NAS without a problem. I have copied the script and
created an .sh file, copied it to the admin share and then moved it to the appropriate
location according to this thread, however im having issues with the script not running
as the fan still seems to be on idle and I cant run the script manually.

I am a little new to linux commands so any help would be appreciated.

Thanks

barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: New and lighweight fan control daemon for NSA 310

Post by barmalej2 » Thu Mar 07, 2013 10:14 am

Have you set execute permissions for script file?:

Code: Select all

chmod a+x /ffp/start/your_script_name.sh

Rymaan
Posts: 3
Joined: Thu Mar 07, 2013 8:20 am

Re: New and lighweight fan control daemon for NSA 310

Post by Rymaan » Thu Mar 07, 2013 11:02 am

Hi Barmalej2,

I did follow that step in a similar topic viewtopic.php?f=249&t=5785 which I have also tried but then noticed you
just took the fan out of your NSA310. Even the other script in the topic mentioned there I have tried
but no luck. I have copied that script and managed to copy the file to the /ffp/start
location as I can see the file using dir function. Even if I try to execute the script manually
using "./fan.sh" I get an error "/bin/sh^m bad interpreter"

Just trying to work out where I have gone wrong.

Thanks

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

Re: New and lighweight fan control daemon for NSA 310

Post by Mijzelf » Thu Mar 07, 2013 1:34 pm

Rymaan wrote:"/bin/sh^m bad interpreter"
You created the script with some Windows editor. The script doesn't have Linux line endings.

bigtom5000
Posts: 1
Joined: Thu Apr 04, 2013 5:45 am

Re: New and lighweight fan control daemon for NSA 310

Post by bigtom5000 » Thu Apr 04, 2013 5:48 am

"How to install
Very simple. First, you need Go language (golang). Please note Go 1.0 WILL NOT compile on ARM5, you either need some development snapshot or you can checkout master (called "default") branch. Then install and set GOROOT and PATH variables."

I'm a newbee. Could you please write a bit more detailed tutorial? I'd appreciate it...

Thanks!

Legolas2
Posts: 42
Joined: Sat Apr 06, 2013 5:43 am

Re: New and lighweight fan control daemon for NSA 310

Post by Legolas2 » Mon Apr 08, 2013 1:50 am

kefealo wrote:Hello, I try to join this interesting topic (I hate my NSA320 fan noise)
We know how to query NSA 310, 320, 325 fan and tempareture values.

Just a step, how to control fan's RPM.

Code: Select all

#!/bin/sh
for line in `cat /proc/mcu` ; do
    case $line in
            'MagicNumber:'*)
            if [ ${line#MagicNumber:} != 85 ] ; then
                exit
            fi
            ;;
            'Rpss:'*)
                fan1=${line#Rpss:}
                let fan=1000/$fan1*60
                echo fan1=$fan rpm
            ;;
            'Temperature:'*)
                temp1=${line#Temperature:}
                temp=${temp1:0:2}.${temp1:2:1}
                echo temp1=$temp *C
            ;;
    esac
done
I'll try to find how to control the fan speed... As I see, the fanctrld do nothing. at least for me.
Hi kefealo
Any luck on finding how to control fan on NSA320? I just got one a couple of days ago, and the noise drives me nuts too :)

Legolas2
Posts: 42
Joined: Sat Apr 06, 2013 5:43 am

Re: New and lighweight fan control daemon for NSA 310

Post by Legolas2 » Tue Apr 09, 2013 4:38 am

Umm, Zyxel site states the fan for NSA-320 can be controlled.
http://www.zyxel.com/us/en/products_ser ... .shtml?t=p

Power and Thermal Management
Power control:
  • Internal disk hibernation support
    Scheduled power on/off/reboot
    Wake-on-LAN support
    System automatically resume after power outage
    APC USB UPS monitoring and auto shutdown
Thermal management:
  • Smart fan speed control
    High temperature alert/buzzer
    Auto shutdown while high temperature
What are we missing here.

User avatar
kefealo
Posts: 4
Joined: Tue Feb 26, 2013 6:20 am

Re: New and lighweight fan control daemon for NSA 310

Post by kefealo » Fri May 03, 2013 8:35 pm

Legolas2 wrote:Umm, Zyxel site states the fan for NSA-320 can be controlled.
http://www.zyxel.com/us/en/products_ser ... .shtml?t=p

Power and Thermal Management
Power control:
  • Internal disk hibernation support
    Scheduled power on/off/reboot
    Wake-on-LAN support
    System automatically resume after power outage
    APC USB UPS monitoring and auto shutdown
Thermal management:
  • Smart fan speed control
    High temperature alert/buzzer
    Auto shutdown while high temperature
Heh... don't joke me please... go to system on your nsa320
have you see any interesting stuffs in your "real" config?

What are we missing here.
-=< life is shit, core was dumped >=-

Post Reply