GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
APMD(8) FreeBSD System Manager's Manual APMD(8)

apmd
Advanced Power Management °¨½Ã demon

apmd [
-d
] [
-f -file
] [
-v
]

apmd À¯Æ¿¸®Æ¼´Â, ÁöÁ¤ÇÑ Advanced Power Management (APM) À̺¥Æ®¸¦ °¨½ÃÇØ, ¸î°³ÀÇ À̺¥Æ®°¡ ¹ß»ýÇßÀ» °æ¿ì, ´ëÀÀÇÏ´Â ¸í·É ¼øÂ÷ ¼ø¼­¸¦ ½ÇÇàÇÕ´Ï´Ù. ¼³Á¤ ÆÄÀÏ·Î ÁöÁ¤µÈ À̺¥Æ®¸¸ÀÌ apmd ¿¡ ÅëÁöµÇ¾î ±× ÀÌ¿ÜÀÇ À̺¥Æ®´Â ¹«½ÃµË´Ï´Ù. APM BIOS ¿¡ ÀÇÇØ ¹ßÇàµÇ¾ú´Ù À̺¥Æ®¿¡ ´ëÇؼ­, apmd (Àº)´Â ¼³Á¤ ÆÄÀÏ·Î ÁöÁ¤µÈ ¸í·É ¼øÂ÷ ¼ø¼­¸¦ ½ÇÇàÇÕ´Ï´Ù. apmd (À»)¸¦ ÁßÁö/½ºÅĹÙÀ̸¦ °¨½ÃÇϵµ·Ï(µíÀÌ) ÇØ ±âµ¿Çϸé(ÀÚ), Ä¿³ÎÀº ±×·¯ÇÑ ¿ä±¸ À̺¥Æ®¿¡ ´ëÇѴ٠󸮸¦ ½Ç½ÃÇÏÁö ¾Ê½À´Ï´Ù. ±× ¶§¹®¿¡ ±×·¯ÇÑ À̺¥Æ® ¹ß»ý½Ã¿¡ 󸮸¦ ½ÃÅ°°í ½ÍÀº °æ¿ì´Â, ÀûÀýÇÑ ¸í·É ¶Ç´Â Â¥³Ö¾î ÇÔ¼ö¸¦ ¸í½ÃÀûÀ¸·Î ¼³Á¤ ÆÄÀÏ·Î ÁöÁ¤ÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.
apmd À¯Æ¿¸®Æ¼´Â ÀÌÇÏÀÇ ½ÇÇà½Ã ¿É¼ÇÀ» ÀÌÇØÇÕ´Ï´Ù.
µð¹ö±× ¸ðµå·Î ±âµ¿ÇÕ´Ï´Ù. demon ¸ðµå´Â ¾Æ´Ï°í foreground·Î µ¿ÀÛÇÕ´Ï´Ù.
file
µðÆúÆ®ÀÇ ¼³Á¤ ÆÄÀÏ /etc/apmd.conf ´ë½Å¿¡ »ç¿ëÇÏ´Â, ´Ù¸¥ ¼³Á¤ ÆÄÀÏ file (À»)¸¦ ÁöÁ¤ÇÕ´Ï´Ù.
ÀåȲ ¸ðµå·Î µ¿ÀÛÇÕ´Ï´Ù.
apmd (Àº)´Â ±âµ¿½Ã·Î ¼³Á¤ ÆÄÀÏ (µðÆúÆ®´Â /etc/apmd.conf) (À»)¸¦ Àоîµé¿©, °¨½ÃÇØ¾ß ÇÒ À̺¥Æ®¸¦ APM µð¹ÙÀ̽º µå¶óÀ̹ö¿¡ ÅëÁöÇÕ´Ï´Ù. Á¾·á½Ã¿¡´Â APM µð¹ÙÀ̽º µå¶óÀ̹ö´Â À̺¥Æ®ÀÇ °¨½Ã¸¦ ÀÚµ¿ÀûÀ¸·Î ÇØÁ¦ÇÕ´Ï´Ù.
apmd ÇÁ·Î¼¼½º°¡ ½Ã±×³Î SIGHUP ¸¦ ¼ö½ÅÇϸé(ÀÚ), ¼³Á¤ ÆÄÀÏÀ» ´Ù½Ã Àоîµé¿©, ¼³Á¤ÀÇ º¯°æ ³»¿ëÀ» APM µð¹ÙÀ̽º µå¶óÀ̹ö¿¡ ÅëÁöÇÕ´Ï´Ù.
apmd À¯Æ¿¸®Æ¼´Â, µð¹ÙÀ̽º ÆÄÀÏ /dev/apmctl (À»)¸¦ °æÀ¯ÇØ, À̺¥Æ®ÀÇ ¼öÃ볪 APM ½Ã½ºÅÛ Á¦¾î¿ëÀÇ ioctl(2) ¿ä±¸¸¦ ¹ßÇàÇÕ´Ï´Ù. ÀÌ µð¹ÙÀ̽º ÆÄÀÏÀº ¹èŸ Á¦¾îµÇ¾î ¿ÀǵDZâ (À§ÇØ)¶§¹®¿¡, apmd ÇÁ·Î¼¼½º´Â µ¿½Ã¿¡ 1 °³(»ì)¸¸ ±âµ¿ °¡´ÉÇÕ´Ï´Ù.
apmd ÇÏÁö¸¸ APM À̺¥Æ®¸¦ ¹ÞÀ¸¸é(ÀÚ), ¼³Á¤ ÆÄÀÏ·Î ÁöÁ¤µÇ¾ú´Ù À̺¥Æ®¿¡ ´ëÀÀÇÏ´Â ¸í·É ¸®½ºÆ®¸¦ ½ÇÇàÇϱâ À§Çؼ­ child process¸¦ »ý¼ºÇØ, ´Ù½Ã APM À̺¥Æ®ÀÇ ´ë±â »óÅ°¡ µË´Ï´Ù. »ý¼ºµÈ child process´Â, ÁöÁ¤µÈ ¸í·ÉÀ» 1 °³¾¿ ¿­°ÅµÈ Â÷·Ê·Î ½ÇÇàÇÕ´Ï´Ù.
apmd ÇÏÁö¸¸ SUSPEND/STANDBY ¿ä±¸¿¡ ´ëÇÑ ¸í·É ¸®½ºÆ®¸¦ ó¸®ÇÏ°í ÀÖ´Â µ¿¾È, Ä¿³Î³»ÀÇ APM µð¹ÙÀ̽º µå¶óÀ̹ö´Â, APM BIOS ¿¡ ´ëÇؼ­ ¸ÅÃÊ 1 ȸ ÀÌ»ó ÅëÁö¸¦ °è¼Ó ¹ßÇàÇÕ´Ï´Ù. ÀÌ°Í¿¡ ÀÇÇØ BIOS ´Â, ¸í·É ó¸®ÁßÀÌ¸ç ¿ä±¸°¡ ¾ÆÁ÷ ¿Ï°áÇÏ°í ÀÖÁö ¾Ê´Â °ÍÀ» ÀνÄÇÕ´Ï´Ù.
apmd À¯Æ¿¸®Æ¼´Â ÆÄÀÏ /var/run/apmd.pid (À»)¸¦ ÀÛ¼ºÇØ, ÇÁ·Î¼¼½º ID ¸¦ ±â·ÏÇÕ´Ï´Ù. ÀÌ°ÍÀº apmd (À»)¸¦ kill ³ª, ¼³Á¤ ÆÄÀÏÀ» ÀоîµéÀÌ°Ô Çϱâ À§Çؼ­(¶§¹®¿¡) »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.

apmd ÀÇ ¼³Á¤ ÆÄÀÏÀÇ ±¸Á¶´Â ¸Å¿ì ½ÉÇÃÇÕ´Ï´Ù. ¿¹¸¦ µé¸é ´ÙÀ½°ú °°ÀÌ µË´Ï´Ù.
apm_event SUSPENDREQ { 
        exec "sync && sync && sync"; 
        exec "sleep 1"; 
        exec "zzz"; 
}
ÀÌ ¿¹¿¡¼­´Â, APM À̺¥Æ® ‘SUSPENDREQ’ (µð½ºÇ÷¹À̸¦ ´Ý¾ÒÀ» ¶§ µî¿¡ ¹ß»ýÇÕ´Ï´Ù)(À»)¸¦ apmd ÇÏÁö¸¸ ¹ÞÀ¸¸é(ÀÚ), ‘sync’ ¸í·ÉÀ» 3 ȸ ½ÇÇàÇØ, Á¶±Ý ±â´Ù¸° µÚ¿¡ zzz (apm -z) (À»)¸¦ ½ÇÇàÇØ ½Ã½ºÅÛÀ» ÁßÁö ½Ãŵ´Ï´Ù.
  • apm_event Å°¿öµå
    apm_event’ (Àº)´Â Å°¿öµåÀ̸ç, À̺¥Æ®¸¶´ÙÀÇ ¼³Á¤ÀÇ °³½Ã¸¦ Áö½ÃÇÕ´Ï´Ù.
  • APM À̺¥Æ®
    º¹¼öÀÇ À̺¥Æ®¿¡ ´ëÇؼ­ °°Àº 󸮸¦ ½ÇÇàÇÏ°í ½ÍÀº °æ¿ì´Â, ±×·¯ÇÑ À̺¥Æ®¸íÀ» ÄÞ¸¶·Î ´Ü¶ôÁö¾î ÁöÁ¤ÇÕ´Ï´Ù. À¯È¿ÇÑ À̺¥Æ®¸íÀº ´ÙÀ½°ú °°½À´Ï´Ù.
    • - apmd ÇÏÁö¸¸ ±âµ¿µÇ°í ÀÖÀ¸¸é(ÀÚ) Ä¿³Î¿¡¼­ÀÇ Ã³¸®¸¦ ½Ç½ÃÇÏÁö ¾Ê°Ô µÇ´Â À̺¥Æ®:
      STANDBYREQ
       
      USERSTANDBYREQ
       
      SUSPENDREQ
      ¸í·É ¸®½ºÆ®¿¡ sync ¸¦ Æ÷ÇÔÇÏ´Â °ÍÀ» ÃßõÇÕ´Ï´Ù
      USERSUSPENDREQ
      ¸í·É ¸®½ºÆ®¿¡ sync ¸¦ Æ÷ÇÔÇÏ´Â °ÍÀ» ÃßõÇÕ´Ï´Ù
      BATTERYLOW
      ¸í·É ¸®½ºÆ®´Â zzz ¸¸À» ÃßõÇÕ´Ï´Ù
    • - Ä¿³ÎÀÇ Ã³¸® Á¾·áÈÄ¿¡ apmd ¿¡ ÅëÁöµÇ´Â À̺¥Æ®:
      NORMRESUME
       
      CRITRESUME
       
      STANDBYRESUME
       
      POWERSTATECHANGE
       
      UPDATETIME
       
      CAPABILITIESCHANGE
       
      »ó±â ÀÌ¿ÜÀÇ À̺¥Æ®´Â apmd ¿¡ ÅëÁöµÇÁö ¾Ê½À´Ï´Ù.
  • ¸í·ÉÇà ¹®¹ý
    Àü¼úÀÇ ¿¹¿¡¼­´Â, ‘exec’ (À¸)·ÎºÎÅÍ ½ÃÀ۵Ǵ 3 ÇàÀº À̺¥Æ®¿¡ ´ëÇÑ ¸í·ÉÀÔ´Ï´Ù. °¢°¢ÀÇ ÇàÀº ¼¼¹ÌÄÝ·ÐÀ¸·Î Á¾·áÇÏ°í ÀÖÀ» ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù. À̺¥Æ®¿¡ ´ëÇÑ ¸í·É ¸®½ºÆ®´Â ‘{’ (¿Í)°ú ‘}’ ±×¸®°í µÑ·¯½Ô´Ï´Ù. apmd À¯Æ¿¸®Æ¼´Â, ´õºí ÄõÅ×À̼ÇÀ¸·Î µÑ·¯½ÎÀÎ ¸í·ÉÀÇ ½ÇÇà¿¡ system(3) (¿Í)°ú °°°Ô /bin/sh (À»)¸¦ »ç¿ëÇÕ´Ï´Ù. °¢ ¸í·ÉÀº Ä¿¸àµå ¸®½ºÆ®ÀÇ ¸¶Áö¸·¿¡ µµ´ÞÇÒ±î 0 ÀÌ¿ÜÀÇ Á¾·á ÄÚµå·Î ³¡³¯ ¶§±îÁö Â÷·Ê·Î ½ÇÇàµË´Ï´Ù. apmd À¯Æ¿¸®Æ¼´Â, ½ÇÆÐÇÑ ¸í·ÉÀÇ Á¾·á Äڵ带, syslog(3) °æÀ¯·Î º¸°íÇÕ´Ï´Ù. ´õÇØ APM BIOS ·ÎºÎÅÍÀÇ ¿ä±¸ À̺¥Æ®¸¦ Ãë¼ÒÇÕ´Ï´Ù.
  • ÆíÀÔ ÇÔ¼ö
    ¸í·ÉÇà´ë½Å¿¡ apmd ÀÇ ÆíÀÔ ÇÔ¼ö¸¦ ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÆíÀÔ ÇÔ¼ö´Â ¸í·ÉÇà°ú °°°Ô ¼¼¹ÌÄÝ·ÐÀ¸·Î Á¾·áÇÕ´Ï´Ù. ´ÙÀ½ÀÇ ÆíÀÔ ÇÔ¼ö°¡ ÇöÀç ¼­Æ÷Æ®µÇ°í ÀÖ½À´Ï´Ù.
    • - reject:
      APM BIOS ·ÎºÎÅÍÀÇ Á÷ÀüÀÇ ¿ä±¸¸¦ °ÅºÎÇÕ´Ï´Ù. µð½ºÇ÷¹À̸¦ ´Ý¾ÒÀ» ¶§¿¡ ¹ß»ý
      SUSPEND ¿ä±¸¸¦ °ÅºÎÇØ, ´ë½Å¿¡ STANDBY »óÅ·ΠÇÏ°í ½ÍÀº °æ¿ì µî¿¡ »ç¿ëÇØ

¼³Á¤ ÆÄÀÏÀÇ »ùÇÿ¡´Â, ÀÌÇÏÀÇ °ÍÀÌ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.
apm_event SUSPENDREQ { 
        exec "/etc/rc.suspend"; 
} 
 
apm_event USERSUSPENDREQ { 
        exec "sync && sync && sync"; 
        exec "sleep 1"; 
        exec "apm -z"; 
} 
 
apm_event NORMRESUME, STANDBYRESUME { 
        exec "/etc/rc.resume"; 
} 
 
# resume event configuration for serial mouse users by 
# reinitializing a moused(8) connected to a serial port. 
# 
#apm_event NORMRESUME { 
#       exec "kill -HUP `cat /var/run/moused.pid`"; 
#} 
 
# suspend request event configuration for ATA HDD users: 
# execute standby instead of suspend. 
# 
#apm_event SUSPENDREQ { 
#       reject; 
#       exec "sync && sync && sync"; 
#       exec "sleep 1"; 
#       exec "apm -Z"; 
#}

/etc/apmd.conf
 
/dev/apmctl
 
/var/run/apmd.pid
 

apm(4), apm(8)

Mitsuru IWASAKI ⟨iwasaki@FreeBSD.org⟩ KOIE Hidetaka ⟨koie@suri.co.jp⟩
¶Ç, Warner Losh ⟨imp@FreeBSD.org⟩, Hiroshi Yamashita ⟨bluemoon@msj.biglobe.ne.jp⟩, Yoshihiko SARUMARU ⟨mistral@imasy.or.jp⟩, Norihiro Kumagai ⟨kuma@nk.rim.or.jp⟩, NAKAGAWA Yoshihisa ⟨nakagawa@jp.FreeBSD.org⟩, Nick Hilliard ⟨nick@foobar.org⟩ ¿¡ ÀÇÇÑ °øÇåÀÌ ÀÖ¾ú½À´Ï´Ù.

apmd À¯Æ¿¸®Æ¼´Â FreeBSD 3.3 (À¸)·ÎºÎÅÍ µîÀåÇß½À´Ï´Ù.
June 28, 1999 FreeBSD 12.0-RELEASE

Search for    or go to Top of page |  Section 8 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.