joseluis / huion-linux-drivers

Linux user-space drivers for Huion Graphic Tablets
MIT License
168 stars 95 forks source link

A few enhancements #53

Open pmetras opened 4 years ago

pmetras commented 4 years ago

This merge requests adds a few enhancements:

CNB-Kevin commented 4 years ago

There is an issue where if you turn off the driver (I run it in a terminal and use ctrl+C while I'm testing things) if multi-cursor is enabled (which it is by default). Leftover cursors can stay on screen or appear/disappear.

It could be user error on my part because I turn it off, but it's also caused by the lack of cleanup at the end of the program, which is also a thing on the main branch.

pmetras commented 4 years ago

Yes, multi-cursor on X is not reliable. There a bit of cleanup in the code when the driver is started again but it would be better to do it at the end of program, if there were a cleanup procedure before exiting.

pmetras commented 4 years ago

I finally had the opportunity to test the clean up code for multi-cursor (the tablet is 6000 km from my computer!). Leftover cursors when the driver is interrupted shouldn't remain on the screen and X should be more stable now.

slagatoras commented 4 years ago

hey! first of all thank you for this miracle! everything is ok except i still have the residual pointers in my tablet. also while drawing i get a round semi transparent box around the cursor. and i have two residuals cursors on my tablet after i end the script that keep flickering. aaand while it works there is always one inactive cursor on the side of the tablet. so i have one moving with the mouse.one with the pen and one that just sits there. also even if i set multi cursor to false its still enabled oh sorry 18.04 version!

pmetras commented 4 years ago

My daughter who owns the tablet told me she has the same behaviour from time to time. She told me that there could be a conflict with Firefox too but I don't have the details. And I can't debug, only when I go and visit my daughter far from home... The multi-pointer part is really a hack. I hope a temporary one before we have a better driver.

slagatoras commented 4 years ago

i see well even like that its still great!! but.. sorry really. i upgraded to 20.04 and i have this issue while running the code.would you happen to have any ideas as to why??i'll try to take a look at it tomorow since its past midnight here but i was just wondering!the problem is that the pointer is not directly folowing the pen unless i reach the far right of the screen. Screenshot from 2020-04-25 00-31-33 edit: it coudl just needed a reboot as now it works flawless . i did change the display settings using LXRandR but i dont know if its a coincidense! in any case i'll look into it a bit more tomorow

pmetras commented 4 years ago

Could it be that the calibration of the tablet is not correct? Or perhaps this pull request https://github.com/joseluis/huion-linux-drivers/pull/62 is correcting your issue?