Linux Power Management development
 help / color / mirror / Atom feed
From: "Peter Münster" <pmlists@free.fr>
To: linux-pm@vger.kernel.org
Subject: prevent disk from spinning up at system resume
Date: Mon, 23 Mar 2015 12:02:30 +0100	[thread overview]
Message-ID: <87iodsht89.fsf@free.fr> (raw)

Hi,

My SATA disk (sdb) spins up at every system resume. How could I avoid
that please?

Some details:

- sdb not mounted
- echo 0 >/sys/block/sdb/device/scsi_disk/2:0:0:0/manage_start_stop
- hdparm -C /dev/sdb :   "drive state is:  standby"
- s2ram
- after wake up:         "drive state is:  active/idle"
- kernel message at wakeup: "sd 2:0:0:0: [sdb] Synchronizing SCSI cache"
- when doing "echo scsi remove-single-device 2 0 0 0 >/proc/scsi/scsi"
  before s2ram, sdb keeps sleeping after resume

I need the disk only about once per week. I use s2ram several times per
day, and I prefer that sdb keeps sleeping.

TIA for any hints,
-- 
           Peter


             reply	other threads:[~2015-03-23 12:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-23 11:02 Peter Münster [this message]
2015-03-23 13:57 ` prevent disk from spinning up at system resume Alan Stern
2015-03-23 14:07   ` Peter Münster
2015-03-23 14:19     ` Alan Stern
2015-03-23 14:36       ` Peter Münster
2015-03-23 15:03         ` Alan Stern

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=87iodsht89.fsf@free.fr \
    --to=pmlists@free.fr \
    --cc=linux-pm@vger.kernel.org \
    /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