Next Previous Contents

3. ¥ý¶i¯à·½ºÞ²z APM

¤j³¡¥÷ªº¥iÄ⦡¨t²Î¡A©Î¬Æ¦Ü«Ü¦h®à¤W«¬¹q¸£³£¦³¤ä´© APM¡A¥ý¶i¯à·½ºÞ²z ¬[ºc¡C ¥»³¹¸`¦b½Í¦p¦ó¦b§Aªº Linux ®Ö¤ß¤º±Ò°Ê APM ªº¤ä´©¡C ¨º¨Ç¨Ï¥Î Linux «Ü¦³¸gÅ窺¤H¥i¯à·|ı±o¥»³¹¸`«ÜµL²á¦Ó·Q­n¸õ¨ì¤U¤@³¹¸`¡C

3.1 APM ¯à¬°§A°µ¤°»ò¨Æ?

§Ú¤£·Q¦b³o¨à¸Ô²Ó½Í³o­ÓÃD¥Ø¡A½Ð¬Ý¬Ý¦b http://www.cs.utexas.edu/users/kharker/linux-laptop/apm.html ¤ºªº Linux APM ÅX°Êµ{¦¡ºô­¶ ¦³¸Ô²Óªº¸ê°T¡C§A©Ò»Ý­nª¾ ¹Dªº¬O¡A¦³¤F APM ªº¨ó§U¡A·í¨S¦³Ô£»ò¨Æ­n°µ®É CPU ¥i¥H§i¶D BIOS ¨ÓÅý BIOS ´x±±¥¦¦Ûªº¸`¬Ù¯à·½±¹¬I¡A¤ñ¦p»¡Ä~Äò°Ê§@®É¡Abios ·|¦Û¤v­t³d³¡¥÷ ªº¯à·½¸`¬Ù¡Ð¨Ò¦p¡A­°§C CPU ®É¯ß¡BÃö³¬µwºÐ¡BÃö±¼¿Ã¹õªº­I¥úµ¥µ¥¡C

Apm ÁÙ­t³d `` ¨t²ÎÄa¸m '' (©ÎºÙ `` ºÎı '') ¼Ò¦¡¥H¤Î `` Äa¸m¨ìºÏºÐ '' (©ÎºÙ `` ¥V¯v '') ¼Ò¦¡¡C ¥t¤@«Ü´Îªº¯SÂI¡AÁöµM¨Ã¤£¬O«Ü­«­n¡A¦ý¦] ¬° apm ªº¨ó§U¡Ashutdown -h ¨Ã¤£¤î·|°±¤î§Aªº¨t²Î¦Ó¥BÁÙ·|±N¥¦µ¹ Ãö¾÷®@!

(ÃD¥~¸Ü¡A ¤j³¡¥÷ªº Linux ¨t²Î±N shutdown -r ©ñ¦b¥¦­Ìªº /etc/inittab ¤º¡A¥Î°µ¹ï¬M¨ì«ö¨ì control-alt-delete ²Õ¦XÁä ®É°Ê§@¡C §Ú¸û³ßÅw±N shutdown -h ©ñ¦b³o¨à¡A ©Ò¥H·í§Ú­Ì«ö¤F³o­Ó CTL+ALT+DEL ²Õ¦XÁä®É¡A§Úªºµ§°O¹q¸£´N¥u²³æ¦a±N¥¦¦Û¤vÃö¾÷¡C)

¨Ã¤£¬O©Ò¦³ªº»s³y°Ó³]­p¤F¥¿½Tªº apm bios¡A ¤]¦]¦¹¦³¨Çµ§°O¹q¸£¦b¨Ï¥Î Linux apm ÅX°Êµ{¦¡®É·|¦³¨Ç³Â·Ð¡C(¦pªG§Aªº¾÷¾¹¦b¨Ï¥Î apm ®É¦³°ÝÃD¡A ¤j³¡¥÷·|¦b Linux ±Ò°Ê®É©Î±qÄa¸m­«ªð®É·|¦³Âê¦í¤£°Êªº±¡§Î )¡C ¦pªG§A ¨Ã¤£½T©w¡A½ÐÀ˵ø Linux µ§°O¹q¸£ºô­¶¤¤¦³Ãö§Aªº¹q¸£«¬¸¹ªº¸ê®Æ¡C

3.2 ¦p¦ó¦b Linux ¤¤±Ò¥Î APM ¤ä´©¥\¯à?

«D±`²³æ¡Ð¥u»Ý­«·s½sĶ Linux ®Ö¤ßµ{¦¡¡C ¦pªG§A¤£ª¾¹D¦p¦ó°µ¡A½Ð¾\Ū Kernel-HOWTO¡C

·í«Øºc¤â½Z°õ¦æ¨ì ``character devices'' ³o­Ó¦a¤è®É¡A ¦b®Ö¤ß 2.0.30 ª© (§t ) ¥H¤W¹ï©ó§¹¾ãªº apm bios ¤ä´©³]©w¦p¤U:

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

½Ð¾\Ū«Øºc¤â½Zªº»²§U¤å¥ó¡CùØ­±¦³»¡¨ì­þ­Ó¿ï¶µ¬O°µÔ£»ò¥Îªº²Ó¸`¡A©Ò¥H ¦b³o¨à§Ú´N¤£¦AÂØ­z¤F¡C

¦pªG§Aªº¨t²Î¨Ã¨S¦³§¹¾ã¦a¤ä´© apm bios ªº¼Ð·Ç¡A¿ï¶µ¤¤¦³¨Ç¶µ¥Ø¥i¯à·| Åý§Aªº¨t²Î·í¾÷¡C §A¥i´ú¸Õ©Ò¦³ªº apm ¯SÂI»P·sªº®Ö¤ßªº°t¦Xª¬ªp¡A³o¼Ë §Y¥i½T©w¬O§_©Ò¦³À³¸Ó¦³ªº³£¥i¥¿±`¤u§@¤F¡C

( * ³Æµù * Ãö©ó±±¨î¥xÅܦ¨ ªÅ¥Õ: David Bateman §i¶D§Ú»¡¡A ¦b¨Ï¥Î XFree 3.2 ª©®É¤d¸U¤£­n±N¥¦¥´ ¶}: `` ¥¦ªº¯gª¬¬O·í X ±Ò°Ê®É¾ã­Ó¿Ã¹õ·|Åܦ¨ªÅ¥Õ¡A³q±`¥u­n«ö­ÓÁä§Y¥i­×²z ³o­Óª¬ªp¡C ³o¬O­Ó«Ü¤p¦ý«Ü°Q¤H¹½ªº°ÝÃD¡C¤U¤@ª©ªº XFree ±N·|¹ï«Ü¦hªº µ§°O¹q¸£ªº´¹¤ù¦³«Ü¦nªº DPMS ¤ä´©¡A ¨ä¤¤À³¸Ó¥]¸ÜÃö±¼ LCD ªºµ{¦¡½X¡C §A¥i¬d¬d¬Ý¦b XFree 3.2A ¤º¦³Ãö©ó xset ªº man ­¶¡CDavid ÁÙ»¡§A ªº¿Ã¹õªº­I¥ú¤§¹Ø©R§¹¥þ¨ú¨M©ó¥¦³Q¶}Ãöªº¦¸¼Æ¦h¹è: `` ³o´N¬O¹q¦À¹Ø©R »P¿Ã¹õ­I¥ú¹Ø©R¤§¶¡³½»Pºµ´xµLªk­Ý±oªº¨Æ¤F¡C'')

( ­q¥¿: ¨Ï¥Î XFree 3.3 ®É³o­Ó°ÝÃD¤´¦b§Úªºµ§°O¹q¸£¤Wµo¥Í¡C¦³¤H §i¶D§Ú¥H«áªº®Ö¤ßª©¥»´N·|­×¥¿³o­Ó°ÝÃD¤F¡C)

3.3 APM ¤ä´©¥H¤Î PCMCIA ÅX°Êµ{¦¡

¦b­«·s½sĶ®Ö¤ß¤§«á¡A ½Ð¤Å§Ñ°O­«·s½sĶ Linux ªº pcmcia ÅX°Êµ{¦¡¡C

¤j³¡¥÷ÀHµÛ Linux ¨ÑÀ³°Óª©¥»©Òªþªº½sĶ«eªº pcmcia ÅX°Êµ{¦¡³£§â¹ï©ó apm ªº¤ä´©µ¹Ãö³¬¡A¦]¦¹ bios ´NµLªk¥s§Aªº¤¶­±¥d±N¤§Ãö³¬ªº¡C

¥t¥~¡A¦pªG§A¤É¯Å¤F·sªº®Ö¤ßª©¥»¦Ó§AªºÂ®֤߬O»P¼Ò²Õª©¥»¸ê°T³o¶µ¥´¶} ®É³Q½sĶªº (³o­Ó¿ï¶µ¥i¦b®Ö¤ß«Øºcªº ``loadable module support( ¥i ¸ü¤J¼Ò²Õ¤ä´©'' ¤@³¹¤¤§ä¨ì )¡C

½Ð¾\Ū PCMCIA-HOWTO¡AùØÀY¦³Ãö©ó¦p¦ó½sĶÅX°Êµ{¦¡ªº«ü¤Þ©Î¬O¨ì http://hyper.stanford.edu/HyperNews/get/pcmcia/home.html ªº Linux PCMCIA drivers homepage ºô­¶¤¤´M§ä¡C

3.4 apmd ®M¥ó

²{¦b§A¤w¸g¦w¸Ë¤F APM ¤ä´©¤F¡A½Ð¨ì Linux APM drivers page ºô­¶ ¤¤§â apmd ®M¥ó§ì¨ú¤U¨Ó¡C §A¤]³\¨Ã¤£»Ý­n¥¦¡A¦ý¬O­Ó¦n¥Îµ{¦¡ªº¶° µ²¡Capmd ºëÆF·|°O¿ý§Aªº¹q¦Àªº²ß©Ê¨Ã¥BÁÙ·|¦b¹qÀ£§C®É¶]¥X¨Óĵ§i §A¡Capm ©R¥O·|¨Ï¥Î¤@­Ó shell ©R¥O¨ÓÄa¸m§Aªº¨t²Î¡A¦Ó xapm ·|Åã¥Ü¥X§Aªº¹q¦Àªºª¬ºA¡C

(¶¶±a¤@´£¡A ¦pªG§Aªº pcmcia ¥d±qÄa¸mª¬ºA¤U¦^ÂЮɦ³°ÝÃD¡A§A¥i¥H¬d¬Ý ¬Ý¥t¤@­Ó´À¥N apmd ®M¥óªºµ{¦¡¦b http://www.cut.de/bkr/linux/apmd/apmd.html ¤º¡C¥¦·|¦b¨t²ÎÄa¸m«e§â pcmcia ÅX°Êµ{¦¡¨ø¤U¡A¦Ó¦b«ì´_®É±N³o¨Ç¼Ò²Õ­« ¸ü¤J¡C)

Grant Taylor ª±¤F¤@°}¤l apmd ®M¥ó¡A ¥L¦³¤@¨Ç¦³§U¯qªº¤p¯µ³Z¡C

¥Lµo²{¥Lªºµ§°O¹q¸£ªº±qÄa¸m¦^´_®É¡A µwºÐ·|§Ñ¤F¥¦¦Û¤w¦b hdparm -S ªº«Ý©R®É¶¡: `` ¨C¦¸¦^´_®É§Ú·|­×§ï apmd ¨Ó­«·s³]©w³o­Ó³]©w ¡C³o¤]³\¬O¦b¯S©w¨t²Î¤W¤~·|µo¥Í¡A¦ý³o»ò°µ¬O«Ü­«­nªº......''

(³Æµù: ¦b§Úªºµ§°O¹q¸£¤W¡Abios ­t³dµwºÐªº«Ý©R¥H¤Î«ì´_­ì¥»ªº¼Æ¾Ú¡A©Ò ¥H§ÚµLªk´ú¸Õ¬O§_³o­Ó¤p°ÝÃD¬O¨t²Î¯S©wªº¡C¦pªG³o­Ó¤p°ÝÃD§A¤]¹J¨ì¡A½Ð µ¹§Ú­Ó°T®§§a¡C )

Grant ÁÙ¦³­Ó«Ü´Îªº¤p¯µ³Z¥i¨Ï¥Î XFree86 ®M¥ó ¥H¤Î apmd ®M¥óªº¨ó§UÅý¿Ã¹õÅܪťաA§A¥i¥H¦b¨º¨à§ä¨ì¡C

3.5 ¦pªG§Úªºµ§°O¹q¸£¤£¤ä´© APM ªº¸Ü?

¦pªG§Aªº¹q¸£ªº bios ¨Ã¤£¤ä´©¥ô¦óªº¸`¬Ù¯à·½ªº³]©w (´Nºâ¬O«Ü«¬¥B¨S ¦³ apm ¤ä´©ªº¦Ü¤Ö¤]¥i¥H³]©w¥iÅýµwºÐ¥H¤Î¿Ã¹õ°µ«Ý©Rª¬ºA )¡A §A¥i¥H¨Ï ¥Î hdparm -S ¨Ó©w¸q§AªºµwºÐªº«Ý©R®É¶¡¡C³o¼Ë´N«Ü¦³À°§U¤F¡A¦]¬° µwºÐªº°Ê§@¬O­nªá¶O³\¦h¹q¤Oªº¡C §Aªº¨t²ÎÀ³¸Ó­n¦w¸Ë hdparm ¡A¦] ¦¹½Ð¨Ï¥Î man hdparm ¨ÓŪ¤@Ū³o­Ó©R¥Oªº»yªk¡C


Next Previous Contents