1*1ac719d1Swiz.\" $NetBSD: tpctl.8,v 1.5 2012/04/08 22:00:41 wiz Exp $ 29236a507Swiz.\" 3b8ce6e82Stakemura.\" Copyright (c) 2002 The NetBSD Foundation, Inc. 4b8ce6e82Stakemura.\" All rights reserved. 5b8ce6e82Stakemura.\" 6b8ce6e82Stakemura.\" Redistribution and use in source and binary forms, with or without 7b8ce6e82Stakemura.\" modification, are permitted provided that the following conditions 8b8ce6e82Stakemura.\" are met: 9b8ce6e82Stakemura.\" 1. Redistributions of source code must retain the above copyright 10b8ce6e82Stakemura.\" notice, this list of conditions and the following disclaimer. 11b8ce6e82Stakemura.\" 2. Redistributions in binary form must reproduce the above copyright 12b8ce6e82Stakemura.\" notice, this list of conditions and the following disclaimer in the 13b8ce6e82Stakemura.\" documentation and/or other materials provided with the distribution. 14b8ce6e82Stakemura.\" 15b8ce6e82Stakemura.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 16b8ce6e82Stakemura.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 17b8ce6e82Stakemura.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 18b8ce6e82Stakemura.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 19b8ce6e82Stakemura.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 20b8ce6e82Stakemura.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 21b8ce6e82Stakemura.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22b8ce6e82Stakemura.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23b8ce6e82Stakemura.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24b8ce6e82Stakemura.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25b8ce6e82Stakemura.\" POSSIBILITY OF SUCH DAMAGE. 26b8ce6e82Stakemura.\" 27b8ce6e82Stakemura.Dd August 25, 2002 28b8ce6e82Stakemura.Dt TPCTL 8 29b8ce6e82Stakemura.Os 30b8ce6e82Stakemura.Sh NAME 31b8ce6e82Stakemura.Nm tpctl 32b8ce6e82Stakemura.Nd touch panel calibration utility 33b8ce6e82Stakemura.Sh SYNOPSIS 34990562bfSwiz.Nm 35b8ce6e82Stakemura.Op Fl hnuv 36*1ac719d1Swiz.Op Fl D Ar dispdevname 37*1ac719d1Swiz.Op Fl d Ar devname 38*1ac719d1Swiz.Op Fl f Ar filename 39b8ce6e82Stakemura.Sh DESCRIPTION 40b8ce6e82Stakemura.Nm 419236a507Swizis a touch panel calibration utility. 42b8ce6e82Stakemura.Nm 439236a507Swizcalibrates a touch panel and saves and restores the calibration parameters 449236a507Swizinto/from a parameter database file. 45b8ce6e82Stakemura.Pp 46b8ce6e82StakemuraAvailable command-line flags are: 479236a507Swiz.Bl -tag -width dispdevnameXXXX -compact 48b8ce6e82Stakemura.It Fl D Ar dispdevname 49b8ce6e82StakemuraSpecify display device name. 50b8ce6e82Stakemura.It Fl d Ar devname 51b8ce6e82StakemuraSpecify touch panel device name. 52b8ce6e82Stakemura.It Fl f Ar filename 53b8ce6e82StakemuraSpecify alternate parameter database file name. 54b8ce6e82Stakemura.It Fl h 55b8ce6e82StakemuraPrint brief description. 56b8ce6e82Stakemura.It Fl n 57b8ce6e82StakemuraDo not change the parameter database file. 58b8ce6e82Stakemura.It Fl u 599236a507SwizForce calibration. 60b8ce6e82StakemuraWithout this flag, 61b8ce6e82Stakemura.Nm 629236a507Swizwon't do calibration if the database file already contains parameters 639236a507Swizfor the touch panel. 64b8ce6e82Stakemura.It Fl v 65b8ce6e82StakemuraVerbose mode. 66b8ce6e82Stakemura.El 67b8ce6e82Stakemura.Pp 689236a507SwizYou calibrate the touch panel the first time you run 69990562bfSwiz.Nm . 709236a507SwizIf you see a cross cursor on the screen, you should tap the center of 719236a507Swizthe cursor to calibrate the touch panel, or you can abort the 729236a507Swizcalibration with the 739236a507Swiz.Sq ESC 749236a507Swizkey. 75b8ce6e82StakemuraFive cursors will appear on the screen in turn. 769236a507SwizOnce calibration is done, 77b8ce6e82Stakemura.Nm 789236a507Swizsaves the calibration parameters into the database file and uses the saved 799236a507Swizparameters to calibrate the touch panel. 80b8ce6e82Stakemura.Pp 81b8ce6e82StakemuraYou can run 82b8ce6e82Stakemura.Nm 83b8ce6e82Stakemuraautomatically with 84b8ce6e82Stakemura.Pa /etc/rc.d/tpctl . 85b8ce6e82Stakemura.Sh FILES 86b8ce6e82Stakemura.Bl -tag -width /etc/tpctl.dat -compact 87b8ce6e82Stakemura.It Pa /etc/tpctl.dat 88b8ce6e82StakemuraThe default calibration parameter database file. 89b8ce6e82StakemuraThe 90b8ce6e82Stakemura.Fl f 91b8ce6e82Stakemuraflag may be used to specify an alternate database file name. 92b8ce6e82Stakemura.Nm 939236a507Swizwill create an empty database file if it doesn't exist. 94b8ce6e82Stakemura.It Pa /dev/ttyE0 959236a507SwizThe default display device, which is used to display the cursor during 969236a507Swizcalibration. 97b8ce6e82StakemuraThe 98b8ce6e82Stakemura.Fl D 99b8ce6e82Stakemuraflag may be used to specify an alternate display device name. 1009236a507SwizThe display device must provide the 101b8ce6e82Stakemura.Sq hpcfb 1029236a507Swizinterface as defined in 103b8ce6e82Stakemura.Pa /usr/include/dev/hpc/hpcfbio.h . 104b8ce6e82Stakemura.It Pa /dev/wsmux0 105b8ce6e82StakemuraThe default touch panel device. 106b8ce6e82StakemuraThe 107b8ce6e82Stakemura.Fl d 108b8ce6e82Stakemuraflag may be used to specify an alternate touch panel device name. 109b8ce6e82Stakemura.El 110b8ce6e82Stakemura.Sh SEE ALSO 111b8ce6e82Stakemura.Xr rc.conf 5 112b8ce6e82Stakemura.Sh BUGS 113b8ce6e82Stakemura.Nm 1149236a507Swizisn't available on all ports because it requires a display device which 1159236a507Swizprovides the 116b8ce6e82Stakemura.Sq hpcfb 117b8ce6e82Stakemurainterface. 118