Skip to content
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

We add support for the newer Xppen tablet mini7. #605

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MikuChan03
Copy link

The thing is that the tablet reports the buttons as keyboard events.
This can only be circumvented by using the vendor defined
usage and usage page, for which the events are reported in a
unified format. To activate this interface, we need to send a
a certain key on a certain endpoint, shown in:

https://github.com/nic3-14159/uclogic-new-init

Still this interface is opaque in that the report descritpor only
shows the length, not what the individual bits do.
Therefore we need to add two more devices, one for the pen and
one for the buttons. The first interface doesn't go away but
doesn't report anything either, since it's reports are translated
into the other two devices. I have called this original device
"VendorDevice".

Once all this is done, native support with the wacom driver
is achieved. Though since the wacom driver doesn't recognize
the IDs yet, we are in need of X config file like:

Section "InputClass"
Identifier "xppen wacom all"
MatchUSBID "28bd:0928"
Driver "wacom"
EndSection

That's all.

The thing is that the tablet reports the buttons as keyboard events.
This can only be circumvented by using the vendor defined
usage and usage page, for which the events are reported in a
unified format. To activate this interface, we need to send a
a certain key on a certain endpoint, shown in:

https://github.com/nic3-14159/uclogic-new-init

Still this interface is opaque in that the report descritpor only
shows the length, not what the individual bits do.
Therefore we need to add two more devices, one for the pen and
one for the buttons. The first interface doesn't go away but
doesn't report anything either, since it's reports are translated
into the other two devices. I have called this original device
"VendorDevice".

Once all this is done, native support with the wacom driver
is achieved. Though since the wacom driver doesn't recognize
the IDs yet, we are in need of X config file like:

Section "InputClass"
  Identifier "xppen wacom all"
  MatchUSBID "28bd:0928"
  Driver "wacom"
EndSection

That's all.
@nic3-14159
Copy link

Since a62702f has already been merged, this PR (mainly hid-uclogic-params.c) should probably be adapted to use code from that commit, as that commit already implements the new initialization procedure for these newer XP-Pen/Ugee tablets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants