From owner-freebsd-bugs@FreeBSD.ORG Tue May 31 04:30:02 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C17716A41C for ; Tue, 31 May 2005 04:30:02 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 206B743D53 for ; Tue, 31 May 2005 04:30:02 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j4V4U10h078087 for ; Tue, 31 May 2005 04:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4V4U1BJ078063; Tue, 31 May 2005 04:30:01 GMT (envelope-from gnats) Resent-Date: Tue, 31 May 2005 04:30:01 GMT Resent-Message-Id: <200505310430.j4V4U1BJ078063@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gil Kloepfer Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A025816A41F for ; Tue, 31 May 2005 04:24:04 +0000 (GMT) (envelope-from gil@kloepfer.org) Received: from limbic.kloepfer.org (limbic.kloepfer.org [67.65.12.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96B4543D48 for ; Tue, 31 May 2005 04:24:03 +0000 (GMT) (envelope-from gil@kloepfer.org) Received: from limbic.kloepfer.org (localhost.kloepfer.org [127.0.0.1]) by limbic.kloepfer.org (8.13.3/8.13.3) with ESMTP id j4V4O2jr089968; Mon, 30 May 2005 23:24:02 -0500 (CDT) Received: (from gil@localhost) by limbic.kloepfer.org (8.13.3/8.13.3/Submit) id j4V4O2aq089967; Mon, 30 May 2005 23:24:02 -0500 (CDT) (envelope-from gil@kloepfer.org) Message-Id: <200505310424.j4V4O2aq089967@limbic.kloepfer.org> Date: Mon, 30 May 2005 23:24:02 -0500 (CDT) From: Gil Kloepfer To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/81692: [patch] atacontrol support for disk APM and acoustic management X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gil Kloepfer List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2005 04:30:02 -0000 >Number: 81692 >Category: bin >Synopsis: [patch] atacontrol support for disk APM and acoustic management >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue May 31 04:30:01 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Gil Kloepfer >Release: FreeBSD 5.4-RELEASE i386 >Organization: Self >Environment: System: FreeBSD limbic.kloepfer.org 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May 22 12:52:26 CDT 2005 root@build.int.kloepfer.org:/usr/src/sys/i386/compile/DELLDIM i386 >Description: Attached is a patch to enhance atacontrol so that it may control an ATA hard disk's advanced power management (APM) and acoustic management features. The former is typically important with laptop/notebook hard disks where the drives are designed to operate in low power mode by default. For systems where this is not important, it can lead to the drive constantly spinning up-and-down, leading to reduced performance. This feature can also be used to enable power management where it is not enabled by default. Acoustic management functions similarly. Note that /usr/include/sys/ata.h (in the source as sys/sys/ata.h) is modified to include the appropriate symbolic representation of the APM and acoustic feature codes from the ATA specification. >How-To-Repeat: This is not a bug, so there's nothing to repeat. >Fix: The following patch is uuencoded in order to prevent modification by e-mail servers. It patches the following files: (based in /usr/src) sbin/atacontrol/atacontrol.c sbin/atacontrol/atacontrol.8 sys/sys/ata.h (yes, I really did include the additions to the manpage!!) begin 644 atapatch M+2TM('-B:6XO871A8V]N=')O;"]A=&%C;VYT#`Q.PHK"0D)?0HK M"0D)96QS92!["BL)"0D):6YT(&]F9G-E="`](#`["BL**PD)"0EI;V-M9"YU M+G)E<75EPHK"0D)"6EO8VUD+G4N&9E.PHK"0D)?0HK M"0D)96QS92!I9B`H(7-TPHK M"0D)"6EO8VUD+G4N&ET*#$I.PHK"0E]"BL)?0H@"65L&ET*$587T]+*3L*+2TM('-B:6XO871A8V]N=')O;"]A=&%C;VYT'!E&5D(&)Y"BLN0VT@2!H879E(&%S('=I M9&4@;V8@82!R86YG92!A2!B92!S970@ M=&\**RY#;2!O9F8**W=H:6-H('=I;&P@='5R;B!O9F8@86-O=7-T:6,@;6%N M86=E;65N="P**RY#;2!M87AP97)F"BMT;R!O<'1I;6EZ92!F;W(@;6%X:6UU M;2!P97)F;W)M86YC92P**RY#;2!M87AQ=6EE=`HK=&\@;W!T:6UI>F4@9F]R M(&UA>&EM=6T@<75I970L(&]R(&$@;G5M97)I8R!L979E;`HK9G)O;2`P('1O M(#$R-"X@(%1H92!H:6=H97(@=&AE(&YU;65R:6,@;&5V96PL('1H92!H:6=H M97(@=&AE"BMT:&5O7,O871A+F@N3U))1PE4:'4@36%Y M(#(P(#$P.C`Y.C0Q(#(P,#0**RLK('-Y7,O871A+F@)36]N($UA>2`S M,"`R,SHP-SHQ.2`R,#`U"D!`("TR-3$L-B`K,C4Q+#$P($!`"B`C9&5F:6YE M"0E!5$%?4T9?1$E37U)%3$E240DP>&1D"2\J(&1I#5E M"2\J(&5N86)L92!S97)V:6-E(&EN=&5R#`P"2\J(&-H :96-K(&EF(&1E=FEC92!I2`J+PH` ` end >Release-Note: >Audit-Trail: >Unformatted: