2025-05-16 10:35:27

터미널에서 편하게 쓰는용

sudo pmset -a displaysleep 10 sleep 30 hibernatemode 3 standby 1 standbydelaylow 1800 standbydelayhigh 1800

10분뒤 디스플레이 꺼짐 / 30분뒤 절전 / 그 30분뒤 최대 절전모드

 

이렇게 세팅해두고 계속 켜둬야할때는 caffeinate로 예외처리를 해둡니다.

 

pmset -g

기본세팅 확인법

 

//

pmset -g

System-wide power settings:
 SleepDisabled 0
Currently in use:
 standby              1
 Sleep On Power Button 1
 SleepServices        0
 hibernatefile        /var/vm/sleepimage
 powernap             0
 networkoversleep     0
 disksleep            10
 sleep                30 (sleep prevented by powerd)
 hibernatemode        3
 ttyskeepawake        1
 displaysleep         10
 tcpkeepalive         1
 powermode            0
 womp                 0

//

pmset은 -a (all) 대신 -b(battery), -c(charger), -u(UPS) 옵션이 존재합니다.

 

맥에서 전원관련 식별

0 RAM에 상태 저장. 빠르게 깨지만 전력 계속 소모 (일반 Sleep)
3 RAM + 디스크에 상태 저장. 기본 설정 (일반 맥북 사용자의 기본값)
25 디스크에만 상태 저장, RAM 전원 차단 → 최대절전모드

 

저는 25에 해당되는걸 1시간 뒤에 켜지게 했습니다.

 

usb로 출력되는 전류관련

sudo pmset -a powernap 0

전원은 끄지 않은 상태에서 원하는 경우(최대절전모드등에서)

 

 

https://github.com/qpalzmowksmx/MacPower

 

GitHub - qpalzmowksmx/MacPower

Contribute to qpalzmowksmx/MacPower development by creating an account on GitHub.

github.com

 

수정중