3

I am using opensuse desktop with two screens, top and bottom. Only the bottom screen is touchscreen, which is USB touchscreen. Both monitors are used as a single screen. I tried to configure the touch screen via xorg.conf file using the following parameters for InputDevice:

Section "InputDevice"
  Driver       "evdev"
  Identifier   "touchscreen"
  Option       "Device" "/dev/input/event3"
  Option       "Name" "Kortek touch screen"
  #Option      "GrabDevice" "true"
  Option       "InvertY" "true"
  Option       "Calibration 0 4095 0 4095"
  Option       "Emulate3Buttons" "true"
  Option       "Emulate3Timeout"     "50"
EndSection

Using this I can see the touch events as the mouse cursor moves. But the Y coordinates are not correct. x cooridates are fine. But Y coordinates pan upto the top-edge of the top screen, while I move my finder to the top-edge of bottom screen.

Now, after reading through various articles on internet, I came across this website : https://wiki.archlinux.org/index.php/Calibrating_Touchscreen It talks about "Transformation Matrix". I tried to use it but Y coordinates are still wrong.

I noticed that when I plug off the top screen and re-enter the x window desktop, after logging out. The touch coordinates are correct.

So, I want to know what is wrong with my configuration.

I also noticed that the calibration coordinates returned from "xinput calibrator" are 0 4095 0 4095 , which are MinX,MaxX,MinY,MaxY. But my real screen resolution is 1920x1080(for each monitors).

  • If you remove the invertY option how it behaves? more over provide output of xinput list-props screenId – George Vasiliou Dec 30 '16 at 5:00
1

You can use xinput_calibrator to calibrate the touchscreen.

0

Quick answer:

xinput --map-to-output deviceid screenname

Also gnome and kde have GUIs for that.

I also noticed that the calibration coordinates returned from "xinput calibrator" are 0 4095 0 4095 , which are MinX,MaxX,MinY,MaxY. But my real screen resolution is 1920x1080(for each monitors).

As far as the computer is concerned a touchscreen is not one device but a screen and a separate touchpad that just happens to be located at the same physical place. Think of a wacom (pen) drawing tablet and separate large screens which might have different aspect ratio.Then you want your pen movement to correspond to an appropriate stroke on (part of) the screen.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.