[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: SS4000E Fan speed, LEDS and power button



Some further info/progress.

This post http://lists.debian.org/debian-arm/2009/08/msg00011.html set me
wondering why pwmconfig would not work on my system, no such file. The
resolution was to download the lm-sensors source and compile it locally on
the SS4000e.

>apt-get install build-essential bison flex (Bison, flex were necessary I
found later).
>cd ~
root@FREESTOR:~# apt-get source lm-sensors
Reading package lists... Done
Building dependency tree
Reading state information... Done
Need to get 221 kB of source archives.
Get:1 http://ftp.us.debian.org/debian/ squeeze/main lm-sensors-3 1:3.1.2-6
(dsc) [1,099 B]
Get:2 http://ftp.us.debian.org/debian/ squeeze/main lm-sensors-3 1:3.1.2-6
(tar) [189 kB]
Get:3 http://ftp.us.debian.org/debian/ squeeze/main lm-sensors-3 1:3.1.2-6
(diff) [31.1 kB]
Fetched 221 kB in 0s (577 kB/s)
gpgv: keyblock resource `/root/.gnupg/trustedkeys.gpg': file open error
gpgv: Signature made Wed 26 May 2010 01:35:43 PM EDT using DSA key ID
F1BCDB73
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on
./lm-sensors-3_3.1.2-6.dsc
dpkg-source: info: extracting lm-sensors-3 in lm-sensors-3-3.1.2
dpkg-source: info: unpacking lm-sensors-3_3.1.2.orig.tar.gz
dpkg-source: info: applying lm-sensors-3_3.1.2-6.diff.gz

>make all
>make install

Pwmconfig now works and writes a /etc/fancontrol config file thus

# Configuration file generated by pwmconfig, changes will be lost
INTERVAL=10
DEVPATH=hwmon0=devices/platform/IOP3xx-I2C.0/i2c-0/0-002d
DEVNAME=hwmon0=w83792d
FCTEMPS= hwmon0/device/pwm1=hwmon0/device/temp1_input
FCFANS= hwmon0/device/pwm1=hwmon0/device/fan1_input
MINTEMP= hwmon0/device/pwm1=30
MAXTEMP= hwmon0/device/pwm1=60
MINSTART= hwmon0/device/pwm1=150
MINSTOP= hwmon0/device/pwm1=100
MINPWM=hwmon0/device/pwm1=195

See also the fancontrol.txt in the source tree docs for lm-sensors

I also found from this post
http://lm-sensors.org/browser/lm-sensors/trunk/doc/fan-divisors that
explains fan divisors. I edited the w83792d section in /etc/sensors3.conf
thus

See also fan-divisors in the source tree docs

chip "w83792d-*"

    label in0 "VcoreA"
    label in1 "VcoreB"
    label in6 "+5V"
    label in7 "5VSB"
    label in8 "Vbat"

    set in6_min  5.0 * 0.90
    set in6_max  5.0 * 1.10
    set in7_min  5.0 * 0.90
    set in7_max  5.0 * 1.10
    set in8_min  3.0 * 0.90
    set in8_max  3.0 * 1.10

# Fans - only fan1 is connected
    set fan1_div 4
    ignore fan2
    ignore fan3
    ignore fan4
    ignore fan5
    label fan1 "Case Fan"

Need to run sensors -s after changes to /etc/sensors3.conf

Now I have a fan speed reported.

root@FREESTOR:/etc# sensors
w83792d-i2c-0-2d
Adapter: IOP3xx-I2C
VcoreA:       +1.29 V  (min =  +0.00 V, max =  +2.04 V)
VcoreB:       +0.00 V  (min =  +0.00 V, max =  +2.04 V)
in2:          +2.57 V  (min =  +0.00 V, max =  +4.08 V)
in3:          +3.30 V  (min =  +0.00 V, max =  +4.08 V)
in4:          +0.00 V  (min =  +0.00 V, max =  +4.08 V)
in5:          +1.99 V  (min =  +0.00 V, max =  +4.08 V)
+5V:          +4.94 V  (min =  +4.49 V, max =  +5.50 V)
5VSB:         +4.92 V  (min =  +4.49 V, max =  +5.50 V)
Vbat:         +0.00 V  (min =  +2.69 V, max =  +3.30 V)  ALARM
Case Fan:    2596 RPM  (min =    0 RPM, div = 4)
temp1:        +41.0°C  (high = +127.0°C, hyst =  +0.0°C)
temp2:       +127.0°C  (high = +80.0°C, hyst = +75.0°C)  ALARM
temp3:       +127.0°C  (high = +80.0°C, hyst = +75.0°C)  ALARM

The temperature readings are still a bit weird.

Temp1 is I suppose from the CPU the internal diode and temp2/3 would be the
sensors on the SATA board which seem to be stuck high. These readings were I
suppose the cause of the original Freestor 4020 firmware shutting down the
NAS as soon as it had started.

CJW

-----Original Message-----
From: Chris Wilkinson [mailto:kinsham@verizon.net] 
Sent: Tuesday, July 24, 2012 12:13 PM
To: debian-arm@lists.debian.org
Subject: RE: SS4000E Fan speed, LEDS and power button

Could someone be kind enough to post the output they get from these
commands?

CJW

-----Original Message-----
From: Chris Wilkinson [mailto:kinsham@verizon.net] 
Sent: Friday, July 20, 2012 11:58 AM
To: 'Arnaud Patard (Rtp)'
Cc: debian-arm@lists.debian.org
Subject: RE: SS4000E Fan speed, LEDS and power button

Installed lm-sensors. sensors-detect detects the w83792d chip

root@Freestor:~# sensors
w83792d-i2c-0-2d
Adapter: IOP3xx-I2C
VcoreA:       +1.28 V  (min =  +0.00 V, max =  +2.04 V)
VcoreB:       +0.00 V  (min =  +0.00 V, max =  +2.04 V)
in2:          +2.55 V  (min =  +0.00 V, max =  +4.08 V)
in3:          +3.30 V  (min =  +0.00 V, max =  +4.08 V)
in4:          +0.00 V  (min =  +0.00 V, max =  +4.08 V)
in5:          +1.99 V  (min =  +0.00 V, max =  +4.08 V)
+5V:          +4.92 V  (min =  +4.49 V, max =  +5.50 V)
5VSB:         +4.93 V  (min =  +4.49 V, max =  +5.50 V)
Vbat:         +0.00 V  (min =  +2.69 V, max =  +3.30 V)  ALARM
fan1:           0 RPM  (min =    0 RPM, div = 2)
fan2:           0 RPM  (min =    0 RPM, div = 2)
fan3:           0 RPM  (min =    0 RPM, div = 2)
fan4:           0 RPM  (min =    0 RPM, div = 2)
fan5:           0 RPM  (min =    0 RPM, div = 2)
temp1:        +46.0°C  (high = +127.0°C, hyst =  +0.0°C)
temp2:       +127.0°C  (high = +80.0°C, hyst = +75.0°C)  ALARM
temp3:       +127.0°C  (high = +80.0°C, hyst = +75.0°C)  ALARM

All the fans are zero so presumably it's not reading the fan speed from the
chip.

root@Freestor:~# modprobe -l | grep 83792
kernel/drivers/hwmon/w83792d.ko

root@Freestor:~# modinfo w83792d
filename:       /lib/modules/2.6.32-5-iop32x/kernel/drivers/hwmon/w83792d.ko
license:        GPL
description:    W83792AD/D driver for linux-2.6
author:         Chunhao Huang @ Winbond <DZShen@Winbond.com.tw>
alias:          i2c:w83792d
depends:
vermagic:       2.6.32-5-iop32x mod_unload modversions ARMv5
parm:           force:List of adapter,address pairs to boldly assume to be
present (array of short)
parm:           force_w83792d:List of adapter,address pairs which are
unquestionably assumed to contain a `w83792d' chip (array of short)
parm:           probe:List of adapter,address pairs to scan additionally
(array of short)
parm:           ignore:List of adapter,address pairs not to scan (array of
short)
parm:           force_subclients:List of subclient addresses: {bus,
clientaddr, subclientaddr1, subclientaddr2} (array of short)
parm:           init:Set to one to force chip initialization (bool)

CJW
-----Original Message-----
From: Arnaud Patard (Rtp) [mailto:arnaud.patard@rtp-net.org] 
Sent: Tuesday, July 17, 2012 3:44 PM
To: Chris Wilkinson
Cc: debian-arm@lists.debian.org
Subject: Re: SS4000E Fan speed, LEDS and power button

"Chris Wilkinson" <kinsham@verizon.net> writes:


Please note that I'm about to talk about em7210 so things may be different
on em7220.

> Has anyone succeeded to control the fan speed according to
> temperature,

the fan is handled by a w83792*. 

> control the front panel LEDS and power off with the power button on this
> device?

The leds are handled by the f75111 chip from fintek. There's
a driver here http://git.rtp-net.org/?p=ss4000e.git;a=tree The needed
patches are :

f75111.patch
add_f75111_pdata.patch
em7210_add_missing_leds.patch

I'm using them on top of 3.4 for several weeks now.

For the buttons, there's em7210_add_gpio_keys.patch. It was relying on
custom gpio input driver but there's nowadays needed stuff in mainline.

>
> I built http://lm-sensors.org/ but it couldn't recognize any sensors.
>
> I also haven't been able to figure out how to set up 4 disks in a RAID5.
The
> d-I only prompted to install 1 disk. I can format/mount the other 3 and
but
> don't know how to create the 4-disk RAID.

RAID5 needs only 3 drives, so create the RAID5 on 3 drives and then add
the last one as spare.

Arnaud


-- 
To UNSUBSCRIBE, email to debian-arm-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
Archive: 004201cd6690$64aa7970$2dff6c50$@net">http://lists.debian.org/004201cd6690$64aa7970$2dff6c50$@net


-- 
To UNSUBSCRIBE, email to debian-arm-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
Archive: 001b01cd69b7$2a147d90$7e3d78b0$@net">http://lists.debian.org/001b01cd69b7$2a147d90$7e3d78b0$@net


Reply to: