From owner-freebsd-stable@FreeBSD.ORG Sat Jan 1 01:01:00 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 54E2C16A4CE for ; Sat, 1 Jan 2005 01:01:00 +0000 (GMT) Received: from smtp-vbr11.xs4all.nl (smtp-vbr11.xs4all.nl [194.109.24.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id A33C343D2D for ; Sat, 1 Jan 2005 01:00:59 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr11.xs4all.nl (8.12.11/8.12.11) with ESMTP id j0110wi4049099 for ; Sat, 1 Jan 2005 02:00:58 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 69E58630C; Sat, 1 Jan 2005 02:01:11 +0100 (CET) Date: Sat, 1 Jan 2005 02:01:11 +0100 From: Roland Smith To: freebsd-stable@freebsd.org Message-ID: <20050101010111.GA7319@slackbox.xs4all.nl> Mail-Followup-To: freebsd-stable@freebsd.org References: <20041229154905.GA1820@algol.adsl.nerim.net> <20041230083332.GA587@nosferatu.blackend.org> <20041231150712.GA1203@algol.adsl.nerim.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MGYHOYXEY6WxJCY8" Content-Disposition: inline In-Reply-To: <20041231150712.GA1203@algol.adsl.nerim.net> User-Agent: Mutt/1.4.2.1i X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 Organization: Me, organized? X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: USB scanner not attached when connected after system startup] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jan 2005 01:01:00 -0000 --MGYHOYXEY6WxJCY8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 31, 2004 at 04:07:12PM +0100, Harald Weis wrote: > On Thu, Dec 30, 2004 at 09:33:32AM +0100, Marc Fonvieille wrote: > > On Wed, Dec 29, 2004 at 04:49:05PM +0100, Harald Weis wrote: > > >=20 > > > My scanner (EPSON PERFECTION 1650) is working alright if it is connec= ted before system startup. > > > But when connected to the running system it doesn't get attached by u= sbd. I can't find out from Handbook, manpages or mailing lists what could b= e the reason. > > > > >=20 > > I assume you followed the Image Scanner section in the Handbook. > > Is usbd really running? Are you using the default usbd.conf? >=20 > In reply to both Marc and Roland, I confirm and say: >=20 > 1. usbd is really running all the time (usbd_enable=3D"YES" being in rc.c= onf) > 2. using the default usbd.conf, which I studied only recently to find out= what could be missing. > 3. added the following lines to it for testing: > device "Perfection 1650 scanner" > devname "uscanner[0-9]+" > attach "sane-find-scanner -q" > detach "sane-find-scanner -q" What are you trying to accomplish here? sane-find-scanner just lists the devices it finds. > I still haven't got a clue of what other command could be useful > here. I think Ialso understood that the proper attachment/detachment > function of usbd has nothing to do with those commands. Right or > wrong? On 5.3, I don't have to use usbd at all. The device node is created by devfs (on 5.3). You might have to do it manually on 4.x?. I use devfs.rules to make the scanner device available to a group usb, of which I'm a member, and that's it. Sane can use the scanner. For the record, my dll.conf looks like this: --------------------------- dll.conf ------------------------------- # Load the epson backend. epson --------------------------- dll.conf ------------------------------- And epson.conf contains just: -------------------------- epson.conf ------------------------------ usb /dev/uscanner0 -------------------------- epson.conf ------------------------------ > 4. Killing usbd and running ``usbd -dvv'' confirms that usbd does not > detect any event when I connect or disconnect the signal cable of the > scanner (needless to say that the scanner is connected to power). No > error message in the debugging output, just this: I usually do it the other way around. I keep the USB cable plugged in, and connect or disconnect the power to the transformer, because the 1650 doesn't have an on/off switch. Do you see anything in dmesg output after you plug in the scanner? Roland --=20 R.F. Smith /"\ ASCII Ribbon Campaign r s m i t h @ x s 4 a l l . n l \ / No HTML/RTF in email http://www.xs4all.nl/~rsmith/ X No Word docs in email / \ Respect for open standards --MGYHOYXEY6WxJCY8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB1fZXEnfvsMMhpyURAjz+AJ0WnFEApFKvvkBfpAStrmc4ZVgK0QCfT3RV 5QBWb9EKvoN2kNmTKWKQuh8= =f73h -----END PGP SIGNATURE----- --MGYHOYXEY6WxJCY8--