From owner-freebsd-stable@FreeBSD.ORG Fri Dec 31 15:05:06 2004 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 4D78616A4CE for ; Fri, 31 Dec 2004 15:05:06 +0000 (GMT) Received: from kraid.nerim.net (smtp-105-friday.nerim.net [62.4.16.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD5A843D45 for ; Fri, 31 Dec 2004 15:05:05 +0000 (GMT) (envelope-from harald.weis@algol.adsl.nerim.net) Received: from algol.adsl.nerim.net (algol.adsl.nerim.net [62.212.97.189]) by kraid.nerim.net (Postfix) with ESMTP id B12AD41906 for ; Fri, 31 Dec 2004 16:05:03 +0100 (CET) Received: by algol.adsl.nerim.net (Postfix, from userid 1001) id 868D51010DA; Fri, 31 Dec 2004 16:07:12 +0100 (CET) Date: Fri, 31 Dec 2004 16:07:12 +0100 From: Harald Weis To: freebsd-stable@freebsd.org Message-ID: <20041231150712.GA1203@algol.adsl.nerim.net> Mail-Followup-To: freebsd-stable@freebsd.org References: <20041229154905.GA1820@algol.adsl.nerim.net> <20041230083332.GA587@nosferatu.blackend.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041230083332.GA587@nosferatu.blackend.org> User-Agent: Mutt/1.4.2.1i 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: Fri, 31 Dec 2004 15:05:06 -0000 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: > > > > My scanner (EPSON PERFECTION 1650) is working alright if it is connected before system startup. > > But when connected to the running system it doesn't get attached by usbd. I can't find out from Handbook, manpages or mailing lists what could be the reason. > > > > I assume you followed the Image Scanner section in the Handbook. > Is usbd really running? Are you using the default usbd.conf? In reply to both Marc and Roland, I confirm and say: 1. usbd is really running all the time (usbd_enable="YES" being in rc.conf) 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" 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? 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: algol{me} ~ # usbd -dvv usbd: opened /dev/usb0 usbd: reading configuration file /etc/usbd.conf usbd: action 1: ActiveWire board, firmware download . . . usbd: action 6: Perfection 1650 scanner devname: uscanner[0-9]+ attach='sane-find-scanner -q' detach='sane-find-scanner -q' usbd: action 7: USB device usbd: 7 actions usbd: opened /dev/usb usbd: doing timeout discovery on /dev/usb0 usbd: processing event queue due to timeout on /dev/usb etc, etc ad infinitum No event, no action. Normal. Harald :-( -- FreeBSD 4.9-RELEASE #0: Mon Oct 27 17:51:09 GMT 2003