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
$B$K$bJQ2=$,$"$k$G$7$g$&(B)$B!#(B

     NiMh $B$NDj3J(B:
       
       $B%;%kEE05(B: 1.2 V
       $BC10L=ENLEv$jEENONL(B: 55 Wh/kg
       $BC10LMF@QEv$jEENONL(B: 160 Wh/l
       $B:GBgEENONL(B: 35 Wh
       $B=e(B
$B%a%b%j!<8z2L$O$"$j$^$;$s!#$7$+$7>l9g$K$h$C$F$O!"F1MM$NLdBj$K8+Iq$o$l$k$3(B
$B$H$,$"$j$^$9!#%j%A%&%`%$%*%sEECS$K$O4D6-$KM-32$JJ*$NEECS$HF1MM$K!":F@8!&:FMxMQ8~$1$K2s<}$9$kI,MW$,$"$j$^$9!#(B

    LiIon $B$NDj3J(B:

       $B%;%kEE05(B: 3.6 V
       $BC10L=ENLEv$jEENONL(B: 100 Wh/kg
       $BC10LMF@QEv$jEENONL(B: 230 Wh/l
       $B:GBgEENONL(B: 60 Wh
       $B=$N$Nl9g$K$O!"8f;H$$$N%i%C%W%H%C%W$G$b$C$H?7$7(B
$B$$/$7$E$D<+8JJ|EE$7$F$$$^$9!#$^$?$I$s$J$KCm(B
$B0U$rJ'$C$F$$$F$b!"(B500-1000$B2s=)$a$G$-$^$;$s!#EECS$O%T!<%/EE05$KBP$9$kJ]8n5!G=$r$b2L$?$7$F$$$k(B
$B$3$H$,B?$$$+$i$G$9!#(B

$B%a!<%+!<$O?t%u7n$4$H$KEECS$N7A>u$rJQ99$7$F$$$k$N$G!"?tG/A0$N%i%C%W%H%C%W(B
$BMQ$NM=HwEECS$r8+$D$1$k$N$OFq$7$$$+$b$7$l$^$;$s!#:_8K$,$J$/$J$i$J$$Fb$K!"(B
$BM=HwEECS$r$9$0CHq$r:o8:$9$k$b$C$H$b4JC1$JJ}K!$r0J2<$K<($7$^$9!#$b$C$H$b!"(B
$B$=$&B?$/$N?M$,$3$N$d$jJ}$r:NMQ$7$F$$$k$o$1$G$O$J$$$N$G!V<+L@!W$N$b$N$H$O(B
$B$$$($J$$$+$b$7$l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p$9$k$3$H$K$7$^$7$g$&!#(B

3.  APM (Advanced Power Management)

$B7HBSMQ$N%7%9%F%`$N>l9g$O$b$A$m$s$N$3$H!"Bn>e5!$G$b(B APM (Advanced Power
Management) $B$,$D$+$($k5!O$G$O(BLinux $B$N%+!<%M%k(B
$B$,Hw$($F$$$k(B APM $B5!G=$r;HMQ$9$kJ}K!$r@bL@$7$^$9!#7P83K-IY$J(BLinux $B%f!<%6!<(B
$B$OB`6~$GFI$_Ht$P$7$F$7$^$$$?$/$J$k$+$b$7$l$^$;$s!#(B

3.1. APM $B$N8zG=(B

APM $B$N8zG=$r>\=R$9$k$N$,$3$N@a$NL\E*$G$O$"$j$^$;$s!#>\$7$/$O(B Linux APM$B%I(B
$B%i%$%P$N%Z!<%8(B (http://www.cs.utexas.edu/users/kharker/linux-laptop/
apm.html $B$r;2>H$7$F$/$@$5$$!#CN$C$F$*$/I,MW$,$"$k$N$O!V(BAPM $B$r;H$($P(B CPU
$B$,(B BIOS $B$K(B "$B:#$O$?$$$7$?$3$H$r$7$F$$$J$$$+$i!"(BBIOS $B<+?H$GEENO@a8:$KEX$a(B
$B$J$5$$(B"$B$H$$$&;XNa$rEA$($i$l$k$h$&$K$J$k$H$$$&$3$H$@$1$G$9!#(BCPU $B$N%/%m%C(B
$B%/$rCY$/$9$k!"%O!<%I%G%#%9%/$N2sE>$r;_$a$k!"%G%#%9%W%l!<$N%P%C%/%i%$%H$r(B
$B>C$9Ey$O(B BIOS $B$N;E;v$J$N$G$9!#(B

$B%7%9%F%`$r0l;~Dd;_(B($B$"$k$$$O5YL2(B)$B>uBV$K$7$?$j!"%O!<%I%G%#%9%/$r0l;~Dd;_(B
($B$^$?$OE_L2(B)$B>uBV$K$9$k$N$b(B APM $B$N5!G=$G$9!#$3$N$[$+$+$C$3$O$$$$$1$l$I$"(B
$B$^$j=EMW$H$O$$$($J$$5!G=$H$7$F$O!"(B shutdown -h $B$G%7%9%F%`$rDd;_$5$;$:%*(B
$B%U$K$7$F$7$^$&$H$$$&$N$,$"$j$^$9!#(B

$B$^$H$b$J(B APM BIOS $B$rAuHw$7$F$$$k2ql9g$K$O!"N)$A>e$2;~$"$k$$$O!V0l;~Dd;_>uBV!W$+$iI|5"$7$?$H$-$K8G$^$C$F(B
$B$7$^$&$3$H$,B?$$$h$&$G$9(B)

3.2. Linux $B$G(BAPM $B5!G=$r;HMQ$9$kJ}K!(B

$B4JC1;j6K!"%+!<%M%k$r:F9=C[$9$k$@$1$G$9!#$d$jJ}$r8fB8$8$J$$J}$O!"(B
Kernel-HOWTO$B$r8fMw2<$5$$!#(B

$B@_Dj=q<0$N(B "character devices" $B$N9`$K$O(B APM BIOS $B$NItJ,$,$"$j!"=i(B
$B4|@_Dj$G$O0J2<$NDL$j$9$Y$F$N5!G=$rMxMQ$9$k$h$&$K$J$C$F$$$^$9(B(2.0.30 $B0J>e(B
$B$N>l9g(B)

       Advanced Power Management BIOS support: Yes
       Ignore USER SUSPEND: No
       Enable PM at boot time: Yes
       Make CPU Idle calls when idle: Yes
       Enable console blanking using APM: Yes
       Power off on shutdown: Yes

$B@_Dj=q<0$N%X%k%WJ8=q$r8fFI$_2<$5$$!#3FA*Br9`L\$N>\:Y$J@bL@$O$3$N%X%k%WJ8(B
$B=q$K5-:\$5$l$F$$$k$N$G!"$3$3$G$O3d0&$5$;$FD:$-$^$9!#(B

$B8f;H$$$N%7%9%F%`$,(B APM BIOS $B4p=`$N5!G=$r40A4$K$OK~$?$7$F$$$J$$$h$&$J>l9g(B
$B$KFCDj$NA*Br9`L\$rMxMQ$9$k$H!"%7%9%F%`$,%/%i%C%7%e$7$F$7$^$&$+$b$7$l$^(B
$B$;$s!#?7$7$$%+!<%M%k$r;H$&:]$K$O(B APM $B5!G=$r0lDL$j;n$7$F!"$&$^$/2TF/$9$k(B
$B$+$I$&$+$r3NG'$7$F$/$@$5$$!#(B

($B2hLL$N>CEt$K4X$9$kCp5-(B: David Bateman $B;a$NJs9p$K$h$k$H!"8=9T%P!<%8%g%s(B
$B$G$"$k(B XFree 3.2 $B$H$OAj@-$,0-$$$N$G!V2hLL>CEt5!G=!W$O;H$($J$$$H$N$3$H$G(B
$B$9!#F1;a$O!V(BX $B$r5/F0$9$k$H!"2hLL$,>CEt$7$F$7$^$&$H$$$&>I>u$,$G$^$9!#$3$N(B
$B>I>u$OG$0U$N%-!<$r2!$7$F$d$k$H2r>C$G$-$k$N$,$U$D$&$G$9!#$3$l$O:3:Y$JLdBj(B
$B$G$9$,!"$$$i$$$i$NH(B
$B$7$F$/$@$5$$!W$H=R$Y$F$$$^$9!#F1;a$O$5$i$K!V%G%#%9%W%l!<$N%P%C%/%i%$%H$N(B
$Bl9g$d$b$H$NHG$,(B"module version information"$B!V$"(B
$B$j!W$G9=C[$7$?$b$N$G$"$C$?>l9g$K$O!"%I%i%$%P$N:F9=C[$,I,MW$G$9!#(B("module
version information" $B$NA*Br9`L\$O%+!<%M%k@_Dj$N(B"loadable module support"
$B$N9`$K$"$j$^$9(B)

PCMCIA $B%I%i%$%P$r9=C[$9$kJ}K!$N>\:Y$K$D$$$F$O(B PCMCIA-HOWTO $B$r8fFI(B
$B$_2<$5$$!#$"$k$$$O(B Linux PCMCIA $B%I%i%$%P$N%[!<%`%Z!<%8$G$"$k(B
http://hyper.stanford.edu/HyperNews/get/pcmcia/home.html $B$r$*K,$M2<$5$$!#(B

3.4. apmd $B%Q%C%1!<%8(B

APM $B$NAH$_9~$_$r:Q$^$;$?$i!"(Bapmd $B%Q%C%1!<%8$r(B Linux APM $B%I%i%$%P$NJG$+$i(B
$BCLW$9$k$H7Y9p$rH/$7$F$/$l$^$9!#(Bapm $B$O%7%9%F%`$r0l;~Dd;_$5$;$k$?$a(B
$B$N%7%'%k%3%^%s%I$G$9!#$^$?!"(Bxamp $B$OEECS$N8=67$rI=<($9$k$b$N$G$9!#(B

($BCm(B:$B0l;~Dd;_>uBV$+$iI|5"$7$?:]$K(B PCMCIA $B%+!<%I$KLdBj$,H/@8$9$k$h$&$J>l9g(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$?$N$O(B RedHat 4.1$B$G$9!#G[I[$K$h$C$F$O@_Dj%U%!%$%k$NCV>l=j$,(B
$B0[$J$C$F$$$k$+$b$7$l$^$;$s(B($B$=$N@a$K$O!"EvJ}$^$G8fCN$i$;2<$5$$(B)$B!#(B

4.1. crond $B%G!<%b%s$H(B atrun

$B0lJ,$4$H$K5/F0$9$k%W%m%;%9$,$"$k$+$I$&$+(B/etc/crontab $B$H$$$&%U%!%$%k$rD4(B
$B$Y$F2<$5$$!#(Batrun $B$,8+$D$+$k$3$H$,B?$$$G$7$g$&!#(B

($BLuCm(B: slackware $B$N>l9g!"(B /var/spool/crontab/root $B$G$9(B)

at $BL?Na$r;H$($P!"$3$l$+$i@h$=$N$&$A5/F0$5$l$kL?Na$r%9%W!<%k$G$-$^$9!#(B
Linux $B%7%9%F%`$NCf$K$O!"$3$N;E;v$r(B atd  $B$H$$$&%G!<%b%s$K$^$+$;$F$$$k$b$N(B
$B$b$"$j$^$9!#$3$l$KBP$7(BRedHat $B$J$I$N>l9g$K$O!"(Bcrond $B$H$$$&%G!<%b%s$,0lJ,(B
$BKh$K(B atrun $B$r5/F0$7$^$9!#(B

$B$?$$$F$$$N%7%9%F%`$N>l9g!"$3$l$OK\Ev$KI,MW$J$b$N$G$O$"$j$^$;$s!#(Bat $BL?Na(B
$B$,@53N$J;~4V$K5/F0$5$l$k$3$H$,;`3hE*$G$"$k$H$$$&$N$O5)$@$+$i$G$9!#(B/etc/
crontab $B$K$O0J2<$N$h$&$J0l9T$,8+$D$+$k$+$b$7$l$^$;$s!#(B

       # Run any at jobs every minute (at $B$r0lJ,$4$H$K5/F0(B)
       * * * * * root [ -x /usr/sbin/atrun ] && /usr/sbin/atrun

$B$3$l$r0J2<$N$h$&$K=q$-49$($F$b2?$NLdBj$b$"$j$^$;$s!#(B

       # Run any at jobs every hour (at $B$r0l;~4V$4$H$K5/F0(B)
       00 * * * * root [ -x /usr/sbin/atrun ] && /usr/sbin/atrun


$B>\$7$/$O(B crontab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/$3$7$?(B
$BNc$O$J$/!"%O!<%I%G%#%9%/$X$N%"%/%;%9$bDj4|E*$KDd;_$9$k$h$&$K$J$j$^$7$?!#(B
($B$b$A$m$s:#%7%9%F%`$,Mn$A$?$i!"%U%!%$%k$,$+$J$j$?$/$5$s$d$i$l$F$7$^$&$G(B
$B$7$g$&$,(B)

RedHat 4.1 $B$N>l9g(B /etc/inittab $BCf$N(B update $B8F$S=P$7$rl9g(B
update $B$r8F$S=P$7$7$F$$$k$N$O(B

        /sbin/init.d/boot 
Slackware $B$N>l9g!"(B update $B$r8F$S=P$7$7$F$$$k$N$O(B /etc/rc.d/rd.S $B$G$9!#(B

$B>\$7$/$O(B update $B$N%^%K%e%"%k$r;2>H$7$F$/$@$5$$!#(B

4.3. syslogd $B%G!<%b%s(B

syslogd $B%G!<%b%s$O!"(B/var/log $B%G%#%l%/%H%j$K$"$k(B Linux $B$NMM!9$J%7%9%F%`%m(B
$B%0%U%!%$%k$r;J$C$F$$$^$9!#%7%9%F%`%a%C%;!<%8$,H/$;$i$l$kEY$K%m%0%U%!%$%k(B
$B$rF14|$5$;$k$H$$$&$N$,=i4|@_Dj$H$J$C$F$$$^$9!#(B

$B$3$N5!G=$rDd;_$5$;$k$K$O!"(B/etc/syslog.conf $B>e$K5-:\$5$l$F$$$k%U%!%$%kL>(B
$B$NA0$K%@%C%7%e(B "-" $B$r$D$1$/$o$($^$9!#0J2<$NNc$OCxLL$9$k$3$H$K$J$j$^$9!#(B

4.4. init $B%3%^%s%I(B

$B%V!<%H%"%C%WCf$K=i4|%W%m%;%9$d%G!<%b%s$r5/F0$9$k$?$a$K;HMQ$9$k$N$,(B init
$B%3%^%s%I$G$9!#$3$N%3%^%s%I$b!"3F%W%m%;%9$4$H$K(B sync $B$r8F$S=P$7$7$^$9!#(B

$B$3$NE@$rJQ99$9$k$?$a$K$O!"%=!<%9%3!<%I$+$i(B sync() $B8F$S=P$7$rA0$NItJ,$K(B sync $B8F$S=P$7$rIU$12C$($k$H$$$&J}K!$G2sHr$G$-$^$9!#(B

4.5 $B%9%o%C%W(B $B%Q!<%F%#%7%g%s(B

Linux $B$N%9%o%C%W%Q!<%F%#%7%g%s$O2>A[5-21$rMQ$$$FJ*M}E*%a%b%j6u4V$r9-$2$k(B
$B$?$a$N$b$N$G$9!#%9%o%C%W%Q!<%F%#%7%g%s$r;H$&$H$$$&$N$O!"%G%#%9%/%"%/%;%9(B
$B$N860x$N0l$D$H$J$j$^$9!#8f;H$$$N%i%C%W%H%C%W$,%i%`$r==J,AuHw$7$F$$$k>l9g!"(B
$B$"$k$$$O7Z$$%"%W%j%1!<%7%g%s(B(vi $B$N$h$&$J(B)$B$r;H$&>l9g$K$O!"%9%o%C%W$r!V@Z!W(B
$B$K$9$k$3$H$r9MN8$7$?$/$J$k$G$7$g$&!#(B

$B%9%o%C%W$r!V@Z!W$K$G$-$k$+$I$&$+$O$b$A$m$s!V2?$r$7$h$&$H$9$k$+!We$N%a(B
$B%b%j$,$J$$8B$j%9%o%C%W$OI,?\$G$9!#(B

($BCp5-(B:$BCxl9g$G$b!"$3$l$r;H$o$J$$(B
$B$h$&$K$9$k$3$H$O$G$-$^$9!#(B /etc/rc.d/rc.sysinit $B$K$"$k(B swapon $B$r8F$S=P$9(B
$BItJ,$N@hF,$K(B "#" $B$rIU$1B-$;$P$$$$$N$G$9!#%9%o%C%W$r>o;~%*%U$K$O$7$F$7$^(B
$B$$$?$/$J$$;~$K$O!"%7%9%F%`N)$A>e$2;~$K%9%o%C%W;HMQ$N2DH]$rLd$$9g$o$;$k$h(B
$B$&$K$7$F$*$-$^$7$g$&!#(BRedHat 4.1 $B$N>l9g$K$O(B/etc/rc.d/rc.sysinit$B!"(BSuse
4.4.1 $B$N>l9g$K$O(B /sbin/init.d/boot $B$r0J2<$N$h$&$K5-=R$7$^$9!#(B(Slackware
$B$N>l9g$K$O!"(B /etc/rc.d/rc.S $B$G$9(B)

       echo "Should the system use swap?"
       echo "  0: No."
       echo "  1: Yes."
       /bin/echo "Your choice: \c"
       read SWAPCHOICE

       case "$SWAPCHOICE" in
           0)
               # Do nothing.
               echo "(Swap partitions disabled)"
               ;;
           *)
               # Start up swapping.
               echo "Activating swap partitions"
               swapon -a
       esac

$B$3$&$7$F$*$1$P!"8rN.EE8;$r;HMQ$7$F$$$k$H$-$K$O%9%o%C%W$rMQ$$!"EECS$r;HMQ(B
$B$7$F$$$k$H$-$K$O%9%o%C%W$rMQ$$$J$$$H$$$C$?$3$H$,2DG=$H$J$j$^$9!#(B

4.6. apace httpd webserver $B%G!<%b%s(B

$BCxe$GN)$A>e$2$F$$$k$N$O$=$N$?$a$J$N(B
$B$G$9!#=q<0$r;n83$7$?$jJG$r;~!98!::$7$?$j$9$k$@$1$N?M$K$H$C$FI8=`@_Dj$O$$(B
$B$5$5$+2a$.$?$k$b$N$G$7$g$&!#(B

httpd.conf $B$K$"$k(B MinSpareServers$B!"(B StartServers $B$NCM$r(B 1 $B$KJQ99$7$F$/$@(B
$B$5$$!#%m!<%+%k$N;n83%5%$%H$K$O$3$l$G==J,$G$7$g$&!#(B

Web $B%5!<%P!<$N%m%0$r\$7$/$OEv3:J8=q$r8fFI$_2<$5$$!#(B

4.7. $B99$J$k:GE,2=$rL\;X$7$F(B

Linux $B%7%9%F%`$,$^$@%O!<%I%G%#%9%/$rIQHK$K?($j$K9T$-$9$.$k$h$&$K;W$($k;~(B
$B$K$O!"(Bps ax $B%3%^%s%I$r;H$C$F0lBN2?$,5/$3$C$F$$$k$N$+$rD4$Y$k$H$$$&l9g$K$h$C$F$O!"3F%W%m%;%9$N%3%^%s%I%i%$%s0z?t$bI=<($5$l$^$9!#(B

($BLuCm(B:$BI=<($,2hLL$N1&C<$G@Z$l$F$7$^$&$H$-$K$O!"(B ps axwww $B$H$7$^$9(B)

$B.8B$N%$%s%9%H!<%k!W$N%@%$%(%C%H$OIT==J,$J$3$H$,B?$$!#%i%C%W%H%C%W%f!<(B
$B%6!<$,30$GMxMQ$9$k$K$OITI,MW$J$b$N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