Calibration for touchscreen on X61 running Ubuntu 10.04 (Lucid Lynx)

Submitted by ormiret on Tue, 18/05/2010 - 12:07.

First part of calibrating the touchscreen is getting the X and Y values the touchscreen is returning for the top left and bottom right of the screen. This is done by running

xinput test 'Serial Wacom Tablet touch' 

Then touching those two points of the screen and noting the output. a[0] is the x value and a[1] the y value.

For my screen the top left comes up as (48,86) and the bottom right as (931,946).

Next is to tell the wacom driver that this is where the screen is:

xsetwacom --set 'Serial Wacom Tablet touch' 'TopX' '48'
xsetwacom --set 'Serial Wacom Tablet touch' 'TopY' '86'
xsetwacom --set 'Serial Wacom Tablet touch' 'BottomX' '931'
xsetwacom --set 'Serial Wacom Tablet touch' 'BottomY' '946'

If you have a system different to mine then the device you want to calibrate might not be called 'Serial Wacom Tablet touch' in which case substitute the name of your actual device wherever I used that. You can get a list of the devices from xsetwacom:

xsetwacom --list 

This works on Ubuntu 10.04 (Lucid), it might or might not work in other versions and distros. Things have been changing about how touchscreens are handled.

( categories: )