해킨질답
  • 목록
  • 아래로
  • 위로
  • 쓰기
  • 검색

darkwake, pmset 옵션에 관해서...

comed78님의 기기정보
CPU : i7-6700K RAM : Samsung 16gb M/B : Gigabyte Z170X-UD5 TH VGA : Sapphire NItro+ RX VEGA 64

각 옵션별로 자세히 알고 싶은데... 구글링으로도 원하는 자료를 찾기 어렵네요

혹시 자세히 설명해주실 고수분이나, 제가 참고할만한 링크좀 알려주시면 감사하겠습니다.

  • 구독(89명)

comed78 comed78
98 Lv. 98946/99000P

댓글 6

참여를 하시면 세상을 바꿉니다.
profile image
1등 아이뱅크 2016.03.11. 01:02 |댓주소:#1108304
comed78

 

darkwake=0 -> Power Nap Disabled
darkwake=1 -> Power Nap Fully Enabled (System fully wakes. Fans on, monitors on, Hourly)
darkwake=2
darkwake=3
darkwake=4
darkwake=5
darkwake=6
darkwake=7
darkwake=8 -> Power Nap Enabled (System Fully wakes, sometimes monitor come on, sometimes not [don't know why])
darkwake=9
darkwake=10 -> Power Nap Enabled (Fans & monitors do not come on, system.log show the times that the computer woke from sleep. Time Machine Backup are performed hourly in sleep mode)
darkwake=11

 

댓글
profile image
2등 아이뱅크 2016.03.11. 01:05 |댓주소:#1108308
comed78

2011.05.16 22:38

[레벨:14]id: ilove_u조회 수:11871

윈도우의 절전모드와 같은 기능으로 Mac OS X 에서는 "잠자기 모드"라고 부른다.

잠자기 모드는 배터리 및 모니터 수명을 연장할 수 있도록 도와줄 뿐만 아니라 환경 및 경제적 이점을 제공하는 저전력의 에너지 절약 기능이다.

OSX86 시스템이 잠자기 모드로 들어가면 파워  LED가 깜빡깜빡하거나 OFF상태로 유지되고, 마우스 또는 전원버튼을 눌렀을때는 잠자기 모드 시작전 상태로 돌아와야 정상적으로 동작한다고 볼 수 있다.

 

잠자기 기능에는 다음과 같은 세부적인 동작상태로 운영될 수 있습니다.

 

1. 안전한 잠자기(Safe Sleep)

    hibernatemode 3

    

OS X 시스템의 기본 절전모드는 안전한 잠자기 모드로 설정되어 있으며,  시스템이 잠자기 상태가 될 때 마다 열린 프로그램이나 문서를 포함하여 현재 상태의 메모리 내용을 그대로 유지하고 하드 디스크에 저장도 합니다 이 방식은 안전성과 속도에 유리하다.

장점 ? 잠자기중 배터리가 없거나 분리 되어도 정보가 유실되는것을 방지 해준다.

단점- 메모리에서 하드디스크로 저장하기 때문에 잠자기 전환 할때 시간이 조금 걸림니다. 작업을 올려놓은 메모리도 유지 되고 있기 때문에 배터리도 조금씩 소모된다.

 

 

2. 깊은 잠자기 (Deep Sleep) 

    hibernatemode 1

 

윈도우의 “최대 절전모드”와 유사하며, 메모리에 기억된 현재 상태를 하드 디스크에 내보내고 메모리는 현재 상태를 유지 하지 않는 방식 입니다 (안전한 잠자기는 메모리 내용까지 유지가 된다)

장점 ? 메모리에 전력을 유지하지 않기 떄문에 잠자기 상태시 전력 소모가 가장 적다.
단점 ? 잠자기 전환,복귀 모두 하드 디스크만을 이용해 읽고 쓰기를 하기 때문에 느리다.

 

3. 선 잠자기(Simple Sleep)

    hibernatemode 0

 

윈도우의 “대기 모드”와 유사하며, 잠자기 전환시 메모리에 현재 상태를 기억만하고 하드디스크로 내용을 복사하지는 않는다.

장점 ? 슬립모드 전환시 수면 복귀가 가장 빠르다. 전력 소모량이 매우적다.
단점 - 배터리가 방전되거나 전력 공급이 차단되면 현재 메모리 내용이 없어지므로 깨어나지 못한다.

 

 

[ 잠자기 모드를 조정하는 방법]

 

절전모드를 변경하는 방법은 터미널 명령어 또는 시스템 환경설정에서 가능하다.

 

터미널 명령어는 다음과 같다.

 선 잠자기로 모드 설정
sudo pmset -a hibernatemode 0

깊은 잠자기(하이버네이션,동면)모드 설정
sudo pmset -a hibernatemode 1

기본 안전한 잠자기로 설정
sudo pmset -a hibernatemode 3

 현재 설정된 잠자기 상태를 확인하는 방법

 pmset -g

 

 

 

 

다음 이미지는 시스템 환경설정에서  "에너지 절약 설정" 을 변경할 경우 터미널 명령어를 통해 설정값을 확인하는 과정을 설명하고자 한다. 

 

컴퓨터와 모니터 잠자기 전환 시간을 같도록 설정하였다.

스크린샷 2011-05-16 오후 9.52.56.png

 

컴퓨터와 모니터의 잠자기 전환 시간을 상이하게 설정하였다.

스크린샷 2011-05-16 오후 9.57.33.png

 

 

[ Mac OS X를 즉시 잠자기 상태로 변경하는 방법]

에너지 절약 환경설정에서 어떻게 설정했는지 관계없이 다음 방법을 사용하여 잠자기 기능이 올바르게 작동하는지 점검할 수 있다.

- Apple 메뉴에서 잠자기를 선택합니다.
- 전원 키를 누른 다음 잠자기를 클릭합니다.
- 휴대용 Mac OS X 시스템의 모니터 덮개를 닫습니다.

- 에너지 절약 환경설정에 지정된 시간 동안 시스템을 비활성 상태로 둡니다.
- 시스템 환경설정의 에너지 절약 패널에 있는 특정 시간에 잠자기 상태로 전환되도록 예약합니다.

- 적외선(IR) 수신기가 있는 시스템을 사용할 경우 Apple Remote를 사용하여 컴퓨터를 잠자기 모드로 전환할 수 있습니다. 컴퓨터가 잠자기 모드로 전환될 때까지 리모컨의 재생/일시 정지 단추를 누릅니다. 컴퓨터가 잠자기 상태인 경우 리모컨의 아무 단추나 누르면 컴퓨터가 깨어납니다.

[Mac OS X가 대기 모드 또는 모니터 잠자기가 아닌 잠자기 모드에 들어가면 어떻게 됩니까?]

모든 Mac:

- 마이크로프로세서가 저전력 모드로 전환됩니다.
- 비디오 출력이 꺼지고, 연결된 모니터가 꺼지거나 자체 대기 상태로 들어갑니다.
- Apple 제공 하드 디스크가 회전을 멈춥니다. 타사 하드 디스크도 멈출 수 있습니다.

 

 

휴대용 Mac:

- 이더넷 포트가 꺼집니다.
- 확장 카드 슬롯이 꺼집니다.
- 내장 모뎀이 꺼집니다.
- AirPort 카드가 꺼집니다.
- USB 연결은 외부 키보드의 전원 키에만 반응합니다.
- 광학 미디어 드라이버 회전이 멈춥니다.
- 오디오 입력과 출력이 꺼집니다.
- 휴대용 컴퓨터에 키보드 조명 기능이 있는 경우 이 기능이 꺼집니다.

 

짐작할 수 있듯이 깨어 있을 때보다 잠자기 모드에서 컴퓨터의 전력 소모량은 크게 줄어듭니다. 잠자기 모드에서도 RAM에는 전력이 계속 공급되어 컴퓨터가 잠자기 모드에 들어갔을 때 RAM에서 실행한 내용은 컴퓨터가 깨어나도 그대로 유지됩니다. 결국 더 많은 RAM을 사용할수록 잠자기 모드에서의 전력 소모량도 많아집니다.

<참고>

휴대용 컴퓨터는 잠자기 모드에서 네트워크에 연결할 수 없습니다. 

하지만 에너지 절약 옵션인 "모뎀 호출시 깨어납니다" 또는 "이더넷 네트워크 관리자 접근시 깨어납니다"를 설정해두면 깨어날 수 있습니다. 파일 공유를 사용하거나 인터넷 연결이 중간에 끊기는 일이 없도록 하려면 수동으로 컴퓨터를 잠자게 하면 안 되며, "다음 시간동안 비활성 상태일 때 컴퓨터를 잠자게 합니다" 슬라이더를 안함으로 끌어두어야 합니다.

<정보>

외부 키보드로 잠자기 모드인 휴대용 Mac을 깨우려면 외부 키보드(해당하는 경우)의 전원 키를 누르거나 내장 키보드의 아무 키나 누르면 됩니다. 외부 키보드의 다른 키는 전력 절약 상태인 잠자기 모드에서 휴대용 컴퓨터를 깨우지 못합니다. 컴퓨터가 완전한 잠자기 모드가 아니고, 단지 하드 디스크의 회전이 멈추고 모니터가 대기 모드에 들어가 희미해진 상태라면 어느 키보드에서든 아무 키나 누르면 컴퓨터가 "깨어납니다".

 

[잠자기 모드로 전환되지 않거나 잠자기 모드를 유지할 수 없는 이유]

 

다음과 같은 경우에는 키보드나 마우스를 사용하지 않더라도 Mac OS X 시스템을 깨워야 할 필요가 있습니다.

- DVD 동영상을 감상할 경우
- iTunes 음악 보관함을 들을 경우
- 자동 백업을 실행할 경우
- 대용량 파일을 다운로드하는 동안 컴퓨터를 사용하지 않을 경우

 

 

[에너지 절약 환경설정의 잠자기 유형 정보]

 

하드 디스크 잠자기: 하드 디스크가 일정 기간 동안 비활성 상태인 경우 에너지를 절약하기 위해 회전을 멈춥니다. 하드 디스크가 잠자기 모드로 전환될 경우 컴퓨터에서 나는 소리가 약간 작아진 것 외에 다른 변화는 없습니다. 다음에 하드 디스크에서 정보를 읽거나 기록해야 할 경우 디스크가 회전을 시작합니다. 이때 약간 지연되는 것을 느낄 수 있습니다.

모니터 잠자기: 모니터가 잠자기 모드로 전환될 경우 모니터가 어두워지지만 실행 중인 응용 프로그램은 활성 상태를 유지합니다. 모니터에 전원 표시등이 있는 경우 모니터가 저전력 모드임을 나타내도록 변경될 수 있습니다. 모니터를 깨우려면 마우스를 이동하거나, 트랙패드를 터치하거나, 키보드의 키를 누르면 됩니다.

시스템 잠자기: 대개 "잠자기"라고 표시합니다. 시스템이 잠자기 모드로 전환되면 하드 디스크 및 모니터뿐만 아니라 컴퓨터도 저전력 상태로 전환됩니다. Mac에 따라 컴퓨터의 전원 표시등이 떨리거나, 깜박거리거나, 주황색으로 바뀝니다. 컴퓨터를 깨우려면 키보드의 아무 키나 누르거나, 마우스 단추를 클릭하거나, USB 장비를 연결 또는 연결 해제하거나, 휴대용 Mac인 경우 덮개를 엽니다.

참고: 하드 디스크 작업이 있으면 모니터 잠자기는 방지할 수 있지만, 시스템 잠자기는 방지할 수 없습니다. 동일한 비활성 기간 후에 모니터 잠자기 및 시스템 잠자기 유형이 발생하도록 설정된 경우 시스템이 잠자기 모드로 전환되기 전에 모니터가 잠자기 모드로 전환되는 경우는 드뭅니다.

[에너지 절약 설정을 기반으로 하는 예상 시간에 컴퓨터가 잠자기 모드로 전환되지 않는 이유]

지정한 시간 후에 컴퓨터가 자동으로 잠자기 모드로 전환되도록 에너지 절약 환경설정을 구성할 수 있습니다. "잠자기 타이머"라고 하는 내부 카운터에서 컴퓨터가 비활성 상태를 유지한 시간을 모니터링합니다. 카운터의 시간이 지정한 시간과 일치할 경우 컴퓨터가 잠자기 모드로 전환되고 전원 표시등이 깜박거립니다.

다음과 같은 경우 잠자기 타이머가 재설정되므로 컴퓨터가 잠자기 모드로 전환되지 않습니다.

- 하드 드라이브 액세스(컴퓨터를 사용하지 않더라도 응용 프로그램을 실행하면 드라이브에 액세스할 수 있습니다. 예를 들면, 대용량 파일을 다운로드하거나 iTunes에서 음악을 듣는 경우입니다)

 

- 마우스를 이동하거나, 휴대용 Mac의 트랙패드를 사용하거나, 마우스 단추를 누르거나, 키보드의 키를 누르는 경우
- 잠자기 전환에 영향을 미치는 일부 시스템 환경설정

에너지 절약은 에너지 설정뿐만 아니라 잠자기 시간 및 프로세서 사용량을 최적화할 수 있도록 도와주는 시스템 환경설정입니다. Intel 기반 Mac에는 내장된 전원 절약 기능이 있기 때문에 프로세서 제어가 사용되지 않습니다. PowerPC 기반 Mac에만 프로세서 제어가 표시됩니다.

이 경우 모니터가 잠자기 모드로 전환되지만(에너지 절약 환경설정에서 모니터를 잠자기 모드로 전환하지 않도록 구성된 경우 제외), 프로세서는 계속 깨어있고 전원 표시등도 계속 켜 있습니다.

Bluetooth

Bluetooth 환경설정에서 "Bluetooth 장비로 이 컴퓨터 깨우기 허용"을 설정하여 Bluetooth 장비가 잠자기 모드인 컴퓨터를 깨우도록 할 수 있습니다. 올바로 연결된 Bluetooth 장비는 일반적으로 컴퓨터가 잠자기 모드로 전환되도록 합니다. 그러나 일부 Bluetooth 마우스는 잠자기 모드로 전환되지 않도록 할 수 있습니다.

Spotlight

Spotlight에서 콘텐츠를 인덱싱할 경우에는 하드 디스크 액세스가 필요하기 때문에 컴퓨터가 잠자기 모드로 전환되지 않습니다. 예를 들어, Mac OS X을 설치 또는 재설치한 경우 콘텐츠를 인덱싱하는 데 Spotlight이 잠시 필요할 수 있습니다. 휴대용 Mac을 사용하면서 Mac OS X 10.4 이상을 처음 시작할 경우 Spotlight 인덱싱 및 배터리 사용량에 대한 자세한 내용은 에너지 절약을 위한 비결을 참조하십시오.

공유 서비스

파일, 인터넷 연결 및 프린터 등을 공유할 경우 잠자기 모드에 영향을 줄 수 있습니다. 공유 서비스가 중단되지 않도록 에너지 절약 잠자기 타이머를 "안 함"으로 설정하는 것을 고려해볼 수도 있습니다.

 

 

[잠자기 모드에 문제가 발생하는 원인을 확인하고 이를 해결할 수 있는 방법]

 

잠자기 문제의 가능한 원인 및 해결책은 다음과 같습니다.

- 공유 환경설정: 연결에 대한 공유를 사용하면 잠자기 모드가 비활성화될 수 있습니다. 공유를 사용하지 않을 경우 공유를 끄십시오.

 

- Bluetooth 설정: Bluetooth 시스템 환경설정에서 "Bluetooth 장비로 이 컴퓨터 깨우기 허용" 체크상자를 설정한 경우 Bluetooth에서 컴퓨터를 깨울 수 있습니다.

 

- 키보드 및 마우스가 연결되어 있고 제대로 작동합니까?

 

- 다른 외장 USB 또는 FireWire 장비가 연결되어 있습니까? 이들 장비를 연결 해제하기 전에 저장 장치를 마운트 해제할 때 주의를 기울이면서 사용하지 않을 때 하나씩 제거하거나 연결 해제해 보십시오.

 

- Spotlight에서 인덱싱을 수행합니까? 인덱싱되지 않은 데이터가 포함된 저장 장치를 새로 설치하거나 연결한 후 몇 분 또는 몇 시간 사이에 인덱싱이 이루어질 수 있습니다. 인덱싱 작업을 수행할 때는 대기 잠자기로 전환되지 않습니다.

 

- 추가 소프트웨어: 안전한 시동을 수행하여 소프트웨어 문제를 분리해 보십시오.


- 소리를 들을 수 있도록 컴퓨터 가까이에 귀를 대보십시오. 하드 디스크에 액세스할 때 나는 "딸깍"하는 소리가 들리십니까?

 

- 에너지 절약 설정: 컴퓨터 및 모니터 잠자기 타이머가 "안 함"으로 설정된 경우 컴퓨터가 잠자기 모드로 전환되지 않습니다.- 

 

첨부 [2]

이 게시물을 

 목록

댓글 3

  • [레벨:14]id: ilove_u

    2011.05.19 21:43

    "hibernatemode 3" 일 경우에는 잠자기 모드 상태에서 마우스 버튼  또는 전원버튼 클릭으로 깨우기가 가능하지만,

    "hibernatemode 1" 일 경우에는 잠자기 모드 상태에서 전원버튼  으로만 깨우기가 가능하다.

    만약 전원버튼을 사용하여 깨우는 과정에서 부팅이 멈추는 증상이 있다면  부트 옵션 "Wake=No" 사용하여 해결 할 수도 있습니다.   

    댓글 이 댓글을...

  • [레벨:14]id: ilove_u

    2011.06.01 01:22

     

    PMSET  BSD General Commands Manual   

     

     

    NAME

         pmset -- manipulate power management settings

     

    SYNOPSIS

         pmset [-a | -b | -c | -u] [displaysleep minutes] [disksleep minutes]

               [sleep minutes] [womp 1/0] [ring 1/0] [autorestart 1/0]

               [powerbutton 1/0] [lidwake 1/0] [acwake 1/0] [lessbright 1/0]

               [halfdim 1/0] [sms 1/0] [boot]

         pmset -u [haltlevel percent] [haltafter minutes] [haltremain minutes]

         pmset -g [custom | live | cap | sched | ups | ps | pslog | rawlog]

         pmset schedule [cancel] type date+time [owner]

         pmset repeat cancel

         pmset repeat type weekdays time

         pmset [touch | sleepnow | noidle | lock]

     

     

     

    DESCRIPTION

         pmset changes and reads power management settings such as idle sleep

         timing, wake on administrative access, automatic restart on power loss, etc.

     

    SETTING

         The -a, -b, -c, -u flags determine whether the settings apply to battery

         ( -b ), charger (wall power) ( -c ), UPS ( -u ) or all ( -a ).

     

         Use a minutes argument of 0 to set the idle time to never.

     

         pmset must be run as root in order to modify any settings.

     

         The boot argument tells power management that system bootup is complete.

         Loginwindow handles this on a normal Mac OS X system.

     

    GETTING

         -g (with no argument) will display the settings currently in use.

         -g live will also display the settings currently in use.

         -g custom will display custom settings for all power sources.

         -g cap will display which power management features the machine sup-ports.

         -g sched will display scheduled startup/wake and shutdown/sleep events.

         -g ups will display UPS emergency thresholds.

         -g ps will display status of batteries and UPSs.

         -g pslog will display an ongoing log of power source (battery and UPS) state.

         -g rawlog will display an ongoing log of battery state as read directly from battery.

     

     

    ARGUMENTS

         displaysleep - display sleep timer; replaces 'dim' argument in 10.4

         (value in minutes, or 0 to disable)

         disksleep - disk spindown timer; replaces 'spindown' argument in 10.4

         (value in minutes, or 0 to disable)

         sleep - system sleep timer (value in minutes, or 0 to disable)

         womp - wake on ethernet magic packet (value = 0/1)

         ring - wake on modem ring (value = 0/1)

         autorestart - automatic restart on power loss (value = 0/1)

         powerbutton - sleep the machine when power button is pressed (value =

         0/1)

         lidwake - wake the machine when the laptop lid (or clamshell) is opened

         (value = 0/1)

         acwake - wake the machine when power source (AC/battery) is changed

         (value = 0/1)

         lessbright - slightly turn down display brightness when switching to

         this power source (value = 0/1)

         halfdim - display sleep will use an intermediate half-brightness state

         between full brightness and fully off  (value = 0/1)

         sms - use Sudden Motion Sensor to park disk heads on sudden changes in G

         force (value = 0/1)

         hibernatemode - change hibernation mode. Please use caution. (value =

         integer)

         hibernatefile - change hibernation image file location. Image may only

         be located on the root volume. Please use caution. (value = path)

         ttyskeepawake - prevent idle system sleep when any tty (e.g. remote

         login session) is 'active'. A tty is 'inactive' only when its idle time

         exceeds the system sleep timer. (value = 0/1)

     

     

    SAFE SLEEP ARGUMENTS

         hibernatemode takes a bitfield argument defining SafeSleep behavior.

         Passing 0 disables SafeSleep altogether, forcing the computer into a

         regular sleep.

     

         0000 0001 (bit 0) enables hibernation; causes OS X to write memory state

         to hibernation image at sleep time. On wake (without bit 1 set) OS X

         will resume from the hibernation image. Bit 0 set (without bit 1 set)

         causes OS X to write memory state and immediately hibernate at sleep

         time.

     

         0000 0010 (bit 1), in conjunction with bit 0, causes OS X to maintain

         system state in memory and leave system power on until battery level

         drops below a near empty threshold (This enables quicker wakeup from

         memory while battery power is available). Upon nearly emptying the bat-

         tery, OS X shuts off all system power and hibernates; on wake the system

         will resume from hibernation image, not from memory.

     

         0000 1000 (bit 3) encourages the dynamic pager to page out inactive

         pages prior to hibernation, for a smaller memory footprint.

     

         0001 0000 (bit 4) encourages the dynamic pager to page out more aggres-

         sively prior to hibernation, for a smaller memory footprint.

     

         We do not recommend modifying hibernation settings. Any changes you make

         are not supported. If you choose to do so anyway, we recommend using one

         of these three settings. For your sake and mine, please don't use any-

         thing other 0, 3, or 25.

     

         hibernatemode = 0 (binary 0000) by default on supported desktops. The

         system will not back memory up to persistent storage. The system must

         wake from the contents of memory; the system will lose context on power

         loss. This is, historically, plain old sleep.

     

         hibernatemode = 3 (binary 0011) by default on supported portables. The

         system will store a copy of memory to persistent storage (the disk), and

         will power memory during sleep. The system will wake from memory, unless

         a power loss forces it to restore from disk image.

     

         hibernatemode = 25 (binary 0001 1001) is only settable via pmset. The

         system will store a copy of memory to persistent storage (the disk), and

         will remove power to memory. The system will restore from disk image. If

         you want "hibernation" - slower sleeps, slower wakes, and better battery

         life, you should use this setting.

     

         Please note that hibernatefile may only point to a file located on the

         root volume.

     

    DEEP SLEEP ARGUMENTS

         deepsleep causes kernel power management to automatically hibernate a

         machine after it has slept for a specified time period. This saves power

         while asleep. This setting defaults to ON for supported hardware. The

         setting deepsleep will be visible in pmset -g if the feature is sup-

         ported on this machine.

     

         deepsleep only works if hibernation is turned on to hibernatemode 3 or

         25.

     

         deepsleepdelay specifies the delay, in seconds, before writing the

         hibernation image to disk and powering off memory for Deep Sleep.

     

     

    UPS SPECIFIC ARGUMENTS

         UPS-specific arguments are only valid following the -u option. UPS set-

         tings also have an on/off value. Use a -1 argument instead of percent or

         minutes to turn any of these settings off. If multiple halt conditions

         are specified, the system will halt on the first condition that occurs

         in a low power situation.

     

         haltlevel - when draining UPS battery, battery level at which to trigger

         an emergency shutdown (value in %)

         haltafter - when draining UPS battery, trigger emergency shutdown after

         this long running on UPS power (value in minutes, or 0 to disable)

         haltremain - when draining UPS battery, trigger emergency shutdown when

         this much time remaining on UPS power is estimated (value in minutes, or

         0 to disable)

     

         Note: None of these settings are observed on a system with support for

         an internal battery, such as a laptop. UPS emergency shutdown settings

         are for desktop and server only.

     

     

    SCHEDULED EVENT ARGUMENTS

         pmset allows you to schedule system sleep, shutdown, wakeup and/or power

         on. "schedule" is for setting up one-time power events, and "repeat" is

         for setting up daily/weekly power on and power off events. Note that you

         may only have one pair of repeating events scheduled - a "power on"

         event and a "power off" event.

     

         type - one of sleep, wake, poweron, shutdown, wakeorpoweron

         date/time - "MM/dd/yy HH:mm:ss" (in 24 hour format; must be in quotes)

         time - HH:mm:ss

         weekdays - a subset of MTWRFSU ("M" and "MTWRF" are valid strings)

         owner - a string describing the person or program who is scheduling this

         one-time power event (optional)

     

     

    POWER SOURCE ARGUMENTS

         -g with a 'batt' or 'ps' argument will show the state of all attached

         power sources.  A health estimate for the battery is appended to the end

         of the line, in the form (Fair/Good), indicating the battery is in

         'Fair' health and we have 'Good' confidence in that estimate.

     

         Certain Apple battery calibration tools may temporarily disable battery

         charging, even though your Apple portable is plugged into AC power. Such

         tools will never surprise you with this behavior; you will know it's

         happening. This state will be reflected in an additional line of output

         to 'batt' or 'ps' readings, including the pid of the app inducing this

         behavior.

     

             'ChargeInhibit':    1432

     

         -g with a 'pslog' or 'rawlog' argument is normally used for debugging,

         such as isolating a problem with an aging battery.

     

    OTHER ARGUMENTS

         boot - tell the kernel that system boot is complete (normally LoginWin-

         dow does this). May be useful to Darwin users.

         force - tells PM to immediately activate these settings. Does not write

         them to disk, and the settings may easily be overwritten. Useful in cir-

         cumstances where PM's configd plugin happens not to be running.

         touch - PM re-reads existing settings from disk.

         noidle - while continuousy running, pmset prevents idle sleep.

         sleepnow - causes an immediate system sleep

         resetdisplayambientparams - resets the ambient light parameters for cer-

         tain Apple displays.

         dim - deprecated in 10.4 in favor of 'displaysleep'. 'dim' will continue

         to work.

         spindown - deprecated in 10.4 in favor of 'disksleep'. 'spindown' will

         continue to work.

     

     

    EXAMPLES

         This command sets displaysleep to a 5 minute timer on battery power,

         leaving other settings on battery power and other power sources unper-

         turbed.

     

         pmset -b displaysleep 5

     

         Sets displaysleep to 10, disksleep to 10, system sleep to 30, and turns

         on WakeOnMagicPacket for ALL power sources (AC, Battery, and UPS) as

         appropriate

     

         pmset -a displaysleep 10 disksleep 10 sleep 30 womp 1

     

         Restores the system's energy settings to their default values.

     

         For a system with an attached and supported UPS, this instructs the sys-

         tem to perform an emergency shutdown when UPS battery drains to below

         40%.

     

         pmset -u haltlevel 40

     

         For a system with an attached and supported UPS, this instructs the sys-

         tem to perform an emergency shutdown when UPS battery drains to below

         25%, or when the UPS estimates it has less than 30 minutes remaining

         runtime. The system shuts down as soon as either of these conditions is

         met.

     

         pmset -u haltlevel 25 haltremain 30

     

         For a system with an attached and supported UPS, this instructs the sys-

         tem to perform an emergency shutdown after 2 minutes of running on UPS

         battery power.

     

         pmset -u haltafter 2

     

         Schedules the system to automatically wake from sleep on July 4, 2009,

         at 8PM.

     

         pmset schedule wake "07/04/09 20:00:00"

     

         Schedules a repeating shutdown to occur each day, Tuesday through Satur-

         day, at 11AM.

     

         pmset repeat shutdown TWRFS 11:00:00

     

         Prints the power management settings in use by the system.

     

         pmset -g

     

         Prints a snapshot of battery/power source state at the moment.

     

         pmset -g batt

     

         If your system suddenly sleeps on battery power with 20-50% of capacity

         remaining, leave this command running in a Terminal window. When you see

         the problem and later power and wake the computer, you'll be able to

         detect sudden discontinuities (like a jump from 30% to 0%) indicative of

         an aging battery.

     

         pmset -g pslog

     

    Files

         All changes made through pmset are saved in a persistent preferences

         file (per-system, not per-user) at

         /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist

     

         Scheduled power on/off events are stored separately in

         /Library/Preferences/SystemConfiguration/com.apple.AutoWake.plist

     

         pmset modifies the same file that System Preferences Energy Saver modi-

         fies.

댓글
권한이 없습니다. 로그인

신고

"님의 댓글"

이 댓글을 신고 하시겠습니까?

삭제

"님의 댓글"

이 댓글을 삭제하시겠습니까?