Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Feb 2015 11:45:13 -0700
From:      Ian Lepore <ian@freebsd.org>
To:        Wojciech Puchar <wojtek@puchar.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: disk powerdown
Message-ID:  <1424630713.56366.20.camel@freebsd.org>
In-Reply-To: <alpine.BSF.2.11.1502221053010.694@laptop.wojtek.intra>
References:  <alpine.BSF.2.11.1502221053010.694@laptop.wojtek.intra>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 2015-02-22 at 10:54 +0100, Wojciech Puchar wrote:
> how to turn off laptop magnetic drive (SATA) automatic powerdown feature. 
> it turns down and up lots of time in my laptop to save a little of power 
> and destroy drive much quicker :) and being so annoying.
> 

Create an /etc/rc.local (if you don't have one already) and put this in
it:

  camcontrol idle ada0 -t 0

Put one of those lines for each drive.  -t 0 disables spindown.  Instead
of zero you can put the number of seconds of idle time you want before
the drive spins down.

To manually spin down a drive immediately:

  camcontrol standby ada0

-- Ian





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1424630713.56366.20.camel>