public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Pádraig Brady" <P@draigBrady.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: linux-pm@lists.linux-foundation.org
Subject: Re: [RFC] Disable disk spinup during system resume
Date: Fri, 22 Jul 2011 10:04:32 +0100	[thread overview]
Message-ID: <4E293D20.3080403@draigBrady.com> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1107211244550.3132-100000@iolanthe.rowland.org>

On 21/07/11 17:49, Alan Stern wrote:
> On Thu, 21 Jul 2011, Pádraig Brady wrote:
> 
>> On 21/07/11 15:49, Alan Stern wrote:
>>> On Thu, 21 Jul 2011, Pádraig Brady wrote:
>>>
>>>> Hi,
>>>>
>>>> I have a secondary sata disk (sda)  in my system that
>>>> I would like not to spinup on resume.
>>
>>

> What happens if you kill all the running processes (or as many as 
> possible) before starting the suspend?
> 
> Also, how do you initiate the suspend?  Do you use a program, or do you 
> simply "echo mem >/sys/power/state"?

I just rebooted with init=/bin/sh and did

sdparm -r -C STOP /dev/sda
echo 0 > /sys/block/sda/device/scsi_disk/*/manage_start_stop
echo mem > /sys/power/state

When I hit the power button to resume
sda started spinning again :(
There kernel logs about sata ports starting up.
Maybe I need to put the drive into a different
sleep state or something to stop it starting.

cheers,
Pádraig.
_______________________________________________
linux-pm mailing list
linux-pm@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/linux-pm

  reply	other threads:[~2011-07-22  9:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-20 23:42 [RFC] Disable disk spinup during system resume Pádraig Brady
2011-07-21 14:49 ` Alan Stern
2011-07-21 16:18   ` Pádraig Brady
2011-07-21 16:49     ` Alan Stern
2011-07-22  9:04       ` Pádraig Brady [this message]
2011-07-22 14:05         ` Alan Stern
     [not found] <Pine.LNX.4.44L0.1107220951280.1923-100000@iolanthe.rowland.org>
2011-07-22 15:50 ` Pádraig Brady
     [not found] ` <4E299C4A.6060802@draigBrady.com>
2011-07-22 17:38   ` Douglas Gilbert
     [not found]   ` <4E29B5A8.4030204@interlog.com>
2011-07-22 18:03     ` Pádraig Brady

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=4E293D20.3080403@draigBrady.com \
    --to=p@draigbrady.com \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=stern@rowland.harvard.edu \
    /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