Re: [Linuxwacom-devel] [PATCH libwacom] tools: add a quirk for the HUION Consumer Control device in the udev rules

2016-04-13 Thread Peter Hutterer
On Wed, Apr 13, 2016 at 05:43:02PM -0700, Ping Cheng wrote:
> On Thu, Mar 31, 2016 at 5:44 PM, Peter Hutterer
>  wrote:
> > These devices have the same VID/PID as the tablet devices but are 
> > effectively
> > keyboards. Labelling them as tablets causes a libinput crash (fixed in
> > libinput with 1.2.1-5-g5d904b6).
> >
> > https://bugzilla.redhat.com/show_bug.cgi?id=1314955
> >
> > Signed-off-by: Peter Hutterer 
> > ---
> >  tools/generate-udev-rules.c | 12 
> >  1 file changed, 12 insertions(+)
> >
> > diff --git a/tools/generate-udev-rules.c b/tools/generate-udev-rules.c
> > index 338ab82..87d43fe 100644
> > --- a/tools/generate-udev-rules.c
> > +++ b/tools/generate-udev-rules.c
> > @@ -52,6 +52,17 @@ static void print_udev_header (void)
> > printf ("\n");
> >  }
> >
> > +static void print_huion_quirk (void)
> > +{
> > +   /* Huion tablets have a "consumer control" device with the same
> > +* VID/PID as the tablet but only a few buttons and no axes.
> 
> Is that the same as Wacom Expresskey Remote, the expresskey only device?

no, it's afaict an device for the routing of macros (?) and it doesn't
correspond to any physical device.
 
> > +*
> > +*/
> > +   printf("# HUION consumer control devices are not tablets.\n");
> 
> Don't we allow the buttons to be configured later?
> 
> I don't have the device. So, I'm trying to see the whole picture...

I don't actually know how to trigger events on that, so far no one's
reported any events coming out of that device :)
Benjamin has one, maybe he can test it but I suspect it corresponds to a hid
collection the device announces.

Cheers,
   Peter

> > +   printf("ATTRS{name}==\"HUION * Consumer Control\", 
> > GOTO=\"libwacom_end\"\n");
> > +   printf ("\n");
> > +}
> > +
> >  static char * generate_device_match(WacomDevice *device, const WacomMatch 
> > *match)
> >  {
> > WacomBusType type   = libwacom_match_get_bustype (match);
> > @@ -208,6 +219,7 @@ int main(int argc, char **argv)
> > }
> >
> > print_udev_header ();
> > +   print_huion_quirk ();
> > for (p = list; *p; p++)
> > print_udev_entry ((WacomDevice *) *p, WBUSTYPE_USB);
> >
> > --
> > 2.5.0
> >
> >
> > --
> > Transform Data into Opportunity.
> > Accelerate data analysis in your applications with
> > Intel Data Analytics Acceleration Library.
> > Click to learn more.
> > http://pubads.g.doubleclick.net/gampad/clk?id=278785471=/4140
> > ___
> > Linuxwacom-devel mailing list
> > Linuxwacom-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel


Re: [Linuxwacom-devel] [PATCH libwacom] tools: add a quirk for the HUION Consumer Control device in the udev rules

2016-04-13 Thread Ping Cheng
On Thu, Mar 31, 2016 at 5:44 PM, Peter Hutterer
 wrote:
> These devices have the same VID/PID as the tablet devices but are effectively
> keyboards. Labelling them as tablets causes a libinput crash (fixed in
> libinput with 1.2.1-5-g5d904b6).
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1314955
>
> Signed-off-by: Peter Hutterer 
> ---
>  tools/generate-udev-rules.c | 12 
>  1 file changed, 12 insertions(+)
>
> diff --git a/tools/generate-udev-rules.c b/tools/generate-udev-rules.c
> index 338ab82..87d43fe 100644
> --- a/tools/generate-udev-rules.c
> +++ b/tools/generate-udev-rules.c
> @@ -52,6 +52,17 @@ static void print_udev_header (void)
> printf ("\n");
>  }
>
> +static void print_huion_quirk (void)
> +{
> +   /* Huion tablets have a "consumer control" device with the same
> +* VID/PID as the tablet but only a few buttons and no axes.

Is that the same as Wacom Expresskey Remote, the expresskey only device?

> +*
> +*/
> +   printf("# HUION consumer control devices are not tablets.\n");

Don't we allow the buttons to be configured later?

I don't have the device. So, I'm trying to see the whole picture...

Cheers,

Ping

> +   printf("ATTRS{name}==\"HUION * Consumer Control\", 
> GOTO=\"libwacom_end\"\n");
> +   printf ("\n");
> +}
> +
>  static char * generate_device_match(WacomDevice *device, const WacomMatch 
> *match)
>  {
> WacomBusType type   = libwacom_match_get_bustype (match);
> @@ -208,6 +219,7 @@ int main(int argc, char **argv)
> }
>
> print_udev_header ();
> +   print_huion_quirk ();
> for (p = list; *p; p++)
> print_udev_entry ((WacomDevice *) *p, WBUSTYPE_USB);
>
> --
> 2.5.0
>
>
> --
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785471=/4140
> ___
> Linuxwacom-devel mailing list
> Linuxwacom-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel


Re: [Linuxwacom-devel] [PATCH] Add .data files for DTK-1651

2016-04-13 Thread Peter Hutterer
On Wed, Apr 13, 2016 at 01:58:37PM -0700, Ping Cheng wrote:
> svg file was created by our in-house SVG expert, Jason Gerecke.

excellent artwork here, I like the minimalistic, almost nihilistic approach
that contrasts the creative work done on the device with the straight,
geometric nature of the device itself and invites the viewer to seeing
the world as a yin and yang of boundless creativity against the backdrop of
the harsh realities of the everyday world. 5 out of 5, this belongs in a
gallery :)

   ba5fbb5..1c8211f  master -> master

Cheers,
   Peter

> 
> Signed-off-by: Ping Cheng 
> ---
>  data/dtk-1651.tablet  |  34 +++
>  data/layouts/dtk-1651.svg | 144 
> ++
>  2 files changed, 178 insertions(+)
>  create mode 100644 data/dtk-1651.tablet
>  create mode 100644 data/layouts/dtk-1651.svg
> 
> diff --git a/data/dtk-1651.tablet b/data/dtk-1651.tablet
> new file mode 100644
> index 000..3aff2e6
> --- /dev/null
> +++ b/data/dtk-1651.tablet
> @@ -0,0 +1,34 @@
> +# Wacom
> +# DTK-1651 Interactive Pen Display
> +# Button Map:
> +# (A=1, B=2, C=3, ...)
> +#
> +#  *-*
> +#  | | D
> +#  | | C
> +#  | DISPLAY |
> +#  | | B
> +#  | | A
> +#  *-*
> +#
> +
> +[Device]
> +Name=Wacom DTK1651
> +DeviceMatch=usb:056a:0343
> +Class=PenDisplay
> +Width=14
> +Height=8
> +Layout=dtk-1651.svg
> +IntegratedIn=Display
> +
> +[Features]
> +Stylus=true
> +Reversible=false
> +Touch=false
> +Ring=false
> +Ring2=false
> +NumStrips=0
> +Buttons=4
> +
> +[Buttons]
> +Right=A;B;C;D
> diff --git a/data/layouts/dtk-1651.svg b/data/layouts/dtk-1651.svg
> new file mode 100644
> index 000..6141c45
> --- /dev/null
> +++ b/data/layouts/dtk-1651.svg
> @@ -0,0 +1,144 @@
> +
> + +   "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd;>
> + +xmlns="http://www.w3.org/2000/svg;
> +version="1.1"
> +
> style="color:#00;stroke:#7f7f7f;fill:none;stroke-width:.25;font-size:8"
> +id="dtk-1651"
> +width="275"
> +height="222">
> +   +id="title">Wacom DTK-1651
> +  
> +
> +  
> +
> +
> +  
> +
> +
> +  
> +
> +
> +  
> +
> +  
> +
> +  
> + +   id="ButtonA"
> +   class="A Button"
> +   width="7.75"
> +   height="24.75"
> +   x="256.125"
> +   y="133.125"
> +   rx="4"
> +   ry="4"
> +   clip-path="url(#ClipA)" />
> + +   id="LeaderA"
> +   class="A Leader"
> +   d="M 254 154 L 244 154" />
> + +   id="LabelA"
> +   class="A Label"
> +   x="242"
> +   y="154"
> +   style="text-anchor:end;">
> +  A
> +
> + +   id="DotA1"
> +   cx="260"
> +   cy="154"
> +   r="0.875" />
> +  
> +  
> + +   id="ButtonB"
> +   class="B Button"
> +   width="7.75"
> +   height="24.75"
> +   x="256.125"
> +   y="133.125"
> +   rx="4"
> +   ry="4"
> +   clip-path="url(#ClipB)" />
> + +   id="LeaderB"
> +   class="B Leader"
> +   d="M 254 137 L 244 137" />
> + +   id="LabelB"
> +   class="B Label"
> +   x="242"
> +   y="137"
> +   style="text-anchor:end;">
> +  B
> +
> + +   id="DotB1"
> +   cx="260"
> +   cy="137"
> +   r="0.875" />
> +  
> +  
> + +   id="ButtonC"
> +   class="C Button"
> +   width="7.75"
> +   height="24.75"
> +   x="256.125"
> +   y="57.125"
> +   rx="4"
> +   ry="4"
> +   clip-path="url(#ClipC)" />
> + +   id="LeaderC"
> +   class="C Leader"
> +   d="M 254 78 L 244 78" />
> + +   id="LabelC"
> +   class="C Label"
> +   x="242"
> +   y="78"
> +   style="text-anchor:end;">
> +  C
> +
> + +   id="DotC1"
> +   cx="260"
> +   cy="78"
> +   r="1.875" />
> +  
> +  
> + +   id="ButtonD"
> +   class="D Button"
> +   width="7.75"
> +   height="24.75"
> +   x="256.125"
> +   y="57.125"
> +   rx="4"
> +   ry="4"
> +   clip-path="url(#ClipD)" />
> + +   id="LeaderD"
> +   class="D Leader"
> +   d="M 254 61 L 244 61" />
> + +   id="LabelD"
> +   class="D Label"
> +   x="242"
> +   y="61"
> +   style="text-anchor:end;">
> +  D
> +
> + +   id="DotD1"
> +   cx="260"
> +   cy="61"
> +   r="1.875" />
> +  
> +
> -- 
> 1.9.1
> 

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z

[Linuxwacom-devel] [PATCH] Add .data files for DTK-1651

2016-04-13 Thread Ping Cheng
svg file was created by our in-house SVG expert, Jason Gerecke.

Signed-off-by: Ping Cheng 
---
 data/dtk-1651.tablet  |  34 +++
 data/layouts/dtk-1651.svg | 144 ++
 2 files changed, 178 insertions(+)
 create mode 100644 data/dtk-1651.tablet
 create mode 100644 data/layouts/dtk-1651.svg

diff --git a/data/dtk-1651.tablet b/data/dtk-1651.tablet
new file mode 100644
index 000..3aff2e6
--- /dev/null
+++ b/data/dtk-1651.tablet
@@ -0,0 +1,34 @@
+# Wacom
+# DTK-1651 Interactive Pen Display
+# Button Map:
+# (A=1, B=2, C=3, ...)
+#
+#  *-*
+#  | | D
+#  | | C
+#  | DISPLAY |
+#  | | B
+#  | | A
+#  *-*
+#
+
+[Device]
+Name=Wacom DTK1651
+DeviceMatch=usb:056a:0343
+Class=PenDisplay
+Width=14
+Height=8
+Layout=dtk-1651.svg
+IntegratedIn=Display
+
+[Features]
+Stylus=true
+Reversible=false
+Touch=false
+Ring=false
+Ring2=false
+NumStrips=0
+Buttons=4
+
+[Buttons]
+Right=A;B;C;D
diff --git a/data/layouts/dtk-1651.svg b/data/layouts/dtk-1651.svg
new file mode 100644
index 000..6141c45
--- /dev/null
+++ b/data/layouts/dtk-1651.svg
@@ -0,0 +1,144 @@
+
+http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd;>
+http://www.w3.org/2000/svg;
+version="1.1"
+style="color:#00;stroke:#7f7f7f;fill:none;stroke-width:.25;font-size:8"
+id="dtk-1651"
+width="275"
+height="222">
+  Wacom DTK-1651
+  
+
+  
+
+
+  
+
+
+  
+
+
+  
+
+  
+
+  
+
+
+
+  A
+
+
+  
+  
+
+
+
+  B
+
+
+  
+  
+
+
+
+  C
+
+
+  
+  
+
+
+
+  D
+
+
+  
+
-- 
1.9.1


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel