First, I installed xinetd and sane:
- Code: Select all
ipkg install xinetd
ipkg install sane-backends
ipkg install libieee1284
Next, the following commands look promising:
- Code: Select all
[~] # 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=0x04a9 [Canon], product=0x1730 [MP540 series]) at libusb:001:007
# 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.
- Code: Select all
[~] # scanimage -L
device `pixma:04A91730_A25E45' is a CANON Canon PIXMA MP540 multi-function peripheral
- Code: Select all
[~] # scanimage -T
scanimage: scanning image of size 638x877 pixels at 24 bits/pixel
scanimage: acquiring RGB frame, 8 bits/sample
scanimage: reading one scanline, 1914 bytes... PASS
scanimage: reading one byte... PASS
scanimage: stepped read, 2 bytes... PASS
scanimage: stepped read, 4 bytes... PASS
scanimage: stepped read, 8 bytes... PASS
scanimage: stepped read, 16 bytes... PASS
scanimage: stepped read, 32 bytes... PASS
scanimage: stepped read, 64 bytes... PASS
scanimage: stepped read, 128 bytes... PASS
scanimage: stepped read, 256 bytes... PASS
scanimage: stepped read, 512 bytes... PASS
scanimage: stepped read, 1024 bytes... PASS
scanimage: stepped read, 2048 bytes... PASS
scanimage: stepped read, 2047 bytes... PASS
scanimage: stepped read, 1023 bytes... PASS
scanimage: stepped read, 511 bytes... PASS
scanimage: stepped read, 255 bytes... PASS
scanimage: stepped read, 127 bytes... PASS
scanimage: stepped read, 63 bytes... PASS
scanimage: stepped read, 31 bytes... PASS
scanimage: stepped read, 15 bytes... PASS
scanimage: stepped read, 7 bytes... PASS
scanimage: stepped read, 3 bytes... PASS
And here comes the problem:
- Code: Select all
[~] # scanimage -v -d pixma:04A91730_A25E45 > /share/Public/test
scanimage: scanning image of size 638x877 pixels at 24 bits/pixel
scanimage: acquiring RGB frame
scanimage: min/max graylevel value = 255/0
scanimage: sane_read: Error during device I/O
A suspicious error in dmesg
- Code: Select all
usb 1-1.2: usbfs: interface 2 claimed by usb-storage while 'scanimage' sets config #1
/share/Public/test after the above command. Sometimes, when running the scanimage command, the file got much bigger (>500kb) and contained binary data. Sometimes it was just empty like below.
- Code: Select all
P6
# SANE data follows
638 877
255
During the command, the scanner actually scans (stating 'scanning...' on the display and moving).
After spending all morning trying to find solutions, the only thing I could really try was the following command, which didn't really make any difference. scanimage stated the very same error afterwards.
- Code: Select all
rmmod usblp
I also tried disabling all entries starting with 'canon' in /opt/etc/sane.d/dll.conf only leaving pixma uncommented, which should be the right driver / backend according to the SANE compatibility list.
I'd be glad for any input you guys could give me, I've absolutely no point to start looking anymore, as the scanimage-command doesn't even work locally, as you can see above. I'll be glad to supply you with more information, whenever needed!
News