-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Huion Kamvas Pro 19 #652
Comments
This just means the device doesn't support touch sizes, i.e. the physical(-ish) size of the finger touch in addition to the usual position data. Most touchpads don't have that and it's only necessary for things like palm and thumb detection so it's not a big deal if it is missing. libwacom doesn't have an effect on whether the tablet works, and has no effect on the touchpad part of the tablet. Best to file a libinput bug for that. If your tablet works and it shows up in the control center, you can submit the |
I will be doing that 👍
I will but I think there is room for improvement. I studied the libwacom.stylus file in order to get the pen buttons to work, but I don't really understand how to correctly map them into the .tablet file. Huion gives you two pens, a slim one with 2 Buttons + Eraser and a thick one with 3 Buttons + Eraser. This is a simmilar pen found in the file:
It would be complete I guess with the addition of
But I don't really know what PairedStylusIDs means and how to integrate it into the .tablet file. |
iirc the huion tablets don't have tool ids so you don't need a special stylus, you can use The main problem with those generic pens is that we can't detect ahead of time how many buttons they have because they usually don't provide enough information, so we get might be worth running
To clarify: none of these counted buttons are the eraser button, right? so you have eraser (at the tip? as a button?) and in addition you have 2 or 3 buttons? |
how curious. ftr, this means you have an eraser button and an eraser tip. that's a new one... the stylus has 2 real buttons but instead of Based on the I think the right solution for libwacom would be to duplicate the |
@vod3 sorry to necro, but I'm trying to get my Kamvas Pro 19 working. Can I get your .tablet file, or some direction on what else I need to do to get the tablet working? Some things I have tried:
|
fwiw, libwacom is a static database only, it won't make your device work. You'll probably need to add it to the DIGImend drivers so it's actually handled by the kernel and the rest of the user stack. getting it working in libwacom just gives you niceties like the device showing up in the gnome control center and whatnot. |
I think it's basically guaranteed that I have some misunderstanding of how this whole driver stack works, but I have another Huion tablet (Kamvas 24 Pro, GT2401, I'm trialing the two to decide which one to keep) that is, presumably, using the linux-wacom driver. It actually worked out-of-the-box on KDE Plasma once detected by the Wacom Tablet Finder utility (which just wraps xsetwacom). The Kamvas 24 Pro is listed in the output of libwacom-list-devices but isn't listed as supported on the Digimend site, so I assume it's working through the Wacom driver. I was guessing from that it was just a matter of adapting the configs for the tablet to detect the Kamvas Pro 19 model and underlying driver code would be there; after all the input-wacom driver itself doesn't seem to have code specific to many different tablets. I could easily be very wrong about that. Maybe there's some good documentation out there that explains how this all works, before this conversation gets too off topic? |
Once you have one of the above that handles your kernel, userspace will generally work with
Other pieces
if xsetwacom shows the device that means xf86-input-wacom is handling it which means the kernel is handling it. Anything incorrect (e.g. wrong coords or something) will need a kernel fix (or bpf in the case of udev-hid-bpf). |
@eqkessel After that, take a look at https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/merge_requests/59 for fixing the button mapping. With those steps, you get the tablet 100% working |
ftr libinput 1.26 assumes a default resolution for huion devices so this patch is useful but no longer mandatory to make the tablet work. The default resolution is off (since it'll apply to all huion devices without resolution) but it's better than not having the tablet work. |
@vod3 Going through the tablet files in current master, it looks like the kamvas 19 still has the autogenerated tablet file and it's not using the right PID match (which seems to be 006b). Do you mind sending a PR correcting that file so libwacom DTRT for this device? Thanks. |
Looks like this is resolved? I think we're still missing the manual update of the tablet file which would be a nice-to-have but meanwhile I think we can close this bug. /close |
Hi, I'm very close on getting the device to 100% working, after I submitted a pull request to systemd:
systemd/systemd#31918 the pen was working, but the Multi-Touch Gesture abilities are still missing.
I assume it's because the resolution I submitted may be wrong, after all I got the value by trial and error.
In your documentation I read that you can get the exact value my using
libinput measure touch-size
, but my touchscreen seems to be not supported.Nevertheless the Pen works great (the 2nd and 3rd pen button however not), there is no offset on the screen, but I'm not sure how to debug the Touchpad Issue. The Touchpad seems to only work as a mouse cursor.
Any tips what I can do to get this device to 100%?
Thanks for your time!
Device name:
Huion Kamvas Pro 19
https://www.huion.com/pen_display/KamvasPro/Kamvas-Pro-19.html
Device model identifier:
GT-1902
libwacom version:
1.25.0
I understand that libwacom does affect whether the device works (see Troubleshooting)
udevadm info output:
udevadm.txt
sysinfo issue in wacom-hid-descriptors:
Huion Kamvas Pro 19 wacom-hid-descriptors#370
The text was updated successfully, but these errors were encountered: