From owner-freebsd-questions@FreeBSD.ORG Thu Jun 10 03:27:34 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EECE116A4CE for ; Thu, 10 Jun 2004 03:27:34 +0000 (GMT) Received: from auk1.snu.ac.kr (auk1.snu.ac.kr [147.46.100.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E91843D46 for ; Thu, 10 Jun 2004 03:27:34 +0000 (GMT) (envelope-from stopspam@users.sourceforge.net) Received: from [147.46.44.181] (stopspam@users.sourceforge.net) by auk1.snu.ac.kr (Terrace Internet Messaging Server) with ESMTP id 2004061012:27:02:420898.24301.2439228336 for ; Thu, 10 Jun 2004 12:27:02 +0900 (KST) Message-ID: <40C7D50F.9060702@users.sourceforge.net> Date: Thu, 10 Jun 2004 12:27:11 +0900 From: Rob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040507 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <40C7C47D.7060902@users.sourceforge.net> <20040609202124.L35804@wonkity.com> <40C7CA35.9020704@users.sourceforge.net> <20040609204934.T35931@wonkity.com> In-Reply-To: <20040609204934.T35931@wonkity.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-TERRACE-SPAMMARK: NO (SR:11.41) (by Terrace) Subject: Re: Using scanner with FreeBSD. A nightmare! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2004 03:27:35 -0000 Warren Block wrote: > On Thu, 10 Jun 2004, Rob wrote: > >> The scanner is connected via USB. I unplugged it, plugged it back again. >> This is what I get in the console: >> >> uscanner0: at uhub1 port 1 (addr 2) disconnected >> uscanner0: detached >> uscanner0: Hewlett-Packard HP ScanJet 5200C, rev 1.00/1.00, addr 2 > > > Okay, I think you already said that sane-find-scanner finds it. For > comparison, here's mine: > > speedy# sane-find-scanner /dev/uscanner0 > # No SCSI scanners found. If you expected something different, make > sure that > # you have loaded a SCSI driver for your SCSI adapter. > found USB scanner (vendor=0x04b8, product=0x010a) at /dev/uscanner0 > > Now it's just a matter of specifying the scanner device name in > /usr/local/etc/sane.d/hp.conf. My copy of SANE has this for the 5200C: > > usb 0x03f0 0x0401 > > These should match the codes returned by your scanner. If they don't, > add another line to hp.conf. Then, *I think* you need the line > > /dev/uscanner0 > > at the end of the hp.conf file. This is exactly the point where I get confused. # cat /usr/local/etc/sane.d/hp.conf | grep -v "^#" usb 0x03f0 0x0401 /dev/uscanner0 # sane-find-scanner -v [...] checking /dev/uscanner0... open ok, but vendor and product could NOT be identified found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0 [...] -------------------- I get the impression that hp.conf is not read at all, because I created an hp.conf with nonsense contents, but sane-find-scanner was not bothered. I then did "setenv SANE_CONFIG_DIR /usr/local/etc/sane.d" to be sure. To no avail. Anymore ideas? Rob.