1. Home
  2. Computing & Technology
  3. Focus on Linux
Linux / Unix Command: sane-umax_pp
Command Library

NAME

sane-umax_pp - SANE backend for Umax parallel port flatbed scanners  

DESCRIPTION

The sane-umax_pp library implements a SANE (Scanner Access Now Easy) backend that provides access to Umax parallel port flatbed scanners. The following scanners work with this backend:

Model:
--------------------
Astra 1220P
HP3200C
Astra 1600P
Astra 2000P

This backend handles 75x75, 150x150, 300x300, 600x600 and 600x1200 dpi scan resolutions, in color and gray levels. There is no lineart mode.

These scanners share the same ASIC. Only parts such as CCD and ADC change from one to another. They even all reports being UMAX Astra 1220P via IEEE1284. There isn't direct way to recognize them properly. Under windows, model is set by the driver, regardless of the hardware.

EPP MODE ONLY
The current version of the backend use only EPP mode to communicate with the scanner. PS/2 and SPP mode aren't implemented. It is recommended that you set your parallel port to EPP in BIOS with the current version of this backend. ECPEPP will only work if you use a 2.4 kernel with ppdev character device support.

This backend does support parport sharing only if you have a kernel with ppdev support.

Note that if you don't use the ppdev character device, the backend needs to run as root. To allow user access to the scanner run the backend through the network interface (See saned(1) and sane-net(5)). A more relaxed solution (security wise) is to add suid bit to the frontend (See chmod(1)). The backend drop root priviledges as soon as it can, right after gaining direct access to IO ports.

 

DEVICE NAMES

This backend expects device names of the form:

port value

Where value is the base address, or the ppdev device name of the port your scanner is attached to. Known ports are 0x378 (lp1) 0x278 (lp2) and 0x3BC (lp0). Note that if you are using a Kernel 2.2.x or better , the first parallel port is named lp0 regardless of the base address. However, this backend requires the base address of your port. If you are not sure which port your scanner is connected to, have a look at your /etc/modules.conf.

If you are using the linux ppdev character device, you will have to specify the device name, which is /dev/parport0 for the first parallel port.

You can rename any device using the

name devname
model model
vendor vendor

options. These options apply to the last port option.

 

CONFIGURATION

Please make sure to edit umax_pp.conf before you use the backend.

The contents of the umax_pp.conf file is a list of options and device names that correspond to Umax scanners. Empty lines and lines starting with a hash mark (#) are ignored.

The height options supported are red-gain, green-gain, blue-gain, red-highlight, green-highlight, blue-highlight, astra, and buffer.

Options red-gain , green-gain and blue-gain allow you to adjust the sensitivy of your scanner for the given color. Values range from 0 (lowest gain) to 15 (highest). When all three gains are set to 0, the backend does auto gain tuning.

Options red-highlight , green-highlight and blue-highlight allow you to adjust the highlight of your scanner for the given color. Values range from 0 (lowest highlight) to 15 (highest).

Option astra allows you to change the model of your scanner. Current auto detection is based on side effects on scanning when using 1220P command set on other models, so it may fail on unkown hardware combination. Valid values are 1220, 1600 and 2000. It is usefull only autodetection fails to detect properly your scanner model. If your scanner work properly but is reported wrongly, let it be that way. The only valid case to change the model is when your scanner produces 'black' or prevent autodetection.

Option buffer allows you to change the size of the scan buffer. The size must be specified in bytes. The default value is 2 megabytes.

 

SEE ALSO

sane(7), sane-net(5), saned(1)

For latest bug fixes and information see
http://umax1220p.sourceforge.net/

 

Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux/Unix Command Library

>> Shell Command Library

Explore Focus on Linux

More from About.com

  1. Home
  2. Computing & Technology
  3. Focus on Linux

©2008 About.com, a part of The New York Times Company.

All rights reserved.