Re: [Linuxwacom-devel] GIMP doesn't recognise pen and eraser.
On Thu, Jan 19, 2012 at 2:22 PM, Przemo Firszt wrote: > Dnia 2012-01-19, czw o godzinie 14:12 -0600, Chris Bagwell pisze: >> 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. > My custom version based on the latest git kernel. The important part is > here: http://pastebin.com/dZMerS6p > > ABS_MISC value (wdata->serial) is copied from usb driver - could be > wrong. What would you expect there? > > I don't want to upload that version to our git repo, cause it's very, > very dirty.. Fair enough. It should be same as wacom_wac.c. One of this: #define STYLUS_DEVICE_ID0x02 #define TOUCH_DEVICE_ID 0x03 #define CURSOR_DEVICE_ID0x06 #define ERASER_DEVICE_ID0x0A #define PAD_DEVICE_ID 0x0F Chris > -- > 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 Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
Re: [Linuxwacom-devel] GIMP doesn't recognise pen and eraser.
Dnia 2012-01-19, czw o godzinie 14:12 -0600, Chris Bagwell pisze: > 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. My custom version based on the latest git kernel. The important part is here: http://pastebin.com/dZMerS6p ABS_MISC value (wdata->serial) is copied from usb driver - could be wrong. What would you expect there? I don't want to upload that version to our git repo, cause it's very, very dirty.. -- 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 Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
Re: [Linuxwacom-devel] GIMP doesn't recognise pen and eraser.
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 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 Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel