Touchscreen problems on dual head fedora

Today had an interesting issue that my colleague faced. He has touch screen Sony Vaio and normal, non-touch screen monitor attached for dual head. While he was trying to work with touch screen and special pen, then cursor was going weird.

The solution here is to limit the touch screen input to touch screen area only and it is done with xinput command. But keep in mind that the ID’s for input devices in xinput are different after each boot, so if you wish to have some kind of a script to do the job, make sure you work with correct IDs.

As we were dealing with N-trig DuoSense input device, I wrote a short script that can be put somewhere and then enabled in Start Up Applications for Gnome/MATE/Whatever.

The script is as follows (adjust the input/output devs as per your needs by checking xinput –list and xrandr):



for i in xinput --list | grep $INPUT_DEV | sed 's/.*id=\([0-9]\+\).*/\1/g';
xinput --map-to-output $i $OUTPUT_DEV;

1 thought on “Touchscreen problems on dual head fedora”

  1. I thought the n-trig was in the linux kernel it shows up in lsmod as hid_ntrig.I have a feeling all the sluggishness, missed touches and phantom touches are a result of the poor usb implementation on raspi.When I plug my screen into a regular linux computer with proper usb support it works flawlessly. Apart from multitouch that is. Also found that calibrating the screen using xinput_calibrator helped a lot with phantom clicks. It’s not in the repo’s, you have to compile it yourself but it’s relatively easy thing to do. Have you got multitouch to work in any way?

Leave a Reply