digimend-devel Mailing List for DIGImend (Page 29)
Brought to you by:
spb_nick
You can subscribe to this list here.
| 2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(8) |
Jun
(27) |
Jul
(54) |
Aug
(54) |
Sep
(13) |
Oct
(20) |
Nov
(7) |
Dec
(4) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2013 |
Jan
(3) |
Feb
(3) |
Mar
(6) |
Apr
(1) |
May
(8) |
Jun
(5) |
Jul
(4) |
Aug
(10) |
Sep
(44) |
Oct
(12) |
Nov
(5) |
Dec
(14) |
| 2014 |
Jan
(16) |
Feb
(3) |
Mar
(3) |
Apr
(5) |
May
(2) |
Jun
(14) |
Jul
(38) |
Aug
(15) |
Sep
(15) |
Oct
(12) |
Nov
(38) |
Dec
(31) |
| 2015 |
Jan
(73) |
Feb
(71) |
Mar
(57) |
Apr
(36) |
May
(33) |
Jun
(20) |
Jul
(4) |
Aug
(5) |
Sep
(1) |
Oct
(11) |
Nov
(2) |
Dec
(6) |
| 2016 |
Jan
(7) |
Feb
(3) |
Mar
(6) |
Apr
(2) |
May
(7) |
Jun
(5) |
Jul
(3) |
Aug
(5) |
Sep
(5) |
Oct
(8) |
Nov
(13) |
Dec
|
|
From: Nikolai K. <sp...@gm...> - 2012-08-28 19:30:01
|
On 08/28/2012 09:16 PM, Jason Gerecke wrote: > On Mon, Aug 27, 2012 at 12:23 PM, Nikolai Kondrashov<sp...@gm...> wrote: >> + /* >> + * TODO: set to 0 once Wacom kernel driver is >> + * updated to report zero-centered values. >> + */ > I don't think this TODO is necessary. > Ideally, when we change the kernel driver to report zero-centered values, > we'd also set the resolution and be handled by the above case. There would > be a slight accuracy penalty (the tilt factor would be 57.3/57 = 1.005 > instead of 1.000), but at 64 degrees we'd only be off by a third of a > degree. Even if we came out with hardware that somehow senses a full +-90 > degrees of tilt, the calculation would be off by just under half a degree > at the extremes. Nothing to worry about. Sure. Otherwise, we can specify tilt resolution to be, say, 573 and multiply values by 10 in the kernel to raise the precision. Or 917 and shift by 4 for extra neatness :) > Instead, I'd change the comment to note that this is for > backwards-compatibility with kernel drivers which don't follow use the > proper semantics. It can be removed (along with wcmTiltXOff) in the > future when these kernels are no longer in use. OK, will fix shortly. >> + /* >> + * TODO: set to 0 once Wacom kernel driver is >> + * updated to report zero-centered values. >> + */ > Ditto above. Sure. > Great work! :) I think this patch hits all the issues squarely on the > head. We still need to decide when to get the kernel fix in place > (3.8?) 3.8 seems fine. > and poke the Qt/GTK developers to fix their frameworks, but > this patch should facilitate a nice smooth transition. Yes, that was the intention. > Reviewed-by: Jason Gerecke<kil...@gm...> Thanks, Jason! Sincerely, Nick |
|
From: SourceForge.net <no...@so...> - 2012-08-28 08:24:34
|
Bugs item #3556904, was opened at 2012-08-13 03:39 Message generated for change (Settings changed) made by spb_nick You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1089171&aid=3556904&group_id=233297 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: tablets Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Nikolai Kondrashov (spb_nick) Assigned to: Nikolai Kondrashov (spb_nick) Summary: UC-Logic Tablet TWHA60 driver needs to be implemented Initial Comment: Maillist threads: https://sourceforge.net/mailarchive/forum.php?thread_name=CANBiWK-LbWCK7Mwo3LiuUaouymxWd8XL7rkBcM6ktem36Xqdtw%40mail.gmail.com&forum_name=digimend-devel https://sourceforge.net/mailarchive/forum.php?thread_name=5016BF61.1070700%40gmail.com&forum_name=digimend-devel https://sourceforge.net/mailarchive/forum.php?thread_name=CALyDbHSpMR%2BjuXnB_zYtxVcSkKt-%2BSeV_PESHkeXWa7dR_CaWw%40mail.gmail.com&forum_name=digimend-devel https://sourceforge.net/mailarchive/forum.php?thread_name=1344091769.4180.11.camel%40gay-deciever&forum_name=digimend-devel Wiki page: https://sourceforge.net/apps/mediawiki/digimend/index.php?title=UC-Logic_Tablet_TWHA60 Diagnostics: http://digimend.git.sourceforge.net/git/gitweb.cgi?p=digimend/devices.git;a=tree;f=UC-LOGIC_Tablet_TWHA60 ---------------------------------------------------------------------- Comment By: Nikolai Kondrashov (spb_nick) Date: 2012-08-28 01:24 Message: Patching adding support for UC-Logic Tablet TWHA60 was accepted into the kernel and should be a part of 3.7 release: http://thread.gmane.org/gmane.linux.kernel.input/26544 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1089171&aid=3556904&group_id=233297 |
|
From: SourceForge.net <no...@so...> - 2012-08-28 08:24:20
|
Bugs item #3556904, was opened at 2012-08-13 03:39 Message generated for change (Comment added) made by spb_nick You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1089171&aid=3556904&group_id=233297 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: tablets Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nikolai Kondrashov (spb_nick) Assigned to: Nikolai Kondrashov (spb_nick) Summary: UC-Logic Tablet TWHA60 driver needs to be implemented Initial Comment: Maillist threads: https://sourceforge.net/mailarchive/forum.php?thread_name=CANBiWK-LbWCK7Mwo3LiuUaouymxWd8XL7rkBcM6ktem36Xqdtw%40mail.gmail.com&forum_name=digimend-devel https://sourceforge.net/mailarchive/forum.php?thread_name=5016BF61.1070700%40gmail.com&forum_name=digimend-devel https://sourceforge.net/mailarchive/forum.php?thread_name=CALyDbHSpMR%2BjuXnB_zYtxVcSkKt-%2BSeV_PESHkeXWa7dR_CaWw%40mail.gmail.com&forum_name=digimend-devel https://sourceforge.net/mailarchive/forum.php?thread_name=1344091769.4180.11.camel%40gay-deciever&forum_name=digimend-devel Wiki page: https://sourceforge.net/apps/mediawiki/digimend/index.php?title=UC-Logic_Tablet_TWHA60 Diagnostics: http://digimend.git.sourceforge.net/git/gitweb.cgi?p=digimend/devices.git;a=tree;f=UC-LOGIC_Tablet_TWHA60 ---------------------------------------------------------------------- >Comment By: Nikolai Kondrashov (spb_nick) Date: 2012-08-28 01:24 Message: Patching adding support for UC-Logic Tablet TWHA60 was accepted into the kernel and should be a part of 3.7 release: http://thread.gmane.org/gmane.linux.kernel.input/26544 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1089171&aid=3556904&group_id=233297 |
|
From: Nikolai K. <sp...@gm...> - 2012-08-27 19:24:27
|
Use tilt range and, optionally, resolution reported by the kernel for event
devices.
Add a constant for resolution currently expected by applications: TILT_RES,
1 point per degree in kernel units (points/radian). Scale values to this
resolution for compatibility and specify it for corresponding valuators
(instead of 1) for future use by applications.
Add constants for currently reported value limits: TILT_MIN and TILT_MAX,
-64 and 63 respectively. Continue clamping values to [TILT_MIN, TILT_MAX]
for compatibility.
Values and ranges reported by currently supported tablets should remain
unchanged.
Signed-off-by: Nikolai Kondrashov <sp...@gm...>
---
In this version I tried accomodating everything we've discussed before.
However, it was a long time ago and it is hard to force myself to re-read
and remember everything, so I may have overlooked something.
This was tested with kernel 3.5 and Waltop Sirius Battery Free Tablet.
src/wcmCommon.c | 2 --
src/wcmFilter.c | 16 +++++-----
src/wcmISDV4.c | 14 +++++++--
src/wcmUSB.c | 82 +++++++++++++++++++++++++++++++++++++++++++++++++--
src/xf86Wacom.c | 10 ++++---
src/xf86WacomDefs.h | 17 +++++++++--
6 files changed, 121 insertions(+), 20 deletions(-)
diff --git a/src/wcmCommon.c b/src/wcmCommon.c
index d10c1d1..650f8f5 100644
--- a/src/wcmCommon.c
+++ b/src/wcmCommon.c
@@ -1431,8 +1431,6 @@ WacomCommonPtr wcmNewCommon(void)
common->wcmMaxTouchY = 1024; /* max touch Y value */
common->wcmMaxStripX = 4096; /* Max fingerstrip X */
common->wcmMaxStripY = 4096; /* Max fingerstrip Y */
- common->wcmMaxtiltX = 128; /* Max tilt in X directory */
- common->wcmMaxtiltY = 128; /* Max tilt in Y directory */
common->wcmCursorProxoutDistDefault = PROXOUT_INTUOS_DISTANCE;
/* default to Intuos */
common->wcmSuppress = DEFAULT_SUPPRESS;
diff --git a/src/wcmFilter.c b/src/wcmFilter.c
index 47e958a..3802857 100644
--- a/src/wcmFilter.c
+++ b/src/wcmFilter.c
@@ -298,16 +298,16 @@ int wcmFilterCoord(WacomCommonPtr common, WacomChannelPtr pChannel,
ds->device_type == ERASER_ID))
{
ds->tiltx = tx / common->wcmRawSample;
- if (ds->tiltx > common->wcmMaxtiltX/2-1)
- ds->tiltx = common->wcmMaxtiltX/2-1;
- else if (ds->tiltx < -common->wcmMaxtiltX/2)
- ds->tiltx = -common->wcmMaxtiltX/2;
+ if (ds->tiltx > common->wcmTiltXMax)
+ ds->tiltx = common->wcmTiltXMax;
+ else if (ds->tiltx < common->wcmTiltXMin)
+ ds->tiltx = common->wcmTiltXMin;
ds->tilty = ty / common->wcmRawSample;
- if (ds->tilty > common->wcmMaxtiltY/2-1)
- ds->tilty = common->wcmMaxtiltY/2-1;
- else if (ds->tilty < -common->wcmMaxtiltY/2)
- ds->tilty = -common->wcmMaxtiltY/2;
+ if (ds->tilty > common->wcmTiltYMax)
+ ds->tilty = common->wcmTiltYMax;
+ else if (ds->tilty < common->wcmTiltYMin)
+ ds->tilty = common->wcmTiltYMin;
}
return 0; /* lookin' good */
diff --git a/src/wcmISDV4.c b/src/wcmISDV4.c
index 37c8ee3..f6a861e 100644
--- a/src/wcmISDV4.c
+++ b/src/wcmISDV4.c
@@ -405,8 +405,18 @@ static int isdv4GetRanges(InputInfoPtr pInfo)
common->wcmMaxY = reply.y_max;
if (reply.tilt_x_max && reply.tilt_y_max)
{
- common->wcmMaxtiltX = reply.tilt_x_max;
- common->wcmMaxtiltY = reply.tilt_y_max;
+ common->wcmTiltXOff = 0 - reply.tilt_x_max / 2;
+ common->wcmTiltXFact = 1.0;
+ common->wcmTiltXMin = 0 + common->wcmTiltXOff;
+ common->wcmTiltXMax = reply.tilt_x_max +
+ common->wcmTiltXOff;
+
+ common->wcmTiltYOff = 0 - reply.tilt_y_max / 2;
+ common->wcmTiltYFact = 1.0;
+ common->wcmTiltYMin = 0 + common->wcmTiltYOff;
+ common->wcmTiltYMax = reply.tilt_y_max +
+ common->wcmTiltYOff;
+
common->wcmFlags |= TILT_ENABLED_FLAG;
}
diff --git a/src/wcmUSB.c b/src/wcmUSB.c
index 1a1951d..154f6cf 100644
--- a/src/wcmUSB.c
+++ b/src/wcmUSB.c
@@ -572,6 +572,82 @@ int usbWcmGetRanges(InputInfoPtr pInfo)
common->wcmMaxStripX = absinfo.maximum;
}
+ /* X tilt range */
+ if (ISBITSET(abs, ABS_TILT_X) &&
+ !ioctl(pInfo->fd, EVIOCGABS(ABS_TILT_X), &absinfo))
+ {
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)
+ /* If resolution is specified */
+ if (absinfo.resolution > 0)
+ {
+ /* Assume the range is centered on zero */
+ common->wcmTiltXOff = 0;
+ /* Convert to resolution expected by applications */
+ common->wcmTiltXFact = TILT_RES /
+ (double)absinfo.resolution;
+ }
+ else
+#endif
+ {
+ /*
+ * TODO: set to 0 once Wacom kernel driver is
+ * updated to report zero-centered values.
+ */
+ /* Center the reported range on zero */
+ common->wcmTiltXOff = - (absinfo.minimum +
+ absinfo.maximum) / 2;
+ /*
+ * Assume reported resolution is the one expected by
+ * applications
+ */
+ common->wcmTiltXFact = 1.0;
+ }
+ common->wcmTiltXMin = round((absinfo.minimum +
+ common->wcmTiltXOff) *
+ common->wcmTiltXFact);
+ common->wcmTiltXMax = round((absinfo.maximum +
+ common->wcmTiltXOff) *
+ common->wcmTiltXFact);
+ }
+
+ /* Y tilt range */
+ if (ISBITSET(abs, ABS_TILT_Y) &&
+ !ioctl(pInfo->fd, EVIOCGABS(ABS_TILT_Y), &absinfo))
+ {
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)
+ /* If resolution is specified */
+ if (absinfo.resolution > 0)
+ {
+ /* Assume the range is centered on zero */
+ common->wcmTiltYOff = 0;
+ /* Convert to resolution expected by applications */
+ common->wcmTiltYFact = TILT_RES /
+ (double)absinfo.resolution;
+ }
+ else
+#endif
+ {
+ /*
+ * TODO: set to 0 once Wacom kernel driver is
+ * updated to report zero-centered values.
+ */
+ /* Center the reported range on zero */
+ common->wcmTiltYOff = - (absinfo.minimum +
+ absinfo.maximum) / 2;
+ /*
+ * Assume reported resolution is the one expected by
+ * applications
+ */
+ common->wcmTiltYFact = 1.0;
+ }
+ common->wcmTiltYMin = round((absinfo.minimum +
+ common->wcmTiltYOff) *
+ common->wcmTiltYFact);
+ common->wcmTiltYMax = round((absinfo.maximum +
+ common->wcmTiltYOff) *
+ common->wcmTiltYFact);
+ }
+
/* max finger strip Y for tablets with Expresskeys
* or physical Y for touch devices in hundredths of a mm */
if (ISBITSET(abs, ABS_RY) &&
@@ -1045,10 +1121,12 @@ static int usbParseAbsEvent(WacomCommonPtr common,
ds->rotation = event->value;
break;
case ABS_TILT_X:
- ds->tiltx = event->value - common->wcmMaxtiltX/2;
+ ds->tiltx = round((event->value + common->wcmTiltXOff) *
+ common->wcmTiltXFact);
break;
case ABS_TILT_Y:
- ds->tilty = event->value - common->wcmMaxtiltY/2;
+ ds->tilty = round((event->value + common->wcmTiltYOff) *
+ common->wcmTiltYFact);
break;
case ABS_PRESSURE:
ds->pressure = event->value;
diff --git a/src/xf86Wacom.c b/src/xf86Wacom.c
index 6581ab5..c52db8d 100644
--- a/src/xf86Wacom.c
+++ b/src/xf86Wacom.c
@@ -223,8 +223,9 @@ static int wcmInitAxes(DeviceIntPtr pWcm)
if (IsPen(priv))
{
label = XIGetKnownProperty(AXIS_LABEL_PROP_ABS_TILT_X),
- min = -64;
- max = 63;
+ min_res = max_res = res = round(TILT_RES);
+ min = TILT_MIN;
+ max = TILT_MAX;
}
else if (IsCursor(priv))
{
@@ -251,8 +252,9 @@ static int wcmInitAxes(DeviceIntPtr pWcm)
if (IsPen(priv))
{
label = XIGetKnownProperty(AXIS_LABEL_PROP_ABS_TILT_Y);
- min = -64;
- max = 63;
+ min_res = max_res = res = round(TILT_RES);
+ min = TILT_MIN;
+ max = TILT_MAX;
}
else if (IsCursor(priv))
{
diff --git a/src/xf86WacomDefs.h b/src/xf86WacomDefs.h
index c978243..2f46e15 100644
--- a/src/xf86WacomDefs.h
+++ b/src/xf86WacomDefs.h
@@ -43,6 +43,11 @@
#define MAX_ROTATION_RANGE 1800 /* the maximum range of the marker pen rotation */
#define MAX_ABS_WHEEL 1023 /* the maximum value of absolute wheel */
+#define TILT_RES (180/M_PI) /* Reported tilt resolution in points/radian
+ (1/degree) */
+#define TILT_MIN -64 /* Minimum reported tilt value */
+#define TILT_MAX 63 /* Maximum reported tilt value */
+
#define MIN_PAD_RING 0 /* I4 absolute scroll ring min value */
#define MAX_PAD_RING 71 /* I4 absolute scroll ring max value */
@@ -440,8 +445,16 @@ struct _WacomCommonRec
/* tablet Z resolution is equivalent
* to wcmMaxZ which is equal to 100% pressure */
int wcmMaxDist; /* tablet max distance value */
- int wcmMaxtiltX; /* styli max tilt in X directory */
- int wcmMaxtiltY; /* styli max tilt in Y directory */
+
+ int wcmTiltXOff; /* styli tilt offset in X direction */
+ double wcmTiltXFact; /* styli tilt factor in X direction */
+ int wcmTiltXMin; /* styli min reported tilt in X direction */
+ int wcmTiltXMax; /* styli max reported tilt in X direction */
+
+ int wcmTiltYOff; /* styli tilt offset in Y direction */
+ double wcmTiltYFact; /* styli tilt factor in Y direction */
+ int wcmTiltYMin; /* styli min reported tilt in Y direction */
+ int wcmTiltYMax; /* styli max reported tilt in Y direction */
int wcmMaxStripX; /* Maximum fingerstrip X */
int wcmMaxStripY; /* Maximum fingerstrip Y */
--
1.7.10.4
|
|
From: Jiri K. <jk...@su...> - 2012-08-27 15:10:33
|
On Sun, 26 Aug 2012, Nikolai Kondrashov wrote: > Add support for UC-Logic Tablet TWHA60. > It is known to be sold as Genius EasyPen M610 and Monoprice MP1060-HA60. Applied, thanks Nikolai. -- Jiri Kosina SUSE Labs |
|
From: Nikolai K. <sp...@gm...> - 2012-08-26 17:55:30
|
Add support for UC-Logic Tablet TWHA60.
It is known to be sold as Genius EasyPen M610 and Monoprice MP1060-HA60.
As this tablet has several variations with different number and different
assignments of frame buttons, they are simply mapped to F1-F24 range and are
left for users to remap in userspace.
---
drivers/hid/hid-core.c | 1 +
drivers/hid/hid-ids.h | 1 +
drivers/hid/hid-uclogic.c | 98 +++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 100 insertions(+)
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 8e3a6b2..218e46d 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -1645,6 +1645,7 @@ static const struct hid_device_id hid_have_special_driver[] = {
{ HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_UCLOGIC_TABLET_WP8060U) },
{ HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_UCLOGIC_TABLET_WP1062) },
{ HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_UCLOGIC_WIRELESS_TABLET_TWHL850) },
+ { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_UCLOGIC_TABLET_TWHA60) },
{ HID_USB_DEVICE(USB_VENDOR_ID_WISEGROUP, USB_DEVICE_ID_SMARTJOY_PLUS) },
{ HID_USB_DEVICE(USB_VENDOR_ID_WISEGROUP, USB_DEVICE_ID_SUPER_JOY_BOX_3) },
{ HID_USB_DEVICE(USB_VENDOR_ID_WISEGROUP, USB_DEVICE_ID_DUAL_USB_JOYPAD) },
diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h
index 9373f53..2155ac0 100644
--- a/drivers/hid/hid-ids.h
+++ b/drivers/hid/hid-ids.h
@@ -733,6 +733,7 @@
#define USB_DEVICE_ID_UCLOGIC_TABLET_WP8060U 0x0005
#define USB_DEVICE_ID_UCLOGIC_TABLET_WP1062 0x0064
#define USB_DEVICE_ID_UCLOGIC_WIRELESS_TABLET_TWHL850 0x0522
+#define USB_DEVICE_ID_UCLOGIC_TABLET_TWHA60 0x0781
#define USB_VENDOR_ID_UNITEC 0x227d
#define USB_DEVICE_ID_UNITEC_USB_TOUCH_0709 0x0709
diff --git a/drivers/hid/hid-uclogic.c b/drivers/hid/hid-uclogic.c
index 3aba02b..2e56a1f 100644
--- a/drivers/hid/hid-uclogic.c
+++ b/drivers/hid/hid-uclogic.c
@@ -466,6 +466,86 @@ static __u8 twhl850_rdesc_fixed2[] = {
0xC0 /* End Collection */
};
+/*
+ * See TWHA60 description, device and HID report descriptors at
+ * http://sf.net/apps/mediawiki/digimend/?title=UC-Logic_Tablet_TWHA60
+ */
+
+/* Size of the original descriptors of TWHA60 tablet */
+#define TWHA60_RDESC_ORIG_SIZE0 254
+#define TWHA60_RDESC_ORIG_SIZE1 139
+
+/* Fixed TWHA60 report descriptor, interface 0 (stylus) */
+static __u8 twha60_rdesc_fixed0[] = {
+ 0x05, 0x0D, /* Usage Page (Digitizer), */
+ 0x09, 0x02, /* Usage (Pen), */
+ 0xA1, 0x01, /* Collection (Application), */
+ 0x85, 0x09, /* Report ID (9), */
+ 0x09, 0x20, /* Usage (Stylus), */
+ 0xA0, /* Collection (Physical), */
+ 0x75, 0x01, /* Report Size (1), */
+ 0x09, 0x42, /* Usage (Tip Switch), */
+ 0x09, 0x44, /* Usage (Barrel Switch), */
+ 0x09, 0x46, /* Usage (Tablet Pick), */
+ 0x14, /* Logical Minimum (0), */
+ 0x25, 0x01, /* Logical Maximum (1), */
+ 0x95, 0x03, /* Report Count (3), */
+ 0x81, 0x02, /* Input (Variable), */
+ 0x95, 0x04, /* Report Count (4), */
+ 0x81, 0x01, /* Input (Constant), */
+ 0x09, 0x32, /* Usage (In Range), */
+ 0x95, 0x01, /* Report Count (1), */
+ 0x81, 0x02, /* Input (Variable), */
+ 0x75, 0x10, /* Report Size (16), */
+ 0x95, 0x01, /* Report Count (1), */
+ 0x14, /* Logical Minimum (0), */
+ 0xA4, /* Push, */
+ 0x05, 0x01, /* Usage Page (Desktop), */
+ 0x55, 0xFD, /* Unit Exponent (-3), */
+ 0x65, 0x13, /* Unit (Inch), */
+ 0x34, /* Physical Minimum (0), */
+ 0x09, 0x30, /* Usage (X), */
+ 0x46, 0x10, 0x27, /* Physical Maximum (10000), */
+ 0x27, 0x3F, 0x9C,
+ 0x00, 0x00, /* Logical Maximum (39999), */
+ 0x81, 0x02, /* Input (Variable), */
+ 0x09, 0x31, /* Usage (Y), */
+ 0x46, 0x6A, 0x18, /* Physical Maximum (6250), */
+ 0x26, 0xA7, 0x61, /* Logical Maximum (24999), */
+ 0x81, 0x02, /* Input (Variable), */
+ 0xB4, /* Pop, */
+ 0x09, 0x30, /* Usage (Tip Pressure), */
+ 0x26, 0xFF, 0x03, /* Logical Maximum (1023), */
+ 0x81, 0x02, /* Input (Variable), */
+ 0xC0, /* End Collection, */
+ 0xC0 /* End Collection */
+};
+
+/* Fixed TWHA60 report descriptor, interface 1 (frame buttons) */
+static __u8 twha60_rdesc_fixed1[] = {
+ 0x05, 0x01, /* Usage Page (Desktop), */
+ 0x09, 0x06, /* Usage (Keyboard), */
+ 0xA1, 0x01, /* Collection (Application), */
+ 0x85, 0x05, /* Report ID (5), */
+ 0x05, 0x07, /* Usage Page (Keyboard), */
+ 0x14, /* Logical Minimum (0), */
+ 0x25, 0x01, /* Logical Maximum (1), */
+ 0x75, 0x01, /* Report Size (1), */
+ 0x95, 0x08, /* Report Count (8), */
+ 0x81, 0x01, /* Input (Constant), */
+ 0x95, 0x0C, /* Report Count (12), */
+ 0x19, 0x3A, /* Usage Minimum (KB F1), */
+ 0x29, 0x45, /* Usage Maximum (KB F12), */
+ 0x81, 0x02, /* Input (Variable), */
+ 0x95, 0x0C, /* Report Count (12), */
+ 0x19, 0x68, /* Usage Minimum (KB F13), */
+ 0x29, 0x73, /* Usage Maximum (KB F24), */
+ 0x81, 0x02, /* Input (Variable), */
+ 0x95, 0x08, /* Report Count (8), */
+ 0x81, 0x01, /* Input (Constant), */
+ 0xC0 /* End Collection */
+};
+
static __u8 *uclogic_report_fixup(struct hid_device *hdev, __u8 *rdesc,
unsigned int *rsize)
{
@@ -525,6 +605,22 @@ static __u8 *uclogic_report_fixup(struct hid_device *hdev, __u8 *rdesc,
break;
}
break;
+ case USB_DEVICE_ID_UCLOGIC_TABLET_TWHA60:
+ switch (iface_num) {
+ case 0:
+ if (*rsize == TWHA60_RDESC_ORIG_SIZE0) {
+ rdesc = twha60_rdesc_fixed0;
+ *rsize = sizeof(twha60_rdesc_fixed0);
+ }
+ break;
+ case 1:
+ if (*rsize == TWHA60_RDESC_ORIG_SIZE1) {
+ rdesc = twha60_rdesc_fixed1;
+ *rsize = sizeof(twha60_rdesc_fixed1);
+ }
+ break;
+ }
+ break;
}
return rdesc;
@@ -543,6 +639,8 @@ static const struct hid_device_id uclogic_devices[] = {
USB_DEVICE_ID_UCLOGIC_TABLET_WP1062) },
{ HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC,
USB_DEVICE_ID_UCLOGIC_WIRELESS_TABLET_TWHL850) },
+ { HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC,
+ USB_DEVICE_ID_UCLOGIC_TABLET_TWHA60) },
{ }
};
MODULE_DEVICE_TABLE(hid, uclogic_devices);
--
1.7.10.4
|
|
From: Nikolai K. <sp...@gm...> - 2012-08-23 12:55:08
|
Hi Jerry, First of all, thanks for a comprehensive report and for isolating the problem. On 08/23/2012 07:11 AM, Jerry Siebe wrote: > On Mon, Aug 20, 2012 at 10:49 PM, Jerry Siebe<jer...@gm...> wrote: >> I spent some time with the tablet today and found some bad behaviors. >> This is using your 3.6 patch applied to against a 3.5.2 kernel (as >> patched by Gentoo). >> >> First, having the tablet plugged in when computer boots up left the >> tablet in a bad state. It would detect pen and frame buttons (unsure >> about pressure, didn't think to check) but would not detect position >> of the pen. The LED on the tablet usually lights up with any >> activity, including the pen being close to the surface. It was not >> lighting at all except when a button (including the tip) was pressed. >> Cursor on screen also showed no motion. I've found it in this state >> after booting up twice. Unplugging it and plugging it back in fixes >> it. >> >> From dmesg: >> [ 5.339450] input: HA60S as >> /devices/pci0000:00/0000:00:12.2/usb1/1-4/1-4.1/1-4.1:1.0/input/input5 >> [ 5.339647] uclogic 0003:5543:0781.0004: input,hidraw3: USB HID >> v1.10 Device [HA60S] on usb-0000:00:12.2-4.1/input0 >> [ 5.340017] input: HA60S as >> /devices/pci0000:00/0000:00:12.2/usb1/1-4/1-4.1/1-4.1:1.1/input/input6 >> [ 5.340056] usb 1-4.1: link qh8-0e01/ffff88012b0e9d80 start 2 [1/2 us] >> [ 5.340223] uclogic 0003:5543:0781.0005: input,hidraw4: USB HID >> v1.10 Keyboard [HA60S] on usb-0000:00:12.2-4.1/input1 >> >> Starting Xorg >> [ 82.341530] usb 1-4.1: link qh4-0e01/ffff88012b319880 start 3 [1/2 us] >> >> Then when trying to use it I get this: >> [ 5986.741810] usb 1-4.1: unlink qh4-0e01/ffff88012b319880 start 3 [1/2 us] >> [ 5986.742146] ehci_hcd 0000:00:12.2: detected XactErr len 0/8 retry 1 >> ... >> [ 5986.748635] ehci_hcd 0000:00:12.2: detected XactErr len 0/8 retry 27 >> [ 5986.748770] usb 1-4.1: unlink qh8-0e01/ffff88012b0e9d80 start 2 [1/2 us] >> [ 5986.749009] ehci_hcd 0000:00:12.2: detected XactErr len 0/8 retry 28 >> ... >> [ 5986.749759] ehci_hcd 0000:00:12.2: detected XactErr len 0/8 retry 31 >> [ 5986.750008] ehci_hcd 0000:00:12.2: devpath 4.1 ep0out 3strikes >> [ 5986.750016] usb 1-4: clear tt buffer port 1, a5 ep0 t00080248 >> [ 5986.750072] ehci_hcd 0000:00:12.2: reused qh ffff88012b319880 schedule >> [ 5986.750080] usb 1-4.1: link qh4-0e01/ffff88012b319880 start 3 [1/2 us] >> [ 5986.750093] uclogic 0003:5543:0781.0004: can't reset device, >> 0000:00:12.2-4.1/input0, status -71 >> [ 5986.750509] ehci_hcd 0000:00:12.2: detected XactErr len 0/8 retry 1 >> ... >> and on and on. > I've now isolated it to having the tablet plugged in during a cold > boot that it ends up in that bad state. Once it's in that state, > rebooting does not fix it, however unplugging and plugging it back in > does. A dozen reboots into different kernel builds earlier never left > it in that bad state. It wasn't until I remembered that the power had > gone out (twice) the evening I was doing my prior testing that I > thought to test a cold boot. > > I don't know where to even begin trying to debug this, and now that I > know how to avoid it I'm not worried about it. However, if someone > else is interested in this issue and willing to guide me, I'm willing > to help. This might be spontaneous compatibility/proprietary mode switching we've seen with UC-Logic Tablet WP1700U. Some discussion of the problem can be found in this thread: http://sourceforge.net/mailarchive/forum.php?thread_name=4FFDD5B9.2060606%40gmail.com&forum_name=digimend-devel Could you please try running usbhid-dump and capturing pen movement, when you reproduce this problem again? If this is verified, then I'll finally need to figure out UC-Logic proprietary mode switching method. >> Second bad behavior was during about twenty minutes of use. Three >> times I got spurious lines while drawing. Twice the lines jumped to >> the 0,0 corner, and once it jumped only vertically to y=0. There is >> nothing in dmesg at the times this happened. > As for the occasional spurious line that shoots off to the 0.0 > position, I was able to replicate it in 3.5.0 as well, though it took > 12 minutes of continuously having the stylus down. It seems to happen > more frequently in 3.5.2, where I can observe it within a few minutes. > It has happened in both MyPaint and Gimp. It is possible that this is a timing issue and depends on the system load. I suspect an X.org or xf86-input-evdev bug. I have something similar reported in this bug: http://sourceforge.net/tracker/?func=detail&aid=3557017&group_id=233297&atid=1089171 I'm yet to investigate it properly. > It seems I can't both draw with the tablet and use usbhid-dump at the > same time, and I don't know what else to do to provide more > information. You can use debugfs to capture input from your tablet while having it sent to userspace also. Look into /sys/kernel/debug/hid. Sincerely, Nick |
|
From: Nikolai K. <sp...@gm...> - 2012-08-23 11:13:26
|
Hi David, On 08/22/2012 12:55 PM, david schryer wrote: > I just purchased a monoprice branded tablet that has a wiki page on Ubuntu: > https://wiki.ubuntu.com/GraphicsTablet/Monoprice%206814 > > It is reported that you may not even be aware of this tablet yet: > http://ubuntuforums.org/archive/index.php/t-1995385.html > > I went through the steps in your wiki page to capture the diagnostics regarding > this tablet: > http://sourceforge.net/apps/mediawiki/digimend/index.php?title=Collecting_tablet_diagnostics > > All required files are attached. I did the pen tilt experiment, but I am not sure > this tablet supports this. Please let me know if you need any more diagnostics from > my machine: > Linux schryer 3.2.0-23-lowlatency #31-Ubuntu SMP PREEMPT Wed Apr 11 02:24:03 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux I've been working on this tablet for a while and all users reported it mostly working. Could you please try installing and booting the kernel in these packages? http://rghost.net/39767329 0e5abe4602941a2228a860454c247785 linux-image-3.2.0-29.46+uclogic-twha60-generic-uclogic-twha60_3.2.0-29.46+uclogic-twha60.1_amd64.deb http://rghost.net/39767356 d88fe098fa81be4e03e464dd6239982b linux-headers-3.2.0-29.46+uclogic-twha60_3.2.0-29.46+uclogic-twha60.1_all.deb http://rghost.net/39767358 95c31fa9b7309b8ee21e740a43d64fb3 linux-headers-3.2.0-29.46+uclogic-twha60-generic-uclogic-twha60_3.2.0-29.46+uclogic-twha60.1_amd64.deb Alternatively, you can apply the attached patch for the 3.2 kernel release. Sincerely, Nick |
|
From: Jerry S. <jer...@gm...> - 2012-08-23 04:11:20
|
On Mon, Aug 20, 2012 at 10:49 PM, Jerry Siebe <jer...@gm...> wrote: > On Mon, Aug 20, 2012 at 1:05 AM, Nikolai Kondrashov <sp...@gm...> wrote: >> On 08/20/2012 07:00 AM, Jerry Siebe wrote: >>> >>> I applied the 3.6 patch you posted earlier against 3.5.2. It works as >>> expected, scrambled buttons and all. :) >> >> >> Very good, thank you. You were the last user needed to report success, so >> I'll submit the patch to the kernel now. >> >> >>> I didn't really get a chance to test it earlier; I spend too much time >>> building kernels. Seems right now 3.6 is a no go for me. >> >> >> Sure. This happens sometimes with the latest kernels. >> >> Sincerely, >> Nick > > I spent some time with the tablet today and found some bad behaviors. > This is using your 3.6 patch applied to against a 3.5.2 kernel (as > patched by Gentoo). > > First, having the tablet plugged in when computer boots up left the > tablet in a bad state. It would detect pen and frame buttons (unsure > about pressure, didn't think to check) but would not detect position > of the pen. The LED on the tablet usually lights up with any > activity, including the pen being close to the surface. It was not > lighting at all except when a button (including the tip) was pressed. > Cursor on screen also showed no motion. I've found it in this state > after booting up twice. Unplugging it and plugging it back in fixes > it. > > From dmesg: > [ 5.339450] input: HA60S as > /devices/pci0000:00/0000:00:12.2/usb1/1-4/1-4.1/1-4.1:1.0/input/input5 > [ 5.339647] uclogic 0003:5543:0781.0004: input,hidraw3: USB HID > v1.10 Device [HA60S] on usb-0000:00:12.2-4.1/input0 > [ 5.340017] input: HA60S as > /devices/pci0000:00/0000:00:12.2/usb1/1-4/1-4.1/1-4.1:1.1/input/input6 > [ 5.340056] usb 1-4.1: link qh8-0e01/ffff88012b0e9d80 start 2 [1/2 us] > [ 5.340223] uclogic 0003:5543:0781.0005: input,hidraw4: USB HID > v1.10 Keyboard [HA60S] on usb-0000:00:12.2-4.1/input1 > > Starting Xorg > [ 82.341530] usb 1-4.1: link qh4-0e01/ffff88012b319880 start 3 [1/2 us] > > Then when trying to use it I get this: > [ 5986.741810] usb 1-4.1: unlink qh4-0e01/ffff88012b319880 start 3 [1/2 us] > [ 5986.742146] ehci_hcd 0000:00:12.2: detected XactErr len 0/8 retry 1 > ... > [ 5986.748635] ehci_hcd 0000:00:12.2: detected XactErr len 0/8 retry 27 > [ 5986.748770] usb 1-4.1: unlink qh8-0e01/ffff88012b0e9d80 start 2 [1/2 us] > [ 5986.749009] ehci_hcd 0000:00:12.2: detected XactErr len 0/8 retry 28 > ... > [ 5986.749759] ehci_hcd 0000:00:12.2: detected XactErr len 0/8 retry 31 > [ 5986.750008] ehci_hcd 0000:00:12.2: devpath 4.1 ep0out 3strikes > [ 5986.750016] usb 1-4: clear tt buffer port 1, a5 ep0 t00080248 > [ 5986.750072] ehci_hcd 0000:00:12.2: reused qh ffff88012b319880 schedule > [ 5986.750080] usb 1-4.1: link qh4-0e01/ffff88012b319880 start 3 [1/2 us] > [ 5986.750093] uclogic 0003:5543:0781.0004: can't reset device, > 0000:00:12.2-4.1/input0, status -71 > [ 5986.750509] ehci_hcd 0000:00:12.2: detected XactErr len 0/8 retry 1 > ... > and on and on. > > Second bad behavior was during about twenty minutes of use. Three > times I got spurious lines while drawing. Twice the lines jumped to > the 0,0 corner, and once it jumped only vertically to y=0. There is > nothing in dmesg at the times this happened. > > I didn't encounter either of these problems in roughly 5 hours of use > prior using my hack in 3.5.0. Tomorrow I'll try your patch against > 3.5.0 as well as see what I can do to get running in a 3.6.0 kernel. > > - Jerry Hello, Update on both bad behaviors. (no 3.6 though) I've now isolated it to having the tablet plugged in during a cold boot that it ends up in that bad state. Once it's in that state, rebooting does not fix it, however unplugging and plugging it back in does. A dozen reboots into different kernel builds earlier never left it in that bad state. It wasn't until I remembered that the power had gone out (twice) the evening I was doing my prior testing that I thought to test a cold boot. I don't know where to even begin trying to debug this, and now that I know how to avoid it I'm not worried about it. However, if someone else is interested in this issue and willing to guide me, I'm willing to help. As for the occasional spurious line that shoots off to the 0.0 position, I was able to replicate it in 3.5.0 as well, though it took 12 minutes of continuously having the stylus down. It seems to happen more frequently in 3.5.2, where I can observe it within a few minutes. It has happened in both MyPaint and Gimp. It seems I can't both draw with the tablet and use usbhid-dump at the same time, and I don't know what else to do to provide more information. - Jerry |
|
From: david s. <da...@sy...> - 2012-08-22 09:55:58
|
Bus 001 Device 004: ID 5543:0781 UC-Logic Technology Corp.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x5543 UC-Logic Technology Corp.
idProduct 0x0781
bcdDevice 0.00
iManufacturer 1
iProduct 2 HA60S
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 59
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 300mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 2 Mouse
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 254
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 5
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 2 Mouse
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 139
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 10
Device Status: 0x0000
(Bus Powered) |
|
From: Jerry S. <jer...@gm...> - 2012-08-21 05:49:39
|
On Mon, Aug 20, 2012 at 1:05 AM, Nikolai Kondrashov <sp...@gm...> wrote: > On 08/20/2012 07:00 AM, Jerry Siebe wrote: >> >> I applied the 3.6 patch you posted earlier against 3.5.2. It works as >> expected, scrambled buttons and all. :) > > > Very good, thank you. You were the last user needed to report success, so > I'll submit the patch to the kernel now. > > >> I didn't really get a chance to test it earlier; I spend too much time >> building kernels. Seems right now 3.6 is a no go for me. > > > Sure. This happens sometimes with the latest kernels. > > Sincerely, > Nick I spent some time with the tablet today and found some bad behaviors. This is using your 3.6 patch applied to against a 3.5.2 kernel (as patched by Gentoo). First, having the tablet plugged in when computer boots up left the tablet in a bad state. It would detect pen and frame buttons (unsure about pressure, didn't think to check) but would not detect position of the pen. The LED on the tablet usually lights up with any activity, including the pen being close to the surface. It was not lighting at all except when a button (including the tip) was pressed. Cursor on screen also showed no motion. I've found it in this state after booting up twice. Unplugging it and plugging it back in fixes it. >From dmesg: [ 5.339450] input: HA60S as /devices/pci0000:00/0000:00:12.2/usb1/1-4/1-4.1/1-4.1:1.0/input/input5 [ 5.339647] uclogic 0003:5543:0781.0004: input,hidraw3: USB HID v1.10 Device [HA60S] on usb-0000:00:12.2-4.1/input0 [ 5.340017] input: HA60S as /devices/pci0000:00/0000:00:12.2/usb1/1-4/1-4.1/1-4.1:1.1/input/input6 [ 5.340056] usb 1-4.1: link qh8-0e01/ffff88012b0e9d80 start 2 [1/2 us] [ 5.340223] uclogic 0003:5543:0781.0005: input,hidraw4: USB HID v1.10 Keyboard [HA60S] on usb-0000:00:12.2-4.1/input1 Starting Xorg [ 82.341530] usb 1-4.1: link qh4-0e01/ffff88012b319880 start 3 [1/2 us] Then when trying to use it I get this: [ 5986.741810] usb 1-4.1: unlink qh4-0e01/ffff88012b319880 start 3 [1/2 us] [ 5986.742146] ehci_hcd 0000:00:12.2: detected XactErr len 0/8 retry 1 ... [ 5986.748635] ehci_hcd 0000:00:12.2: detected XactErr len 0/8 retry 27 [ 5986.748770] usb 1-4.1: unlink qh8-0e01/ffff88012b0e9d80 start 2 [1/2 us] [ 5986.749009] ehci_hcd 0000:00:12.2: detected XactErr len 0/8 retry 28 ... [ 5986.749759] ehci_hcd 0000:00:12.2: detected XactErr len 0/8 retry 31 [ 5986.750008] ehci_hcd 0000:00:12.2: devpath 4.1 ep0out 3strikes [ 5986.750016] usb 1-4: clear tt buffer port 1, a5 ep0 t00080248 [ 5986.750072] ehci_hcd 0000:00:12.2: reused qh ffff88012b319880 schedule [ 5986.750080] usb 1-4.1: link qh4-0e01/ffff88012b319880 start 3 [1/2 us] [ 5986.750093] uclogic 0003:5543:0781.0004: can't reset device, 0000:00:12.2-4.1/input0, status -71 [ 5986.750509] ehci_hcd 0000:00:12.2: detected XactErr len 0/8 retry 1 ... and on and on. Second bad behavior was during about twenty minutes of use. Three times I got spurious lines while drawing. Twice the lines jumped to the 0,0 corner, and once it jumped only vertically to y=0. There is nothing in dmesg at the times this happened. I didn't encounter either of these problems in roughly 5 hours of use prior using my hack in 3.5.0. Tomorrow I'll try your patch against 3.5.0 as well as see what I can do to get running in a 3.6.0 kernel. - Jerry |
|
From: Nikolai K. <sp...@gm...> - 2012-08-20 08:05:45
|
On 08/20/2012 07:00 AM, Jerry Siebe wrote: > I applied the 3.6 patch you posted earlier against 3.5.2. It works as > expected, scrambled buttons and all. :) Very good, thank you. You were the last user needed to report success, so I'll submit the patch to the kernel now. > I didn't really get a chance to test it earlier; I spend too much time > building kernels. Seems right now 3.6 is a no go for me. Sure. This happens sometimes with the latest kernels. Sincerely, Nick |
|
From: Jerry S. <jer...@gm...> - 2012-08-20 04:00:20
|
On Sun, Aug 19, 2012 at 3:33 AM, Nikolai Kondrashov <sp...@gm...> wrote: > Hi Jerry, > > > On 07/30/2012 07:33 AM, Jerry Siebe wrote: >> >> My tablet is working fine with this fixed block 0, though without buttons. > > > Could you please try my version of the driver? > The attached patch should apply to 3.5 kernel. > > Thank you. > > Sincerely, > Nick I applied the 3.6 patch you posted earlier against 3.5.2. It works as expected, scrambled buttons and all. :) I didn't really get a chance to test it earlier; I spend too much time building kernels. Seems right now 3.6 is a no go for me. |
|
From: Peter H. <pet...@wh...> - 2012-08-20 00:55:42
|
On Fri, Aug 17, 2012 at 01:29:10PM +0300, Nikolai Kondrashov wrote:
> Force line buffering for test and test_xi2 to increase interactiveness and
> avoid losing data with non-terminal stdout. This fixes capturing xinput
> test* output into a file.
>
> Signed-off-by: Nikolai Kondrashov <sp...@gm...>
> ---
> src/test.c | 2 ++
> src/test_xi2.c | 2 ++
> 2 files changed, 4 insertions(+)
>
> diff --git a/src/test.c b/src/test.c
> index 97305c5..0c95501 100644
> --- a/src/test.c
> +++ b/src/test.c
> @@ -98,6 +98,8 @@ print_events(Display *dpy)
> {
> XEvent Event;
>
> + setlinebuf(stdout);
> +
> while(1) {
> XNextEvent(dpy, &Event);
>
> diff --git a/src/test_xi2.c b/src/test_xi2.c
> index bcb4880..04e1004 100644
> --- a/src/test_xi2.c
> +++ b/src/test_xi2.c
> @@ -326,6 +326,8 @@ test_xi2(Display *display,
> int deviceid = -1;
> int rc;
>
> + setlinebuf(stdout);
> +
> rc = list(display, argc, argv, name, desc);
> if (rc != EXIT_SUCCESS)
> return rc;
> --
> 1.7.10.4
looks good, thanks. Forwarded to xorg-devel, expect it to be pushed soon.
Cheers,
Peter
|
|
From: Patricia S. <pat...@gm...> - 2012-08-20 00:49:17
|
I make a proof: i change wizardpen.conf Section "InputClass" Identifier "Custom evdev tablet options" # MatchIsTablet "on" MatchProduct "6x10 Tablet" MatchDevicePath "/dev/input/event*" Driver "evdev" # Apply custom Options below. Option "SwapAxes" "off" Option "TopX" "1506" Option "TopY" "2705" Option "BottomX" "31225" Option "BottomY" "30892" EndSection and function it... how could I calculate topX, topY, bottomX and bottomY for the best adjust? Tablet is 25,5 cm (X) and 16 cm (Y) and my screen is 34,5 cm (X) and 19,5 cm (Y) Thanks, sincerely Patry 2012/8/19 Patricia Sartor <pat...@gm...> > Oh oh... > I didn't find the SwapAxes but in Ubuntuforum someone use this > 70-wizardpen.conf for this problem: > > Section "InputClass" > Identifier "Custom evdev tablet options" > # MatchIsTablet "on" > MatchProduct "6x10 Tablet" > MatchDevicePath "/dev/input/event*" > Driver "evdev" > # Apply custom Options below. > Option "SwapAxes" "off" > Option "Calibration" "0 25000 0 20000" > EndSection > > I copy this wizarpen.conf... and the tablet function!!!!!! > The buttons ok, margen ok, vertical and horizontal ok, all is ok!!!!! > THANKS NIKCOLAI!!!!!!!! YOU ARE A VERY, VERY GOOD PERSON!!!!!!!! > > Sincerely, > Patry > > > > > 2012/8/19 Nikolai Kondrashov <sp...@gm...> > >> On 08/19/2012 05:00 AM, Patricia Sartor wrote: >> >>> I'm attaching Xorg.0.log >>> >>> "Do you remember if you made vertical stroke first, or the horizontal >>> one?" >>> First horizontal stroke and then vertical one. >>> >> >> OK, the source of the problem is located: you have "SwapAxes" option >> turned >> on for your tablet. I didn't find it in any of the files from >> your /usr/share/X11/xorg.conf.d directory. >> >> However, judging from the Xorg.0.log, you have a configuration file taken >> from our evdev configuration HOWTO placed somewhere. I suspect that this >> option is specified there. Try to remember where you placed that file, >> remove it and the tablet should start working normally. >> >> You can try locating it using "grep" command like this: >> >> grep -rl --include '*evdev.conf' "Custom evdev tablet options" /usr /etc >> 2>/dev/null >> >> Sincerely, >> Nick >> > > > > |
|
From: Patricia S. <pat...@gm...> - 2012-08-19 23:26:13
|
Oh oh... I didn't find the SwapAxes but in Ubuntuforum someone use this 70-wizardpen.conf for this problem: Section "InputClass" Identifier "Custom evdev tablet options" # MatchIsTablet "on" MatchProduct "6x10 Tablet" MatchDevicePath "/dev/input/event*" Driver "evdev" # Apply custom Options below. Option "SwapAxes" "off" Option "Calibration" "0 25000 0 20000" EndSection I copy this wizarpen.conf... and the tablet function!!!!!! The buttons ok, margen ok, vertical and horizontal ok, all is ok!!!!! THANKS NIKCOLAI!!!!!!!! YOU ARE A VERY, VERY GOOD PERSON!!!!!!!! Sincerely, Patry 2012/8/19 Nikolai Kondrashov <sp...@gm...> > On 08/19/2012 05:00 AM, Patricia Sartor wrote: > >> I'm attaching Xorg.0.log >> >> "Do you remember if you made vertical stroke first, or the horizontal >> one?" >> First horizontal stroke and then vertical one. >> > > OK, the source of the problem is located: you have "SwapAxes" option turned > on for your tablet. I didn't find it in any of the files from > your /usr/share/X11/xorg.conf.d directory. > > However, judging from the Xorg.0.log, you have a configuration file taken > from our evdev configuration HOWTO placed somewhere. I suspect that this > option is specified there. Try to remember where you placed that file, > remove it and the tablet should start working normally. > > You can try locating it using "grep" command like this: > > grep -rl --include '*evdev.conf' "Custom evdev tablet options" /usr /etc > 2>/dev/null > > Sincerely, > Nick > |
|
From: SourceForge.net <no...@so...> - 2012-08-19 11:28:17
|
Bugs item #3559402, was opened at 2012-08-19 04:28 Message generated for change (Tracker Item Submitted) made by spb_nick You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1089171&aid=3559402&group_id=233297 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: tablets Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nikolai Kondrashov (spb_nick) Assigned to: Nikolai Kondrashov (spb_nick) Summary: xbindkeys needs to support binding to specific devices Initial Comment: To support binding generic frame buttons of specific tablet devices, xbindkeys needs to support binding actions to specific input devices. Devices should be identifiable by (a part of the) name at the least. It would be nice to have matching by vendor, product IDs and serial numbers. Matching by input device IDs is needed mostly for completeness. Xbindkeys should bind to *all* the matching devices. Input device list should be constantly watched for addition/removal of devices to allow hotplugging. There needs to be an extension to configuration file syntax which would allow specifying the originating device for each key combination. The default would still be matching all devices. If a configuration file doesn't have bindings to specific devices, then the device list doesn't need to be watched. Furthermore, xbindkeys-config should support generating configuration with bindings to specific devices. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1089171&aid=3559402&group_id=233297 |
|
From: Nikolai K. <sp...@gm...> - 2012-08-19 10:34:17
|
Hi Jerry, On 07/30/2012 07:33 AM, Jerry Siebe wrote: > My tablet is working fine with this fixed block 0, though without buttons. Could you please try my version of the driver? The attached patch should apply to 3.5 kernel. Thank you. Sincerely, Nick |
|
From: Nikolai K. <sp...@gm...> - 2012-08-19 10:21:05
|
Hi Kevan, On 08/18/2012 05:08 PM, Kevan Judah wrote: > My bad. You sent me to this tutorial for GIMP, and I realized I didn't > have the newest version of GIMP. Once I updated, pressure and velocity > were all good. Great! Although, I don't think GIMP required an update, just a little configuration. It was working OK with the tablets since long ago. > click events recorded in attached click-events.txt file using > > xev> click-events.txt command Thank you. So, your tablet keys are currently reported as such: F1 - F17 F2 - F18 F3 - F14 F4 - F15 F5 - F6 F6 - F2 F7 - F13 F8 - F12 You can use setxkbmap to change the mapping, but it won't be easy. We'll have to find an easier way to map such buttons on tablets. Sincerely, Nick |
|
From: Nikolai K. <sp...@gm...> - 2012-08-19 10:02:09
|
On 08/19/2012 05:00 AM, Patricia Sartor wrote: > I'm attaching Xorg.0.log > > "Do you remember if you made vertical stroke first, or the horizontal one?" > First horizontal stroke and then vertical one. OK, the source of the problem is located: you have "SwapAxes" option turned on for your tablet. I didn't find it in any of the files from your /usr/share/X11/xorg.conf.d directory. However, judging from the Xorg.0.log, you have a configuration file taken from our evdev configuration HOWTO placed somewhere. I suspect that this option is specified there. Try to remember where you placed that file, remove it and the tablet should start working normally. You can try locating it using "grep" command like this: grep -rl --include '*evdev.conf' "Custom evdev tablet options" /usr /etc 2>/dev/null Sincerely, Nick |
|
From: Nikolai K. <sp...@gm...> - 2012-08-18 18:55:35
|
On 08/18/2012 07:38 PM, Patricia Sartor wrote: > I don't have /etc/X11/xorg.conf.d (insert a pic with the files) OK, then, can you send me whatever files you have under /usr/share/X11/xorg.conf.d? > patryhec@patryhec-TWH:~$ xinput list-props 14 Seems fine to me. > patryhec@patryhec-TWH:~$ stdbuf -oL xinput test 14 | tee xinput_coords.txt Strangely, this looks fine also. Do you remember if you made vertical stroke first, or the horizontal one? Could you please also send me /var/log/Xorg.0.log after you've booted my kernel and plugged in the tablet? Thank you. Sincerely, Nick |
|
From: Patricia S. <pat...@gm...> - 2012-08-18 16:38:48
|
motion a[0]=26517 a[1]=1062 motion a[1]=1012 motion a[1]=976 motion a[1]=943 motion a[1]=914 motion a[1]=887 motion a[1]=848 motion a[0]=26445 a[1]=816 motion a[1]=783 motion a[1]=751 motion a[0]=26389 a[1]=719 motion a[1]=694 motion a[1]=671 motion a[1]=648 motion a[1]=626 motion a[1]=604 motion a[1]=582 motion a[0]=26368 a[1]=557 motion a[1]=532 motion a[1]=511 motion a[0]=26351 a[1]=491 motion a[1]=472 motion a[1]=454 motion a[0]=26325 a[1]=438 motion a[0]=26304 a[1]=423 motion a[0]=26287 a[1]=409 motion a[0]=26269 a[1]=397 motion a[0]=26244 a[1]=386 motion a[0]=26213 a[1]=374 motion a[0]=26184 a[1]=366 motion a[0]=26146 a[1]=358 motion a[0]=26119 a[1]=353 motion a[0]=26098 a[1]=347 motion a[0]=26082 a[1]=342 motion a[0]=26068 a[1]=338 motion a[0]=26044 a[1]=334 motion a[0]=26021 a[1]=331 motion a[0]=25992 a[1]=327 motion a[0]=25946 a[1]=322 motion a[0]=25890 a[1]=319 motion a[0]=25826 a[1]=317 motion a[0]=25749 a[1]=316 motion a[0]=25668 a[1]=313 motion a[0]=25586 motion a[0]=25511 motion a[0]=25445 a[1]=316 motion a[0]=25383 a[1]=318 motion a[0]=25325 a[1]=322 motion a[0]=25274 a[1]=328 motion a[0]=25224 a[1]=332 motion a[0]=25189 a[1]=335 motion a[0]=25160 a[1]=338 motion a[0]=25140 motion a[0]=25122 a[1]=338 a[2]=3 button press 1 motion a[0]=25109 a[1]=338 a[2]=5 motion a[0]=25101 a[1]=338 a[2]=8 motion a[2]=10 motion a[0]=25096 a[1]=338 a[2]=12 motion a[0]=25088 a[1]=338 a[2]=13 motion a[0]=25082 a[1]=338 a[2]=15 motion a[2]=16 motion a[1]=341 motion a[1]=342 motion a[2]=17 motion a[2]=18 motion a[2]=19 motion a[2]=20 motion a[1]=344 motion a[1]=347 motion a[0]=25088 a[1]=351 motion a[0]=25104 a[1]=359 motion a[0]=25117 a[1]=372 motion a[0]=25138 a[1]=389 motion a[0]=25159 a[1]=412 motion a[0]=25181 a[1]=439 motion a[0]=25204 a[1]=472 motion a[0]=25236 a[1]=509 motion a[0]=25263 a[1]=551 motion a[0]=25293 a[1]=596 motion a[0]=25319 a[1]=651 a[2]=21 motion a[0]=25344 a[1]=718 motion a[0]=25373 a[1]=794 motion a[0]=25399 a[1]=876 motion a[0]=25420 a[1]=963 motion a[0]=25434 a[1]=1056 motion a[0]=25453 a[1]=1152 motion a[0]=25472 a[1]=1256 motion a[0]=25485 a[1]=1373 motion a[0]=25498 a[1]=1502 motion a[0]=25514 a[1]=1638 motion a[0]=25532 a[1]=1779 motion a[0]=25549 a[1]=1931 motion a[0]=25568 a[1]=2096 motion a[0]=25581 a[1]=2269 motion a[0]=25600 a[1]=2447 motion a[0]=25613 a[1]=2634 motion a[0]=25629 a[1]=2832 motion a[0]=25647 a[1]=3036 motion a[0]=25663 a[1]=3246 motion a[0]=25685 a[1]=3467 motion a[0]=25711 a[1]=3694 motion a[0]=25736 a[1]=3927 motion a[0]=25767 a[1]=4173 motion a[0]=25808 a[1]=4426 motion a[0]=25856 a[1]=4686 motion a[0]=25903 a[1]=4954 motion a[0]=25949 a[1]=5227 motion a[0]=25988 a[1]=5507 motion a[0]=26018 a[1]=5793 motion a[0]=26044 a[1]=6086 motion a[0]=26061 a[1]=6392 motion a[0]=26074 a[1]=6704 motion a[0]=26082 a[1]=7025 motion a[0]=26087 a[1]=7350 a[2]=23 motion a[0]=26080 a[1]=7683 a[2]=25 motion a[0]=26074 a[1]=8022 a[2]=26 motion a[1]=8365 a[2]=29 motion a[1]=8715 a[2]=32 motion a[1]=9070 a[2]=34 motion a[1]=9435 a[2]=35 motion a[0]=26087 a[1]=9808 a[2]=36 motion a[0]=26119 a[1]=10192 a[2]=37 motion a[0]=26175 a[1]=10577 motion a[0]=26256 a[1]=10967 motion a[0]=26341 a[1]=11358 a[2]=33 motion a[0]=26420 a[1]=11755 a[2]=31 motion a[0]=26495 a[1]=12157 a[2]=30 motion a[0]=26551 a[1]=12558 motion a[0]=26597 a[1]=12964 motion a[0]=26632 a[1]=13373 motion a[0]=26661 a[1]=13786 motion a[0]=26684 a[1]=14200 motion a[0]=26701 a[1]=14620 a[2]=31 motion a[0]=26717 a[1]=15040 motion a[0]=26730 a[1]=15466 motion a[0]=26748 a[1]=15894 motion a[0]=26768 a[1]=16325 a[2]=33 motion a[0]=26791 a[1]=16760 a[2]=34 motion a[0]=26816 a[1]=17194 a[2]=35 motion a[0]=26842 a[1]=17625 motion a[0]=26874 a[1]=18053 motion a[0]=26906 a[1]=18483 motion a[0]=26938 a[1]=18914 motion a[0]=26965 a[1]=19347 motion a[0]=26989 a[1]=19780 motion a[0]=27002 a[1]=20209 motion a[0]=27012 a[1]=20635 motion a[0]=27021 a[1]=21057 motion a[0]=27040 a[1]=21479 a[2]=36 motion a[0]=27063 a[1]=21892 a[2]=37 motion a[0]=27088 a[1]=22305 a[2]=38 motion a[0]=27114 a[1]=22712 motion a[0]=27140 a[1]=23116 a[2]=40 motion a[0]=27165 a[1]=23514 a[2]=43 motion a[0]=27188 a[1]=23909 a[2]=47 motion a[0]=27212 a[1]=24300 a[2]=50 motion a[0]=27232 a[1]=24687 a[2]=55 motion a[0]=27247 a[1]=24966 a[2]=57 motion a[0]=27260 a[1]=24966 a[2]=59 motion a[0]=27272 a[1]=24966 a[2]=60 motion a[0]=27288 a[1]=24966 a[2]=61 motion a[0]=27303 a[1]=24966 motion a[0]=27319 a[1]=24966 a[2]=62 motion a[0]=27335 a[1]=24966 motion a[0]=27352 a[1]=24966 a[2]=63 motion a[0]=27373 a[1]=24966 motion a[0]=27391 a[1]=24966 motion a[0]=27408 a[1]=24966 motion a[0]=27424 a[1]=24966 motion a[0]=27442 a[1]=24966 motion a[0]=27460 a[1]=24966 a[2]=64 motion a[0]=27476 a[1]=24966 motion a[0]=27490 a[1]=24966 motion a[0]=27508 a[1]=24966 motion a[0]=27527 a[1]=24966 motion a[0]=27544 a[1]=24966 motion a[0]=27565 a[1]=24966 motion a[0]=27584 a[1]=24966 a[2]=65 motion a[0]=27605 a[1]=24966 motion a[0]=27623 a[1]=24966 a[2]=64 motion a[0]=27639 a[1]=24966 motion a[0]=27655 a[1]=24966 motion a[0]=27668 a[1]=24966 a[2]=63 motion a[0]=27680 a[1]=24966 motion a[0]=27687 a[1]=24966 motion a[0]=27698 a[1]=24966 motion a[0]=27703 a[1]=24966 motion a[0]=27708 a[1]=24966 motion a[1]=24966 a[2]=65 motion a[1]=24966 a[2]=67 motion a[1]=24966 a[2]=76 motion a[1]=24966 a[2]=93 motion a[1]=24966 a[2]=115 motion a[0]=27712 a[1]=24966 a[2]=136 motion a[2]=154 motion a[2]=167 motion a[2]=174 motion a[1]=24966 a[2]=178 motion a[2]=180 motion a[0]=27719 a[1]=24966 motion a[2]=178 motion a[2]=176 motion a[2]=175 motion a[2]=173 motion a[2]=167 motion a[2]=159 motion a[2]=150 motion a[2]=141 motion a[0]=27711 a[1]=24966 a[2]=135 motion a[2]=130 motion a[1]=24966 a[2]=128 motion a[1]=24966 a[2]=127 motion a[1]=24966 motion a[1]=24966 motion a[2]=128 motion a[1]=24966 a[2]=130 motion a[2]=132 motion a[1]=24966 a[2]=134 motion a[1]=24966 a[2]=137 motion a[2]=142 motion a[1]=24966 a[2]=145 motion a[2]=147 motion a[1]=24966 a[2]=149 motion a[2]=150 motion a[2]=151 motion a[2]=152 motion a[1]=24966 motion a[0]=27703 a[1]=24966 a[2]=153 motion a[2]=152 motion a[2]=151 motion a[2]=150 motion a[2]=148 motion a[2]=147 motion a[2]=145 motion a[2]=143 motion a[2]=142 motion a[0]=27695 a[1]=24966 a[2]=141 motion a[2]=140 motion a[2]=139 motion a[2]=138 motion a[2]=136 motion a[2]=135 motion a[2]=133 motion a[2]=132 motion a[2]=131 motion a[2]=130 motion a[2]=129 motion a[2]=128 motion a[2]=127 motion a[2]=126 motion a[2]=125 motion a[2]=124 motion a[2]=123 motion a[2]=122 motion a[2]=121 motion a[2]=120 motion a[2]=119 motion a[2]=118 motion a[2]=117 motion a[2]=115 motion a[1]=24966 a[2]=114 motion a[2]=113 motion a[2]=112 motion a[2]=111 motion a[2]=110 motion a[2]=109 motion a[2]=108 motion a[2]=106 motion a[2]=104 motion a[2]=102 motion a[2]=100 motion a[1]=24966 a[2]=98 motion a[2]=97 motion a[2]=96 motion a[2]=95 motion a[2]=94 motion a[2]=93 motion a[2]=94 motion a[2]=93 motion a[1]=24966 motion a[2]=94 motion a[0]=27703 motion a[2]=95 motion a[2]=94 motion a[0]=27695 motion a[2]=93 motion a[2]=92 motion a[2]=91 motion a[1]=24966 motion a[2]=92 motion a[0]=27700 motion a[2]=91 motion a[0]=27693 motion a[0]=27700 motion a[2]=90 motion a[2]=91 motion a[2]=92 motion a[0]=27708 motion a[2]=93 motion a[0]=27700 motion a[1]=24966 motion a[0]=27706 motion a[2]=92 motion a[2]=91 motion a[2]=90 motion a[2]=82 motion a[2]=67 motion a[1]=24966 a[2]=47 motion a[2]=29 motion a[0]=27695 a[1]=24966 a[2]=0 button release 1 motion a[1]=24966 motion a[1]=24966 motion a[0]=27660 a[1]=24966 motion a[0]=27572 a[1]=24966 motion a[0]=27434 a[1]=24966 motion a[0]=27229 a[1]=24966 motion a[0]=26925 motion a[0]=26554 motion a[0]=26068 a[1]=24966 motion a[0]=25434 motion a[0]=24764 a[1]=24966 motion a[0]=24077 a[1]=24966 motion a[0]=550 a[1]=17038 motion a[1]=17129 motion a[1]=17197 motion a[1]=17264 motion a[0]=708 motion a[0]=806 a[1]=17323 motion a[1]=17358 motion a[1]=17386 motion a[0]=895 a[1]=17410 motion a[1]=17431 motion a[0]=960 a[1]=17458 motion a[0]=1007 a[1]=17478 motion a[1]=17493 motion a[1]=17506 motion a[1]=17519 motion a[1]=17529 motion a[1]=17541 motion a[1]=17551 motion a[0]=979 a[1]=17559 motion a[0]=953 a[1]=17565 motion a[0]=923 motion a[0]=895 motion a[0]=859 motion a[0]=823 motion a[0]=780 motion a[0]=731 a[1]=17560 motion a[0]=683 a[1]=17554 motion a[0]=636 a[1]=17545 motion a[0]=595 a[1]=17535 motion a[0]=555 a[1]=17521 motion a[0]=508 a[1]=17506 motion a[0]=462 a[1]=17488 motion a[0]=415 a[1]=17464 motion a[0]=371 a[1]=17439 motion a[0]=316 a[1]=17415 motion a[0]=262 a[1]=17388 motion a[0]=209 a[1]=17358 motion a[0]=153 a[1]=17326 motion a[0]=99 a[1]=17296 motion a[0]=52 a[1]=17266 motion a[0]=9 a[1]=17239 motion a[0]=0 a[1]=17213 motion a[1]=17189 motion a[1]=17166 motion a[1]=17144 motion a[1]=17125 motion a[1]=17108 motion a[1]=17094 motion a[1]=17085 motion a[1]=17078 motion a[1]=17075 motion a[1]=17073 motion a[1]=17070 motion a[1]=17068 motion a[1]=17066 a[2]=6 button press 1 motion a[1]=17063 a[2]=8 motion a[1]=17061 a[2]=9 motion a[1]=17060 a[2]=10 motion a[1]=17058 motion a[1]=17055 motion a[1]=17054 motion a[1]=17051 motion a[1]=17050 motion a[1]=17048 motion a[2]=9 motion a[2]=8 motion a[1]=17045 a[2]=7 motion a[1]=17045 a[2]=5 motion a[2]=3 motion a[2]=2 motion a[2]=1 motion a[1]=17045 motion a[0]=95 motion a[0]=283 motion a[0]=495 a[1]=17048 motion a[0]=726 a[1]=17051 motion a[0]=972 motion a[0]=1230 a[1]=17051 a[2]=2 motion a[0]=1503 a[1]=17051 a[2]=4 motion a[0]=1806 a[1]=17051 a[2]=5 motion a[0]=2143 motion a[0]=2510 a[1]=17050 a[2]=6 motion a[0]=2897 a[1]=17045 motion a[0]=3299 a[1]=17038 motion a[0]=3718 a[1]=17031 motion a[0]=4185 a[1]=17019 motion a[0]=4694 a[1]=17002 motion a[0]=5223 a[1]=16985 motion a[0]=5766 a[1]=16972 a[2]=7 motion a[0]=6340 a[1]=16962 a[2]=8 motion a[0]=6937 a[1]=16954 a[2]=9 motion a[0]=7543 a[1]=16948 a[2]=10 motion a[0]=8158 a[1]=16944 a[2]=11 motion a[0]=8802 a[1]=16939 a[2]=12 motion a[0]=9465 a[1]=16939 a[2]=13 motion a[0]=10138 a[1]=16939 a[2]=15 motion a[0]=10830 a[1]=16936 a[2]=16 motion a[0]=11546 a[1]=16936 a[2]=17 motion a[0]=12274 a[1]=16935 a[2]=19 motion a[0]=13014 a[1]=16935 a[2]=21 motion a[0]=13769 a[1]=16932 a[2]=22 motion a[0]=14534 a[1]=16931 a[2]=24 motion a[0]=15300 a[1]=16931 a[2]=25 motion a[0]=16076 a[1]=16931 a[2]=26 motion a[0]=16849 a[1]=16929 a[2]=28 motion a[0]=17609 a[1]=16926 a[2]=30 motion a[0]=18367 a[1]=16926 a[2]=32 motion a[0]=19129 a[1]=16926 a[2]=33 motion a[0]=19887 a[1]=16926 a[2]=35 motion a[0]=20641 a[1]=16926 a[2]=37 motion a[0]=21401 a[1]=16924 a[2]=38 motion a[0]=22157 motion a[0]=22908 a[1]=16924 a[2]=39 motion a[0]=23661 motion a[0]=24416 a[1]=16924 a[2]=40 motion a[0]=25165 a[1]=16921 a[2]=41 motion a[0]=25908 a[1]=16919 a[2]=43 motion a[0]=26666 a[1]=16919 a[2]=44 motion a[0]=27437 a[1]=16916 a[2]=47 motion a[0]=28205 a[1]=16914 a[2]=49 motion a[0]=28970 a[1]=16914 a[2]=50 motion a[0]=29730 a[1]=16909 a[2]=51 motion a[0]=30468 a[1]=16908 motion a[0]=31188 a[1]=16908 a[2]=53 motion a[0]=31893 a[1]=16908 a[2]=54 motion a[0]=32592 a[1]=16908 a[2]=56 motion a[0]=33271 a[1]=16906 a[2]=58 motion a[0]=33952 a[1]=16906 a[2]=60 motion a[0]=34640 a[1]=16906 a[2]=63 motion a[0]=35335 a[1]=16906 a[2]=66 motion a[0]=36032 a[1]=16906 a[2]=68 motion a[0]=36749 a[1]=16906 a[2]=69 motion a[0]=37482 a[1]=16908 a[2]=70 motion a[0]=38211 a[1]=16908 a[2]=71 motion a[0]=38941 motion a[0]=39661 a[1]=16908 a[2]=72 motion a[0]=39969 motion a[0]=39969 a[1]=16908 a[2]=73 motion a[0]=39969 motion a[0]=39969 a[1]=16908 a[2]=74 motion a[0]=39969 a[1]=16906 a[2]=76 motion a[0]=39969 a[1]=16906 a[2]=79 motion a[0]=39969 a[1]=16904 a[2]=80 motion a[0]=39969 a[1]=16904 a[2]=79 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 a[1]=16901 motion a[0]=39969 a[1]=16901 a[2]=78 motion a[0]=39969 a[1]=16901 a[2]=77 motion a[0]=39969 motion a[0]=39969 a[1]=16901 a[2]=79 motion a[0]=39969 a[1]=16901 a[2]=81 motion a[0]=39969 a[1]=16901 a[2]=82 motion a[0]=39969 a[1]=16901 a[2]=83 motion a[0]=39969 a[1]=16901 a[2]=86 motion a[0]=39969 a[1]=16901 a[2]=89 motion a[0]=39969 a[1]=16901 a[2]=92 motion a[0]=39969 a[1]=16901 a[2]=93 motion a[0]=39969 a[1]=16901 a[2]=94 motion a[0]=39969 a[1]=16901 a[2]=96 motion a[0]=39969 a[1]=16901 a[2]=99 motion a[0]=39969 a[1]=16901 a[2]=104 motion a[0]=39969 a[1]=16901 a[2]=110 motion a[0]=39969 a[1]=16901 a[2]=117 motion a[0]=39969 a[1]=16901 a[2]=126 motion a[0]=39969 a[1]=16901 a[2]=137 motion a[0]=39969 a[1]=16901 a[2]=150 motion a[0]=39969 a[1]=16901 a[2]=162 motion a[0]=39969 a[1]=16901 a[2]=175 motion a[2]=185 motion a[2]=193 motion a[2]=200 motion a[2]=203 motion a[2]=205 motion a[2]=206 motion a[1]=16904 motion a[0]=39969 a[1]=16904 a[2]=205 motion a[0]=39969 a[1]=16904 a[2]=204 motion a[2]=201 motion a[0]=39969 a[1]=16904 a[2]=197 motion a[2]=193 motion a[0]=39969 a[1]=16904 a[2]=190 motion a[0]=39969 a[1]=16904 a[2]=188 motion a[0]=39969 a[1]=16904 a[2]=185 motion a[0]=39969 a[1]=16904 a[2]=182 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 a[1]=16904 a[2]=183 motion a[0]=39969 motion a[0]=39969 a[1]=16904 a[2]=184 motion a[0]=39969 motion a[2]=183 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 a[1]=16904 a[2]=184 motion a[0]=39969 a[1]=16904 a[2]=185 motion a[0]=39969 motion a[0]=39969 a[1]=16904 a[2]=184 motion a[0]=39969 a[1]=16904 a[2]=183 motion a[0]=39969 motion a[0]=39969 a[1]=16904 a[2]=181 motion a[0]=39969 a[1]=16904 a[2]=180 motion a[0]=39969 motion a[0]=39969 a[1]=16904 a[2]=181 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 a[1]=16904 a[2]=180 motion a[0]=39969 motion a[0]=39969 motion a[2]=178 motion a[0]=39969 a[1]=16904 a[2]=176 motion a[0]=39969 a[1]=16904 a[2]=174 motion a[0]=39969 a[1]=16904 a[2]=173 motion a[2]=171 motion a[0]=39969 motion a[0]=39969 a[1]=16904 a[2]=170 motion a[0]=39969 a[1]=16904 a[2]=171 motion a[0]=39969 a[1]=16904 a[2]=170 motion a[0]=39969 motion a[0]=39969 a[1]=16904 a[2]=171 motion a[0]=39969 motion a[0]=39969 a[1]=16904 a[2]=170 motion a[0]=39969 a[1]=16904 a[2]=171 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 a[1]=16904 a[2]=170 motion a[0]=39969 motion a[0]=39969 a[1]=16904 a[2]=169 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 a[1]=16904 a[2]=168 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 a[1]=16901 a[2]=167 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 a[1]=16901 a[2]=168 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[2]=167 motion a[0]=39969 motion a[2]=168 motion a[0]=39969 motion a[0]=39969 a[1]=16901 a[2]=167 motion a[2]=168 motion a[0]=39969 a[1]=16901 a[2]=169 motion a[0]=39969 a[1]=16901 a[2]=168 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 a[1]=16901 a[2]=169 motion a[0]=39969 a[1]=16901 a[2]=170 motion a[0]=39969 motion a[0]=39969 a[1]=16901 a[2]=169 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 a[1]=16901 a[2]=170 motion a[0]=39969 motion a[0]=39969 a[1]=16901 a[2]=171 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[2]=172 motion a[2]=173 motion a[2]=172 motion a[1]=16899 a[2]=173 motion a[2]=175 motion a[2]=177 motion a[2]=180 motion a[2]=184 motion a[2]=186 motion a[2]=188 motion a[2]=189 motion a[2]=188 motion a[2]=187 motion a[2]=186 motion a[0]=39969 motion a[0]=39969 a[1]=16899 a[2]=184 motion a[1]=16896 a[2]=180 motion a[2]=175 motion a[2]=170 motion a[2]=164 motion a[2]=156 motion a[2]=144 motion a[2]=127 motion a[1]=16894 a[2]=103 motion a[2]=73 motion a[0]=39969 a[1]=16894 a[2]=43 motion a[0]=39969 a[1]=16891 a[2]=0 button release 1 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[1]=16888 motion a[0]=39969 a[1]=16883 motion a[0]=39969 a[1]=16875 motion a[0]=39969 a[1]=16861 motion a[0]=39969 a[1]=16840 motion a[0]=39969 a[1]=16813 motion a[0]=39969 a[1]=16788 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 motion a[0]=39969 |
|
From: Nikolai K. <sp...@gm...> - 2012-08-18 16:24:39
|
On 08/18/2012 05:52 PM, Patricia Sartor wrote: > I have xorg in /home/patryhec/xorg-input-wizardpen-0.8.1/xorg This is a sample configuration file from the wizardpen driver source package. It doesn't affect system configuration in this location. However, if such file was placed under /etc/X11/xorg.conf.d it could have interfered with your tablet functions. So, please, send whatever files you have under /etc/X11/xorg.conf.d. Thank you. Sincerely, Nick |
|
From: Nikolai K. <sp...@gm...> - 2012-08-18 16:21:45
|
On 08/18/2012 05:47 PM, Patricia Sartor wrote: > patryhec@patryhec-TWH:~$ xinput list > ⎡ Virtual core pointer id=2[master pointer (3)] > ⎜ ↳ Virtual core XTEST pointer id=4[slave pointer (2)] > ⎜ ↳ USB Optical Mouse id=11[slave pointer (2)] > ⎜ ↳ FSPPS/2 Sentelic FingerSensingPad id=13[slave pointer (2)] > ⎜ ↳ 6x10 Tablet id=14[slave pointer (2)] Here is the tablet pen input device. Note that it is under "Virtual core pointer". Its ID is 14. However, next time you boot the computer or connect the tablet it could be different, so please check "xinput list" output every time. > ⎣ Virtual core keyboard id=3[master keyboard (2)] > ↳ Virtual core XTEST keyboard id=5[slave keyboard (3)] > ↳ Power Button id=6[slave keyboard (3)] > ↳ Video Bus id=7[slave keyboard (3)] > ↳ Power Button id=8[slave keyboard (3)] > ↳ Sleep Button id=9[slave keyboard (3)] > ↳ USB Webcam id=10[slave keyboard (3)] > ↳ AT Translated Set 2 keyboard id=12[slave keyboard (3)] > ↳ 6x10 Tablet id=15[slave keyboard (3)] This is the tablet frame button input device. Note that it is under "Virtual core keyboard". Its ID is 15. We're not interested in it right now. > patryhec@patryhec-TWH:~$ xinput list-props 2 4 11 13 3 5 6 7 8 9 10 12 > patryhec@patryhec-TWH:~$ stdbuf -oL xinput test 2 | tee xinput_coords.txt > patryhec@patryhec-TWH:~$ stdbuf -oL xinput test 4 | tee xinput_coords.txt For the "xinput list" output above, you should've used these commands: xinput list-props 14 stdbuf -oL xinput test 14 | tee xinput_coords.txt > X.org > where are X.org? > i can't find it. X.org is an X11 server which handles input devices and display output for your applications. The local configuration in Ubuntu is located under /etc/X11/xorg.conf.d. Please send all the files you have there, if any. Thanks! Sincerely, Nick |
|
From: Patricia S. <pat...@gm...> - 2012-08-18 14:53:14
|
Hello again, I have xorg in /home/patryhec/xorg-input-wizardpen-0.8.1/xorg wizardpen.conf: Section "InputClass" Identifier "wizardpen" MatchIsTablet "on" MatchDevicePath "/dev/input/event*" MatchTag "wizardpen" Driver "wizardpen" Option "TopX" "1506" Option "TopY" "2705" Option "BottomX" "31225" Option "BottomY" "30892" EndSection This is correct???? Patry 2012/8/18 Patricia Sartor <pat...@gm...> > Hi Nick, > > kernel: > patryhec@patryhec-TWH:~$ uname -r > 3.2.0-29.46+uclogic-twha60-generic-uclogic-twha60 > > patryhec@patryhec-TWH:~$ lsusb > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub > Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub > Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub > Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub > Bus 001 Device 003: ID 5986:0182 Acer, Inc > Bus 002 Device 003: ID 15ca:00c3 Textech International Ltd. Mini Optical > Mouse > Bus 002 Device 004: ID 5543:0781 UC-Logic Technology Corp. > > The cursor react to pen movements but only covers right side of the screen > and in mirror. > > patryhec@patryhec-TWH:~$ xinput list > ⎡ Virtual core pointer id=2 [master pointer (3)] > ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] > ⎜ ↳ USB Optical Mouse id=11 [slave pointer (2)] > ⎜ ↳ FSPPS/2 Sentelic FingerSensingPad id=13 [slave pointer (2)] > ⎜ ↳ 6x10 Tablet id=14 [slave pointer (2)] > ⎣ Virtual core keyboard id=3 [master keyboard (2)] > ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] > ↳ Power Button id=6 [slave keyboard (3)] > ↳ Video Bus id=7 [slave keyboard (3)] > ↳ Power Button id=8 [slave keyboard (3)] > ↳ Sleep Button id=9 [slave keyboard (3)] > ↳ USB Webcam id=10 [slave keyboard (3)] > ↳ AT Translated Set 2 keyboard id=12 [slave keyboard (3)] > ↳ 6x10 Tablet id=15 [slave keyboard (3)] > patryhec@patryhec-TWH:~$ > > oh!!! bravo!!! 6x10 Tablet is here!!!!! > > patryhec@patryhec-TWH:~$ xinput list-props 2 4 11 13 3 5 6 7 8 9 10 12 > Device 'Virtual core pointer': > Device Enabled (132): 1 > Coordinate Transformation Matrix (134): 1.000000, 0.000000, 0.000000, > 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 > Device 'Virtual core XTEST pointer': > Device Enabled (132): 1 > Coordinate Transformation Matrix (134): 1.000000, 0.000000, 0.000000, > 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 > XTEST Device (248): 1 > Device 'USB Optical Mouse': > Device Enabled (132): 1 > Coordinate Transformation Matrix (134): 1.000000, 0.000000, 0.000000, > 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 > Device Accel Profile (256): 0 > Device Accel Constant Deceleration (257): 1.000000 > Device Accel Adaptive Deceleration (258): 1.000000 > Device Accel Velocity Scaling (259): 10.000000 > Device Product ID (251): 5578, 195 > Device Node (252): "/dev/input/event5" > Evdev Axis Inversion (260): 0, 0 > Evdev Axes Swap (262): 0 > Axis Labels (263): "Rel X" (142), "Rel Y" (143), "Rel Vert Wheel" (255) > Button Labels (264): "Button Left" (135), "Button Middle" (136), "Button > Right" (137), "Button Wheel Up" (138), "Button Wheel Down" (139), "Button > Horiz Wheel Left" (140), "Button Horiz Wheel Right" (141) > Evdev Middle Button Emulation (265): 0 > Evdev Middle Button Timeout (266): 50 > Evdev Third Button Emulation (267): 0 > Evdev Third Button Emulation Timeout (268): 1000 > Evdev Third Button Emulation Button (269): 3 > Evdev Third Button Emulation Threshold (270): 20 > Evdev Wheel Emulation (271): 0 > Evdev Wheel Emulation Axes (272): 0, 0, 4, 5 > Evdev Wheel Emulation Inertia (273): 10 > Evdev Wheel Emulation Timeout (274): 200 > Evdev Wheel Emulation Button (275): 4 > Evdev Drag Lock Buttons (276): 0 > Device 'FSPPS/2 Sentelic FingerSensingPad': > Device Enabled (132): 1 > Coordinate Transformation Matrix (134): 1.000000, 0.000000, 0.000000, > 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 > Device Accel Profile (256): 0 > Device Accel Constant Deceleration (257): 1.000000 > Device Accel Adaptive Deceleration (258): 1.000000 > Device Accel Velocity Scaling (259): 10.000000 > Device Product ID (251): 2, 15 > Device Node (252): "/dev/input/event7" > Evdev Axis Inversion (260): 0, 0 > Evdev Axes Swap (262): 0 > Axis Labels (263): "Rel X" (142), "Rel Y" (143), "Rel Horiz Wheel" > (279), "Rel Vert Wheel" (255) > Button Labels (264): "Button Left" (135), "Button Middle" (136), "Button > Right" (137), "Button Wheel Up" (138), "Button Wheel Down" (139), "Button > Horiz Wheel Left" (140), "Button Horiz Wheel Right" (141), "Button Unknown" > (254), "Button Unknown" (254), "Button Forward" (277), "Button Back" (278), > "Button Unknown" (254), "Button Unknown" (254), "Button Unknown" (254), > "Button Unknown" (254) > Evdev Middle Button Emulation (265): 0 > Evdev Middle Button Timeout (266): 50 > Evdev Third Button Emulation (267): 0 > Evdev Third Button Emulation Timeout (268): 1000 > Evdev Third Button Emulation Button (269): 3 > Evdev Third Button Emulation Threshold (270): 20 > Evdev Wheel Emulation (271): 0 > Evdev Wheel Emulation Axes (272): 0, 0, 4, 5 > Evdev Wheel Emulation Inertia (273): 10 > Evdev Wheel Emulation Timeout (274): 200 > Evdev Wheel Emulation Button (275): 4 > Evdev Drag Lock Buttons (276): 0 > Device 'Virtual core keyboard': > Device Enabled (132): 1 > Coordinate Transformation Matrix (134): 1.000000, 0.000000, 0.000000, > 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 > Device 'Virtual core XTEST keyboard': > Device Enabled (132): 1 > Coordinate Transformation Matrix (134): 1.000000, 0.000000, 0.000000, > 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 > XTEST Device (248): 1 > Device 'Power Button': > Device Enabled (132): 1 > Coordinate Transformation Matrix (134): 1.000000, 0.000000, 0.000000, > 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 > Device Product ID (251): 0, 1 > Device Node (252): "/dev/input/event3" > Virtual Device (253): 1 > Device 'Video Bus': > Device Enabled (132): 1 > Coordinate Transformation Matrix (134): 1.000000, 0.000000, 0.000000, > 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 > Device Product ID (251): 0, 6 > Device Node (252): "/dev/input/event11" > Virtual Device (253): 1 > Device 'Power Button': > Device Enabled (132): 1 > Coordinate Transformation Matrix (134): 1.000000, 0.000000, 0.000000, > 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 > Device Product ID (251): 0, 1 > Device Node (252): "/dev/input/event0" > Virtual Device (253): 1 > Device 'Sleep Button': > Device Enabled (132): 1 > Coordinate Transformation Matrix (134): 1.000000, 0.000000, 0.000000, > 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 > Device Product ID (251): 0, 3 > Device Node (252): "/dev/input/event1" > Virtual Device (253): 1 > Device 'USB Webcam': > Device Enabled (132): 1 > Coordinate Transformation Matrix (134): 1.000000, 0.000000, 0.000000, > 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 > Device Product ID (251): 22918, 386 > Device Node (252): "/dev/input/event6" > Device 'AT Translated Set 2 keyboard': > Device Enabled (132): 1 > Coordinate Transformation Matrix (134): 1.000000, 0.000000, 0.000000, > 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 > Device Product ID (251): 1, 1 > Device Node (252): "/dev/input/event4" > patryhec@patryhec-TWH:~$ > > > patryhec@patryhec-TWH:~$ stdbuf -oL xinput test 2 | tee xinput_coords.txt > unable to find device 2 > > patryhec@patryhec-TWH:~$ stdbuf -oL xinput test 4 | tee xinput_coords.txt > > xinput_coords.txt is 0 byte > > X.org > where are X.org? > i can't find it. > > Patry > > > > 2012/8/18 Nikolai Kondrashov <sp...@gm...> > >> Hi Patricia, >> >> >> On 08/17/2012 11:06 PM, Patricia Sartor wrote: >> >>> Here the test's results: >>> >> >> Thank you. The device reports pen coordinates in correct orientation. >> So, my guess is that your X.org is set up incorrectly. >> >> >> patryhec@patryhec-TWH:~$ xinput list >>> ⎡ Virtual core pointer id=2[master pointer (3)] >>> ⎜ ↳ Virtual core XTEST pointer id=4[slave pointer (2)] >>> ⎜ ↳ USB Optical Mouse id=11[slave pointer (2)] >>> ⎜ ↳ FSPPS/2 Sentelic FingerSensingPad id=13[slave pointer (2)] >>> ⎣ Virtual core keyboard id=3[master keyboard (2)] >>> ↳ Virtual core XTEST keyboard id=5[slave keyboard (3)] >>> ↳ Power Button id=6[slave keyboard (3)] >>> ↳ Video Bus id=7[slave keyboard (3)] >>> ↳ Power Button id=8[slave keyboard (3)] >>> ↳ Sleep Button id=9[slave keyboard (3)] >>> ↳ USB Webcam id=10[slave keyboard (3)] >>> ↳ AT Translated Set 2 keyboard id=12[slave keyboard (3)] >>> >> >> This output doesn't contain your tablet. Did you boot the correct kernel? >> Was the tablet plugged in? Did cursor react to pen movements? >> >> Also, please note, that while usbhid-dump runs, it detaches the tablet >> from >> the kernel input stack and it won't be seen as an input device, so please >> ensure it isn't running at the same time you're trying to retrieve any >> information about it with "xinput". >> >> Please retry "xinput list" after you've checked these and when you make >> the >> tablet appear in this list, proceed to further steps. >> >> In addition to capturing the reported coordinates as described before, >> could >> you please provide the output of "xinput list-props ID", where "ID" is >> also replaced with your tablet pen device ID? >> >> >> stdbuf -oL xinput test 4 | tee xinput_coords.txt >>> >> >> This command is correct, but the used ID is wrong. >> >> >> stdbuf -oL xinput test ID=4 | tee xinput_coords.txt >>> >> >> The device specification syntax is incorrect in this command. It should >> either be a device ID or name. I.e. "ID=" shouldn't be present here. >> >> Sincerely, >> Nick >> > > > > |