1995-01-07 14:17:22 +00:00
|
|
|
.\" sgsc(1) - manual page for the `gsc' scanner device driver utility
|
|
|
|
.\"
|
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1995 Gunther Schadow. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" 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.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by Gunther Schadow.
|
|
|
|
.\" 4. The name of the author may not be used to endorse or promote products
|
|
|
|
.\" derived from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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.
|
1997-10-15 06:42:28 +00:00
|
|
|
.Dd January 6, 1995
|
|
|
|
.Dt SGSC 1
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm sgsc
|
|
|
|
.Nd set the options of the gsc scanner device
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm sgsc
|
|
|
|
.Op Fl sq
|
|
|
|
.Op Fl b Ar len
|
|
|
|
.Op Fl f Ar file
|
|
|
|
.Op Fl h Ar height
|
|
|
|
.Op Fl r Ar resolution
|
|
|
|
.Op Fl t Ar timeout
|
|
|
|
.Op Fl w Ar width
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility provides shell level access to the ioctl
|
1995-01-07 14:17:22 +00:00
|
|
|
requests served by the handy scanner device driver gsc. Please see
|
1997-10-15 06:42:28 +00:00
|
|
|
.Xr gsc 4
|
|
|
|
for the exact meaning of the requests. Generally they modify
|
|
|
|
the output and behaviour of the gsc scanner device. When
|
|
|
|
.Nm
|
|
|
|
is called with no option only the current settings are reported.
|
|
|
|
.Sh OPTIONS
|
|
|
|
The following options are available:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Fl s Ar [GSC_SRESSW]
|
1995-01-07 14:17:22 +00:00
|
|
|
Set the scanner with the values of the resolution selector switch.
|
1997-10-15 06:42:28 +00:00
|
|
|
.It Fl q
|
1997-09-13 16:01:53 +00:00
|
|
|
Operate in quiet mode, i.e. do not report any of the current settings.
|
1995-01-07 14:17:22 +00:00
|
|
|
Normally the parameters are shown after the modifications have been
|
|
|
|
performed.
|
1997-10-15 06:42:28 +00:00
|
|
|
.It Fl f Ar file
|
1995-01-07 14:17:22 +00:00
|
|
|
Operate on a different scanner device node given by filename. Note
|
|
|
|
that even though there may exist more than one node of scanner device
|
|
|
|
several of them will refer the same device unit. The modifications are
|
|
|
|
performed od the unit regardless of the device node by which it is
|
|
|
|
accessed.
|
1997-10-15 06:42:28 +00:00
|
|
|
.It Fl r Ar resolution [GSC_SRES]
|
1995-01-07 14:17:22 +00:00
|
|
|
Set the resolution in dpi.
|
1997-10-15 06:42:28 +00:00
|
|
|
.It Fl w Ar width [GSC_SWIDHT]
|
1995-01-07 14:17:22 +00:00
|
|
|
Set the width of the bitmap in pixels.
|
1997-10-15 06:42:28 +00:00
|
|
|
.It Fl h Ar height [GSC_SHEIGHT]
|
1995-01-07 14:17:22 +00:00
|
|
|
Set the height of the bitmap in lines of pixels.
|
1997-10-15 06:42:28 +00:00
|
|
|
.It Fl b Ar len [GSC_SBLEN]
|
|
|
|
Set the internal dma buffer to be
|
|
|
|
.Ar len
|
|
|
|
lines in size.
|
|
|
|
.It Fl t Ar timeout [GSC_SBTIME]
|
1995-01-07 14:17:22 +00:00
|
|
|
Set the timeout time for reading one dma buffer.
|
1997-10-15 06:42:28 +00:00
|
|
|
.El
|
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /dev/gsc0p -compact
|
|
|
|
.It Pa /dev/gsc0
|
|
|
|
device node for
|
|
|
|
.Em raw
|
|
|
|
output
|
|
|
|
.It Pa /dev/gsc0p
|
|
|
|
device node for output in
|
|
|
|
.Em pbm
|
|
|
|
file format
|
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr gsc 4
|
|
|
|
.Sh AUTHOR
|
|
|
|
.An Gunther Schadow Aq gusw@fub46.zedat.fu-berlin.de
|