public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Jonathan Steinert <hachi@kuiki.net>
Cc: linux-kernel@vger.kernel.org,
	Johannes Niess <linux@johannes-niess.de>,
	linux-usb@vger.kernel.org
Subject: Re: USB attached SATA disk idle spindown
Date: Tue, 24 Jun 2008 11:12:56 +0200	[thread overview]
Message-ID: <4860BA98.4070909@s5r6.in-berlin.de> (raw)
In-Reply-To: <4860B651.9090104@s5r6.in-berlin.de>

Stefan Richter wrote:
> Johannes recently informed me that he wrote a script which is used like
> a background daemon to stop idle USB disks.  The script uses
>   - "cat /sys/block/${device}/stat" to watch disk activity,
>   - "sdparm -q -C stop /dev/${device}" to stop the motor after
>     longer inactivity.

PS:  I have seen START STOP UNIT with START=0 to be dangerous with some
FireWire firmwares.  (Motor cannot be restarted after that anymore.)
Other firmwares ignore the START bit and look only at the POWER
CONDITIONS field.  I expect various similar firmware quirks in USB land.
-- 
Stefan Richter
-=====-==--- -==- ==---
http://arcgraph.de/sr/

  reply	other threads:[~2008-06-24  9:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-24  4:59 USB attached SATA disk idle spindown Jonathan Steinert
2008-06-24  8:54 ` Stefan Richter
2008-06-24  9:12   ` Stefan Richter [this message]
2008-07-18  1:15   ` Tejun Heo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4860BA98.4070909@s5r6.in-berlin.de \
    --to=stefanr@s5r6.in-berlin.de \
    --cc=hachi@kuiki.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=linux@johannes-niess.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox