kurikaesu / userspace-tablet-driver-daemon

Linux device drivers for non-wacom (XP-Pen, Huion, Gaomon) graphics tablets and pen displays
GNU General Public License v3.0
65 stars 16 forks source link

Support for XP-Pen Artist 16 Pro #30

Closed folliehiyuki closed 3 years ago

folliehiyuki commented 3 years ago

I have this model: https://www.xp-pen.com/product/61.html and would love to have it supported.

Can you provide information on what I need to do to make any progress?

For context, I use Sway, so my ability is limited to only libinput.

folliehiyuki commented 3 years ago

Some basic information:

kurikaesu commented 3 years ago

Thanks for looking at this! This is one of the tablets that I was considering to purchase in the future but if you are able to make it work then it is a major relief on my part.

If it is similar to the 22E pro then you can mostly copy and paste the 22e code and remove the right hand side shortcut keys. Once cloned class is in place, you would add an instance of it here: https://github.com/kurikaesu/userspace-tablet-driver-daemon/blob/main/src/xp_pen_handler.cpp#L45

After this, compiling it and running it should be the only thing necessary to get it running. Feel free to open up a pull request early with your changes if you'd like me to look over it in case things don't work exactly.

kurikaesu commented 3 years ago

Before closing this off we can use this issue to troubleshoot the X11 apps not working for you

folliehiyuki commented 3 years ago

It is a bug in XWayland, and not a driver issue. Since I already figured it out, closing.

folliehiyuki commented 3 years ago

@kurikaesu 1 last question though. How can I properly test tilting?

kurikaesu commented 3 years ago

If you want to test whether the driver is sending tilt values then you can use the libinput utility like: libinput record. Picking the non-pad device and moving the stylus around at angles should show you tilt values as long as it is valid.

Otherwise if you are using something like Krita then you would need to test with a brush that has tilt enabled. I don't really use tilt much myself so I can't tell you which brush off the top of my head.