linux-surface / iptsd

Userspace daemon for Intel Precise Touch & Stylus
GNU General Public License v2.0
91 stars 45 forks source link

DisableOnStylus does not disable all touch inputs #166

Open sound-friend opened 1 month ago

sound-friend commented 1 month ago

Hey all! Just got a SP7, installed Arch (EndeavourOS) with the linux-surface kernel, as well as iptsd for note taking. It seems that I'm having trouble with palm rejection. I checked both here and the linux-surface issues, and read there was two things I could fix this:

  1. Calibrate iptsd. I have done this twice and while it made a difference, it was really perfect, and
  2. Set DisableOnStylus to true.

I've set option 2 to true, however it still seems like it's picking up on occasional touch input. Originally I thought it was just my palm, but I've also tested this with the setup described below: I used my left hand (I'm left handed) to draw on the screen without that hand touching. With my right hand, I tapped the screen repeatedly. Below is the results of my tests. This was one constant line of drawing. image I've checked other issues and it doesn't seem like anyone else has this exact same issues, so I'm wondering if anyone knows how to fix this.

For refernce, the device is a Surface Pro 7 with an i3 and 4GB RAM. The pen I am using is a Wacom Bamboo Ink (although I'm getting a Surface Pen soon). I am using GNOME 46 and kernel 6.9.9 (arch surface kernel). Let me know what else you need!

sound-friend commented 1 month ago

After some further testing, it seems to mostly happen when lots of pressure is applied to the screen (hence why a palm would make it happen).

sound-friend commented 1 month ago

Did some more testing. Set the touch's disabled to true and ran the same test, which came out to the same result above. Is there any way I would be able to figure out what sort of input is happening at that time?

Ramen-LadyHKG commented 1 month ago

I'd similar experience on my Surface Pro 5 running Fedora Gnome

sound-friend commented 1 month ago

just received the official surface pen and can confirm that it happens with that as well. in the meantime im rocking a latitude 5290 which has its palm rejection working flawlessly out of the box. ill keep the surface around for support however

ECO1AI commented 1 month ago

it seems for some reasons config file /etc/iptsd.conf is ignored by IPTSD.

in my case, tried : disable touch=true DisableOnStylus = true DisableOnPalm = true

there is touch, and there is touch with stylus and palm

sudo journalctl -p 3 -xb looks good and so dmesg

the only issue that i see is:

ithc 0000:00:10.6: invalid dma rx data! channel 1, buffer 6, size 641: 03 00 00 00 d0 07 00 00 00 00 00 00 01 00 00 0>
 ithc 0000:00:10.6: DMA RX timeout/error (try decreasing activeltr/idleltr if this happens frequently)

after running sudo journalctl -p 3 -x this could be due to TLP

no indication of an error related to ignoring config file