What version of hid-wacom.c is being used?  The version in Linus's try
doesn't report ABS_MISC for anything.

The values for ABS_MISC look invalid to me.

If the driver advertises itself as a Protocol 4 or 5 device and sends
invalid ABS_MISC's, xf86-input-wacom used to discard those packets.
Not sure if it still does.

Chris

On Thu, Jan 19, 2012 at 1:34 PM, Przemo Firszt <[email protected]> wrote:
> Hi,
> The kernel driver for Inruos4 Wireles reports to the subsystem as follows for
> pen:
>
> wdata->tool = BTN_TOOL_PEN
> wdata->serial = 148056F6 (not sure if that's OK....)
> wdata->id = 100802
>
> and for eraser:
>
> wdata->tool = BTN_TOOL_RUBBER
> wdata->serial = 148056F6
> wdata->id = 10080A
>
> snippet of the code responsible for reporting:
> [..]
> input_report_key(input, BTN_TOUCH, pressure > 1);
> input_report_key(input, BTN_STYLUS, data[1] & 0x02);
> input_report_key(input, BTN_STYLUS2, data[1] & 0x04);
> input_report_abs(input, ABS_X, x);
> input_report_abs(input, ABS_Y, y);
> input_report_abs(input, ABS_PRESSURE, pressure);
> input_report_abs(input, ABS_MISC, wdata->id);
> input_event(input, EV_MSC, MSC_SERIAL, wdata->serial);
> input_report_key(input, wdata->tool, 1);
> input_sync(input);
> [..]
> yet gimp fails to recoginse pen vs. eraser.
> I'm missing something here or I should check how xorg driver for wacom 
> handles these values?
>
> --
> Regards,
> Przemo
>
>

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to