SOLUTION/ WORK AROUND

This problem still exists and has since about 2008 in various guises. This may 
just be one of them!
I am using an HP 3055 MFP, networked with Fedora 17.

 I am not going to post pages of output, as none of it disclosed
anything unusual.

I had scanned 700 pages at 1200dpi using the ADF when it all stopped. I 
upgraded the kernel iirc, but I may have touched other things. I did reboot. To 
get working again,  I upgraded everything, downgraded everything, upgraded 
everything, installed and re-installed  sane, libsane, xsane and hplip.
(hplip is 3.13.4 from fedora updates.).
.
Kept getting the 'Error on read I/O' message, and this in the journal:

scanimage[11776]: io/hpmud/jd.c 630: timeout read_channel sec=10 
hp:/net/HP_LaserJet....1.12
scanimage[11776]: invalid read: exp=1509 act=269 ReadMfpdtfBlock 
scan/sane/mfpdtf.c 527
scanimage[11834]: io/hpmud/pp.c 627: unable to read device-id ret=-1

I tried everything. Sacrificed a chicken at the full moon. Nothing
worked.

Epiphany. Found an old USB cable, and reinstalled the printer as USB.

DAMN! Same 'read i/O' error but now:

scanimage[7220]: io/hpmud/dot4.c 121: unexpected DOT4CreditRequest:
cmd=4, hid=1, pid=1, maxcredit=8

Did some *more* googling. Found a reference from 2008 where the fix to
'read I/O' error was to change from 'Lineart' to 'Gray' mode.

And that works!

So changing from:

scanimage --device-name=$hpaio --format=tiff --mode Lineart --resolution
1200 -l 40 -t 12 -x 110 -y 210 -v --batch=$2%d.tif --batch-start=$3
--batch-count=$4 --batch-increment=$5

to:

scanimage --device-name=$hpaio --format=tiff --mode Gray --resolution
1200 -l 40 -t 12 -x 110 -y 210 -v --batch=$2%d.tif --batch-start=$3
--batch-count=$4 --batch-increment=$5

corrects this problem......

$hpaio is presently:  'hpaio:/usb/HP_LaserJet_3055?serial=xxx' etc. It
was hpaio:/net/HP_xxxx...'

And I just finished doing 2 50 page batch scans, for 100 total without
intervention except to turn the stack over. And not a single message to
the journal.

SOOOOOOOOO;

my best guess is that there is a fixed size buffer somewhere, which is
set to a different size for Lineart than for Gray and which is too small
for 1200dpi.  Note that I could ALWAYS scan using 600dpi. It was only
1200 dpi which failed. I did not reduce the scanned page size in order
to test this.

There *may* be another issue for networked scanners using the wrong uri,
but the system worked up until I re-booted. I rarely reboot the desktop
and it had been up for 4 months or so before I updated the kernel and
rebooted.

So there is a clue.

It's about time to find and squash this bug.
Contact me directly if you have questions.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/411181

Title:
  sane detects but doesn't scan with HP network scanner

To manage notifications about this bug go to:
https://bugs.launchpad.net/hplip/+bug/411181/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to