From owner-freebsd-current Mon Feb 11 19:46:42 2002 Delivered-To: freebsd-current@freebsd.org Received: from newman2.bestweb.net (newman2.bestweb.net [209.94.102.67]) by hub.freebsd.org (Postfix) with ESMTP id 41F7537B638; Mon, 11 Feb 2002 18:19:02 -0800 (PST) Received: from okeeffe.bestweb.net (okeefe.bestweb.net [209.94.100.110]) by newman2.bestweb.net (Postfix) with ESMTP id D7D0D232CF; Mon, 11 Feb 2002 21:17:58 -0500 (EST) Received: by okeeffe.bestweb.net (Postfix, from userid 0) id 757319F3B2; Mon, 11 Feb 2002 21:12:40 -0500 (EST) Date: Sun, 10 Feb 2002 22:59:57 +0100 (CET) From: Riccardo Torrini To: "Vladimir B. "@FreeBSD.ORG, Grebenschikov@FreeBSD.ORG, Subject: Re: usdb missing detaches ??? Cc: current@FreeBSD.ORG, Paul van der Zwan Message-Id: <20020212021240.757319F3B2@okeeffe.bestweb.net> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 10-Feb-2002 (20:42:26/GMT) Vladimir B. " Grebenschikov wrote: >>>> I can get -current to mount the stick in the camera but it >>>> won't umount the filesystem on detach. > ums0: detached > uhub1: detached I have the same problem here: I added this to /etc/usbd.conf: ---8<--- device "Scanner Epson, modello Perfection1240 (photo)" # Perfection1240(0x010b), EPSON(0x04b8), rev 0x0114 product 0x010b vendor 0x04b8 release 0x0114 devname "uscanner[0-9]+" attach "/bin/chmod 666 /dev/${DEVNAME} && echo L16cce > /dev/speaker" ## attach "/bin/chmod 666 /dev/uscanner0 && echo L16cce > /dev/speaker" detach "echo L16eec > /dev/speaker" ---8<--- And this happens to /var/log/messages, but I got tune played only on device attach, not on detach (attach/detach means cycle power to scanner, without touching usb cable). -----8<-----[ /var/log/messages ]-----8<----- ...kernel: uscanner0: EPSON Perfection1240, rev 1.00/1.14, addr 2 ...kernel: uscanner0: at uhub0 port 1 (addr 2) disconnected and after usage, when power off: ...kernel: uscanner0: detached If I understand manuals and examples attach/detach can run _any_ action I want. Or not? Riccardo. PS: chmod is needed to use xscanimage from my user. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message