On Mon, 2012-10-08 at 16:51 +0100, Martin Michlmayr wrote:
> * Ian Campbell <i...@hellion.org.uk> [2012-10-08 15:53]:
> > I've CC'd Bernhard and Martin since they appear to have implemented
> > 419p and 41x respectively support upstream so perhaps they have some
> > insight on how to distinguish the two.
> 
> There are GPIOs which tell you something about the device.  I think
> you can pretty much tell the exact device based on a combination of
> GPIOs, although I've lost tracked a bit since QNAP has so many
> variants.
> 
> Detecting the LCD in TS-41x devices should be easy though:
> 
>         MPP45_GPIO,             /* JP1: 0: LCD, 1: serial console */

Judging from the kernel; source it looks like it should appear in /sys
somewhere, perhaps under the name "JP1":
        if (gpio_request(QNAP_TS41X_JUMPER_JP1, "JP1") == 0)
                gpio_export(QNAP_TS41X_JUMPER_JP1, 0);

Can someone have a look in e.g. /sys/devices/virtual/gpio or some of the
other directories in "find /sys/ -name \*gpio\*" and see if they can
find it?

> One problem with QNAP devices are the number of variants.  For
> example, I believe the TS-419U has more fans than the TS-419P, and
> iirc qcontrol specifies the number of fans.

I wonder if/hope this is something where DT will eventually help us.

Looking at the qcontrol source it doesn't seem to have any knowledge of
the individual fans, it just has a single fanspeed command.

Ian.
-- 
Ian Campbell

Experience varies directly with equipment ruined.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to