problems with xsane and scanner hp scanjet 2400

What works, and doesn't, for you. Be specific, and please include Puppy version.
Post Reply
Message
Author
silvio.caggia
Posts: 5
Joined: Wed 28 Sep 2011, 11:45
Location: Torino, Italy

problems with xsane and scanner hp scanjet 2400

#1 Post by silvio.caggia »

I have some problems with xsane and my scanner hp scanjet 2400

I tryed to use the scanner with two laptops:
- a Compaq Evo N800v with Lucid Puppy 5.2.8 installed in frugal mode
- a Compaq 6720s with Lucid Puppy 5.2.8 booted from usbkey (windows7 on HD)

in both cases xsane (present in distro) recognizes the scanner, if I try to scan with default parameters I get error: invalid parameters, I have to choose Color and resolution 300 in order to start scanning, but the scanned page is not correct: it seems as if it had scanned a little portion of the page, more times, with different color filters, and the result of each scanning is offset of some pixel down and right.
In other words the result il garbage but correlated to the content of the page.
Any suggestion?

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#2 Post by rcrsn51 »

First of all, did you have to perform any extra setup procedures to get your scanner working?

Open a console and type the command

Code: Select all

sane-find-scanner
We need to know the vendor/product ID codes for this unit. They may be

Code: Select all

0x03f0 0x0a01
According to the SANE website, this scanner is supported by the genesys backend, but is UNTESTED. Run the command

Code: Select all

scanimage -L
Does it show the name "genesys"?

silvio.caggia
Posts: 5
Joined: Wed 28 Sep 2011, 11:45
Location: Torino, Italy

#3 Post by silvio.caggia »

sh-4.1# sane-find-scanner

# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x0a01 [hp scanjet scanner], chip=GL646_HP) at libusb:004:002
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
sh-4.1# scanimage -L
device `genesys:libusb:004:002' is a Hewlett Packard ScanJet 2400c flatbed scanner
sh-4.1#

yes, it shows genesys.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#4 Post by rcrsn51 »

Good. HP has never provided a Linux driver for the Scanjet 2400C. Even though the SANE website lists it, the Genesys website does not show it as a supported model. Which probably explains your problem.

However, a bit of Googling led me to a Ubuntu forum, which had a working driver from here (of all places.)

I have packaged this as a PET below. Be aware that it installs an older version of the SANE driver, so it might break the installation of other scanners.

Please report back.
Attachments
hp2400_backend-1.0.18.pet
(187.5 KiB) Downloaded 1005 times

silvio.caggia
Posts: 5
Joined: Wed 28 Sep 2011, 11:45
Location: Torino, Italy

#5 Post by silvio.caggia »

Great!
I installed your pet file, now each time I start xsane it asks which scanner to use (hp2400 or genesys) and if I choose hp2400 it works fine, if I choose genesys it works bad as before.
Many Thanks! If you came in Italy, Turin, there is a beer for you! :-)

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#6 Post by rcrsn51 »

Excellent. Now open the file /etc/sane.d/dll.conf and comment out all the lines except the new "hp2400" at the end. Now your scanner software will start faster.

Can you do a test for me? I would like to know if Peasyscan works with this hp2400 backend.

silvio.caggia
Posts: 5
Joined: Wed 28 Sep 2011, 11:45
Location: Torino, Italy

#7 Post by silvio.caggia »

ok, I commented out only genesys in order not to have to choose, it's fast enought for me :-)

I tried peasyscan, I made a prewiev, selected an area, done a scan, saved as pdf. works. It was not so intuitive for me that after scan I had to save in order to have the file... :-) I think buttons should be disposed in a more intuitive way for a novice user or tell user what to do next... but I am a bad testing user... :-)

thanks again!

Priyantha
Posts: 1
Joined: Thu 17 Nov 2011, 06:01

#8 Post by Priyantha »

Hi rcrsn51,

Thank you for your excellent work!

Now I'm using hp scanjet 2400 with Puppy :P

VFRdave
Posts: 2
Joined: Mon 15 Nov 2010, 22:27

#9 Post by VFRdave »

Thanks sooo much rcrsn51, the hp 2400 driver works a treat. I almost rebooted in Windoze to use the scanner. Phheeww - that was a close one.

Post Reply