From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Richter Subject: Re: [PATCH 0/5] SCSI and FireWire: fix/add START STOP UNIT for SBP-2 disks Date: Sun, 18 May 2008 22:32:27 +0200 Message-ID: <4830925B.5010802@s5r6.in-berlin.de> References: <20080429232606.GA14261@dose.home.local> <481874BD.5010807@s5r6.in-berlin.de> <20080507180042.GA32629@dose.home.local> <20080516062315.GA4350@dose.home.local> <20080518173511.GA14742@dose.home.local> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from einhorn.in-berlin.de ([192.109.42.8]:32855 "EHLO einhorn.in-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754881AbYERUck (ORCPT ); Sun, 18 May 2008 16:32:40 -0400 In-Reply-To: <20080518173511.GA14742@dose.home.local> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: linux-scsi@vger.kernel.org Cc: linux1394-devel@lists.sourceforge.net, James Bottomley , linux-kernel@vger.kernel.org Tino Keitel wrote: > Now I need to figure out how to get the Firewire disk to spin down > using HAL. It looks like HAL just uses /usr/bin/eject, which just sends > a START STOP UNIT command without power conditions set, so the kernel > can't do anything here. What if you teach hal to unbind sd from the respective scsi_device? "echo -n 123:0:0:0 > /sys/bus/scsi/drivers/sd/unbind" is a manual way to do it. And the "bind" file does the reverse. Or replace /usr/bin/eject by a shell script of yours which calls sg_start when you need it to... -- Stefan Richter -=====-==--- -=-= =--=- http://arcgraph.de/sr/