DIGImend / digimend-kernel-drivers

DIGImend graphics tablet drivers for the Linux kernel
GNU General Public License v2.0
1.18k stars 175 forks source link

XP_Pen 13.3v2, almost everything works except for button 3 on stylus sends BTN_TOUCH when clicked. #204

Open DanielJoyce opened 6 years ago

DanielJoyce commented 6 years ago

That button appears to be sending BTN_TOUCH events along with button 1 ( the nib ). Could be a driver issue, or maybe a bad pen.

Hmm, going from the XP-Pen site, this might be intentional?

Everything else seems to work just fine.

DanielJoyce commented 5 years ago

You need to create a mapping file for gnome-ui to pick it up

Gist of what I am using

https://gist.github.com/DanielJoyce/84b9fb1780f82ed92766313d3d2292e3

Barracuda77 commented 5 years ago

@DanielJoyce Will try this. thanks a lot.

Barracuda77 commented 5 years ago

@DanielJoyce Hi, I have a question for you how did you get the scan codes in the last line for the .tablet file? Thanks a lot for your help.

fahrstuhl commented 5 years ago

Hi, I had the same problem and tried to fix it with hwdb remapping, but it didn't work for me at all.

As already noted in this issue, the second button on the stylus gets reported as eraser by the USB descriptor. I adapted a Digimend driver for my Artist 13.3 and changed the USB descriptor and the stylus buttons work perfectly now.

I wanted to go ahead and change the descriptor for the frame buttons, too, but couldn't figure out what the best change would be.

DanielJoyce commented 5 years ago

Will try when I get home. have you put in a PR?

DanielJoyce commented 5 years ago

Ahh, was wondering why some of my stuff broke when I reinstalled my laptop, forgot to install digimend. :D

fahrstuhl commented 5 years ago

I have not put in a PR yet. Back then I couldn't figure out what the frame buttons should be mapped to best and haven't touched it since. Currently I remap the frame buttons on the fly using evdevremapkeys instead of doing it in the driver.

DanielJoyce commented 5 years ago

Usually they should be handled by other parts of libwacom.

DanielJoyce commented 5 years ago

Something changed in libwacom and things don't work quite as well with that driver...

DanielJoyce commented 5 years ago

Yeah pad Switches no longer work, Ubuntu 19.04 based distro. Also tablet is now recognized as different devices including touch in their name, though touch is not supported. Will try taking new dumps....

DanielJoyce commented 5 years ago

Stylus now shows up in Wacom settings manager and pad setup says there is a pad but it refuses to load the template file.

Since so much of this worked out of the box last time with vanilla Wacom will try there first.

DanielJoyce commented 5 years ago

Ive come to th conclusion that none of these libraries do what I need. The wacom stuff and control panel assume only one config for all apps. It also seems very picky at device detection though everything seems to be there under evdev if I use that.

So I'm gonna investigate making my own tablet software like sc-controller, with an easy to set up flow, mapping keys per app, and uinput and other support.

fahrstuhl commented 5 years ago

I think the best way to go for general support of the 13.3 is for me to create a PR for the eraser fix and add a libwacom description of the tablet to get the buttons working, no change to the USB descriptor necessary.