From owner-freebsd-usb@FreeBSD.ORG Sat Jul 8 13:10:08 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EDE2616A4E1 for ; Sat, 8 Jul 2006 13:10:07 +0000 (UTC) (envelope-from scott@fishballoon.org) Received: from queue03-winn.ispmail.ntl.com (queue03-winn.ispmail.ntl.com [81.103.221.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60A0643D5D for ; Sat, 8 Jul 2006 13:10:05 +0000 (GMT) (envelope-from scott@fishballoon.org) Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com with ESMTP id <20060708122340.KTDH27023.mtaout02-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com> for ; Sat, 8 Jul 2006 13:23:40 +0100 Received: from llama.fishballoon.org ([81.101.128.185]) by aamtaout03-winn.ispmail.ntl.com with ESMTP id <20060708122340.MIUW18889.aamtaout03-winn.ispmail.ntl.com@llama.fishballoon.org> for ; Sat, 8 Jul 2006 13:23:40 +0100 Received: from tuatara.fishballoon.org ([192.168.1.6]) by llama.fishballoon.org with esmtp (Exim 4.61 (FreeBSD)) (envelope-from ) id 1FzBqT-0008lu-VT for freebsd-usb@freebsd.org; Sat, 08 Jul 2006 13:23:38 +0100 Received: (from scott@localhost) by tuatara.fishballoon.org (8.13.4/8.13.4/Submit) id k68CNbiI001196 for freebsd-usb@freebsd.org; Sat, 8 Jul 2006 13:23:37 +0100 (BST) (envelope-from scott) Date: Sat, 8 Jul 2006 13:23:37 +0100 From: Scott Mitchell To: freebsd-usb@freebsd.org Message-ID: <20060708122337.GA1098@tuatara.fishballoon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-STABLE i386 Subject: Spinning down a USB drive? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jul 2006 13:10:08 -0000 Hi all, I asked this on -questions already with no response - maybe the USB experts over here will know the answer :-) I'm looking for a way to spin down a USB-connected drive, either manually or on a timeout. I suspect I may be SOL: it looks like umass doesn't have a mechanism for doing this, and the best I've come up with is to temporarily connect the drive to a real ATA cable to set its internal spindown timeout (and remember to do this again every time the drive is power-cycled). Assuming there's no good way to do this, can anyone recommend an external USB2 drive enclosure (with or without a drive) that will do automatic spindown of an idle drive. And that plays nicely with FreeBSD of course! Many thanks in advance, Scott ----- Forwarded message from Scott Mitchell ----- Date: Wed, 28 Jun 2006 22:42:40 +0100 From: Scott Mitchell Subject: Spinning down a USB drive? To: freebsd-questions@freebsd.org Hi all, Does anyone know of any way to ask a USB-attached drive to spin down (or better yet some way to have it happen automatically after an idle timeout)? I've tried "camcontrol stop" but it doesn't like that: (511) llama:~ $ sudo camcontrol stop 1:0:0 -v Error received from stop unit command (pass0:umass-sim0:0:0:0): STOP START UNIT. CDB: 1b 0 0 0 0 0 (pass0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (pass0:umass-sim0:0:0:0): SCSI Status: Check Condition (pass0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:24,0 (pass0:umass-sim0:0:0:0): Invalid field in CDB The drive is just a regular Seagate PATA drive in an external enclosure that can be connected over FireWire or USB. I've had it running over FW for a couple of years quite happily; "camcontrol stop" would make it spin down and "camcontrol start" spin it back up again when connected this way. Unfortunately the FW interface on either the drive or the machine has died so I've had to switch over to USB. The drive is only used for a couple of hours daily for backups - I'd like to keep it spun down the rest of the time simply because it gets pretty hot even when idle, and to save a bit of power. The USB-ATA adapter shows up like this: (515) llama:~ $ usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00 port 1 addr 2: full speed, self powered, config 1, USB TO IDE(0x0702), Genesys Logic(0x05e3), rev 0.02 [...] It's using USB 1.1 right now because the machine is running 5.4 where USB 2.0 wasn't enabled by default in GENERIC (and I didn't think I needed it). I can post dmesg and other info as necessary. Many thanks in advance, Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott at fishballoon.org | 0xAA775B8B | -- Anon _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" ----- End forwarded message ----- -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott at fishballoon.org | 0xAA775B8B | -- Anon