From owner-freebsd-current@FreeBSD.ORG Mon May 29 13:23:54 2006 Return-Path: X-Original-To: freebsd-current@FreeBSD.ORG Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 79CCC16A42B for ; Mon, 29 May 2006 13:23:54 +0000 (UTC) (envelope-from casper@mail.web.am) Received: from mx1.web.am (mx1.web.am [217.113.0.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id A998643D55 for ; Mon, 29 May 2006 13:23:52 +0000 (GMT) (envelope-from casper@mail.web.am) Received: from antispam (localhost.web.am [127.0.0.1]) by localhost (Postfix) with ESMTP id C645461C19 for ; Mon, 29 May 2006 18:23:39 +0500 (AMST) Received: from localhost (localhost.web.am [127.0.0.1]) by localhost (Postfix) with SMTP id 14C2261C1D; Mon, 29 May 2006 18:23:39 +0500 (AMST) Received: from [192.168.2.123] (host-195-250-88-228.customer.arminco.com [195.250.88.228]) by mx1.web.am (Postfix) with ESMTP id D576961C16; Mon, 29 May 2006 18:23:38 +0500 (AMST) Message-ID: <447AF5DF.7000407@mail.web.am> Date: Mon, 29 May 2006 18:23:43 +0500 From: Gaspar Chilingarov User-Agent: Thunderbird 1.5.0.2 (X11/20060528) MIME-Version: 1.0 To: "Matthew N. Dodd" References: <4476F897.10202@web.am> <44774C72.2020809@elischer.org> <20060526151012.U79841@sasami.jurai.net> In-Reply-To: <20060526151012.U79841@sasami.jurai.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on mx1.web.am X-Spam-Status: No, hits=0.0 required=7.5 tests=none autolearn=no version=2.60 X-Spam-Level: X-Mailman-Approved-At: Mon, 29 May 2006 20:24:08 +0000 Cc: freebsd-current@FreeBSD.ORG, Julian Elischer Subject: Re: ataidle and -current ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 May 2006 13:23:55 -0000 Matthew N. Dodd wrote: > On Fri, 26 May 2006, Julian Elischer wrote: >> the interface to control the deveices has changed. Theoretically you >> could make a much simpler ataidle program now but no-one has done it.. > > I wrote ftp://ftp.jurai.net/users/winter/atautil.tar to manipulate ATA > "APM" settings. APM is drive managed power configuration. > > I call a simple shell script via apmd to enabling idling when the laptop > is on battery. > > 'atautil' also supports reading the drive tempreature from IBM/Hitachi > Travelstars. > well, It does not work on amd64. or - with my HDD. #aldan ~/atautil> ./atautil -f ad0 identify atautil: IOCATAREQUEST: Inappropriate ioctl for device at same time atacontrol says that it is #aldan ~/atautil> atacontrol list ATA channel 0: Master: ad0 ATA/ATAPI revision 6 Are there any ideas why IOCATAREQUEST ioctl fails - as I see all ioctl request from ad_disk driver are redirected to ata-all:ata_*_ioctl function. At same time I cannot see any ifdefs in ata* files which disable processing this ioctl.. May be this is an issue with hard driver() it is #aldan ~/atautil> atacontrol cap ad0 Protocol ATA/ATAPI revision 6 device model ST9100822A serial number 3LG1EH90 firmware revision 3.01 cylinders 16383 heads 16 sectors/track 63 lba supported 195371568 sectors lba48 supported 195371568 sectors dma supported overlap not supported Feature Support Enable Value Vendor write cache yes yes read ahead yes yes Tagged Command Queuing (TCQ) no no 0/0x00 SMART yes yes microcode download yes yes security yes no power management yes yes advanced power management yes yes 32896/0x8080 automatic acoustic management no no 0/0x00 254/0xFE so it CAN support power management. -- Gaspar