From mboxrd@z Thu Jan 1 00:00:00 1970 From: Douglas Gilbert Subject: Re: [linux-pm] [RFC] Disable disk spinup during system resume Date: Fri, 22 Jul 2011 13:38:48 -0400 Message-ID: <4E29B5A8.4030204@interlog.com> References: <4E299C4A.6060802@draigBrady.com> Reply-To: dgilbert@interlog.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from smtp.infotech.no ([82.134.31.41]:32959 "EHLO smtp.infotech.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753626Ab1GVRjM (ORCPT ); Fri, 22 Jul 2011 13:39:12 -0400 In-Reply-To: <4E299C4A.6060802@draigBrady.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= Cc: Alan Stern , Linux-pm mailing list , SCSI development list On 11-07-22 11:50 AM, P=C3=A1draig Brady wrote: > On 22/07/11 15:05, Alan Stern wrote: >> On Fri, 22 Jul 2011, P=C3=A1draig Brady wrote: >> >>> On 21/07/11 17:49, Alan Stern wrote: >>>> On Thu, 21 Jul 2011, P=C3=A1draig Brady wrote: >>>> >>>>> On 21/07/11 15:49, Alan Stern wrote: >>>>>> On Thu, 21 Jul 2011, P=C3=A1draig 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 d= o you >>>> simply "echo mem>/sys/power/state"? >>> >>> I just rebooted with init=3D/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 :( >> >> I have no idea why. Unless maybe the BIOS started the drive. >> >> Here's another test you can try. Before starting the suspend, make >> sure no filesystems are mounted on sda and do: >> >> echo scsi remove-single-device 0 0 0 0>/proc/scsi/scsi >> >> (replace the "0 0 0 0" with the appropriate Host, Channel, ID, and L= UN >> values for your sda drive). This will erase all knowledge of that >> drive from the kernel. If it still spins up during resume, you can = be >> sure the kernel isn't responsible. > > drive still spins up on resume. Did the disk (/dev/sda) spin down after sdparm -r -C STOP /dev/sda ? I'm guessing that neither the root file system nor swap are located on /dev/sda ? Doug Gilbert -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html