On Thu, Dec 9, 2010 at 2:16 PM, Chris Bagwell <[email protected]> wrote:
> I think this works but haven't tested it.  I can point to
> xf86-input-synaptics.  Its using it in same way we want to.

I hope it works too. Last time I checked the kernel code (few weeks
ago), I didn't see it gets supported.

> http://cgit.freedesktop.org/xorg/driver/xf86-input-synaptics/tree/src/eventcomm.c
>
>    SYSCALL(rc = ioctl(pInfo->fd, EVIOCGABS(ABS_X), &abs));
>    if (rc >= 0)
>    {
>        xf86Msg(X_PROBED, "%s: x-axis range %d - %d\n", pInfo->name,
>                abs.minimum, abs.maximum);
>        priv->minx = abs.minimum;
>        priv->maxx = abs.maximum;
> #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)

This is right since resolution is added in 2.6.31.

>        priv->resx = abs.resolution;
> #endif

The struct is updated does not mean the value has been passed. We may
just get a zero, the default value.

>    } else
>        xf86Msg(X_ERROR, "%s: failed to query axis range (%s)\n", pInfo->name,
>                strerror(errno));
>
> I believe above code was added by same person that add resolution to
> kernel's synaptics.c.  Please see that for API for how wacom can use
> it.

I know the API. I doubt we get the value though. If the same person
worked on both sides, he should be getting it right.

> Now, there is a thread on linux-input about ABI issues when structures
> grow... so I've no idea if this logic really works.  I assume it does.

You'll give this one a "Tested-by" too, right ;)?

Ping

------------------------------------------------------------------------------
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to