[sane-devel] scanimage picking wrong/invalid device

Olaf Meeuwissen paddy-hack at member.fsf.org
Mon Sep 26 08:54:53 UTC 2016


Vince Radice writes:

> [...]
>
> When I tried to scan an image recently using xsane I got a message 
> that there was an invalid argument.
>
> [...]
>
> [vince at Vince2 ~]$ scanimage -L
> device `brother2:bus4;dev8' is a Brother MFC-240C USB scanner
> device `epkowa:usb:003:002' is a Epson Stylus NX210/SX210/TX210/ME 
> OFFICE 510 Series flatbed scanner
> device `epson2:libusb:003:002' is a Epson PID 084F flatbed scanner
>
> It looks like scanimage has the right addresses for the Epson scanner 
> but a non-existent address for the Brother scanner.  I have uninstalled 
> the Brother drivers and reinstalled them using the Brother install program.
>
> If I try xsane it gets the same address for the Brother scanner.
>
> Where is scanimage getting the bogus address?

The device addresses are created by the individual backends.  The
backend name is prepended by the dll backed, IIRC.

So if the brother backend thinks there is a scanner at 'bus4;dev8' there
probably is.  Are you sure the "invalid argument" message refers to the
device address and not to some scan setting?

Does this work?

  scanimage -d "brother:bus4;dev8" > image.pnm

Replace the device address with what `scanimage -L` reported and make
sure to quote it (because it has a ';' in it!).

Apart from the above there is not much other help I can give you.  The
brother backend is a closed source, third party backend.  Please contact
Brother for more help if necessary.

Hope this helps,
-- 
Olaf Meeuwissen, LPIC-2            FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Software                        https://my.fsf.org/donate
 Join the Free Software Foundation              https://my.fsf.org/join




More information about the sane-devel mailing list