-
Notifications
You must be signed in to change notification settings - Fork 7
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
Pen not detected -XP-Pen Artist 22E Pro #18
Comments
Does the pen work before you run the daemon? Does it stop working after running the daemon? |
Neither before or after. |
With the daemon running, could you in a terminal do:
It should list a bunch of devices that you can "test". Pick the Pen Tablet device. It should be labelled XP-Pen instead of Ugee. If it says something like Ugee instead of XP-Pen then there is a different problem altogether. Once it's done spitting out information, try using the pen on the screen and see if it is emitting messages like EV_ABS etc. |
$ sudo evtest |
You will need to install evtest with |
Thanks. /dev/input/event5: XP-Pen Artist 22E Pro I selected both 5 and 6 and the pen is still not working. Input driver version is 1.0.1 |
There shouldn't be two of the exact same device showing up. Can you check to see if you are accidentally running the driver twice?
|
$ ps auxww | grep daemon |
In System Activity there appears to be only one. |
Ok, looks like only one instance is running. If you stop the driver daemon then run |
ok, so I got some different options: dev/input/event23: XP-PEN Artist22E Pro Stylus I tried all but still not pen detection. ; / |
Select the device event number [0-24]: 23 |
Odd that the device is able to display its proper name. Had to check to see if they had merged in my kernel code but that doesn't seem to be the case just yet: https://lore.kernel.org/linux-input/2068502.VLH7GnMWUR@adrastea/T/#ma508e0882c4d8b12bb520c11de73d7e84138f065 There is a bug in the daemon code that is causing the "Pad" to not be named properly which I will fix shortly. This does not fix your issue yet though. In order to debug this a bit further, you'll need to get some of the raw USB dumps by copying these commented out lines: And placing them just above this line: After compiling the code and running it, trying to draw on the tablet surface will cause the driver to start spitting out raw message dumps. Could you please see if it is dumping those messages and paste a small snippet of them here if possible? |
Ok. |
It doesn't exist on the filesystem if you use the debian package. You will need to clone it directly from the Github repository. Follow the instructions here: https://github.com/kurikaesu/userspace-tablet-driver-daemon#building |
Sorry - to clarify, will I need to add the lines before I cmake? Do the lines need to be un-commented? Remove the // ? |
You can run cmake first. Each time you make a change to the code, you'll just need to run You are also correct that you just need to remove the After the code has successfully built with |
ok |
Is this error an issue? make |
At the top of artist_22e_pro.cpp, just above this line: https://github.com/kurikaesu/userspace-tablet-driver-daemon/blob/main/src/artist_22e_pro.cpp#L19 Add:
This should hopefully be the only thing missing. |
$ ./userspace_tablet_driver_daemon |
Keep moving the stylus around on the tablet. It should spit out more data transfers. |
Should these be in the terminal or elsewhere? |
In the terminal itself. |
Nothing spitting out except the above. |
Sorry, my keyboard was playing up. New batteries now! |
If there is no other messages than that first then the problem is likely outside of this driver's code. Does the display tablet work on other OS? Do the official XP-Pen drivers for Linux work with it? |
I do not have any other OS's to test on. The official XP-Pen drivers were always problematic/flaky and took forever to get working each session - hence trying yours! |
Thank you for the time spent on this! Much appreciated! |
I unfortunately don't own or have access to an Artist 22E Pro so I can't further debug what is going on here but from what we've teased out of the device so far, it looks like there is a problem with either the device itself or the USB cables that are being used. For the other XP-Pen devices that I do have like the Innovator 16, the changes we've made to the code would have had the USB messages absolutely filling the terminal with data transfer lines. If the official XP-Pen drivers are also being weird, then it just reinforces that idea to me. The only other way to confirm is to try the device on a different OS & preferably different computer altogether. If it fails on another system then you may need to look into getting the tablet repaired if not replaced. I'm sorry that I can't offer you much more assistance. |
Thanks! |
I have now managed to get the config gui to launch - but now the pen is no longer detected!
I have all this going on:
$ userspace_tablet_driver_daemon
Listening on socket /home/anarcho/.local/var/run/userspace_tablet_driver_daemon.sock
xp_pen_handler initialized
huion_handler initialized
Handling XP-Pen Artist 22E Pro
Setup completed on interface 0
Setup completed on interface 1
Device: XP-Pen Artist 22E Pro - Probed maxWidth: (47663) maxHeight: (26809) resolution: (2540)
Attached to interface 2
Sending init key on endpont 3
Setup completed on interface 2
Set up config for device 2315: (XP-Pen Artist 22E Pro)
$ ./gradlew run
Starting a Gradle Daemon (subsequent builds will be faster)
Operating System: Kubuntu 22.10
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.6
Kernel Version: 5.19.0-1017-lowlatency (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6700 CPU @ 3.40GHz
Memory: 31.2 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 530
Manufacturer: Dell Inc.
Product Name: Precision 5720 AIO
The text was updated successfully, but these errors were encountered: