・2023/11/12
MacBookをスリープした時に USBへの給電をオフにする方法
(Apple pmset command hibernatemode 25)
Tags: [ベアボーン], [Windows PC], [Hackintosh]
● MacBookをスリープした時に USBへの給電をオフにする方法
MacBookの USBにキーボードやマウス、HDMI変換等の各種機器を接続していますが、MacBookがスリープ時にも USBには電源が供給されたままなので AC電源を切ったまま数日放置するとバッテリーが上がる、と言う非常にお馬鹿な事態が発生します。
なんで、21世紀の時代になっても原始時代よりも劣る動作仕様なのかは不明ですが、pmsetコマンドを使う事でこれを回避できるっぽいです。
hibernatemodeを 25に設定するとスリープ時の USB機器への給電を OFFにできます。
Apple pmset command hibernatemode 25
現在の hibernatemodeを確認する。
$ pmset -g | grep hibernatemode
hibernatemodeを 25に設定する。
$ sudo pmset -a hibernatemode 25
pmset.1
supports values of 0, 3, or 25. Whether or not a hibernation image gets written is also dependent on the values of standby
・ = 0 by default on 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.
・ = 3 by default on 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 hibernate image.
・ = 25 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.
pmset.c
/* Check for supported Hibernate Modes */
#define kNoOfSupportedHibernateModes 3
#define ARG_SUPPORTED_HIBERNATE_MODE1 "0"
#define ARG_SUPPORTED_HIBERNATE_MODE2 "3"
#define ARG_SUPPORTED_HIBERNATE_MODE3 "25"
Tags: [ベアボーン], [Windows PC], [Hackintosh]
[HOME]
|
[BACK]
リンクフリー(連絡不要、ただしトップページ以外は Web構成の変更で移動する場合があります)
Copyright (c)
2023 FREE WING,Y.Sakamoto
Powered by 猫屋敷工房 & HTML Generator
http://www.neko.ne.jp/~freewing/hardware/macbook_sleep_usb_power_off/