Closed MatisHudon closed 5 years ago
Hello @MatisHudon
Let's first see if your system succesfully writes mouse events.
I created a very simple script that should work in any system: test-evdev.py (I'm thinking on integrating it in the main script, but for now...)
If you run it, it should print the letter 'a' to the console, move the mouse cursor to the top left corner (100x100px) and open the right button menu.
You can follow the following instructions:
wget https://gist.githubusercontent.com/joseluis/ace22ea89d22970d17519cd10508d1bb/raw/c154c9eda7901c2599314083c07ba6d5dbe43a73/test-evdev.py -O test-evdev.py
chmod +x test-evdev.py
sudo ./test-evdev.py
If that doesn't work, the problem wont be in the script, but in your system.
Hey,
Thanks for your help. I ran your test script and: "a" was printed and the right button menu was opened however the mouse wasn't moved to the top left corner which seems to be coherent with the problem described above.
Somehow only mouse moves are not successfully written..
Thanks again,
Good to know. Then my recommendation for you is to try it in a new OS installation. Because I wouldn't know how to debug what's wrong there... Feel free to update/reopen if you get some update.
Best of luck
Hello,
I managed to solve the issue, now the driver is working as expected I guess. So I did not re-install the OS. The issue was that I already had a older version of evdev installed for python3 and somehow the pip3 package was not downloading the last version of evdev. I had to:
sudo pip3 install --no-cache-dir --upgrade evdev
to force the upgrade of evdev.
This is a known pip issue see https://stackoverflow.com/questions/14617136/why-is-pip-installing-an-old-version-of-my-package/15189799 for more details.
After that all worked fine even the pressure sensitivity in Krita. Thanks for the help and the good work.
(I also updated/upgraded all my packages)
Very good to know! Thanks for the update and for the detailed explanation, it will be for sure of help for others.
Hi!
Thanks for all the work. I am on ubuntu 16.04 and I have a Huion GT-220 v2. I followed all the instructions carefully. When I launch the driver all seem to work except that the pen does not make the mouse move at all. The click seem to work though. I ran the debug script and here is my output:
Also I need to mention that I had to create the xorg.conf.d folder in /etc/X11/. My configuration is with 3 screens although I tried only with the Huion as main screen and had the same result.
Thanks for your help!