SANE vs USB scanner on 8.0

Andrew Reilly areilly at bigpond.net.au
Mon Jan 25 03:57:24 UTC 2010


On Sun, Jan 24, 2010 at 09:32:43AM -0700, Warren Block wrote:
> On Sun, 24 Jan 2010, Torfinn Ingolfsen wrote:
> >
> >This is already in snapscan.conf:
> ># Agfa 1212U
> >usb 0x06bd 0x0001
> >usb 0x06bd 0x2061
> >
> >The last one is the id; why there are two lines I don't know.
> 
> There are two versions of the Agfa 1212U.
> 
> >>Just to add: due to the popularity of all-in-one inkjet/scanner/coffee
> >>machine/clock radio units, flatbed scanners are getting really cheap at
> >>thrift stores.  I bought an HP 2300C for the princely sum of $2 last
> >>week.  It's not much of a scanner, but it works fine with FreeBSD and
> >>doesn't need a firmware download.  The Epsons are better (IMO), but not
> >>as common.
> >
> >I agree; flatbed scanners are cheap. However; I have this unit already 
> >taking up some space here,
> >it works with earlier versions of FreeBSD, so I would prefer that I could 
> >get it working
> >with FreeBSD 8 as well.
> 
> Understood.  It looks like it's going to take some work on the backend 
> for that to happen.  As Hans said, best to file a bug report at 
> http://www.sane-project.org/bugs.html.

For what it's worth, I appear to be in exactly the same
situation as Torfinn, with my snapscan-e20.  I've now run the
back-end with the SANE_DEBUG_SNAPSCAN env set to 255, and it is
clear that it is running into the same device string parsing
issue:

[sanei_debug] Setting debug level of snapscan to 255.
[snapscan] sane_snapscan_init
[snapscan] sane_snapscan_init: Snapscan backend version 1.4.53
[snapscan] add_usb_device(libusb:/dev/usb:/dev/ugen0.3)
[snapscan] add_usb_device: Detected (kind of) an USB device
[snapscan] snapscani_usb_open(libusb:/dev/usb:/dev/ugen0.3)
[snapscan] snapscani_mutex_open: could not parse device string: Invalid argument
[snapscan] snapscani_usb_open: Can't get semaphore
[snapscan] add_usb_device: error opening device libusb:/dev/usb:/dev/ugen0.3: Invalid argument
[snapscan] sane_snapscan_get_devices (0x7fffffffcbe0, 0)
[snapscan] sane_snapscan_exit

I'll see if I can help with the bug reportage.  I know scanners
are inexpensive (this one was), but it used to work very nicely
for my purposes, so I'd like to un-break the software, by
preference.

Cheers,

-- 
Andrew


More information about the freebsd-usb mailing list