Re: [PATCH 0/2] HID: huion: add libinput support
From: Nikolai Kondrashov
Date: Wed Feb 18 2015 - 04:25:34 EST
I'm copying my reply to DIGImend-devel as well.
On 02/18/2015 12:54 AM, Benjamin Tissoires wrote:
I know you are actually merging hid-huion and hid-uclogic, so we might not want
to take this in this current state. We may need to postpone it when you have
send the merge.
I have it in the out-of-tree driver package , which I'll need to release
for users to test first.
This series makes the Huion tablet (a H610 Pro) behave like a Wacom one from the
libinput point of view.
It will introduce a change in the default behavior for the users (which I
believe is a good change) where the pad part of the tablet will not send
random keyboard shortcuts but actual button events.
That's awesome, thanks a lot, Benjamin! I tried making something like that
, which seems to work reasonably. However, I was not up-to-date with
libinput changes and left the buttons in the same device with the pen. Then I
heard about input groups from Hans and planned to re-make it properly, but now
you did it. Thanks!
I'd be glad if you could validate the changes with the other huions you have
(or the Digimend project), because, having only one PID for all their tablets
is rather weird and difficult to support.
I'll have to incorporate them into the out-of-tree driver  to simplify
testing for users. I'll leave some comments to the changes as well, if you
Of course, it would help a lot, if you could contribute your patches to the
out-of-tree driver, from where we could then take them to upstream, after
testing. I can do it myself, though.
Last, I think we could add these tablets in the libwacom project, so that there
will be a nice GUI to configure the buttons.
That would be a very welcome change, without doubt, thank you.
However, I can't help wondering, would it be more productive to allow libwacom
to work with just any basic tablet, without the need to add each one to the
However, not having the PID to discriminate between tablets is going to be a
problem. Do you have any reliable way of knowing the model from the kernel
or the user space?
Unfortunately, not. You can take a look at the data I and the users gathered
on some of the Huion tablets . The iProduct string can be used to some
extent, but I wouldn't rely on it to make much sense. Apart from Huion
tablets, there are also Yiynova tablets which work the same way, at least some
Ugee tablets and at least one UC-Logic tablet, but I expect more of the latter
work as well. Among them there is a mix of using dedicated and UC-Logic VIDs
and mostly reusing PIDs. There is something which seems to be an internal
model name in string descriptor 0x7a, but it also doesn't make much sense.
All-in-all it's a mess. I've even seen a tablet with a typo in iManufacturer.
Still, if we make libwacom work with generic tablets not contained in its
database, that wouldn't be a problem.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/