Sysctl and out of memory killer

Re: Sysctl and out of memory killer

Postby fvdw » Sat Aug 22, 2015 10:14 pm

what are the values of pwm1_enable and pwm1_mode

indeed it doesn't seem to rotate
especially fan1_fault value being 1 indicates a problem , on my 5big2 it indicates 0 even if the fan is not running

Maybe it is stuck because of dirt ??, a look inside and try if it can move by hand ?
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Sysctl and out of memory killer

Postby samrise » Sat Aug 22, 2015 10:16 pm

Code: Select all
root@nas:/ # cat  /sys/bus/i2c/devices/0-003e/pwm1_enable
1
root@nas:/ # cat  /sys/bus/i2c/devices/0-003e/pwm1_mode
1


I'm going to open it and check.
samrise
 
Posts: 115
Joined: Thu Jan 01, 2015 9:59 pm

Re: Sysctl and out of memory killer

Postby fvdw » Sun Aug 23, 2015 9:16 am

If you take out the disks you should be able to see it.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Sysctl and out of memory killer

Postby samrise » Sun Aug 23, 2015 1:40 pm

Indeed.

Fan is working (thank god), but always at same speed and i cant control it. Echo into that file does not work.

Code: Select all
root@nas:/ # /bin/echo 200 > /sys/bus/i2c/devices/0-003e/pwm1
root@nas:/ # cat /sys/bus/i2c/devices/0-003e/pwm1
255
samrise
 
Posts: 115
Joined: Thu Jan 01, 2015 9:59 pm

Re: Sysctl and out of memory killer

Postby fvdw » Sun Aug 23, 2015 2:04 pm

Values above 100 make little or no difference see earlier post. Try a value of 10, now you should see a lower speed.

What did you do to make the fan work?
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Sysctl and out of memory killer

Postby samrise » Sun Aug 23, 2015 2:12 pm

Maybe i didnt explain myself:

Code: Select all
root@nas:/ # /bin/echo 10 > /sys/bus/i2c/devices/0-003e/pwm1
root@nas:/ # cat /sys/bus/i2c/devices/0-003e/pwm1
255
root@nas:/ # /bin/echo 155 > /sys/bus/i2c/devices/0-003e/pwm1
root@nas:/ # cat /sys/bus/i2c/devices/0-003e/pwm1
255


That file is not acepting input, it always contains 255.

Regarding fan i think it was stuck.
samrise
 
Posts: 115
Joined: Thu Jan 01, 2015 9:59 pm

Re: Sysctl and out of memory killer

Postby fvdw » Sun Aug 23, 2015 2:39 pm

did you first set the mode correct ?
Code: Select all
/bin/echo 1 > /sys/bus/i2c/devices/0-003e/pwm1_enable
/bin/echo 1 > /sys/bus/i2c/devices/0-003e/pwm1_mode
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Sysctl and out of memory killer

Postby samrise » Sun Aug 23, 2015 2:49 pm

Yes.

Code: Select all
root@nas:/ # cat /sys/bus/i2c/devices/0-003e/pwm1_mode
1
root@nas:/ # cat /sys/bus/i2c/devices/0-003e/pwm1_enable
1


Driver still reads 0 rpm:

Code: Select all
root@nas:/ # cat /sys/bus/i2c/devices/0-003e/fan1_input
0
samrise
 
Posts: 115
Joined: Thu Jan 01, 2015 9:59 pm

Re: Sysctl and out of memory killer

Postby fvdw » Sun Aug 23, 2015 3:10 pm

fan1_input has now meaning in this mode 1

below some settings on my 5big2 as example
Code: Select all
/sys/bus/i2c/devices/0-003e$ cat pwm1
0
/sys/bus/i2c/devices/0-003e$ cat pwm1_enable
1
/sys/bus/i2c/devices/0-003e$ cat pwm1_mode
1
/sys/bus/i2c/devices/0-003e$ cat fan1_pulses
2
/sys/bus/i2c/devices/0-003e$ cat fan1_div
8
/sys/bus/i2c/devices/0-003e$ cat uevent
DRIVER=g762
MODALIAS=i2c:g762
/sys/bus/i2c/devices/0-003e$ echo 10 > pwm1
/sys/bus/i2c/devices/0-003e$ cat pwm1
10
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Sysctl and out of memory killer

Postby samrise » Sun Aug 23, 2015 3:19 pm

Code: Select all
root@nas:/ # cd /sys/bus/i2c/devices/0-003e/
root@nas:/sys/bus/i2c/devices/0-003e # cat pwm1
255
root@nas:/sys/bus/i2c/devices/0-003e # cat pwm1_enable
1
root@nas:/sys/bus/i2c/devices/0-003e # cat pwm1_mode
1
root@nas:/sys/bus/i2c/devices/0-003e # cat fan1_pulses
4
root@nas:/sys/bus/i2c/devices/0-003e # cat fan1_div
8
root@nas:/sys/bus/i2c/devices/0-003e # cat uevent
DRIVER=g762
MODALIAS=i2c:g762
root@nas:/sys/bus/i2c/devices/0-003e # echo 10 > pwm1
root@nas:/sys/bus/i2c/devices/0-003e # cat pwm1
255
root@nas:/sys/bus/i2c/devices/0-003e #
samrise
 
Posts: 115
Joined: Thu Jan 01, 2015 9:59 pm

PreviousNext

Return to Lacie 5Big Network vs1

Who is online

Users browsing this forum: No registered users and 4 guests