[sane-devel] genesys:libusb:.... changes while scanning (sane)

Stef stef.dev at free.fr
Wed Jan 29 20:21:21 UTC 2014


On 29/01/2014 12:26, n d wrote:
> Hi,
> So I created simple udev rules:
> ATTR{product}=="CanoScan", KERNEL=="2-5.1", 
> SYMLINK+="bus/usb/002/SCANNER1"
> ATTR{product}=="CanoScan", KERNEL=="2-5.2", 
> SYMLINK+="bus/usb/002/SCANNER2"
> ATTR{product}=="CanoScan", KERNEL=="2-5.3", 
> SYMLINK+="bus/usb/002/SCANNER3"
> ATTR{product}=="CanoScan", KERNEL=="2-5.4", 
> SYMLINK+="bus/usb/002/SCANNER4"
>
> now scanimage -L give the next result:
> device `genesys:libusb:002:013' is a Canon LiDE 700F flatbed scanner
> device `genesys:libusb:002:014' is a Canon LiDE 700F flatbed scanner
> device `genesys:libusb:002:015' is a Canon LiDE 700F flatbed scanner
> device `genesys:libusb:002:016' is a Canon LiDE 700F flatbed scanner
> device `genesys:libusb:002:SCANNER1' is a Canon LiDE 700F flatbed scanner
> device `genesys:libusb:002:SCANNER4' is a Canon LiDE 700F flatbed scanner
> device `genesys:libusb:002:SCANNER2' is a Canon LiDE 700F flatbed scanner
> device `genesys:libusb:002:SCANNER3' is a Canon LiDE 700F flatbed scanner
>
> when scanning for the first time (lets say calling to 
>  `genesys:libusb:002:SCANNER1' it works)
> but when trying to call to the rest of the scanners i get error 
> messages like
>
> scanimage: open of device genesys:libusb:002:SCANNER2 failed: Invalid 
> argument
> or
> scanimage: sane_start: Invalid argument
>
> that happens _manually_ too.
>
> any idea?
>
> tnx alot.
>
>

     Hello,

     can you provide a debug log ? Run scanimage with debug trace 
enabled by:

export SANE_DEBUG_GENESYS=255
export SANE_DEBUG_GENESYS_LOW=255
export SANE_DEBUG_GENESYS_GL847=255

and redirect stderr to a log file, for instance a preview would be like:

export SANE_DEBUG_GENESYS=255
export SANE_DEBUG_GENESYS_LOW=255
export SANE_DEBUG_GENESYS_GL847=255
scanimage -d genesys:libusb:002:SCANNER2 --mode Color >preview.pnm 
2>debug.log

     Then send us the debug log (compressed to keep the mail below the 
max size allowed by the mailing list). In cas there is nothin obvious in 
log, you may add

export SANE_DEBUG_SANEI_USB=255

to get sanei_usb functions log.

Regards,
     Stef


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20140129/bbc5923f/attachment.html>


More information about the sane-devel mailing list