From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Sedkowski Subject: Re: Disk spin down issue on shut down/suspend to disk Date: Mon, 06 Aug 2007 17:27:14 +0200 Message-ID: <1186414034.5198.11.camel@nx6310> References: <838f88840708051428p3d65ff42w627af4bc38f57de3@mail.gmail.com> <46B6B006.6000100@gmail.com> <20070806142339.GA31615@khazad-dum.debian.net> <1186411815.4355.7.camel@nx6310> <20070806150159.GC31615@khazad-dum.debian.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from nf-out-0910.google.com ([64.233.182.190]:58600 "EHLO nf-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932795AbXHFP1U (ORCPT ); Mon, 6 Aug 2007 11:27:20 -0400 Received: by nf-out-0910.google.com with SMTP id g13so367778nfb for ; Mon, 06 Aug 2007 08:27:19 -0700 (PDT) In-Reply-To: <20070806150159.GC31615@khazad-dum.debian.net> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Henrique de Moraes Holschuh Cc: Tejun Heo , linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, linux-acpi@vger.kernel.org Dnia 06-08-2007, Pn o godzinie 12:01 -0300, Henrique de Moraes Holschuh napisa=C5=82(a): > On Mon, 06 Aug 2007, Michael Sedkowski wrote: > > Dnia 06-08-2007, Pn o godzinie 11:23 -0300, Henrique de Moraes Hols= chuh > > napisa??(a): > > > On Mon, 06 Aug 2007, Tejun Heo wrote: > > > > Cc'ing Henrique. Any ideas? > > >=20 > > > Check if /etc/init.d/halt is calling halt(8) with the -h flag. I= f it is, > > > remove that -h flag. Usually, there is a hddown variable that ho= lds it, you > > > just need to get rid of it. > > >=20 > > > I don't know anything about a Sidux, though. > >=20 > > Well there is an -h variable: > > # Don't shut down drives if we're using RAID. > > hddown=3D"-h" > > if grep -qs '^md.*active' /proc/mdstat > > then > > hddown=3D"" > > fi > > .... > > log_action_msg "Will now halt" > > halt -d -f $netdown $poweroff $hddown > > However removing it has no effect, the drive still spins down two t= imes. >=20 > Nothing in Debian userspace will spin down the drive if you kill that= -h, at > least as far as I know. >=20 > > Sidux is a Debian Unstable based distro with it's own set of patche= s > > including the shut down patch provided here: > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D426224 >=20 > You'll probably have to ask Sidux what changes they made that could c= ause > the double spin down, even if halt(8) is never passed the -h flag. >=20 The double spin down problem occurs not only on Sidux, but on all distros that I isued like Fedora 7, Mandriva, Debian or Ubuntu with kernels ranging from 2.6.18 to 2.6.22. I only use the Sidux because the= y released the shut down patch required to shut down properly on the 2.6.22 kernel line and on two other systems the drives are turned off nicely [standard Debian still runs on the old shut down scripts. On tha= t basis I believe that this is a HP (Intel?) issue not related to any particular distro. - To unsubscribe from this list: send the line "unsubscribe linux-acpi" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html