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

Richard Ryniker ryniker at alum.mit.edu
Mon Jan 27 13:07:43 UTC 2014


>Is there any way to give each scanners a persistent (and informative)
>name?

Udev is the general mechanism for this.
https://en.wikipedia.org/wiki/Udev gives an overview.

>does anyone have some idea why the usb numbering changes while running
>the script? (tried to run the commands manually one by one, no change in
>scanners name for this case)

Probably a timing issue.  Your script performs some USB activity, then
again before the device has completely finished.  The second operation
(busy device) confuses the software, which resets to put the device into
a known state (this causes the new device number).  When you execute
commands from your script manually, the extra time allows completion of
device activity and no reset occurs.



More information about the sane-devel mailing list