Skip site navigation (1)Skip section navigation (2)
Date:      12 Feb 2002 00:12:46 -0000
From:      "Andrew Reilly" <areilly@bigpond.net.au>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/34851: My USB scanner is not recognised by uscanner driver
Message-ID:  <20020212001246.59678.qmail@areilly.bpc-users.org>

next in thread | raw e-mail | index | archive | help

>Number:         34851
>Category:       kern
>Synopsis:       My USB scanner is not recognised by uscanner driver
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 11 16:20:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Reilly
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
Just me
>Environment:
System: FreeBSD gurney.reilly.home 4.5-STABLE FreeBSD 4.5-STABLE #1: Sat Feb 9 11:24:40 EST 2002 root@gurney.reilly.home:/usr/obj/usr/src/sys/GURNEY i386


	
>Description:
	Without the following modification to sys/dev/usb/uscanner.c,
	the USB driver correctly locates my USB scanner and
	displays it's product ID string at boot time, but I
	can't talk to it like a scanner, with xsane (for
	example).

>How-To-Repeat:
	Plug in AGFA Snapscan e20 into USB port
	re-boot system
	observe log messages
	observe failure of scanner software to find device
>Fix:

	Apply the following patch to
	/usr/src/sys/dev/usb/uscanner.c:

--- uscanner.c.orig     Mon Oct 15 14:44:06 2001
+++ uscanner.c  Mon Oct 15 14:43:13 2001
@@ -91,6 +91,7 @@
        { USB_VENDOR_AGFA, USB_PRODUCT_AGFA_SNAPSCAN1212U },
        { USB_VENDOR_AGFA, USB_PRODUCT_AGFA_SNAPSCAN1212U2 },
        { USB_VENDOR_AGFA, USB_PRODUCT_AGFA_SNAPSCANTOUCH },
+       { USB_VENDOR_AGFA, USB_PRODUCT_AGFA_SNAPSCANE20 },
 
        /* Kye */
        { USB_VENDOR_KYE, USB_PRODUCT_KYE_VIVIDPRO },


	I use a /usr/local/etc/sane.d/snapscan.config file that
	looks like:

	usb /dev/uscanner0
	firmware /usr/local/share/sane/snape20.bin

	Snape20.bin is a file from the DRIVERS directory on the
	Agfa "ScanWise" CD that came with the scanner.

	Both xsane and xscanimage now work, with the device set
	to snapscan:/dev/uscanner0.

	Oddly, the appropriate patch to usbdevs was committed
	some considerable time ago, along with a whole bunch of
	other AGFA scanner model IDs, but I can't test those, so
	they're not part of this report.

	Thanks to the authors of the uscanner driver: it works
	beautifully most of the time.  (The scanner software
	wedges if the scanner takes too long to warm up, but
	killing and restarting seems to fix that.  I don't have
	anything concrete enough to base a PR on for that...)
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020212001246.59678.qmail>