summaryrefslogtreecommitdiffstats
path: root/usr.bin/sasc/sasc.1
blob: 11323ade48a83cc102ea13ae5d4cb5e0c3ab9de1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
.\" sasc(1) - manual page for the `asc' 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.
.\"
.\" $FreeBSD$
.\"
.TH SASC 1 "January 6, 1995" FreeBSD "FreeBSD Reference Manual"
.SH NAME
\fBsasc\fP - set the options of the asc scanner device
.SH SYNOPSIS
.TP 5
\fBsasc\fP
[\fB-sq\fP]
[\fB-b\fP\ \fIlen\fP]
[\fB-f\fP\ \fIfile\fP]
[\fB-h\fP\ \fIheight\fP]
[\fB-r\fP\ \fIresolution\fP]
[\fB-t\fP\ \fItimeout\fP]
[\fB-w\fP\ \fIwidth\fP]
.SH DESCRIPTION
The \fBsasc\fP utility provides shell level access to the ioctl
requests served by the handy scanner device driver asc. Please see
asc(4) for the exact meaning of the requests.  Generally they modify
the output and behavior of the asc scanner device. When \fBsasc\fP is
called with no option only the current settings are reported.
.SH OPTIONS
.TP 3
\fB-s\fP [ASC_SRESSW]
Set the scanner with the values of the resolution selector switch.
.TP
\fB-q\fP
Operate in quiet mode, i.e. do not report any of the current settings.
Normally the parameters are shown after the modifications have been
performed.
.TP
\fB-f\fP \fIfile\fP
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.
.TP
\fB-r\fP \fIresolution\fP [ASC_SRES]
Set the resolution in dpi.
.TP
\fB-w\fP \fIwidth\fP [ASC_SWIDHT]
Set the width of the bitmap in pixels.
.TP
\fB-h\fP \fIheight\fP [ASC_SHEIGHT]
Set the height of the bitmap in lines of pixels.
.TP
\fB-b\fP \fIlen\fP [ASC_SBLEN]
Set the internal dma buffer to be \fIlen\fP lines in size.
.TP
\fB-t\fP \fItimeout\fP [ASC_SBTIME]
Set the timeout time for reading one dma buffer.
.SH FILES
.TP 15
.BI /dev/asc0
device node for \fIraw\fP output.
.TP
.BI /dev/asc0p
device node for output in \fIpbm\fP file format.
.PB
.SH SEE ALSO
asc(4)
.SH AUTHOR
Gunther Schadow <gusw@fub46.zedat.fu-berlin.de>
OpenPOWER on IntegriCloud