iptsd icon indicating copy to clipboard operation
iptsd copied to clipboard

Disable Touch Input While Retaining Pen

Open matt-mich opened this issue 4 years ago • 2 comments

Hello, and first of all: Thank you so much for your work on this project!

Now, I was wondering if it was possible to disable touch inputs but retain pen input. This would solve a lot of the issues I've had with accidental touch inputs when drawing (Which I would agree are my fault).

If there isn't a way to easily ignore touch input, or if the system has a difficult time differentiating between the two, no worries. Just wanted to ask.

Thank you all again!

matt-mich avatar Feb 14 '21 19:02 matt-mich

You could try enabling the BlockOnPalm option. iptsd will then disable the touchscreen if a single palm is detected somewhere (default behaviour is to filter out the palms and forward everything else).

Put this into /etc/ipts.conf:

[Config]
BlockOnPalm = True

I know some apps like Xournal++ also have their own settings for disabling the touchscreen if the stylus is active.

StollD avatar Feb 15 '21 06:02 StollD

I'll add my advice here since I almost always leave touch input disabled and use the pen exclusively. If your desktop environment uses Xorg [1] you can run xinput list to get a list of all input devices (including IPTS pen and touch as separate inputs). You can disable a specific device with xinput disable <id> where the id is either the name of the device or the numeric id shown in the previous list. I've just set an alias in my bashrc to disable or enable touch whenever I want using this command and xinput enable <id> for the opposite effect.

[1] You can find out if you're using Xorg by checking if echo $DISPLAY has any output. The alternative is that you're using Wayland, in which case echo $WAYLAND_DISPLAY will give some output and the previous command likely will not. I'm not sure how to disable inputs on Wayland (I've only used Xorg), but this page seems to have some good info on the subject.

ls-r avatar Feb 28 '21 05:02 ls-r