日記/2025-05-27
2026-08-24 (月) 10:12:56
pmsetでMACの電源操作を行う†
http://shamukichi.air-nifty.com/blog/2013/02/macbook-promid-.html
AC電源駆動時の設定
% sudo pmset -c autopoweroffdelay 7200 hibernatemode 0 autopoweroff 0
バッテリー駆動時の設定
% sudo pmset -b autopoweroffdelay 3600 hibernatemode 25 autopoweroff 1
にしてみた
スリープ時のバッテリー消費量を抑えることが可能になった
2026/1/11
% sudo pmset -b autopoweroffdelay 3600 hibernatemode 25 autopoweroff 0
autopoweroff 1とするとスリープから復帰できなることがあるようなのでautopoweroff 0とした。
2026/8/17
一度
% sudo pmset -a restoredefaults
で工場集荷時状態にもどしてから
% sudo pmset -b autopoweroffdelay 3600 hibernatemode 25 autopoweroff 1
で上手く行った。
% sudo pmset -b hibernatemode 25 standby 1 standbydelaylow 60 standbydelayhigh 60 autopoweroff 1 autopoweroffdelay 60 disksleep 1
が良いかも
4gメモリーのMAcBookAir 11では
% sudo pmset -b hibernatemode 25 autopoweroff 1 autopoweroffdelay 60 standby 0
この設定が必要だった。
ついでに
PRAMのクリア
Macの電源を入れて、すぐに「Command」「Option」「P」「R」キーを20秒ほど押し続け、キーを放す
SMCをリセット
内蔵キーボードで、以下のキーをすべて長押し キーボードの左側の「shift」キー キーボードの左側の「control」キー キーボードの左側の「option(Alt)」キー 長押ししている間に電源ボタンも長押しして、約10秒間押し続けたあと電源をボタンを押して起動