This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Elan Touchscreen Pen second button

Tags: None
(comma "," separated)
panosk
Registered Member
Posts
2
Karma
0

Elan Touchscreen Pen second button

Thu Feb 16, 2017 6:34 pm
Hi!

I see there's a similar question currently on top of this sub-forum but is seems to by Huion specific. Instead I have a Dell Active Stylus 750-AAGN which I use with my Dell Inspiron 7000 series 2-in-1. The pen works very well with Krita 3.1.0, the whole experience is very much like drawing on paper. However, whereas the lower button works to pan the canvas, the upper button does nothing, and when I try to assign it to something under Canvas Input Settings it is detected as Left Button (same as if it weren't pressed). The lower button registers as Middle Button, so I assume the upper button should register as Right Button.

I apologize for my poor understanding of the subject, but digitizers as well as the kernel/X11 input subsystem is unknown territory to me, not to mention Krita internals.

Running the evtest command, I can see that the lower button triggers a BTN_STYLUS event (is this the correct terminology?) whereas the non-working upper button triggers a BTN_TOOL_RUBBER.

Where should I look next? Is it some reconfiguration kernel-side or X11-side or Krita-side that I have to do? My aim is to simply have the upper button open the circular menu, where I can select brushes etc, or failing that be assigned to a different brush (while pressed), such as an eraser.

Thanks, best regards, and congratulations on this awesome program!
panosk
Registered Member
Posts
2
Karma
0
Never mind. I remapped BTN_TOOL_RUBBER to BTN_STYLUS2 via a udev hwdb rule:

evdev:input:b0003v04F3p21D0*
KEYBOARD_KEY_d0045=332

I left a more detailed explanation as an answer at:

http://askubuntu.com/questions/724891/h ... ton/884416

I based my hwdb rule on the OP's attempts.

Looking at evdev.c, there are quite a few events similar to BTN_TOOL_RUBBER that do not trigger Left/Middle/Right events, so I was wondering how these are handled/meant to be handled in userspace apps?

Anyway, best regards!


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]