From thinker@esp.branda.to  Sat Jan  4 20:39:51 2003
Return-Path: <thinker@esp.branda.to>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1B20437B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  4 Jan 2003 20:39:51 -0800 (PST)
Received: from esp.branda.to (121.c210-85-224.ethome.net.tw [210.85.224.121])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A724243EA9
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  4 Jan 2003 20:39:49 -0800 (PST)
	(envelope-from thinker@esp.branda.to)
Received: from esp.branda.to (localhost [127.0.0.1])
	by esp.branda.to (8.12.6/8.12.6) with ESMTP id h054ddqK001935
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 5 Jan 2003 12:39:39 +0800 (CST)
	(envelope-from thinker@esp.branda.to)
Received: (from thinker@localhost)
	by esp.branda.to (8.12.6/8.12.6/Submit) id h054dcn0001934;
	Sun, 5 Jan 2003 12:39:38 +0800 (CST)
Message-Id: <200301050439.h054dcn0001934@esp.branda.to>
Date: Sun, 5 Jan 2003 12:39:38 +0800 (CST)
From: User & <thinker@branda.to>
Reply-To: User & <thinker@branda.to>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: I want IDE HD go into standby mode.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         46773
>Category:       kern
>Synopsis:       I want IDE HD go into standby mode.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sos
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 04 20:40:01 PST 2003
>Closed-Date:    Sat Oct 25 12:39:17 PDT 2003
>Last-Modified:  Sat Oct 25 12:39:17 PDT 2003
>Originator:     Thinker K.F. Li
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD esp.branda.to 5.0-CURRENT FreeBSD 5.0-CURRENT #3: Sun Jan 5 04:01:59 CST 2003 thinker@esp.branda.to:/usr/src/sys/i386/compile/esp i386


	
>Description:
	I modify ata driver & /sbin/atacontrol to give FreeBSD ability
	setting IDE device go into standby mode.
>How-To-Repeat:
	To move channel 0 master device go into standby mode,
		/sbin/atacontrol standby 0 0
>Fix:
Apply following patch file at `/usr/src/'.

begin 644 ata-standby-thinker-20030105.patch
M+2TM('-B:6XO871A8V]N=')O;"]A=&%C;VYT<F]L+F,N;W)I9PE3=6X@2F%N
M("`U(#`S.C$T.C4T(#(P,#,**RLK('-B:6XO871A8V]N=')O;"]A=&%C;VYT
M<F]L+F,)4W5N($IA;B`@-2`P,SHS,#HQ-"`R,#`S"D!`("TT,C4L-B`K-#(U
M+#$R($!`"B`)"0D);6]D93)S='(H:6]C;60N=2YM;V1E+FUO9&5;,5TI*3L*
M(`D)?0H@"7T**PEE;'-E(&EF("@A<W1R8VUP*&%R9W9;,5TL(")S=&%N9&)Y
M(BD@)B8@*&%R9V,@/3T@-"DI('L**PD):6]C;60N9&5V:6-E(#T@871O:2AA
M<F=V6S-=*3L**PD):6]C;60N8VUD(#T@051!4U1!3D1"63L**PD):68@*&EO
M8W1L*&9D+"!)3T-!5$$L("9I;V-M9"D@/"`P*0HK"0D)97)R*#$L(")I;V-T
M;"A!5$%35$%.1$)9*2(I.PHK"7T*(`EE;'-E"B`)("`@(`EU<V%G92@I.PH@
M"65X:70H,"D["BTM+2!S>7,O<WES+V%T82YH+F]R:6<)4W5N($IA;B`@-2`P
M,3HP-SHS,2`R,#`S"BLK*R!S>7,O<WES+V%T82YH"5-U;B!*86X@(#4@,#$Z
M,#DZ-#<@,C`P,PI`0"`M,S8T+#8@*S,V-"PW($!`"B`C9&5F:6YE($%405)!
M241$14Q%5$4)"3$P"B`C9&5F:6YE($%405)!24135$%455,)"3$Q"B`C9&5F
M:6YE($%4045.0U-4050)"3$R"BLC9&5F:6YE($%405-404Y$0ED)"3$S"B`*
M("`@("!U;FEO;B!["B`)<W1R=6-T('L*+2TM('-Y<R]D978O871A+V%T82UA
M;&PN8RYO<FEG"5-U;B!*86X@(#4@,#$Z,S(Z,3`@,C`P,PHK*RL@<WES+V1E
M=B]A=&$O871A+6%L;"YC"5-U;B!*86X@(#4@,#,Z,3$Z,S,@,C`P,PI`0"`M
M-#0R+#8@*S0T,BPS,B!`0`H@"2`@("!C:"T^;&]C:U]F=6YC*&-H+"!!5$%?
M3$9?54Y,3T-+*3L*(`D@("`@<F5T=7)N(#`["B`)?0HK"0HK"6-A<V4@051!
M4U1!3D1"63H@>PHK"2`@("!S=')U8W0@871A7V1E=FEC92`J871A9&5V.PHK
M"2`@("!I;G0@<B`](#`["BL)("`@(`HK"2`@("!I9B`H(61E=FEC92!\?"`A
M*&-H(#T@9&5V:6-E7V=E=%]S;V9T8RAD979I8V4I*2D**PD)<F5T=7)N($5.
M6$E/.PHK"BL)("`@(&-H+3YL;V-K7V9U;F,H8V@L($%405],1E],3T-+*3L*
M*PD@("`@051!7U-,14503$]#2U]#2"AC:"P@051!7T%#5$E612D["BL)("`@
M(`HK"2`@("!I9B`H:6]C;60M/F1E=FEC92`]/2!33$%612D**PD)871A9&5V
M(#T@)F-H+3YD979I8V5;4TQ!5D5=.PHK"2`@("!E;'-E"BL)"6%T861E=B`]
M("9C:"T^9&5V:6-E6TU!4U1%4ET["BL)"BL)("`@(&EF("AA=&%?8V]M;6%N
M9"AA=&%D978L($%405]#7U-404Y$0EE?24U-+"`P+"`P+"`P+`HK"2`@("`@
M($%405]704E47TE.5%(I*2!["BL)"6%T85]P<G1D978H871A9&5V+"`B051!
M('-T86YD8GD@9F%I;&5D7&XB*3L**PD)<B`]("TQ.PHK"2`@("!]"BL)"BL)
M("`@($%405]53DQ/0TM?0T@H8V@I.PHK"2`@("!C:"T^;&]C:U]F=6YC*&-H
M+"!!5$%?3$9?54Y,3T-+*3L**PD@("`@<F5T=7)N('(["BL)?0H@"B`C:69D
M968@1$567T%4041)4TL*(`EC87-E($%405)!241214)524Q$.@HM+2T@<WES
M+V1E=B]A=&$O871A+6%L;"YH+F]R:6<)4W5N($IA;B`@-2`P,3HP,SHS-B`R
M,#`S"BLK*R!S>7,O9&5V+V%T82]A=&$M86QL+F@)4W5N($IA;B`@-2`P,3HP
M-#HT,"`R,#`S"D!`("TX,BPV("LX,BPW($!`"B`C9&5F:6YE"0E!5$%?0U]2
M14%$7T1-00D),'AC.`DO*B!R96%D('<O1$U!(&-O;6UA;F0@*B\*("-D969I
M;F4)"4%405]#7U=2251%7T1-00D),'AC80DO*B!W<FET92!W+T1-02!C;VUM
M86YD("HO"B`C9&5F:6YE"0E!5$%?0U]74DE415]$34%?455%545$"3!X8V,)
M+RH@=W)I=&4@=R]$34$@455%545$(&-O;6UA;F0@*B\**R-D969I;F4)"4%4
M05]#7U-404Y$0EE?24U-"3!X93`)+RH@<W1A;F1B>2!I;6UE9&EA=&4@*B\*
M("-D969I;F4)"4%405]#7U-,1450"0DP>&4V"2\J('-L965P(&-O;6UA;F0@
M*B\*("-D969I;F4)"4%405]#7T9,55-(0T%#2$4),'AE-PDO*B!F;'5S:"!C
M86-H92!T;R!D:7-K("HO"B`C9&5F:6YE"0E!5$%?0U]&3%532$-!0TA%-#@)
?,'AE80DO*B!F;'5S:"!C86-H92!T;R!D:7-K("HO"@``
`
end

>Release-Note:
>Audit-Trail:

From: Ulrich Spoerlein <q@uni.de>
To: User & <thinker@branda.to>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: kern/46773: I want IDE HD go into standby mode.
Date: Sun, 5 Jan 2003 18:07:33 +0100

 --S_F6=.0SY=Gj1WCQ
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 
 On 2003/01/05-12:39:38 User & wrote:
 
 nice patch, thanks. i have a similar patch for the HDDs to go to sleep
 after a give period of inactivity. the only thing lacking now would be to
 add a switch to apm/zzz, so that it can power down HDDs on standby
 
 --S_F6=.0SY=Gj1WCQ
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.1 (FreeBSD)
 
 iD8DBQE+GGZWmArGtfDbn0QRAuJ1AJ9lPTlU7HCz44fNFTiDhuYL5VDodACgsy01
 1URn7usl3KkfFMUPEzF1YLU=
 =Kjhv
 -----END PGP SIGNATURE-----
 
 --S_F6=.0SY=Gj1WCQ--
Responsible-Changed-From-To: freebsd-bugs->sos 
Responsible-Changed-By: johan 
Responsible-Changed-When: Mon Feb 3 12:57:45 PST 2003 
Responsible-Changed-Why:  
Over to ATA maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46773 
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Sat Oct 25 12:38:18 PDT 2003 
State-Changed-Why:  
Actually this can be done from userland know as with ATAng its 
possible to issue ATA commands from userland. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46773 
>Unformatted:
