From owner-freebsd-questions@FreeBSD.ORG Fri Jun 11 03:25:23 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 1E1D416A4CE for ; Fri, 11 Jun 2004 03:25:23 +0000 (GMT) Received: from auk1.snu.ac.kr (auk1.snu.ac.kr [147.46.100.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77CDF43D46 for ; Fri, 11 Jun 2004 03:25:22 +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 2004061112:24:25:199938.24301.2670107568 for ; Fri, 11 Jun 2004 12:24:25 +0900 (KST) Message-ID: <40C925F2.7040500@users.sourceforge.net> Date: Fri, 11 Jun 2004 12:24:34 +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> <20040610115602.Q99152@gaff.hhhr.ision.net> <40C842D3.8090807@users.sourceforge.net> <200406110038.53014.4711@chello.at> In-Reply-To: <200406110038.53014.4711@chello.at> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-TERRACE-SPAMMARK: NO (SR:1.19) (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: Fri, 11 Jun 2004 03:25:23 -0000 Christian Hiris wrote: > > Scenario I. > 1. Scanner attached to /dev/usb1. > 2. Run xsane, xscanimage and friends under an unprivileged user. > 3. Don't want to pass the [driver:/device] parameter to your scanner app. > > What happens? > > The initialization code steps thru the usb devices until it finds a device > that matches a driver:device in /usr/local/etc/sane.d/. > If a permission for a /dev/usbx device is missing and no matching device could > be found, the initialization code calls sane_exit and the program terminates. > [simply spoken] > > So, if our scanner is attached to /dev/usb1 one need to set "proper" > permissions on /dev/usb0, /dev/usb1 and /dev/uscanner0. > > crw-rw---- 1 root operator 243, 255 Jun 6 14:10 usb > crw-rw-rw- 1 root operator 243, 0 Jun 6 14:10 usb0 > crw-rw-rw- 1 root operator 243, 1 Jun 6 14:10 usb1 > crw-rw---- 1 root operator 243, 2 Jun 6 14:10 usb2 > crw-rw---- 1 root operator 243, 3 Jun 6 14:10 usb3 > crw-rw-rw- 1 root operator 242, 0 Jun 10 19:31 uscanner0 What role does /dev/usb play in this story? > In my mind scanner initialization runs faster and more stable, if the device > stays open (as in scenario I.). You can make startup initialization a little > faster by removing unneeded drivers from /usr/local/etc/sane.d/dll.conf. The > line 'hp' should suffice. OK, thanks! 1) I plugged my scanner into /dev/usb0; avoiding the necessity to probe other /dev/usb*. 2) I commented out all entries in /usr/local/etc/sane.d/dll.conf, EXCEPT the hp one. After this, devices are detected automatically and immediately. Even gimp can use the plugin to the scanner now. Woow, thanks so much for all your advice. Step by step I'm getting closer to a working scanner. Rob.