[sane-devel] CanoScan LiDE 220 works, but only with debug enabled

mark at fastmail.com mark at fastmail.com
Sat Apr 4 16:44:14 UTC 2015


Greetings:

Using current code from github, I am trying out a new scanner. It works
without arguments, but only in the lowest quality. If I add arguments
(it doesn't seem to matter which ones) I get this error (the same every
time):

$ local/bin/scanimage --device 'genesys:libusb:003:039' --mode lineart
--resolution 300 > /tmp/first.pnm
scanimage: sane_start: Invalid argument

I tried turning on debug to find out what is happening and found that
everything works perfectly if I enable massive debugging:

$ SANE_DEBUG_GENESYS=255 SANE_DEBUG_GENESYS_LOW=255 \
   local/bin/scanimage --device 'genesys:libusb:003:039' --mode lineart
   --resolution 300 > /tmp/first.pnm 2>/tmp/debug

This gives me a decent quality scan and a 700k debug file. Can anyone
suggest how to specify arguments without debug?

Thanks,
-- Mark



More information about the sane-devel mailing list