So, when my MBP is closed, asleep and plugged in, I hear it waking up when I disconnect the magsafe adapter.
What's the deal with that?
What's the deal with that?
pmset -g
pmset -a acwake 1
pmset -a acwake 0
Hi all,
Yes, you can set the power management on your laptop so that it will not wake up when the power source is changed. First do the Terminal command:
Code:pmset -g
and you should see near the bottom the acwake parameter. This "acwake" parameter determines if the laptop is awakened when the power source is changed (values = 0 or 1). You can set this using the command (you will need root/administrator privileges to change these settings):
Code:pmset -a acwake 1
or reset it using:
Code:pmset -a acwake 0
Using the "pmset -g" command will give you the current state of this parameter. This "acwake" parameter also interacts with the Disk sleep modes, so you will most likely also have to set the "disksleep" parameter accordingly. The -a, -b, -c, and -u flags control the states for which the parameters are being set. See the "man pmset" manpage for details.
You might also notice that you can set other interesting parameters, such as the one controlling whether opening the lid wakes the laptop or not.
Regards,
Switon