From areilly@bigpond.net.au  Mon Feb 11 16:12:48 2002
Return-Path: <areilly@bigpond.net.au>
Received: from areilly.bpc-users.org (CPE-144-132-240-160.nsw.bigpond.net.au [144.132.240.160])
	by hub.freebsd.org (Postfix) with SMTP id 996ED37B417
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 11 Feb 2002 16:12:46 -0800 (PST)
Received: (qmail 59679 invoked by uid 1000); 12 Feb 2002 00:12:46 -0000
Message-Id: <20020212001246.59678.qmail@areilly.bpc-users.org>
Date: 12 Feb 2002 00:12:46 -0000
From: "Andrew Reilly" <areilly@bigpond.net.au>
Reply-To: Andrew Reilly <areilly@bigpond.net.au>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: My USB scanner is not recognised by uscanner driver
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         34851
>Category:       kern
>Synopsis:       My USB scanner is not recognised by uscanner driver
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    joe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 11 16:20:00 PST 2002
>Closed-Date:    Wed Feb 13 18:33:25 PST 2002
>Last-Modified:  Wed Feb 13 18:35:13 PST 2002
>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:
Responsible-Changed-From-To: freebsd-bugs->joe 
Responsible-Changed-By: joe 
Responsible-Changed-When: Tue Feb 12 02:27:13 PST 2002 
Responsible-Changed-Why:  
I fixed this in -current a few days ago, and will MFC shortly. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=34851 
State-Changed-From-To: open->closed 
State-Changed-By: joe 
State-Changed-When: Wed Feb 13 18:33:25 PST 2002 
State-Changed-Why:  
I've MFC'd updates to the uscanner driver, and support for a whole 
lot more scanners, including this one. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=34851 
>Unformatted:
