{"id":188,"date":"2006-10-10T10:00:23","date_gmt":"2006-10-10T15:00:23","guid":{"rendered":"http:\/\/www.hoodedhawk.com\/blog\/2006\/10\/10\/disabling-wake-on-open-mac-powerbook\/"},"modified":"2006-10-10T10:10:27","modified_gmt":"2006-10-10T15:10:27","slug":"disabling-wake-on-open-mac-powerbook","status":"publish","type":"post","link":"https:\/\/www.hoodedhawk.com\/blog\/disabling-wake-on-open-mac-powerbook\/","title":{"rendered":"Disabling Wake on Open (Mac Powerbook)"},"content":{"rendered":"<p>If you are having issues with your Powerbook waking up at the wrong time (in your backpack for instance) because the lid latch is weak, then run the following command from a concole window:<\/p>\n<p>sudo pmset lidwake 0<\/p>\n<p><!--more--><br \/>\nThe man page for this is:<br \/>\n<a href=\"http:\/\/developer.apple.com\/documentation\/Darwin\/Reference\/ManPages\/man1\/pmset.1.html\">http:\/\/developer.apple.com\/documentation\/Darwin\/Reference\/ManPages\/man1\/pmset.1.html<\/a><\/p>\n<pre class=\"manpages\">\r\nPMSET(1)                  BSD General Commands Manual                 PMSET(1)\r\n\r\nNAME\r\n     pmset -- modify power management settings\r\n\r\nSYNOPSIS\r\n     pmset [-a | -b | -c | -u] [displaysleep minutes] [disksleep minutes]\r\n           [sleep minutes] [womp 1\/0] [ring 1\/0] [autorestart 1\/0] [dps 1\/0]\r\n           [reduce 1\/0] [powerbutton 1\/0] [lidwake 1\/0] [acwake 1\/0]\r\n           [lessbright 1\/0] [halfdim 1\/0] [sms 1\/0] [boot]\r\n     pmset -u [haltlevel percent] [haltafter minutes] [haltremain minutes]\r\n     pmset -g [disk | live | cap | sched | ups | ps | pslog]\r\n     pmset schedule [cancel] type date+time [owner]\r\n     pmset repeat cancel\r\n     pmset repeat type weekdays time\r\n\r\nDESCRIPTION\r\n     pmset changes and reads power management settings such as idle sleep tim-timing,\r\n     ing, wake on administrative access, automatic restart on power loss, etc.\r\n\r\nSETTING\r\n     The -a, -b, -c, -u flags determine whether the settings apply to battery\r\n     (-b), charger (wall power) (-c), UPS (-u) or all (-a).\r\n\r\n     Use a minutes argument of 0 to set the idle time to never.\r\n\r\n     pmset must be run as root.\r\n\r\n     The boot argument tells power management that system bootup is complete.\r\n     Loginwindow handles this on a normal Mac OS X system.\r\n\r\nGETTING\r\n     The -g flag outputs the settings currently in use (same as -g live ).\r\n     -g disk will display settings on disk.\r\n     -g cap will display which power management features the machine supports.\r\n     -g sched will display scheduled startup\/wake and shutdown\/sleep events.\r\n     -g ups will display UPS emergency thresholds.\r\n     -g ps will display status of batteries and UPSs.\r\n     -g pslog will display an ongoing log of power source state.\r\n\r\nARGUMENTS\r\n     displaysleep - display sleep timer; replaces 'dim' argument in 10.4\r\n     (value in minutes)\r\n     disksleep - disk spindown timer; replaces 'spindown' argument in 10.4\r\n     (value in minutes)\r\n     sleep - system sleep timer (value in minutes)\r\n     womp - wake on ethernet magic packet (value = 0\/1)\r\n     ring - wake on modem ring (value = 0\/1)\r\n     autorestart - automatic restart on power loss (value = 0\/1)\r\n     dps - dynamically change processor speed based on load (value = 0\/1)\r\n     reduce - reduce processor speed (value = 0\/1)\r\n     powerbutton - sleep the machine when power button is pressed (value =\r\n     0\/1)\r\n     lidwake - wake the machine when the laptop lid(or clamshell) is opened\r\n     (value = 0\/1)\r\n     acwake - wake the machine when power source (AC\/battery) is changed\r\n     (value = 0\/1)\r\n     lessbright - slightly turn down display brightness when switching to this\r\n     power source (value = 0\/1)\r\n     halfdim - display sleep will use an intermediate half-brightness state\r\n     between full brightness and fully off  (value = 0\/1)\r\n     sms - use Sudden Motion Sensor to park disk heads on sudden changes in G\r\n     force (value = 0\/1)\r\n\r\nUPS SPECIFIC ARGUMENTS\r\n     UPS-specific arguments are only valid following the -u option. UPS set-settings\r\n     tings also have an on\/off value. Use a -1 argument instead of percent or\r\n     minutes to turn any of these settings off. If multiple halt conditions\r\n     are specified, the system will halt on the first condition that occurs in\r\n     a low power situation.\r\n\r\n     haltlevel - when draining UPS battery, battery level at which to trigger\r\n     an emergency shutdown (value in %)\r\n     haltafter - when draining UPS battery, trigger emergency shutdown after\r\n     this long running on UPS power (value in minutes)\r\n     haltremain - when draining UPS battery, trigger emergency shutdown when\r\n     this much time remaining on UPS power is estimated (value in minutes)\r\n\r\nSCHEDULED EVENT ARGUMENTS\r\n     pmset allows you to schedule system sleep, shutdown, wakeup and\/or power\r\n     on. \"schedule\" is for setting up one-time power events, and \"repeat\" is\r\n     for setting up daily\/weekly power on and power off events. Note that you\r\n     may only have one pair of repeating events scheduled - a \"power on\" event\r\n     and a \"power off\" event.\r\n\r\n     type - one of sleep, wake, poweron, shutdown, wakeorpoweron\r\n     date\/time - MM\/dd\/yy HH:mm:ss (in 24 hour format)\r\n     time - HH:mm:ss\r\n     weekdays - a subset of MTWRFSU (\"M\" and \"MTWRF\" are valid strings)\r\n     owner - a string describing the person or program who is scheduling this\r\n     one-time power event (optional)\r\n\r\nOTHER ARGUMENTS\r\n     boot - tell the kernel that system boot is complete (normally LoginWindow\r\n     does this). May be useful to Darwin users.\r\n     force - tells PM to immediately activate these settings. Does not write\r\n     them to disk, and the settings may easily be overwritten. Useful in cir-circumstances\r\n     cumstances where PM's configd plugin happens not to be running.\r\n     dim - deprecated in 10.4 in favor of 'displaysleep'. 'dim' will continue\r\n     to work.\r\n     spindown - deprecated in 10.4 in favor of 'disksleep'. 'spindown' will\r\n     continue to work.\r\n\r\nEXAMPLES\r\n     pmset -b displaysleep 5\r\n\r\n     pmset -a displaysleep 10 disksleep 10 sleep 30 womp 1\r\n\r\n     pmset -u haltlevel 40\r\n\r\n     pmset -g\r\n\r\n     pmset -g batt\r\n\r\nFiles\r\n     All changes made through pmset are saved in a persistent preferences file\r\n     (per-system, not per-user) at\r\n     \/Library\/Preferences\/SystemConfiguration\/com.apple.PowerManagement.plist\r\n\r\n     Scheduled power on\/off events are stored separately in\r\n     \/Library\/Preferences\/SystemConfiguration\/com.apple.AutoWake.plist\r\n\r\n     pmset modifies the same file that System Preferences Energy Saver modi-modifies.\r\n     fies.\r\n\r\nDarwin                          August 19, 2002                         Darwin\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you are having issues with your Powerbook waking up at the wrong time (in your backpack for instance) because the lid latch is weak, then run the following command from a concole window: sudo pmset lidwake 0<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.hoodedhawk.com\/blog\/wp-json\/wp\/v2\/posts\/188"}],"collection":[{"href":"https:\/\/www.hoodedhawk.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hoodedhawk.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hoodedhawk.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hoodedhawk.com\/blog\/wp-json\/wp\/v2\/comments?post=188"}],"version-history":[{"count":0,"href":"https:\/\/www.hoodedhawk.com\/blog\/wp-json\/wp\/v2\/posts\/188\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hoodedhawk.com\/blog\/wp-json\/wp\/v2\/media?parent=188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hoodedhawk.com\/blog\/wp-json\/wp\/v2\/categories?post=188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hoodedhawk.com\/blog\/wp-json\/wp\/v2\/tags?post=188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}