From ea238f9bb7355fb13029fec5d5a1a02d66c0332c Mon Sep 17 00:00:00 2001 From: Peter Kirchgessner Date: Sun, 1 Sep 2002 17:47:37 +0000 Subject: [PATCH] Peter Kirchgessner: applied patch by David Paschal to remove PTAL-support --- configure.in | 5 +- doc/descriptions/hp.desc | 30 ------- doc/sane-hp.man | 166 +++------------------------------------ 3 files changed, 12 insertions(+), 189 deletions(-) diff --git a/configure.in b/configure.in index 06cd7450a..780486a66 100644 --- a/configure.in +++ b/configure.in @@ -260,8 +260,9 @@ if test "`uname`" != "IRIX" -a "`uname`" != "IRIX64"; then AC_CHECK_LIB(syslog, syslog) # OS/2 needs this fi -dnl check for PTAL library (used in hp backend) -SANE_CHECK_PTAL +dnl Don't check for PTAL library anymore. +dnl Support for HP OfficeJets is now in the external "hpoj" backend. +dnl SANE_CHECK_PTAL dnl look for /dev/urandom if test -c /dev/urandom ; then diff --git a/doc/descriptions/hp.desc b/doc/descriptions/hp.desc index 9c4f0e61f..806fb9524 100644 --- a/doc/descriptions/hp.desc +++ b/doc/descriptions/hp.desc @@ -63,36 +63,6 @@ :model "HP PhotoSmart PhotoScanner" :interface "SCSI" -:model "HP OfficeJet Pro 1150C" -:interface "Parport(ECP) JetDirect" -:url "http://hpoj.sourceforge.net" -:model "HP OfficeJet Pro 1170C/1175C" -:interface "Parport(ECP) JetDirect" -:url "http://hpoj.sourceforge.net" -:model "HP OfficeJet R series" -:interface "Parport(ECP) JetDirect" -:url "http://hpoj.sourceforge.net" -:model "HP PSC 500 series" -:interface "Parport(ECP) JetDirect" -:url "http://hpoj.sourceforge.net" -:model "HP OfficeJet G series" -:interface "Parport(ECP) USB JetDirect" -:url "http://hpoj.sourceforge.net" -:model "HP PSC 700 series" -:interface "USB JetDirect" -:url "http://hpoj.sourceforge.net" -:model "HP PSC 900 series" -:interface "USB JetDirect" -:url "http://hpoj.sourceforge.net" -:model "HP OfficeJet K series" -:interface "Parport(ECP) USB JetDirect" -:url "http://hpoj.sourceforge.net" -:comment "partial support -- requires extra steps to scan successfully" -:model "HP OfficeJet V series" -:interface "USB JetDirect" -:url "http://hpoj.sourceforge.net" -:comment "partial support -- requires extra steps to scan successfully" - ; :comment and :url specifiers are optional after :mfg, :model, :desc, ; and at the top-level. diff --git a/doc/sane-hp.man b/doc/sane-hp.man index 3a899529b..1ee7c2aca 100644 --- a/doc/sane-hp.man +++ b/doc/sane-hp.man @@ -1,4 +1,4 @@ -.TH sane-hp 5 "04 Sep 2001" +.TH sane-hp 5 "08 Aug 2002" .IX sane-hp .SH NAME sane-hp - SANE backend for HP ScanJet scanners @@ -6,9 +6,8 @@ sane-hp - SANE backend for HP ScanJet scanners The .B sane-hp library implements a SANE (Scanner Access Now Easy) backend that -provides access to HP ScanJet scanners and OfficeJet multi-function -peripherals (MFPs) which support SCL (Scanner Control Language by HP). -At present, the following +provides access to HP ScanJet scanners which support SCL (Scanner +Control Language by HP). At present, the following scanners are known positively to work with this backend: .PP .RS @@ -53,24 +52,6 @@ ScanJet 6350C C7670A SCSI/USB ScanJet 6390C C7670A SCSI/USB .br PhotoSmart C5100A R029,R030,R032 SCSI -.br -OfficeJet Pro 1150C PTAL -.br -OfficeJet Pro 1170C/1175C PTAL -.br -OfficeJet R series PTAL -.br -PSC 500 series PTAL -.br -OfficeJet G series PTAL -.br -PSC 700 series PTAL -.br -PSC 900 series PTAL -.br -OfficeJet K series PTAL -.br -OfficeJet V series PTAL .RE .PP Support for models 5100C/5200C connected to the parallel port requires @@ -81,14 +62,9 @@ Support for models 5200C/6200C/6250C/6300C/6350C connected to the USB requires an USB driver available at http://www.jump.net/~dnelson/linux/usb (under development) .PP -Support for OfficeJet MFPs requires the "HP OfficeJet Linux driver", -available at "http://hpoj.sourceforge.net". The "PTAL" (peripheral -transport abstraction library) interface supports peripherals connected to a -parallel port or USB (using the user-mode "ptal-mlcd" driver provided with -hpoj-0.8 or later), or to a LAN with an HP JetDirect external print server. -Supported parallel-port JetDirects include the 70X, 170X, 300X, and 500X -(with firmware x.07.xx or later; x.08.xx or later required for -the G and K series). The JetDirect 175X is supported for USB peripherals. +The "hp" backend no longer supports OfficeJet multi-function peripherals. +For these devices use the external "hpoj" backend in version 0.90 and later of +the "HP OfficeJet Linux driver", available at "http://hpoj.sourceforge.net". .PP If you own a ScanJet scanner other than the ones listed above, please let us know if your model works with this backend. To do this, please @@ -115,40 +91,10 @@ or for example. For the HP ScanJet Plus the special device name must be the device that corresponds to the parallel interface card that was shipped with the scanner. That is -.I /dev/hpscan +.IR /dev/hpscan . A special driver is required for this card. See ftp://rvs.ctrl-c.liu.se/pub/wingel/hpscan for details. If the link does not work, try ftp://sunsite.unc.edu/pub/Linux/kernel/patches/scanners. -.PP -For OfficeJets connected to a parallel port or USB, the format of -.I special -is -.RS -.I mlc:par:0 -.RE -or -.RS -.I mlc:usb:0 -.RE -respectively, substituting if necessary for "0" the suffix specified when -invoking the ptal-mlcd driver. -.PP -For OfficeJets connected to an HP JetDirect print server, the format of -.I special -is -.RS -.I hpjd:HOSTNAME_OR_IP_ADDRESS[:PORT_NUMBER] -.RE -where -.RS -.I HOSTNAME_OR_IP_ADDRESS -.RE -is the hostname or dotted-decimal IP address of the JetDirect, and -.RS -.I PORT_NUMBER -.RE -is either 1, 2, or 3 to select the port number on a three-port -JetDirect 500X. The default is port 1. .SH CONFIGURATION The contents of the .I hp.conf @@ -157,14 +103,13 @@ scanners. Empty lines and lines starting with a hash mark (#) are ignored. See sane-scsi(5) on details of what constitutes a valid device name. .PP -Options specified infront of the first line that keeps a device name +Options specified in front of the first line that contains a device name are defaults for all devices. Options specified below a line that -keeps a device name apply just to the most recently mentioned device. +contains a device name apply just to the most recently mentioned device. .PP Supported options are .BR connect-scsi , .BR connect-device , -.BR connect-ptal and .BR enable-image-buffering . @@ -182,15 +127,6 @@ on the device. This option must be used for HP ScanJet Plus and scanners connected to the USB. However if the scanner requires an USB driver that simulates a SCSI device, connect-scsi might be used. -Option -.B connect-ptal -specifies that the scanner uses the PTAL interface via the libptal -shared library. This option must be used for the OfficeJet MFPs. -Support for OfficeJet MFPs is added to the backend at compile time. -If you get the error message "hp-backend not compiled with PTAL support", -you need to install PTAL (see above) and rebuild SANE (running configure -and make). - Option .B enable-image-buffering stores the scanned image in memory before passing it to the frontend. Could be @@ -209,39 +145,6 @@ used in case of forward/backward moving scanner lamp. .RE .PP /dev/scanner is typically a symlink to the actual scanner device. -.PP - A sample configuration file for OfficeJets is shown below: -.PP -.RS -# SCSI scanner: -.br -/dev/scanner -.PP -# Parallel-port-connected MFP: -.br -mlc:par:0 -.br -option connect-ptal -.PP -# USB-connected MFP: -.br -mlc:usb:0 -.br -option connect-ptal -.PP -# JetDirect-connected MFPs: -.br -hpjd:my-jdex.my-domain.com -.br -option connect-ptal -.br -hpjd:my-500x.my-domain.com:3 -.br -option connect-ptal -.br -hpjd:10.10.10.35:2 -.br -option connect-ptal .RE .SH FILES .TP @@ -308,42 +211,6 @@ Try xsane(1). Some actions in xscanimage(1) (i.e. unload, select media, calibrate) have an immediate effect on the scanner without starting a scan. These options can not be used with scanimage. -.TP -.B Advertised but unsupported commands -Some actions, such as mirror, are advertised by the OfficeJets but actually -have no effect. Contrast and brightness are simulated by the backend -for these devices. >8-bit scans, which require xsane(1) anyway, may -not work. -.TP -.B OfficeJet ADF issues -The OfficeJet R and G series are capable of scanning 8.5"x14" documents -in the ADF using a two-pass scanning method, but this is not currently -supported in the backend. The OfficeJet 1175 and R series refuse to -unload an ADF-loaded document after scanning, and instead display a -message on the front panel prompting the user to remove the document -from the glass and press a button to continue; the OfficeJet G series -doesn't have this problem, however. The OfficeJet G, K, and V series -automatically unload an ADF-loaded document when the scan channel is closed, -particularly after an idle timeout when connected to an HP JetDirect. -.TP -.B OfficeJet K series and V series -The K and V series feature a "scrollfed" scanner, where the paper is fed -across a stationary scanhead, as opposed to flatbed, where the scanhead -moves across the page. A consequence of this difference is that the -document length is not known in advance; the scan stops when the end -of the document is reached. To perform a scan, you must first click -on "Change document", and then start your preview or regular scan. -If necessary, click on "Cancel" when the scan stops. If there are more -documents to scan, click on "Change document" again to advance to the -next page and repeat the procedure; otherwise, click on "Unload" to -completely unload the page. An alternative for non-preview scans is -to set the page length (option "br-y") to slightly less than the known -page length, for example, 10.5 inches for an 8.5"x11" page. This will -eliminate the need to cancel the scan, but you still need to click on -"Change document" before each scan and "Unload" after the last page. -Note that due to the use of the "Change document" and "Unload" options, -you will probably not be able to use the command-line "scanimage" program -with the K or V series, not even the "-T" or "--test" parameters. .SH TODO .TP @@ -361,24 +228,9 @@ Beside the ScanJet Plus which came with its own parallel interface card, currently only the HP ScanJet 5100C/5200C are supported. These scanners are using an internal parallel-to-SCSI converter which is supported by the ppSCSI-driver (see above). -.TP -.B Scrollfed MFP support -A separate backend is planned to properly support the OfficeJet K and V -series, as well as other non-SCL HP MFPs, such as the OfficeJet 500, 600, -700, T, and PSC 300 series and the LaserJet 1100A, 1220, and 3200. -For now, scanning on these non-SCL scrollfed models is supported by the -"ptal-hp scan" command-line application in version 0.8 or later of the -HP OfficeJet Linux driver, available from http://hpoj.sourceforge.net. -.TP -.B LaserJet 3100 and 3150 -Support for the LaserJet 3100 and 3150 is NOT planned, because programming -information for these models is not available. However, if you have a -LaserJet 3150 connected to a JetDirect 70X/170X/300X/500X with firmware -x.08.xx or later, you can scan using the JetDirect's embedded web server. .SH "SEE ALSO" sane(7), sane\-scsi(5) .SH AUTHOR The sane-hp backend was written by Geoffrey T. Dairiki. HP PhotoSmart PhotoScanner support by Peter Kirchgessner. -HP OfficeJet support by David Paschal.