Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Calibrating touchscreen monitor with xinerama enabled
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
logistiker
n00b
n00b


Joined: 16 Jun 2008
Posts: 28

PostPosted: Mon Dec 17, 2012 4:59 am    Post subject: Calibrating touchscreen monitor with xinerama enabled Reply with quote

Anyone know how you configure a second monitor which is a touchscreen with xinerama (i.e. second monitor is not a clone of the first monitor) enabled?

I have the touchscreen working and I am able to calibrate it with xinput_calibrator if I have the first monitor disabled. The touchscreen registers clicks where you tap the screen as expected. When I reenable the first monitor, the calibration is off. Tapping on the right of the touchscreen moves the arrow to where you tapped. If you drag the pointer from the right of the screen to the left, the arrow accelerates so that the arrow is no longer under my finger but to the left of it. If I tap the left of the touchscreen, the arrow is on the left side of the first monitor.

Is there a configuration in evdev perhaps that will limit touchscreen taps only on the touchscreen (second monitor) and not the first monitor?

Here's my calibration in xorg.conf:

Section "InputClass"
Identifier "calibration"
MatchProduct "Advanced Silicon S.A CoolTouch(TM) System"
Option "Calibration" "171 32800 400 33004"
EndSection

xinput_calibrator does not work with both monitors enabled. When you try to tap the calibration crosshairs, it registers in a different location (on the first monitor) and fails.
Back to top
View user's profile Send private message
logistiker
n00b
n00b


Joined: 16 Jun 2008
Posts: 28

PostPosted: Mon Dec 17, 2012 8:06 pm    Post subject: Reply with quote

I seem to have found the proper configuration with this:

xinput --map-to-output 10 VGA1

where 10 is the id of the touchscreen device (when calling just "xinput" and looking for the touchscreen device in the id list) and VGA1 is the monitor name listed in xrandr.

To make it persistent when starting X, I created an executable shell script:

#!/bin/sh
# Confine touchscreen area to its own screen when in using xinerama style monitor settings
xinput --map-to-output 10 VGA1

and placed it here: /etc/X11/xinit/xinitrc.d/99-xinput

So the taps register only on the touchscreen now but clicks are not possible because the cursor jumps to the right. Apparently there is a bug for this:

https://bugs.freedesktop.org/show_bug.cgi?id=56008
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum