From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 4 03:07:12 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC1051065670; Thu, 4 Feb 2010 03:07:12 +0000 (UTC) (envelope-from oxyd.oxyd@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id 175088FC14; Thu, 4 Feb 2010 03:07:11 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 22so59960fge.13 for ; Wed, 03 Feb 2010 19:07:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=NEC4a4fmg6FsgLRivwJVGAOkN40RvNj51l8eEbe6HJg=; b=M9ia8sruIIUtoRQrsLgDdyVmeT/dvF5i3KALLoS1PihGbbG8fz+bSA0yM0IF+JhlUV +uhiOirt2wUgxGesVDeDVEbRc8KsBYY6VDXiKuGEQ3s02O9IOuhGcuKXqrTODRP85jZa hrGEywrPx6p7aG0j3fsf4IIFOEH4jDYUa9glI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=dtTT7a2iPFLwnr4voqG+uUfRJHv0N/DLacZbnhUlusVE9q8E7ErAs35qtT2zIemJtN kv8cUZCBeQZcFhak5UdxGxe4kXVqum4VjC2ojZFkqspRTdsxlLHIeeAM+yu3uun52PHF ME4/x7n91DQDLSje/7JDE8zfNN0hF0UZE9fHI= MIME-Version: 1.0 Received: by 10.87.2.15 with SMTP id e15mr1170845fgi.22.1265251473548; Wed, 03 Feb 2010 18:44:33 -0800 (PST) In-Reply-To: References: <201002031343.o13Dhj7i052507@lurza.secnetix.de> Date: Thu, 4 Feb 2010 03:44:33 +0100 Message-ID: From: =?UTF-8?Q?Ond=C5=99ej_Majerech?= To: Warren Block Content-Type: text/plain; charset=UTF-8 Cc: freebsd-hackers@freebsd.org, Oliver Fromme , jkim@freebsd.org, alexbestms@wwu.de Subject: Re: Spin down HDD after disk sync or before power off X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Feb 2010 03:07:12 -0000 On 3 February 2010 21:44, Warren Block wrote: > Are there any other device drivers that differentiate the reboot and > poweroff actions that could be used as inspiration or simply shamelessly > copied in modifying ata-disk? > I don't know about FreeBSD drivers, but I used NetBSD briefly on my notebook, and I noticed that it spun the disk down properly before poweroff. It was a very distinctive sound from what FreeBSD made on shutdown -p. So perhaps you could see how NetBSD guys do it and get some ideas from there? ~ Ondra