2011-07-16 11:32:24 -06:00
|
|
|
.\" $OpenBSD: xtsscale.1,v 1.15 2011/07/16 17:32:24 matthieu Exp $
|
2007-05-20 08:43:12 -06:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2007 Robert Nagy <robert@openbsd.org>
|
2009-11-26 05:01:38 -07:00
|
|
|
.\" Copyright (c) 2009 Matthieu Herrb <matthieu@herrb.eu>
|
2007-05-20 08:43:12 -06:00
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE OPENBSD PROJECT AND CONTRIBUTORS
|
|
|
|
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
.\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
.\" A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENBSD
|
|
|
|
.\" PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
.\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
.\" OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
2011-07-16 11:21:41 -06:00
|
|
|
.Dd $Mdocdate: July 16 2011 $
|
2007-05-20 08:43:12 -06:00
|
|
|
.Dt XTSSCALE 1
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm xtsscale
|
2011-07-16 11:21:41 -06:00
|
|
|
.Nd X touch screen calibration tool
|
2007-05-20 08:43:12 -06:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm xtsscale
|
|
|
|
.Bk -words
|
2011-07-16 11:27:52 -06:00
|
|
|
.Op Fl c
|
2010-12-05 23:49:47 -07:00
|
|
|
.Op Fl D Ar display
|
2010-01-22 00:47:54 -07:00
|
|
|
.Op Fl d Ar device
|
|
|
|
.Op Fl o Ar output
|
2010-03-23 14:27:42 -06:00
|
|
|
.Op Fl v
|
2007-05-20 08:43:12 -06:00
|
|
|
.Ek
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
|
|
|
is used interactively to calculate both the scaling and offset values which
|
|
|
|
will make the pointer act at the indicated location on the screen.
|
|
|
|
.Pp
|
2010-01-22 00:47:54 -07:00
|
|
|
The following options can be used:
|
|
|
|
.Bl -tag -width Ds
|
2011-07-16 11:27:52 -06:00
|
|
|
.It Fl c
|
|
|
|
keep the X cursor visible during calibration.
|
|
|
|
Useful for indirect absolute devices like tablets.
|
2010-12-05 23:49:47 -07:00
|
|
|
.It Fl D Ar display
|
|
|
|
specify the X11 display to use.
|
2011-07-16 11:21:41 -06:00
|
|
|
.It Fl d Ar device
|
|
|
|
defines the name or numerical identifier of the X Input extension device
|
2009-11-25 11:30:13 -07:00
|
|
|
to calibrate.
|
|
|
|
Use
|
|
|
|
.Pp
|
2010-09-14 00:20:55 -06:00
|
|
|
.Dl $ xinput --list
|
2009-11-25 11:30:13 -07:00
|
|
|
.Pp
|
|
|
|
to figure out the actual name for the X configuration.
|
|
|
|
.Ar device
|
2011-07-16 11:32:24 -06:00
|
|
|
can be omitted if there is only one X extension pointer with
|
|
|
|
calibration properties in the system.
|
2010-01-22 00:47:54 -07:00
|
|
|
.It Fl o Ar output
|
|
|
|
specifies the XRandR output to with the touch screen is connected.
|
|
|
|
If omitted
|
|
|
|
.Nm
|
|
|
|
will use all heads in multi-head configurations, which is probably
|
|
|
|
not what is expected.
|
|
|
|
Use
|
|
|
|
.Pp
|
2010-09-14 00:20:55 -06:00
|
|
|
.Dl $ xrandr
|
2010-01-22 00:47:54 -07:00
|
|
|
.Pp
|
|
|
|
to figure out the names of the outputs.
|
2010-03-23 14:27:42 -06:00
|
|
|
.It Fl v
|
|
|
|
specifies that
|
|
|
|
.Nm
|
2011-07-16 11:30:17 -06:00
|
|
|
will be verbose, outputting various information, including the
|
|
|
|
raw coordinate values produced, mostly for debugging purposes.
|
2010-01-22 00:47:54 -07:00
|
|
|
.El
|
2009-11-25 11:30:13 -07:00
|
|
|
.Pp
|
2007-05-20 08:43:12 -06:00
|
|
|
When good deviations are calculated from the selections made at these
|
|
|
|
points,
|
|
|
|
.Nm
|
|
|
|
will exit and provide on standard output a result like the following:
|
|
|
|
.Pp
|
2007-08-31 15:14:04 -06:00
|
|
|
.Dl mouse.scale=200,3400,312,3672,0,1024,768
|
2007-05-20 08:43:12 -06:00
|
|
|
.Pp
|
2007-05-22 03:43:22 -06:00
|
|
|
This result should be placed into
|
|
|
|
.Pa /etc/wsconsctl.conf
|
2011-07-16 11:21:41 -06:00
|
|
|
for further use.
|
2009-11-26 04:02:35 -07:00
|
|
|
The new calibration is automatically used by the X server.
|
2011-07-16 11:21:41 -06:00
|
|
|
The calibration process can be interrupted at any time using the ESC
|
2009-11-26 04:02:35 -07:00
|
|
|
key.
|
|
|
|
In this case the current screen calibration data will not be modified.
|
2007-08-31 16:02:51 -06:00
|
|
|
.Sh NOTES
|
2011-07-16 11:21:41 -06:00
|
|
|
To use
|
2007-08-31 16:02:51 -06:00
|
|
|
.Nm
|
2011-07-16 11:30:17 -06:00
|
|
|
the mode of the input device should be set to raw in the
|
2007-08-31 16:02:51 -06:00
|
|
|
.Pa /etc/X11/xorg.conf
|
2011-07-16 11:21:41 -06:00
|
|
|
X configuration file. See
|
2009-11-25 11:30:13 -07:00
|
|
|
.Xr ws 4
|
|
|
|
for details.
|
2007-08-31 16:02:51 -06:00
|
|
|
.Pp
|
|
|
|
.Pa /etc/wsconsctl.conf
|
|
|
|
cannot currently be used to set the calibration data of a device
|
|
|
|
that is not the first device. (
|
|
|
|
.Pa /dev/wsmouse0
|
|
|
|
)
|
2007-05-20 08:43:12 -06:00
|
|
|
.Sh SEE ALSO
|
2009-11-25 11:30:13 -07:00
|
|
|
.Xr xinput 1 ,
|
2010-01-22 00:47:54 -07:00
|
|
|
.Xr xrandr 1 ,
|
2010-09-14 00:20:55 -06:00
|
|
|
.Xr uhts 4 ,
|
2007-05-20 08:43:12 -06:00
|
|
|
.Xr uts 4 ,
|
|
|
|
.Xr wscons 4 ,
|
2009-11-25 11:30:13 -07:00
|
|
|
.Xr ws 4 ,
|
2007-05-20 08:43:12 -06:00
|
|
|
.Xr wsconsctl 8 ,
|
|
|
|
.Xr X 7
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
2011-07-16 11:21:41 -06:00
|
|
|
.Nm
|
2007-05-20 08:43:12 -06:00
|
|
|
command appeared in
|
2011-07-16 11:21:41 -06:00
|
|
|
.Ox 4.2 .
|