Subject: pkg/18447: KDE[23] laptop power management is disable on 1.6
To: None <gnats-bugs@gnats.netbsd.org>
From: None <t-nkyma@tcp-ip.or.jp>
List: netbsd-bugs
Date: 09/29/2002 02:11:46
>Number: 18447
>Category: pkg
>Synopsis: KDE[23] laptop power management is disable on 1.6
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Sep 28 10:12:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Takeshi Nakayama
>Release: NetBSD 1.6
>Organization:
Private
>Environment:
System: NetBSD lethe 1.6 NetBSD 1.6 (LETHE) #10: Sat Sep 28 19:16:13 JST 2002
takeshi@lethe:/usr/src/sys/arch/i386/compile/LETHE i386
Architecture: i386
Machine: i386
>Description:
see Synopsis.
>How-To-Repeat:
install kdeutils[23], then see laptop power management of
control panel.
>Fix:
ioctl APM_IOC_GETPOWER has changed between 1.5 and 1.6, so
we need to set batteryid (or clear apm_power_info structure)
before calling it.
Attached file is replacement of kdeutils2/patches/patch-ai.
Similar change needs for kdeutils3/patches/patch-an.
begin 644 patch-ai
M)$YE=$)31"0*"BTM+2!K;&%P=&]P9&%E;6]N+W!O<G1A8FQE+F-P<"YO<FEG
M"5=E9"!-87D@,38@,3$Z,38Z,S4@,C`P,0HK*RL@:VQA<'1O<&1A96UO;B]P
M;W)T86)L92YC<'`)36]N(%-E<"`Q-B`Q-#HT-3HT,2`R,#`R"D!`("TV-3@L
M-B`K-C4X+#(T,2!`0`H@>PH@"7)E='5R;B@Q*3L*('T**PHK(V5L:68@(%]?
M3F5T0E-$7T%035]?"BL**R-I;F-L=61E(#QE<G)N;RYH/@HK(VEN8VQU9&4@
M/&9C;G1L+F@^"BLC:6YC;'5D92`\=6YI<W1D+F@^"BLC:6YC;'5D92`\<W1D
M;&EB+F@^"BLC:6YC;'5D92`\<WES+VEO8W1L+F@^"BLC:6YC;'5D92`\<WES
M+W-T870N:#X**R-I;F-L=61E(#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65N="@I(&AA<R!A;')E861Y(')E='5R;F5D(#$I"BLO+PHK:6YT(&QA<'1O
M<%]P;W)T86)L93HZ:&%S7W-T86YD8GDH*0HK>PHK"BL)<W1R=6-T('-T870@
M<SL**R`@("`@("`@:68@*'-T870H(B]U<W(O<V)I;B]A<&TB+"`F<RDI"BL)
M"7)E='5R;B@P*3L**PER971U<FXH,2D["BM]"BL**R\O"BLO+PER971U<FYS
M(#$@:68@=V4@8V%N('!E<F9O<FT@82!C:&%N9V4M=&\M:&EB97)N871E+6UO
M9&4@9F]R(&$@=7-E<@HK+R\@("`@("`H:&%S7W!O=V5R7VUA;F%G96UE;G0H
M*2!H87,@86QR96%D>2!R971U<FYE9"`Q*2`@6VAI8F5R;F%T92!I<R!T:&4@
M<V%V92UT;RUD:7-K(&UO9&4**R\O"6YO="!S=7!P;W)T960@8GD@;&EN=7@@
M+2!D:69F97)E;G0@;&%P=&]P<R!H879E('1H96ER(&]W;B`M('1H92!F:7)S
M="!H97)E(&ES(&9O<B`**R\O"6$@5&AI;FM0861="BLO+PE.;R!S=7!P;W)T
M(&EN($YE=$)31"!A="!T:&ES('1I;64N"BLO+PHK:6YT(&QA<'1O<%]P;W)T
M86)L93HZ:&%S7VAI8F5R;F%T:6]N*"D**WL**PER971U<FXH,"D["BM]"BL*
M*R\O"BLO+PEE>'!L86EN('1O('1H92!U<V5R('=H870@=&AE>2!N965D('1O
M(&1O(&EF(&AA<U]P;W=E<E]M86YA9V5M96YT*"D@<F5T=7)N960@,`HK+R\)
M=&\@9V5T(&%N>2!S;V9T=V%R92!T:&5Y(&QA8VL**R\O"BM13&%B96P@*FQA
M<'1O<%]P;W)T86)L93HZ;F]?<&]W97)?;6%N86=E;65N=%]E>'!L86YA=&EO
M;BA15VED9V5T("IP87)E;G0I"BM["BL@(&EN="!F9#L**R`@44QA8F5L("IE
M>'!L86EN.PHK"BL@(&9D(#T@.CIO<&5N*$%0341%5BP@3U]21$].3%DI.PHK
M("!I9B`H9F0@/3T@+3$I('L**R`@("!S=VET8V@@*&5R<FYO*2!["BL@("`@
M8V%S92!%3D]%3E0Z"BL@("`@("!E>'!L86EN(#T@;F5W(%%,86)E;"@B5&AE
M<F4@:7,@;F\@+V1E=B]A<&T@9FEL92!O;B!T:&ES('-Y<W1E;2X@(%!L96%E
M(')E=FEE=R!T:&4@3F5T0E-$(&1O8W5M96YT871I;VX@;VX@:&]W('1O(&-R
M96%T92!A(&1E=FEC92!N;V1E(&9O<B!T:&4@87!M(&1E=FEC92!D<FEV97(@
M*&UA;B`T(&%P;2DB+"!P87)E;G0I.PHK("`@("`@8G)E86L["BL@("`@8V%S
M92!%04-#15,Z"BL@("`@("!E>'!L86EN(#T@;F5W(%%,86)E;"@B66]U<B!S
M>7-T96T@:&%S('1H92!P<F]P97(@9&5V:6-E(&YO9&4@9F]R(&%P;2!S=7!P
M;W)T+"!H;W=E=F5R('EO=2!C86XG="!A8V-E<W,@:70N($EF('EO=2!H879E
M(&%P;2!I;B!T:&4@:V5R;F5L('1H:7,@<VAO=6QD(&YO="!H87!P96XB+"!P
M87)E;G0I.PHK("`@("`@8G)E86L["BL@("`@8V%S92!%3EA)3SH**R`@("`@
M(&5X<&QA:6X@/2!N97<@44QA8F5L*")9;W5R(&ME<FYE;"!L86-K<R!S=7!P
M;W)T(&9O<B!!9'9A;F-E9"!0;W=E<B!-86YA9VUE;G0N(BP@<&%R96YT*3L*
M*R`@("`@(&)R96%K.PHK("`@("`@8G)E86L["BL@("`@9&5F875L=#H**R`@
M("`@(&5X<&QA:6X@/2!N97<@44QA8F5L*")4:&5R92!W87,@<V]M92!G96YE
M<FEC(&5R<F]R('=H:6QE(&]P96YI;F<@+V1E=B]A<&TN(BP@<&%R96YT*3L*
M*R`@("`@(&)R96%K.PHK("`@('T**R`@?2!E;'-E('L**R`@("!C;&]S92AF
M9"D["BL@("`@97AP;&%I;B`](&YE=R!13&%B96PH(D%032!H87,@;6]S="!L
M:6ME;'D@8F5E;B!D:7-A8FQE9"X@($]O<',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;F9O*3L**R`@("`@("`).CIC;&]S92AF
M9"D["BL)"BL@("`@("`@"6EF("AR970@/3T@+3$I"BL@("`@("`@("`)9V]T
M;R!B860["BL**R`@("`@("`)<"YP;W=E<F5D(#T@*&EN9F\N86-?<W1A=&4@
M/3T@05!-7T%#7T].*3L**R`@("`@("`)<"YP97)C96YT86=E(#T@*&EN9F\N
M8F%T=&5R>5]L:69E/3TR-34@/R`Q,#`@.B!I;F9O+F)A='1E<GE?;&EF92D[
M"BL@("`@("`@"7`N=&EM92`]("AI;F9O+FUI;G5T97-?;&5F="`A/2`P>&9F
M9F8@/R!I;F9O+FUI;G5T97-?;&5F="`Z("TQ*3L**R`@("`@("`)<F5T=7)N
M*'`I.PHK"BMB860Z"BL@("`@("`@"7`N<&]W97)E9"`](#$[(`HK"7`N<&5R
M8V5N=&%G92`](#$P,#L**PEP+G1I;64@/2`P.PHK"7)E='5R;BAP*3L**WT*
M*PHK+R\**R\O"BLO+PER971U<FYS('1R=64@:68@86YY(&UO=7-E(&]R(&MD
M8B!A8W1I=FET>2!H87,@8F5E;B!D971E8W1E9`HK+R\)"BMI;G0@;&%P=&]P
M7W!O<G1A8FQE.CIP;VQL7V%C=&EV:71Y*"D**WL**PER971U<FXH,2D["BM]
:"B`C96QS90H@"B`O+R!)3E-%4E0@2$5210H*
`
end
>Release-Note:
>Audit-Trail:
>Unformatted: