{"id":3684,"date":"2019-07-20T00:12:08","date_gmt":"2019-07-19T16:12:08","guid":{"rendered":"https:\/\/damogame.cn\/wordpress\/?p=3684"},"modified":"2019-07-20T00:12:08","modified_gmt":"2019-07-19T16:12:08","slug":"mac-os%e7%94%b5%e6%ba%90%e7%ae%a1%e7%90%86%e5%a4%a7%e8%a7%a3%e6%9e%90","status":"publish","type":"post","link":"https:\/\/i007.cc\/wordpress\/archives\/3684","title":{"rendered":"Mac OS\u7535\u6e90\u7ba1\u7406\u5927\u89e3\u6790"},"content":{"rendered":"<div class=\"detailtitle divtextaligncenter divborderbottomdotted\">\n<p id=\"Htitle\" class=\"detailtitle\"><a href=\"http:\/\/www.bubuko.com\/infodetail-1299982.html\">\u539f\u6587\u5730\u5740<\/a><\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<div class=\"detailcontennt\">\n<p>\u7761\u7720\u6a21\u5f0f\u2014hibernatemode\u2014\u4e5f\u5c31\u662fMac\u5728\u7761\u7720\u6a21\u5f0f\u4e0b\u9762\u7684\u5de5\u4f5c\u65b9\u5f0f\uff0c\u76ee\u524d\u4e3b\u8981\u67093\u79cd\u3002<\/p>\n<p>hibernatemode 0\uff1a\u7761\u7720\u65f6\u5185\u5b58\u4fdd\u6301\u4f9b\u7535\uff0c\u5176\u4ed6\u90e8\u4ef6\u65ad\u7535\uff0c\u5185\u5b58\u6570\u636e\u4e0d\u5199\u5165\u786c\u76d8\u3002\u4f18\u70b9\u662f\u53ef\u4ee5\u5feb\u901f\u5524\u9192\u3001\u5feb\u901f\u7761\u7720\uff0c\u56e0\u4e3a\u5185\u5b58\u4fdd\u6301\u4f9b\u7535\uff0c\u65e0\u8bba\u662f\u5524\u9192\u8fd8\u662f\u8fdb\u5165\u7761\u7720\u90fd\u662f1\u79d2\u5185\u7684\u4e8b\u60c5\uff1b\u8282\u7701SSD\u7a7a\u95f4\u548c\u5bff\u547d\uff0c\u56e0\u4e3a\u5185\u5b58\u6570\u636e\u4e0d\u5199\u5165\u786c\u76d8\uff0c\u6240\u4ee5\u786c\u76d8\u91cc\u4e0d\u4f1a\u6709\u5185\u5b58\u955c\u50cf\uff0c\u4e5f\u4e0d\u4f1a\u7f29\u77edSSD\u5bff\u547d\u3002\u4f46\u662f\u5982\u679c\u5728\u7761\u7720\u7684\u8fc7\u7a0b\u4e2d\u7535\u6c60\u6ca1\u7535\u7684\u8bdd\uff0cMac\u4f1a\u4e22\u5931\u6240\u6709\u5185\u5b58\u79cd\u7684\u6570\u636e\uff0c\u6570\u636e\u5b89\u5168\u6027\u4e0d\u662f\u5f88\u9ad8\u3002<\/p>\n<p>hibernatemode 1\uff1a\u7761\u7720\u65f6\u5185\u5b58\u6570\u636e\u5199\u5165\u786c\u76d8\uff0c\u5199\u5165\u5b8c\u6210\u540e\u7535\u8111\u6240\u6709\u90e8\u4ef6\u90fd\u65ad\u7535\uff0c\u5524\u9192\u65f6\u4ece\u786c\u76d8\u8bfb\u51fa\u5185\u5b58\u955c\u50cf\u3002\u4f18\u70b9\u662f\u7701\u7535\uff0c\u8ddf\u5173\u673a\u7684\u8017\u7535\u4e00\u6837\uff0c\u56e0\u4e3a\u6240\u6709\u90e8\u4ef6\u90fd\u5df2\u7ecf\u505c\u6b62\u5de5\u4f5c\uff0c\u4e5f\u4e0d\u6015\u7535\u6c60\u6ca1\u7535\u4f1a\u4e22\u5931\u5185\u5b58\u6570\u636e\u3002\u4f46\u662f\u7f3a\u70b9\u4e5f\u5f88\u660e\u663e\uff0c\u8fdb\u5165\u7761\u7720\u548c\u5524\u9192\u9700\u8981\u7684\u65f6\u95f4\u957f\uff0c\u5bf9\u4e8e\u673a\u68b0\u786c\u76d8\u7684Mac\u5c24\u5176\u660e\u663e\uff0c\u901a\u5e38\u90fd\u8981\u8f6c\u83ca\u82b1\u5341\u51e0\u5708\u3002\u5bf9\u4e8eSSD\u7684Mac\u5219\u4f1a\u5360\u7528\u786c\u76d8\u7a7a\u95f4\uff0c\u56e0\u4e3a\u786c\u76d8\u4e0a\u6709\u8ddf\u5185\u5b58\u540c\u6837\u5927\u5c0f\u7684\u5185\u5b58\u955c\u50cf\uff0c\u4e5f\u4f1a\u7f29\u77edSSD\u5bff\u547d\u3002<\/p>\n<p>hibernatemode 3\uff1a0\u548c1\u7684\u7ed3\u5408\uff0c\u7761\u7720\u65f6\u5185\u5b58\u6570\u636e\u5199\u5165\u786c\u76d8\uff0c\u540c\u65f6\u4fdd\u6301\u5185\u5b58\u4f9b\u7535\u3002\u8fd9\u4e2a\u6a21\u5f0f\u4e5f\u53ebSafe Sleep\uff0c\u662fMac\u7684\u9ed8\u8ba4\u7761\u7720\u6a21\u5f0f\u3002<\/p>\n<p>&nbsp;<\/p>\n<div class=\"cnblogs_Highlighter\">\n<pre class=\"brush:javascript;gutter:true;\">\u66f4\u6539hibernatemode\u65b9\u5f0f\uff1a\u6253\u5f00\u201c\u7ec8\u7aef\u201d\uff0c\u8f93\u5165: \r\n<\/pre>\n<\/div>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sudo pmset -a hibernatemode 0<\/pre>\n<p>&nbsp;<\/p>\n<p>\u5728\u7ec8\u7aef\u8f93\u5165\uff1apmset -g custom\u00a0\u00a0\u00a0 \u8fd9\u4e2a\u547d\u4ee4\u53ef\u4ee5\u663e\u793a\u7cfb\u7edf\u6240\u6709\u7684\u7535\u6e90\u8bbe\u7f6e\uff08\u66f4\u8be6\u7ec6\u7684\u4ecb\u7ecd\u8bf7\u770b<a href=\"http:\/\/https\/\/developer.apple.com\/library\/mac\/documentation\/Darwin\/Reference\/ManPages\/man1\/pmset.1.html\" target=\"_blank\" rel=\"noopener noreferrer\">Apple\u5f00\u53d1\u8005\u6587\u6863<\/a>\uff09\uff1a<\/p>\n<p>Battery Power\u5c31\u662f\u7528\u7535\u6c60\u65f6\u7684\u7535\u6e90\u8bbe\u7f6e\uff0cAC Power\u5c31\u662f\u5916\u63a5\u7535\u6e90\u65f6\u7684\u7535\u6e90\u8bbe\u7f6e\u3002<\/p>\n<p>lidwake:\u00a0\u5f53\u5c4f\u5e55\u6380\u5f00\u7684\u65f6\u5019\u5524\u9192Mac\uff0c1\u662f\u5f00\u542f\u00a0\u00a00\u662f\u5173\u95ed<br \/>\nautopoweroff:\u00a0\u5982\u679cMac\u5904\u4e8e\u7761\u7720\u72b6\u6001\u7ecf\u8fc7\u6307\u5b9a\u7684\u65f6\u95f4\u540e\uff0c\u81ea\u52a8\u628a\u5185\u5b58\u6570\u636e\u5199\u5165\u786c\u76d8\uff0c\u5e76\u5207\u65ad\u6240\u6709\u90e8\u4ef6\u7684\u7535\u6e90\uff0c\u8fdb\u5165\u4f11\u7720\u72b6\u6001\uff0c1\u662f\u5f00\u542f\u00a0\u00a00\u662f\u5173\u95ed\u3002\u4f46\u662fLZ\u53d1\u73b0\u5c31\u7b97\u662f\u5904\u4e8e\u5f00\u542f\u72b6\u6001\uff0c\u8fd9\u4e2a\u529f\u80fd\u4e5f\u5e76\u6ca1\u6709\u8d77\u4f5c\u7528\uff0c\u4f60\u53ef\u4ee5\u4e0d\u7ba1\u5b83\uff0c\u4e5f\u53ef\u4ee5\u5173\u6389<br \/>\nautopoweroffdelay:\u542f\u7528autopoweroff\u529f\u80fd\u7684\u65f6\u95f4\uff0c\u4e5f\u5c31\u662f\u4e0a\u9762\u8bf4\u7684\u90a3\u4e2a\u201c\u6307\u5b9a\u7684\u65f6\u95f4\u201d\uff0c\u5355\u4f4d\u662f\u79d2<br \/>\nstandby:\u529f\u80fd\u8ddfautopoweroff\u4e00\u6837\uff0c\u4e0d\u8fc7\u4ec5\u5728hibernatemode\u4e3a3\u7684\u65f6\u5019\u8d77\u4f5c\u7528\uff0c1\u662f\u5f00\u542f 0\u662f\u5173\u95ed\u3002\u4e0d\u8fc7LZ\u4e00\u76f4\u6ca1\u641e\u660e\u767dautopoweroff\u8ddfstandby\u6709\u4ec0\u4e48\u4e0d\u4e00\u6837\uff0c\u6309\u7406\u8bf4\u5e94\u8be5\u662f\u4e0d\u4e00\u6837\u7684<br \/>\nstandbydelay:\u542f\u7528standby\u529f\u80fd\u7684\u65f6\u95f4\uff0c\u5355\u4f4d\u4e5f\u662f\u79d2<br \/>\nttyskeepawake:\u8fdc\u7a0b\u7528\u6237\u6b63\u5728\u6d3b\u52a8\u65f6\u9632\u6b62Mac\u8fdb\u5165\u7761\u7720\uff0c1\u662f\u5f00\u542f\u00a0\u00a00\u662f\u5173\u95ed<br \/>\nhibernatemode:\u7761\u7720\u6a21\u5f0f<br \/>\ndarkwakes:\u8fd9\u4e2a\u5c31\u662fPower Nap\uff0c\u4f60\u53ef\u4ee5\u5728\u7cfb\u7edf\u504f\u597d\u8bbe\u7f6e\u91cc\u9009\u62e9\u5f00\u6216\u5173\uff0c\u8ddf\u5728\u8fd9\u91cc\u8bbe\u7f6e\u662f\u4e00\u6837\u7684\uff0c1\u662f\u5f00\u542f\u00a0\u00a00\u662f\u5173\u95ed<br \/>\nhibernatefile:\u5185\u5b58\u955c\u50cf\u5b58\u653e\u7684\u5730\u5740\uff0c\u8fd9\u4e2a\u4e5f\u53ef\u4ee5\u66f4\u6539\uff0c\u4e0d\u8fc7\u8def\u5f84\u5fc5\u9700\u662froot\u4e0b\u7684\u8def\u5f84<br \/>\ndisplaysleep:Mac\u95f2\u7f6e\u591a\u957f\u65f6\u95f4\u540e\u8fdb\u5165\u663e\u793a\u5668\u7761\u7720\uff0c2013\u6b3eAir\u7684\u7cfb\u7edf\u504f\u597d\u8bbe\u7f6e\u91cc\u5df2\u7ecf\u6ca1\u6709\u8fd9\u4e2a\u9009\u9879\u4e86\uff0cPro\u662f\u6709\u7684\uff0c\u4e0d\u8fc7\u5176\u5b9e\u4f60\u53ef\u4ee5\u901a\u8fc7pmset\u6765\u4fee\u6539\u3002\u5355\u4f4d\u662f\u5206\u949f\uff0c\u8fd9\u4e2a\u65f6\u95f4\u4e0d\u80fd\u957f\u4e8esleep\u4e0b\u8bbe\u7f6e\u7684\u65f6\u95f4<br \/>\nsleep:Mac\u95f2\u7f6e\u591a\u957f\u65f6\u95f4\u540e\u8fdb\u5165\u7761\u7720\uff0c\u8fd9\u4e2a\u7cfb\u7edf\u504f\u597d\u8bbe\u7f6e\u91cc\u4e5f\u6709\uff0c\u5355\u4f4d\u662f\u5206\u949f<br \/>\nacwake:\u7535\u6e90\u6539\u53d8\u65f6\u5524\u9192\uff0c\u4e5f\u5c31\u662f\u63d2\u4e0a\u6216\u8005\u62d4\u6389\u5916\u7f6e\u7535\u6e90\u65f6\u5524\u9192Mac\uff0c1\u662f\u5f00\u542f\u00a0\u00a00\u662f\u5173\u95ed<br \/>\nhalfdim:\u663e\u793a\u5668\u7761\u7720\u65f6\u4f7f\u663e\u793a\u5668\u4eae\u5ea6\u6539\u53d8\u4e3a\u5f53\u524d\u4eae\u5ea6\u7684\u4e00\u534a\uff0c1\u662f\u5f00\u542f\u00a0\u00a00\u662f\u5173\u95ed\u3002\u5982\u679c\u5173\u95ed\u8fd9\u4e2a\u529f\u80fd\u7684\u8bdd\uff0c\u663e\u793a\u5668\u7761\u7720\u4f1a\u76f4\u63a5\u5173\u6389\u663e\u793a\u5668\u3002<br \/>\nlessbright:\u4f7f\u7528\u7535\u6c60\u65f6\u4f7f\u663e\u793a\u5668\u4eae\u5ea6\u6697\u4e00\u70b9\uff0c\u7cfb\u7edf\u504f\u597d\u8bbe\u7f6e\u91cc\u4e5f\u6709\u8fd9\u4e2a\uff0c1\u662f\u5f00\u542f\u00a0\u00a00\u662f\u5173\u95ed<br \/>\ndisksleep:Mac\u95f2\u7f6e\u591a\u957f\u65f6\u95f4\u540e\u5173\u95ed\u786c\u76d8\u3002\u8fd9\u4e2a\u7cfb\u7edf\u504f\u597d\u91cc\u4e5f\u6709\uff0c\u53ea\u4e0d\u8fc7\u6362\u4e86\u4e00\u4e2a\u5b57\u773c\u2014\u5982\u679c\u53ef\u80fd\uff0c\u4f7f\u786c\u76d8\u8fdb\u5165\u7761\u7720\u2014\u52fe\u4e0a\u8fd9\u4e2a\u7684\u8bdd\u7cfb\u7edf\u5c31\u4f1a\u81ea\u52a8\u6839\u636esleep\u7684\u65f6\u95f4\u8bbe\u4e00\u4e2a\u5408\u9002\u7684\u65f6\u95f4\u3002\u5355\u4f4d\u662f\u79d2\uff0c\u8fd9\u4e2a\u65f6\u95f4\u4e0d\u80fd\u957f\u4e8esleep\u4e0b\u8bbe\u7f6e\u7684\u65f6\u95f4<br \/>\nsleepservice:LZ\u8fd8\u6ca1\u641e\u6e05\u695a\u8fd9\u4e2a\u662f\u5e72\u561b\u7684\uff0c\u8bf7\u77e5\u9053\u7684\u950b\u53cb\u89e3\u91ca\u4e0b\u3002<br \/>\nwomp:\u7f51\u7edc\u8fdc\u7a0b\u5524\u9192\uff0c1\u662f\u5f00\u542f\u00a0\u00a00\u662f\u5173\u95ed<br \/>\nnetworksleep:\u8fd9\u4e2a\u8bbe\u7f6e\u5f71\u54cdMac\u5728\u7761\u7720\u7684\u8fc7\u7a0b\u4e2d\u5982\u4f55\u63d0\u4f9b\u7f51\u7edc\u5171\u4eab\u670d\u52a1<\/p>\n<p>&nbsp;<\/p>\n<p>\u66f4\u6539\u67d0\u4e00\u9879\u8bbe\u7f6e\u7684\u8bdd\u4e5f\u5f88\u7b80\u5355\uff0c\u6253\u5f00\u7ec8\u7aef\uff0c\u6309\u4e0b\u9762\u7684\u683c\u5f0f\u8f93\u5165\u547d\u4ee4\uff1a<br \/>\nsudo pmset -# $ &amp;<br \/>\n\u5176\u4e2d#\u53f7\u67094\u4e2a\u53c2\u6570\uff0c\u5206\u522b\u662f\uff1ac\u00a0 \u00a0b\u00a0 \u00a0 u\u00a0 \u00a0 a\uff0c\u4f5c\u7528\u662f\u8868\u660e\u8fd9\u4e2a\u547d\u4ee4\u4fee\u6539\u7684\u662f\u54ea\u4e2a\u7535\u6e90\u8bbe\u7f6e\u4e0b\u7684\u53c2\u6570\u3002c\u4ee3\u8868\u5916\u63a5\u7535\u6e90\u3001b\u4ee3\u8868\u7535\u6c60\u3001u\u4ee3\u8868UPS\u3001a\u4ee3\u8868\u6240\u6709\u7535\u6e90\u3002<br \/>\n$\u5c31\u662f\u5177\u4f53\u7684\u67d0\u4e00\u9879\u53c2\u6570\uff0c\u4f8b\u5982\u4f60\u60f3\u4fee\u6539\u7761\u7720\u6a21\u5f0f\uff0c\u90a3\u5c31\u662fhibernatemode\uff1b\u4fee\u6539\u7761\u7720\u95f2\u7f6e\u65f6\u95f4\uff0c\u662fsleep\u3002<br \/>\n&amp;\u662f\u53c2\u6570\u7684\u503c<br \/>\n\u4f8b\u5982\u4f60\u60f3\u4fee\u6539\u5916\u63a5\u7535\u6e90\u662fMac\u7684\u663e\u793a\u5668\u7761\u7720\u95f2\u7f6e\u65f6\u95f4\u4e3a10\u5206\u949f\uff0c\u90a3\u5c31\u8f93\u5165\uff1a<br \/>\nsudo pmset -c displaysleep 10<\/p>\n<p>\u60f3\u4fee\u66f4\u6539\u6240\u6709\u7535\u6e90\u4e0b\u7684\u786c\u76d8\u7761\u7720\u95f2\u7f6e\u65f6\u95f4\u4e3a15\u5206\u949f\uff0c\u90a3\u5c31\u662f\uff1a<br \/>\nsudo pmset -a disksleep 15<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u6587\u5730\u5740 &nbsp; \u7761\u7720\u6a21\u5f0f\u2014hib<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[],"tags":[123],"class_list":["post-3684","post","type-post","status-publish","format-standard","hentry","tag-07-mac"],"_links":{"self":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/3684","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/comments?post=3684"}],"version-history":[{"count":0,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/3684\/revisions"}],"wp:attachment":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/media?parent=3684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/categories?post=3684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/tags?post=3684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}