From owner-freebsd-current Sun Feb 10 14: 0:17 2002 Delivered-To: freebsd-current@freebsd.org Received: from mail.dada.it (mail4.dada.it [195.110.96.56]) by hub.freebsd.org (Postfix) with SMTP id A1FC037B402 for ; Sun, 10 Feb 2002 14:00:10 -0800 (PST) Received: (qmail 24222 invoked from network); 10 Feb 2002 21:59:58 -0000 Received: from unknown (HELO torrini.org) (195.110.114.101) by mail.dada.it with SMTP; 10 Feb 2002 21:59:58 -0000 Received: (from riccardo@localhost) by torrini.org (8.11.6/8.11.6) id g1ALxwR17221; Sun, 10 Feb 2002 22:59:58 +0100 (CET) (envelope-from riccardo) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <1013373746.5030.13.camel@vbook.express.ru> Date: Sun, 10 Feb 2002 22:59:57 +0100 (CET) From: Riccardo Torrini To: "Vladimir B. "@FreeBSD.ORG, Grebenschikov@FreeBSD.ORG, " "@torrini.org Subject: Re: usdb missing detaches ??? Cc: current@FreeBSD.ORG, Paul van der Zwan 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