From bc5791fa9f63b9de3ab5b8e87db1ec9230c08814 Mon Sep 17 00:00:00 2001 From: Aesara Binder Date: Fri, 12 Apr 2024 13:01:07 +0930 Subject: [PATCH 1/8] Started work on Kamvas Pro 24 (QHD) tablet definitions --- data/huion-kamvas-pro-24.tablet | 57 +++++++++++++++ data/layouts/huion-kamvas-pro-24.svg | 104 +++++++++++++++++++++++++++ 2 files changed, 161 insertions(+) create mode 100644 data/huion-kamvas-pro-24.tablet create mode 100644 data/layouts/huion-kamvas-pro-24.svg diff --git a/data/huion-kamvas-pro-24.tablet b/data/huion-kamvas-pro-24.tablet new file mode 100644 index 000000000..76018e5b5 --- /dev/null +++ b/data/huion-kamvas-pro-24.tablet @@ -0,0 +1,57 @@ +# Huion +# Kamvas Pro 24 +# GT-240 +# +# sysinfo.0LZKOwtz0e.tar.gz +# https://github.com/linuxwacom/wacom-hid-descriptors/issues/351 +# Button Map: +# (A=1, B=2, C=3, ...) +# +# *-----------------------* +# | | +# A | | +# B | | +# | | +# | DISPLAY | +# | | +# C | | +# D | | +# E | | +# *-----------------------* +# +# Touch Strip Map: +# NOTE: not enabled because i couldnt get it to work +# evtest reports BTN_8, BTN_9, BTN_SOUTH +# +# *-----------------------* +# | | +# A | | +# a | DISPLAY | +# | | +# *-----------------------* +# +# Also matches: +# GAOMON S56K which doesn't have buttons but since HUION re-uses usb IDs +# there is nothing we can do about this. + +[Device] +Name=Huion Kamvas Pro 24 +ModelName=GT-240 +Class=Cintiq +DeviceMatch=usb:256c:006e:Tablet Monitor Pen;usb:256c:006e:Tablet Monitor Pad; +Width=26 +Height=15 +Layout=kamvas-pro-24.svg +Styli=@generic-no-eraser; +IntegratedIn=Display + +[Features] +Buttons=20 +Reversible=false +Ring=false +Stylus=true +Touch=true + +[Buttons] +Left=A;B;C;D;E;F;G;H;I;J;K;L;M +EvdevCodes=BTN_0;BTN_1;BTN_2;BTN_3;BTN_4;BTN_5;BTN_6;BTN_7;BTN_8;BTN_9;BTN_SOUTH;BTN_EAST;BTN_C diff --git a/data/layouts/huion-kamvas-pro-24.svg b/data/layouts/huion-kamvas-pro-24.svg new file mode 100644 index 000000000..8f58a199c --- /dev/null +++ b/data/layouts/huion-kamvas-pro-24.svg @@ -0,0 +1,104 @@ + + + + Huion Kamvas Pro 13 + + + + A + + + B + + + C + + + + D + + + + E + From 1b24a3663efd35fb7e889a2cbf419aa6b9db9481 Mon Sep 17 00:00:00 2001 From: Aesara Binder Date: Mon, 15 Apr 2024 11:15:47 +0930 Subject: [PATCH 2/8] Kamvas Pro 24: Staging commit --- data/huion-kamvas-pro-24.tablet | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/data/huion-kamvas-pro-24.tablet b/data/huion-kamvas-pro-24.tablet index 76018e5b5..ddeff38b7 100644 --- a/data/huion-kamvas-pro-24.tablet +++ b/data/huion-kamvas-pro-24.tablet @@ -8,25 +8,27 @@ # (A=1, B=2, C=3, ...) # # *-----------------------* -# | | -# A | | -# B | | -# | | +# A | | K +# B | | L +# C | | M +# D | | N +# E | | O # | DISPLAY | -# | | -# C | | -# D | | -# E | | +# F | | P +# G | | Q +# H | | R +# I | | S +# J | | T # *-----------------------* # # Touch Strip Map: -# NOTE: not enabled because i couldnt get it to work -# evtest reports BTN_8, BTN_9, BTN_SOUTH +# (A=1st strip, B=2nd strip, ...) +# # # *-----------------------* # | | -# A | | -# a | DISPLAY | +# A | | B +# a | DISPLAY | b # | | # *-----------------------* # @@ -38,7 +40,7 @@ Name=Huion Kamvas Pro 24 ModelName=GT-240 Class=Cintiq -DeviceMatch=usb:256c:006e:Tablet Monitor Pen;usb:256c:006e:Tablet Monitor Pad; +DeviceMatch=usb:256c:006e:Tablet Monitor Pen;usb:256c:006e:Tablet Monitor Pad;usb:256c:006e:Tablet Monitor Touch Strip; Width=26 Height=15 Layout=kamvas-pro-24.svg @@ -50,8 +52,9 @@ Buttons=20 Reversible=false Ring=false Stylus=true -Touch=true +Touch=false [Buttons] -Left=A;B;C;D;E;F;G;H;I;J;K;L;M +Left=A;B;C;D;E;F;G;H;I;J +Right=K;L;M EvdevCodes=BTN_0;BTN_1;BTN_2;BTN_3;BTN_4;BTN_5;BTN_6;BTN_7;BTN_8;BTN_9;BTN_SOUTH;BTN_EAST;BTN_C From cc8d36c6b617f7bd4deff819e3a381e8b493893b Mon Sep 17 00:00:00 2001 From: Aesara Binder Date: Thu, 18 Apr 2024 08:29:18 +0930 Subject: [PATCH 3/8] Kamvas Pro 24: second tablet file draft --- data/huion-kamvas-pro-24.tablet | 50 ++++++++++++++++----------------- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/data/huion-kamvas-pro-24.tablet b/data/huion-kamvas-pro-24.tablet index ddeff38b7..4e04a4365 100644 --- a/data/huion-kamvas-pro-24.tablet +++ b/data/huion-kamvas-pro-24.tablet @@ -7,54 +7,52 @@ # Button Map: # (A=1, B=2, C=3, ...) # -# *-----------------------* -# A | | K -# B | | L -# C | | M -# D | | N -# E | | O -# | DISPLAY | -# F | | P -# G | | Q -# H | | R -# I | | S -# J | | T -# *-----------------------* +# *-----------------------* +# A | | K +# B | | L +# C | | M +# D | | N +# E | | O +# | DISPLAY | +# F | | P +# G | | Q +# H | | R +# I | | S +# J | | T +# *-----------------------* # # Touch Strip Map: -# (A=1st strip, B=2nd strip, ...) -# +# (a=strip min, A=strip max) +# Touch Strips are mirrored and do not map seperately # # *-----------------------* # | | -# A | | B -# a | DISPLAY | b +# A | | A +# a | DISPLAY | a # | | # *-----------------------* # -# Also matches: -# GAOMON S56K which doesn't have buttons but since HUION re-uses usb IDs -# there is nothing we can do about this. [Device] Name=Huion Kamvas Pro 24 ModelName=GT-240 Class=Cintiq -DeviceMatch=usb:256c:006e:Tablet Monitor Pen;usb:256c:006e:Tablet Monitor Pad;usb:256c:006e:Tablet Monitor Touch Strip; -Width=26 -Height=15 +DeviceMatch=usb|256c|006e|Tablet Monitor Pen;usb|256c|006e|Tablet Monitor Pad;usb|256c|006e|Tablet Monitor Touch Strip; +Width=21 +Height=12 Layout=kamvas-pro-24.svg Styli=@generic-no-eraser; IntegratedIn=Display [Features] -Buttons=20 +NumStrips=1 Reversible=false Ring=false Stylus=true Touch=false +TouchSwitch=false [Buttons] Left=A;B;C;D;E;F;G;H;I;J -Right=K;L;M -EvdevCodes=BTN_0;BTN_1;BTN_2;BTN_3;BTN_4;BTN_5;BTN_6;BTN_7;BTN_8;BTN_9;BTN_SOUTH;BTN_EAST;BTN_C +Right=K;L;M;N;O;P;Q;R;S;T +EvdevCodes=BTN_0;BTN_1;BTN_2;BTN_3;BTN_4;BTN_5;BTN_6;BTN_7;BTN_8;BTN_9;BTN_SOUTH;BTN_EAST;BTN_C;BTN_NORTH;BTN_WEST;BTN_Z;BTN_TL;BTN_TR;BTN_TL2;BTN_TR2 From 1f250c76fe7c2600ea8a81583fb4922ceb7c2059 Mon Sep 17 00:00:00 2001 From: Aesara Binder Date: Thu, 18 Apr 2024 19:46:24 +0930 Subject: [PATCH 4/8] Kamvas Pro 24: Added firmware version --- data/huion-kamvas-pro-24.tablet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/huion-kamvas-pro-24.tablet b/data/huion-kamvas-pro-24.tablet index 4e04a4365..3b686109f 100644 --- a/data/huion-kamvas-pro-24.tablet +++ b/data/huion-kamvas-pro-24.tablet @@ -37,7 +37,7 @@ Name=Huion Kamvas Pro 24 ModelName=GT-240 Class=Cintiq -DeviceMatch=usb|256c|006e|Tablet Monitor Pen;usb|256c|006e|Tablet Monitor Pad;usb|256c|006e|Tablet Monitor Touch Strip; +DeviceMatch=usb|256c|006e|Tablet Monitor Pen|HUION_M184;usb|256c|006e|Tablet Monitor Pad|HUION_M184;usb|256c|006e|Tablet Monitor Touch Strip|HUION_M184; Width=21 Height=12 Layout=kamvas-pro-24.svg From e29f7be751d5c87f9f4561327994cb4aed64d336 Mon Sep 17 00:00:00 2001 From: Aesara Binder Date: Thu, 18 Apr 2024 21:23:21 +0930 Subject: [PATCH 5/8] Kamvas Pro 24: Added tablet svg --- data/layouts/huion-kamvas-pro-24.svg | 591 ++++++++++++++++++++++----- 1 file changed, 493 insertions(+), 98 deletions(-) diff --git a/data/layouts/huion-kamvas-pro-24.svg b/data/layouts/huion-kamvas-pro-24.svg index 8f58a199c..5e297929e 100644 --- a/data/layouts/huion-kamvas-pro-24.svg +++ b/data/layouts/huion-kamvas-pro-24.svg @@ -1,104 +1,499 @@ - + + + style="color:#000000;stroke:#7f7f7f;fill:none;stroke-width:.25;font-size:8" + id="huion-kamvas-pro-24" + width="512" + height="288"> Huion Kamvas Pro 13 - - - - A - - - B - - - C - - - - D - - - - E + id="title">Huion Kamvas Pro 24 (GT-240) + + + + A + + + + + B + + + + + C + + + + + D + + + + + E + + + + + F + + + + + G + + + + + H + + + + + I + + + + + J + + + + + K + + + + + L + + + + + M + + + + + N + + + + + O + + + + + P + + + + + Q + + + + + R + + + + + S + + + + + T + + + + + Up + + Down + + From 969149681df2ed6bb0a6fda04291466dd48f055c Mon Sep 17 00:00:00 2001 From: Aesara Binder Date: Fri, 19 Apr 2024 12:58:31 +0930 Subject: [PATCH 6/8] Kamvas Pro 24:svg: Removed comment from ancestor file --- data/layouts/huion-kamvas-pro-24.svg | 4 ---- 1 file changed, 4 deletions(-) diff --git a/data/layouts/huion-kamvas-pro-24.svg b/data/layouts/huion-kamvas-pro-24.svg index 5e297929e..da786beea 100644 --- a/data/layouts/huion-kamvas-pro-24.svg +++ b/data/layouts/huion-kamvas-pro-24.svg @@ -1,10 +1,6 @@ - Date: Fri, 19 Apr 2024 12:58:52 +0930 Subject: [PATCH 7/8] Kamvas Pro 24:svg: Fixed class typos --- data/layouts/huion-kamvas-pro-24.svg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/layouts/huion-kamvas-pro-24.svg b/data/layouts/huion-kamvas-pro-24.svg index da786beea..d4edc58f5 100644 --- a/data/layouts/huion-kamvas-pro-24.svg +++ b/data/layouts/huion-kamvas-pro-24.svg @@ -320,7 +320,7 @@ d="M 486 100 l -25 0" /> O @@ -362,7 +362,7 @@ d="M 486 206 l -24 0" /> Q From bff8ea2e892d225d47e898963bd3ec5ffe972794 Mon Sep 17 00:00:00 2001 From: Aesara Binder Date: Fri, 19 Apr 2024 13:04:44 +0930 Subject: [PATCH 8/8] Kamvas Pro 24: Corrected name of layout file --- data/huion-kamvas-pro-24.tablet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/huion-kamvas-pro-24.tablet b/data/huion-kamvas-pro-24.tablet index 3b686109f..611a2df32 100644 --- a/data/huion-kamvas-pro-24.tablet +++ b/data/huion-kamvas-pro-24.tablet @@ -40,7 +40,7 @@ Class=Cintiq DeviceMatch=usb|256c|006e|Tablet Monitor Pen|HUION_M184;usb|256c|006e|Tablet Monitor Pad|HUION_M184;usb|256c|006e|Tablet Monitor Touch Strip|HUION_M184; Width=21 Height=12 -Layout=kamvas-pro-24.svg +Layout=huion-kamvas-pro-24.svg Styli=@generic-no-eraser; IntegratedIn=Display