From owner-freebsd-bugs Mon Feb 11 16:20:18 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D2C3037B419 for ; Mon, 11 Feb 2002 16:20:00 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1C0K0L25572; Mon, 11 Feb 2002 16:20:00 -0800 (PST) (envelope-from gnats) 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 ; 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" Reply-To: Andrew Reilly To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: kern/34851: My USB scanner is not recognised by uscanner driver Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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