-
Notifications
You must be signed in to change notification settings - Fork 173
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
UC-Logic XP-Pen Artist 22HD support #73
base: master
Are you sure you want to change the base?
Conversation
Thank you very much, this looks clean and simple! I'd like to cleanup the report descriptors a little, but otherwise I think it is good to go. Did you try running uclogic-probe on this? Has it produced anything? |
Hi, if you need testing I might help --have one of these devices. |
So, running uclogic-probe on the tablet results in: Also, I noticed that for the pen to be mapped properly (xinput map-to-output etc...) to the monitor it needs to be initially connected with the cable, at that point becomes available ad a pointer device --without connection, it still works but it's seen as a keyboard and can't be mapped... I'll try to solve, if that's a problem (not sure it is: once it's mapped it can be disconnected), but I really can't guarantee. |
Hi @miharenthas, thanks for stepping up to testing this. Given that the tablet responds to uclogic-probe (you can decode the output with uclogic-decode), we might be able to make the driver simpler. Could you please run |
Hi @miharenthas, @spbnick, sorry for my "silence", I was on holiday and without internet connection, @miharenthas you are welcome and thank you for stepping in btw. I think I can find a bit of time to do some testing in the following days, one of the thing I have a feeling needs some improvement is the sensitivity, it seems to me it's not that accurate, I saw in the code that it is managed in a specific way replacing some part of the descriptor, but I was not confident enough to play with it, and of course what @miharenthas describes needs a fix. I'll be back as soon as I've collected some more information and data |
@abisaro, that must have been a good holiday, if you didn't have a connection :) Could you try enabling your tablet same as others, but without enabling the frame buttons, as it doesn't have any? We might be able to make it work without adding a custom report descriptor. Make sure you're enabling the right interface, though. |
@spbnick ahah, yes, it has been a good holiday, from time to time I visit my father who has no internet, and apart from enjoying my time with him I discovered that I really enjoy disconnecting myself for some days, I think we all should do it at least once or twice per year...
the output from lsusb is this:
this is the dmesg output for the uclogic driver at boot:
and this is from Xorg.0.log:
maybe it can help you, in the meanwhile I will see to collect some data using uclogic-probe and usbhid-dump |
Hi, sorry for the long silence: I was on the way and didn't have the device with me. So, attached you can find the lsusb -v -d 5543:0047 and what xinput says. BTW: I can confirm that Gimp does see all the devices (four in total). The good one is the Pen Pen (0). But I don't feel like the sensitivity is off or anything: everything seems to work flawlessly here and with the expected dynamics. |
@abisaro Yeah, disconnecting is good for you. Did that by going backpacking for three days with my family this summer. The grayed-out entries in the GIMP device dialog is saved settings for previously connected devices. You can remove them by pressing the little trashcan button below the list. Thank you for the dumps, I just edited your comment a little, so they would be formatted properly. |
@miharenthas, thank you! Hmm, curious that you got it working just like that. Sorry, I made a mistake in my instructions, and I actually need the output of |
Hi @spbnick,
I'm not really sure if this is what you hoped for. |
Thank you @miharenthas. The usbhid-dump command you executed was what I asked. However, could you please also do a few strokes with the pen after starting it? Then it will produce input report stream which I'm interested in. I understand. Thank you for finding time to do this. |
Hi, after a veeery long silence, here I am again. Attached you can find two files with the dumps of me moving the pen around a) just hovering and updating the position and b) (almost) just pressing it into the monitor, to generate pressure output. This weekend I have time to do this, so feel free to ask all the questions that pop into your mind! |
Hi, is this pull request still alive? Thanks! P.S.: the merge conflict should be very easy to solve: I did it on a branch of mine and it's just matter to move some code around. |
Everyone involved with this PR, you're welcome to join the new #DIGImend channel on irc.freenode.net and discuss this PR, other issues and help each other! Come and say "Hi!" |
This is an initial support for XP-Pen Artist 22HD, it needs someimprovement and rework for sure, but the basic is there, including pressure sensitivity