kopia lustrzana https://gitlab.com/sane-project/backends
Fixed gcc-3 warning conditions and updated manpage
rodzic
3f3cb83046
commit
44932a72e3
|
@ -44,7 +44,10 @@ typedef int Bool;
|
||||||
|
|
||||||
/*********************************** plustek_types.h!!! ************************/
|
/*********************************** plustek_types.h!!! ************************/
|
||||||
|
|
||||||
|
/* makes trouble with gcc3
|
||||||
#define _SWAP(x,y) (x)^=(y)^=(x)^=(y)
|
#define _SWAP(x,y) (x)^=(y)^=(x)^=(y)
|
||||||
|
*/
|
||||||
|
#define _SWAP(x,y) {(x)^=(y); (x)^=((y)^=(x));}
|
||||||
|
|
||||||
#define _LOWORD(x) ((u_short)(x & 0xffff))
|
#define _LOWORD(x) ((u_short)(x & 0xffff))
|
||||||
#define _HIWORD(x) ((u_short)(x >> 16))
|
#define _HIWORD(x) ((u_short)(x >> 16))
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
.TH sane-plustek 5 "30 December 2001"
|
.TH sane-plustek 5 "24 January 2002"
|
||||||
.IX sane-plustek
|
.IX sane-plustek
|
||||||
.SH NAME
|
.SH NAME
|
||||||
sane-plustek
|
sane-plustek
|
||||||
.br
|
.br
|
||||||
SANE backend for Plustek parallel port and
|
SANE backend for Plustek parallel port and
|
||||||
.br
|
.br
|
||||||
LM983[1/2] based USB flatbed scanners
|
LM983[1/2/3] based USB flatbed scanners
|
||||||
|
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
The
|
The
|
||||||
|
@ -23,6 +23,8 @@ pt_drv which currently can be downloaded from
|
||||||
At present, the following scanners should work with this backend
|
At present, the following scanners should work with this backend
|
||||||
and the corresponding kernel module:
|
and the corresponding kernel module:
|
||||||
.PP
|
.PP
|
||||||
|
.B "PLUSTEK SCANNERS"
|
||||||
|
.PP
|
||||||
Parallelport Model: ASIC: Properties:
|
Parallelport Model: ASIC: Properties:
|
||||||
.br
|
.br
|
||||||
---------------------- ----- ------------------------
|
---------------------- ----- ------------------------
|
||||||
|
@ -123,7 +125,7 @@ BrightScan OpticPro OpticPro P12
|
||||||
.SH "USB SUPPORT"
|
.SH "USB SUPPORT"
|
||||||
|
|
||||||
The Backend is able to support USB scanner based on the National
|
The Backend is able to support USB scanner based on the National
|
||||||
Semiconductor chipset LM9831 and LM9832. The following tables
|
Semiconductor chipset LM9831, LM9832 and LM9833. The following tables
|
||||||
show various devices which are currently reported to work.
|
show various devices which are currently reported to work.
|
||||||
.br
|
.br
|
||||||
|
|
||||||
|
@ -135,13 +137,13 @@ USB Model: ASIC: Properties: Prod-ID
|
||||||
.br
|
.br
|
||||||
----------------------------------------------------------
|
----------------------------------------------------------
|
||||||
.br
|
.br
|
||||||
OpticPro U12 LM9832 600x1200dpi 42bit 512Kb 0x0010
|
OpticPro U12 LM9831 600x1200dpi 42bit 512Kb 0x0010
|
||||||
.br
|
.br
|
||||||
OpticPro UT12 LM9832 600x1200dpi 42bit 512Kb 0x0017
|
OpticPro UT12 LM9832 600x1200dpi 42bit 512Kb 0x0017
|
||||||
.br
|
.br
|
||||||
OpticPro UT16 LM9832 600x1200dpi 42bit 512Kb 0x0017
|
OpticPro UT16 LM9832 600x1200dpi 42bit 512Kb 0x0017
|
||||||
.br
|
.br
|
||||||
OpticPro U24 LM9832 1200x2400dpi 42bit 2Mb 0x0011
|
OpticPro U24 LM9831 1200x2400dpi 42bit 2Mb 0x0011
|
||||||
.br
|
.br
|
||||||
OpticPro UT24 LM9832 1200x2400dpi 42bit 2Mb 0x0017
|
OpticPro UT24 LM9832 1200x2400dpi 42bit 2Mb 0x0017
|
||||||
.PP
|
.PP
|
||||||
|
@ -222,8 +224,43 @@ file
|
||||||
See the plustek.conf file for examples.
|
See the plustek.conf file for examples.
|
||||||
.PP
|
.PP
|
||||||
|
|
||||||
|
.SH "CONFIGURATION"
|
||||||
|
.PP
|
||||||
|
The configuration of this backend can be divided into two sections:
|
||||||
|
.br
|
||||||
|
.PP
|
||||||
|
.B "CONFIGURATION - parallel port scanner"
|
||||||
|
.PP
|
||||||
|
.br
|
||||||
|
.B "CONFIGURATION - USB scanner"
|
||||||
|
.PP
|
||||||
|
.br
|
||||||
|
Please make sure, that the configuration matches the real world,
|
||||||
|
namely your configuration.
|
||||||
|
.PP
|
||||||
|
|
||||||
.SH "CONFIGURATION - PARALLEL PORT SCANNER"
|
.SH "CONFIGURATION - PARALLEL PORT SCANNER"
|
||||||
.PP
|
.PP
|
||||||
|
Beside the kernel-module options, which are described below, you
|
||||||
|
need to enable the parallel port device in the configuration file
|
||||||
|
.PP
|
||||||
|
.RS
|
||||||
|
.I @CONFIGDIR@/plustek.conf
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
For a proper setup, you will need at least two entries:
|
||||||
|
|
||||||
|
.TP
|
||||||
|
.I [parport]
|
||||||
|
.TP
|
||||||
|
.I device /dev/pt_drv
|
||||||
|
.PP
|
||||||
|
.I parport
|
||||||
|
tells the backend, that the following devicename (here
|
||||||
|
.I /dev/pt_drv
|
||||||
|
) has to be interpreted as parallel port scanner device.
|
||||||
|
.PP
|
||||||
|
To have this device, you will need to setup the kernel module.
|
||||||
As the driver is a loadable kernel module, it is configured
|
As the driver is a loadable kernel module, it is configured
|
||||||
by invoking insmod with the appropriate parameters or
|
by invoking insmod with the appropriate parameters or
|
||||||
appending the options to the file
|
appending the options to the file
|
||||||
|
@ -315,10 +352,15 @@ mov=m
|
||||||
.br
|
.br
|
||||||
been detected) enables A3 scanning
|
been detected) enables A3 scanning
|
||||||
.br
|
.br
|
||||||
|
.I m
|
||||||
|
=6 - OpticPro 4800P override (works if OP600
|
||||||
|
.br
|
||||||
|
has been detected) swaps red/green color
|
||||||
|
.br
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
Sample entry for file
|
Sample entry for file
|
||||||
.B /etc/modules.conf
|
.B "/etc/modules.conf"
|
||||||
:
|
:
|
||||||
.br
|
.br
|
||||||
.I alias char-major-40 pt_drv
|
.I alias char-major-40 pt_drv
|
||||||
|
@ -334,8 +376,7 @@ the different options
|
||||||
.PP
|
.PP
|
||||||
Remember to call depmod after changing /etc/conf.modules.
|
Remember to call depmod after changing /etc/conf.modules.
|
||||||
.PP
|
.PP
|
||||||
|
.B "PARALLEL PORT MODES"
|
||||||
.SH "PARALLEL PORT MODES"
|
|
||||||
.PP
|
.PP
|
||||||
The current driver works best, when the parallel port
|
The current driver works best, when the parallel port
|
||||||
has been set to EPP-mode. When detecting any other
|
has been set to EPP-mode. When detecting any other
|
||||||
|
@ -370,12 +411,32 @@ two entries in the configuration file
|
||||||
.I usb
|
.I usb
|
||||||
tells the backend, that the following devicename (here
|
tells the backend, that the following devicename (here
|
||||||
.I /dev/usbscanner
|
.I /dev/usbscanner
|
||||||
) has to be used as USB scanner device. If vendor- and
|
) has to be interpreted as USB scanner device. If vendor- and
|
||||||
product-id has not been specified, the backend tries to
|
product-id has not been specified, the backend tries to
|
||||||
detect this by its own.
|
detect this by its own.
|
||||||
.PP
|
.PP
|
||||||
See the plustek.conf file for examples.
|
See the plustek.conf file for examples.
|
||||||
.PP
|
.PP
|
||||||
|
.B Note:
|
||||||
|
.br
|
||||||
|
You have to make sure, that the USB subsystem is loaded
|
||||||
|
correctly and the module
|
||||||
|
.I scanner
|
||||||
|
has been loaded too. To make this module recognize your
|
||||||
|
scanner, you might have to add the following line to
|
||||||
|
your
|
||||||
|
.B "/etc/modules.conf"
|
||||||
|
:
|
||||||
|
.br
|
||||||
|
.I options scanner vendor=0x7b3 product=0x17
|
||||||
|
.PP
|
||||||
|
.br
|
||||||
|
If you're not sure about the vendor and product id of your
|
||||||
|
device, simply load the USB subsystem and plug in your
|
||||||
|
scanner. Then do a
|
||||||
|
.I cat /proc/bus/usb/devices
|
||||||
|
and look for the scanner.
|
||||||
|
.PP
|
||||||
|
|
||||||
.SH FILES
|
.SH FILES
|
||||||
.TP
|
.TP
|
||||||
|
@ -403,12 +464,16 @@ or directly to:
|
||||||
.br
|
.br
|
||||||
.B Gerhard Jaeger <g.jaeger@earthling.net>
|
.B Gerhard Jaeger <g.jaeger@earthling.net>
|
||||||
.PP
|
.PP
|
||||||
Additional info and hints can be obtained in our
|
Additional info and hints can be obtained from our
|
||||||
.br
|
.br
|
||||||
Mailing-List archive at:
|
Mailing-List archive at:
|
||||||
.br
|
.br
|
||||||
.B http://www.linuxhacker.org/cgi-bin/ezmlm-cgi/3
|
.B http://www.linuxhacker.org/cgi-bin/ezmlm-cgi/3
|
||||||
.PP
|
.PP
|
||||||
|
or directly from the projects' homepage at:
|
||||||
|
.br
|
||||||
|
.B http://home.t-online.de/home/g-jaeger/plustek.html
|
||||||
|
.PP
|
||||||
|
|
||||||
.SH "BUGS & RESTRICTIONS"
|
.SH "BUGS & RESTRICTIONS"
|
||||||
.PP
|
.PP
|
||||||
|
@ -465,6 +530,20 @@ ASIC 96003/1 based models:
|
||||||
.br
|
.br
|
||||||
* The scanquality of the A3I is poor
|
* The scanquality of the A3I is poor
|
||||||
.br
|
.br
|
||||||
|
.PP
|
||||||
|
USB models:
|
||||||
|
.br
|
||||||
|
* Plusteks' model policy is somewhat inconsistent. This
|
||||||
|
.br
|
||||||
|
means, they sell technical different devices under the
|
||||||
|
.br
|
||||||
|
same product name. Therefore it is possible that some
|
||||||
|
.br
|
||||||
|
devices like the UT12 or U12 won't work - please check
|
||||||
|
.br
|
||||||
|
the model list above and compare the product-id to
|
||||||
|
.br
|
||||||
|
the one your device has.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue