From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 14 11:08:32 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81C5E16A41B for ; Tue, 14 Aug 2007 11:08:32 +0000 (UTC) (envelope-from soralx@cydem.org) Received: from pd3mo3so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.freebsd.org (Postfix) with ESMTP id 61D3A13C474 for ; Tue, 14 Aug 2007 11:08:32 +0000 (UTC) (envelope-from soralx@cydem.org) Received: from pd4mr2so.prod.shaw.ca (pd4mr2so-qfe3.prod.shaw.ca [10.0.141.213]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JMR001PVDI81R20@l-daemon> for freebsd-hackers@freebsd.org; Tue, 14 Aug 2007 04:08:32 -0600 (MDT) Received: from pn2ml9so.prod.shaw.ca ([10.0.121.7]) by pd4mr2so.prod.shaw.ca (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JMR002VYDI95Y30@pd4mr2so.prod.shaw.ca> for freebsd-hackers@freebsd.org; Tue, 14 Aug 2007 04:08:33 -0600 (MDT) Received: from soralx ([24.87.3.133]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JMR009M2DI77441@l-daemon> for freebsd-hackers@freebsd.org; Tue, 14 Aug 2007 04:08:32 -0600 (MDT) Date: Tue, 14 Aug 2007 03:08:33 -0700 From: soralx@cydem.org In-reply-to: <07081411265549.-1077952816@somehost.domainz.com> To: sven-freebsd@hazejager.nl Message-id: <20070814030833.49a7a030@soralx> MIME-version: 1.0 X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit References: <07081411265549.-1077952816@somehost.domainz.com> Cc: freebsd-hackers@freebsd.org Subject: Re: How to stop attached USB device / send IRP_MN_REMOVE_DEVICE? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Aug 2007 11:08:32 -0000 > Is there a tool under FreeBSD 6.2 that properly stops a USB device, > equivalent to Windows XPs Safely Remove Hardware? I noticed that > Windows sends a IRP_MN_REMOVE_DEVICE command, after which my LaCie > external HDD spins down. Same applies to any USB stick: the light > goes out on the stick. I would like to do this under FreeBSD too. > camcontrol eject or stop don't do anything. > > So, the question really is: how to send a IRP_MN_REMOVE_DEVICE > command? `camcontrol da? stop` seemed to do the trick before (5.2.1-R, AFAIR), but now I'm not sure (looks like it doesn't) tested with SCSI hard drives and Adaptec 29160 > Sven [SorAlx] ridin' VS1400