Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Feb 2001 15:06:54 -0800
From:      Richard Johnson <raj@cisco.com>
To:        Tony Finch <dot@dotat.at>
Cc:        Kevin Oberman <oberman@es.net>, mobile@FreeBSD.ORG
Subject:   Re: Any ideas on keeping the disk spun down on laptop
Message-ID:  <14997.39822.118192.470255@kitab.cisco.com>
In-Reply-To: <20010212234816.M35416@hand.dotat.at>
References:  <200102112211.f1BMBCL23187@ptavv.es.net> <20010212211351.F35416@hand.dotat.at> <20010212234816.M35416@hand.dotat.at>

next in thread | previous in thread | raw e-mail | index | archive | help
I wanted to mention, along these lines, that netbsd has a command
which can program the disk controller to enter "idle" or "standby"
mode after a number of seconds.  The command is "atactl".  I looked at 
how this is done.  It's using a set of controller commands which
apparently aren't supported under FreeBSD.  The controller commands
are:

#define WDCC_IDENTIFY   0xec    /* read parameters from controller */
#define SET_FEATURES    0xef    /* set features */

#define WDCC_IDLE       0xe3    /* set idle timer & enter idle mode */
#define WDCC_IDLE_IMMED 0xe1    /* enter idle mode */
#define WDCC_SLEEP      0xe6    /* enter sleep mode */
#define WDCC_STANDBY    0xe2    /* set standby timer & enter standby mode */
#define WDCC_STANDBY_IMMED 0xe0 /* enter standby mode */
#define WDCC_CHECK_PWR  0xe5    /* check power mode */

and these are not even *defined* in the FreeBSD files.

Is there any chance of getting this supported under FreeBSD?

/raj

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




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