From owner-freebsd-questions Mon Dec 11 9:11: 9 2000 From owner-freebsd-questions@FreeBSD.ORG Mon Dec 11 09:11:04 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from bbnrel4.net.external.hp.com (bbnrel4.net.external.hp.com [155.208.254.68]) by hub.freebsd.org (Postfix) with ESMTP id B93D637B402; Mon, 11 Dec 2000 09:11:00 -0800 (PST) Received: from hpcpbla.bri.hp.com (hpcpbla.bri.hp.com [15.144.112.65]) by bbnrel4.net.external.hp.com (Postfix) with ESMTP id 8F7121ED40; Mon, 11 Dec 2000 18:10:58 +0100 (MET) Received: from sse0691.bri.hp.com (sse0691.bri.hp.com [15.144.0.53]) by hpcpbla.bri.hp.com (8.9.3 (PHNE_18979)/8.9.3 SMKit7.0) with ESMTP id RAA11413; Mon, 11 Dec 2000 17:10:56 GMT Received: (from keithj@localhost) by sse0691.bri.hp.com (8.11.1/8.9.3) id eBBHFPR47775; Mon, 11 Dec 2000 17:15:25 GMT (envelope-from keithj) Date: Mon, 11 Dec 2000 17:15:24 +0000 From: Keith Jones To: Artem Koutchine Cc: questions@freebsd.org, hardware@freebsd.org Subject: Re: Power management control (programmatic) Message-ID: <20001211171524.A45253@moose.bri.hp.com> References: <000e01c0638b$8086dd60$0c00a8c0@ipform.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <000e01c0638b$8086dd60$0c00a8c0@ipform.ru>; from matrix@ipform.ru on Mon, Dec 11, 2000 at 07:00:32PM +0300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The apm(4) manual page lists a bunch of ioctl's for power management, which could be used against /dev/apm or /dev/apmctl (I assume). I'd go take a look at the sources of apm/zzz(8) to see how they're actually implemented. Ta, Keith On Mon, Dec 11, 2000 at 07:00:32PM +0300, Artem Koutchine wrote: > Is there any programmatic interface which allows to turn on/off devices > (hdds any the whole PC)? I, i could probably access the device directly, > however > I don't know > 1) How to do it right > 2) The command > I hope there is some c library or maybe utility with source code. > > Regards, > Artem > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hardware" in the body of the message -- Keith Jones E-Business Service Introduction, GBIT-EMEA (Bristol) E: keith_jones@non.hp.com T: [+44 117] 312-7602 I don't speak for Hewlett-Packard. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message