Difference between revisions of "User:Woozle/HP 4370"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
m (formatting; minor proofread edit)
m (→‎Introduction: outdented headers)
Line 2: Line 2:
 
==Introduction==
 
==Introduction==
 
I purchased the unit on 2006-02-14 to replace {{Harena}}'s old [[AcerScan 620UT]], which is still working as I write but which had developed some annoying streaks in the scanned image, making it unsuitable for high-quality scanning of photographs.
 
I purchased the unit on 2006-02-14 to replace {{Harena}}'s old [[AcerScan 620UT]], which is still working as I write but which had developed some annoying streaks in the scanned image, making it unsuitable for high-quality scanning of photographs.
===Delivery===
+
==Delivery==
 
I ordered from [[Newegg]], which seemed to have the best price by about $5 (I had considered getting it from a local Office Depot, OfficeMax, or Best Buy, but where the model was available in general it was never in stock in my local store); they delivered it in 2 days (which is apparently an internal goal of NewEgg's, though not a guarantee). The box seemed somewhat battered on the outside (photo available; will upload when I have time) and rattled a bit, but there was no evidence of damage to the scanner. It was in fact the scanner doing most of the rattling, which leads me to wonder if something was supposed to be clamped down – but the instructions show no evidence of any shipping restraints to remove.
 
I ordered from [[Newegg]], which seemed to have the best price by about $5 (I had considered getting it from a local Office Depot, OfficeMax, or Best Buy, but where the model was available in general it was never in stock in my local store); they delivered it in 2 days (which is apparently an internal goal of NewEgg's, though not a guarantee). The box seemed somewhat battered on the outside (photo available; will upload when I have time) and rattled a bit, but there was no evidence of damage to the scanner. It was in fact the scanner doing most of the rattling, which leads me to wonder if something was supposed to be clamped down – but the instructions show no evidence of any shipping restraints to remove.
===Hookup===
+
==Hookup==
 
There was an awkward pause when I noticed that the scanner's power adapter is a three-prong wall wart, which meant that I didn't have any free sockets into which it could be inserted. One plug-bar later (my count is now four plug bars), I had it powered up and hooked to a USB cable.
 
There was an awkward pause when I noticed that the scanner's power adapter is a three-prong wall wart, which meant that I didn't have any free sockets into which it could be inserted. One plug-bar later (my count is now four plug bars), I had it powered up and hooked to a USB cable.
===Software===
+
==Software==
 
While I ''could'' use this scanner with Windows if I had to, I would much rather get it working with [[Optical scanners in Linux|Linux]]. The good news is that Linux did detect it, and [[sane-find-scanner]] returned the following:
 
While I ''could'' use this scanner with Windows if I had to, I would much rather get it working with [[Optical scanners in Linux|Linux]]. The good news is that Linux did detect it, and [[sane-find-scanner]] returned the following:
 
  found USB scanner (vendor=0x03f0 [hewlett packard], product=0x4105 [hp scanjet]) at libusb:001:003
 
  found USB scanner (vendor=0x03f0 [hewlett packard], product=0x4105 [hp scanjet]) at libusb:001:003
Line 18: Line 18:
  
 
The SANE web site [http://www.sane-project.org/unsupported/hp-scanjet-4370.html confirms that the 4370 is not yet supported]. However, it looks like there is a [http://sourceforge.net/projects/hp3900-series/ 3rd-party driver] in development which apparently works (and which will eventually be included with SANE when it is ready), so I downloaded that and installed it.
 
The SANE web site [http://www.sane-project.org/unsupported/hp-scanjet-4370.html confirms that the 4370 is not yet supported]. However, it looks like there is a [http://sourceforge.net/projects/hp3900-series/ 3rd-party driver] in development which apparently works (and which will eventually be included with SANE when it is ready), so I downloaded that and installed it.
====Installing the Linux Driver====
+
===Linux Driver===
 
The driver archive (which downloads as a [[.tar.gz]] file) contained a README file (actually, two – one in English and one in Spanish) with detailed installation instructions. Here are the steps, summarized, with my results.
 
The driver archive (which downloads as a [[.tar.gz]] file) contained a README file (actually, two – one in English and one in Spanish) with detailed installation instructions. Here are the steps, summarized, with my results.
  

Revision as of 02:26, 20 February 2006

Computing: Hardware: HP ScanJet 4370: Woozle review

Introduction

I purchased the unit on 2006-02-14 to replace Harena's old AcerScan 620UT, which is still working as I write but which had developed some annoying streaks in the scanned image, making it unsuitable for high-quality scanning of photographs.

Delivery

I ordered from Newegg, which seemed to have the best price by about $5 (I had considered getting it from a local Office Depot, OfficeMax, or Best Buy, but where the model was available in general it was never in stock in my local store); they delivered it in 2 days (which is apparently an internal goal of NewEgg's, though not a guarantee). The box seemed somewhat battered on the outside (photo available; will upload when I have time) and rattled a bit, but there was no evidence of damage to the scanner. It was in fact the scanner doing most of the rattling, which leads me to wonder if something was supposed to be clamped down – but the instructions show no evidence of any shipping restraints to remove.

Hookup

There was an awkward pause when I noticed that the scanner's power adapter is a three-prong wall wart, which meant that I didn't have any free sockets into which it could be inserted. One plug-bar later (my count is now four plug bars), I had it powered up and hooked to a USB cable.

Software

While I could use this scanner with Windows if I had to, I would much rather get it working with Linux. The good news is that Linux did detect it, and sane-find-scanner returned the following:

found USB scanner (vendor=0x03f0 [hewlett packard], product=0x4105 [hp scanjet]) at libusb:001:003
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

The bad news is that scanimage -L returned this:

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

The SANE web site confirms that the 4370 is not yet supported. However, it looks like there is a 3rd-party driver in development which apparently works (and which will eventually be included with SANE when it is ready), so I downloaded that and installed it.

Linux Driver

The driver archive (which downloads as a .tar.gz file) contained a README file (actually, two – one in English and one in Spanish) with detailed installation instructions. Here are the steps, summarized, with my results.

1. Find out where the SANE library files are installed by typing "locate sane|grep libsane-dll.so". I got this:

/usr/lib/sane/libsane-dll.so.1
/usr/lib/sane/libsane-dll.so.1.0.15

2. Copy these files into the located path:

  • libsane-hp3900.la
  • libsane-hp3900.so.1.0.17

The command "cp lib/* /usr/local/lib/sane/" is given as a way of doing this, but it assumes you have unzipped the .tar.gz file and have chdired to the root of the unzipped folder tree. I used konqueror to do the copying without actually unzipping the archive (had to load konqueror in root mode, though, in order to write to /usr/lib/sane/).

3. Create the following symbolic links (the following commands use my directory structure):

cd /usr/lib/sane
ln -s /usr/lib/sane/libsane-hp3900.so.1.0.17 libsane-hp3900.so
ln -s /usr/lib/sane/libsane-hp3900.so.1.0.17 libsane-hp3900.so.1

4. Now we have to inform SANE that a new backend is installed. To do that, we need to edit the dll.conf file; to do that, we need to find out where that file is located, which can be done by typing "locate dll.conf". I got the following results:

/etc/sane.d/dll.conf
/usr/share/dotnet/mono/gac/Mono.Data.SqliteClient/1.0.5000.0__0738eb9f132ed756/Mono.Data.SqliteClient.dll.config
/usr/share/dotnet/mono/gac/monodoc/1.0.0.0__0738eb9f132ed756/monodoc.dll.config
/usr/share/dotnet/mono/gac/glib-sharp/1.0.0.0__35e10195dab3c99f/glib-sharp.dll.config
/usr/share/dotnet/mono/gac/gtk-sharp/1.0.0.0__35e10195dab3c99f/gtk-sharp.dll.config
/usr/share/dotnet/mono/gac/gdk-sharp/1.0.0.0__35e10195dab3c99f/gdk-sharp.dll.config
/usr/share/dotnet/mono/gac/atk-sharp/1.0.0.0__35e10195dab3c99f/atk-sharp.dll.config
/usr/share/dotnet/mono/gac/pango-sharp/1.0.0.0__35e10195dab3c99f/pango-sharp.dll.config
/usr/share/dotnet/mono/gac/gconf-sharp/1.0.0.0__35e10195dab3c99f/gconf-sharp.dll.config
/usr/share/dotnet/mono/gac/gecko-sharp/1.0.0.0__ccf7d78a55e9f021/gecko-sharp.dll.config
/usr/share/dotnet/mono/gac/glade-sharp/1.0.0.0__35e10195dab3c99f/glade-sharp.dll.config
/usr/share/dotnet/mono/gac/gnome-sharp/1.0.0.0__35e10195dab3c99f/gnome-sharp.dll.config
/usr/share/dotnet/mono/gac/art-sharp/1.0.0.0__35e10195dab3c99f/art-sharp.dll.config
/usr/share/dotnet/mono/gac/gtkhtml-sharp/1.0.0.0__35e10195dab3c99f/gtkhtml-sharp.dll.config
/usr/share/dotnet/mono/gac/gda-sharp/1.0.0.0__35e10195dab3c99f/gda-sharp.dll.config
/usr/share/dotnet/mono/gac/gnomedb-sharp/1.0.0.0__35e10195dab3c99f/gnomedb-sharp.dll.config
/usr/share/dotnet/mono/gac/rsvg-sharp/1.0.0.0__35e10195dab3c99f/rsvg-sharp.dll.config
/usr/share/dotnet/mono/gac/gtksourceview-sharp/1.0.0.1__35e10195dab3c99f/gtksourceview-sharp.dll.config
/usr/lib/monodevelop/bin/gdl-sharp.dll.config
/usr/lib/monodevelop/bin/MonoDevelop.Gui.Utils.dll.config
/usr/lib/monodevelop/bin/MonoDevelop.Base.dll.config
/usr/lib/monodevelop/bin/MonoDevelop.SourceEditor.dll.config

The first line (/etc/sane.d/dll.conf) would seem to be the one we're looking for, but if it's not as obvious in the results you get you can apply grep as was done earlier: "locate dll.conf|grep sane"

"/usr/local/etc/sane.d/" is apparently the default location, although "/etc/sane.d/" is also common.

5.Edit dll.conf and append the following line:

hp3900

(The instructions note that lines beginning with "#" are comments, effectively disabling whatever driver is named on that line, so don't put a "#" before the "hp3900".) The drivers in my dll.conf were more or less sorted alphabetically, so I added "hp3900" right above "hp5400".

6. Copy conf/hp3900.conf (from the downloaded driver files) into the same folder as dll.conf (e.g. in my case, put it at /etc/sane.d/hp3900.conf).

After doing that, I ran "scanimage -L" again and this time got this:

device `hp3900:libusb:001:003' is a Hewlett-Packard HP39xx Flatbed Scanner flatbed scanner

Then I went back into GIMP File -> Acquire -> XSane -> Device Dialog..., which previously had reported "no scanner detected", and it happily loaded XSane and allowed me to do a preview – which came up all black, regardless of what was on the scan surface. Just as a test, I did a scan, and it came up all yellow with regular horizontal dashes down one side.

So either the driver isn't quite happy, or else the scanner itself is borken somehow. I guess I'll have to install it on Windows to find out if it's the software.

2006-02-19 update: Apparently the developer is aware of the problem and is obtaining the data needed in order to fix it. :-)