DIGImend / digimend-kernel-drivers

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

Strange stylus button events with "Huion New 1060 Plus" #648

Open real-or-random opened 1 year ago

real-or-random commented 1 year ago

This is with "Huion New 1060 Plus" (256c:006e). (In fact mine is branded as Gaomon M160K but these should be equivalent.)

Just checked this with evtest on the pen device:

When I touch the pad without pressing a button on the pen, I get BTN_TOUCH 1. When I untouch it again, I get BTN_TOUCH 0. I think this is expected.

But is the following expected?

  1. When I press and hold a button on the pen, I get BTN_STYLUS 1 (or same for BTN_STYLUS2)
  2. When I touch the pad (while holding the button) , _I get BTN_STYLUS 0 but no BTN_TOUCH event_
  3. When I untouch the pad (while holding the button), _I get BTN_STYLUS 1 again but no BTN_TOUCH event_
  4. When I release the button, I get BTN_STYLUS 0again.

Alternative step 3:

  1. When I release the button, I get BTN_TOUCH 1 again.

This was probably the root cause of a problem that I encountered when using xournalpp (https://github.com/xournalpp/xournalpp/issues/3948#issuecomment-1372339622)

mensch72 commented 1 year ago

Hi, did you solve this yet? I have a possibly similar problem, only that I get BTN_TOUCH 1 as soon as the stylus is recognized by the pad at all, at several centimeters distance from the pad, without touching it at all. So this EV_KEY event is triggered incorrectly.