{"id":1388,"date":"2017-10-30T18:56:11","date_gmt":"2017-10-30T10:56:11","guid":{"rendered":"https:\/\/yanjingang.com\/blog\/?p=1388"},"modified":"2017-10-30T18:56:11","modified_gmt":"2017-10-30T10:56:11","slug":"%e6%a0%91%e8%8e%93%e6%b4%be%e7%a6%81%e6%ad%a2%e4%bc%91%e7%9c%a0%e8%ae%be%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/yanjingang.com\/blog\/?p=1388","title":{"rendered":"\u6811\u8393\u6d3e\u7981\u6b62\u4f11\u7720\u8bbe\u7f6e"},"content":{"rendered":"<p>#\u6587\u4e2d\u8bbe\u7f6e\u5747\u57fa\u4e8e\u6700\u65b0\u7248\u7684Raspbian\u7cfb\u7edf2016-11\u7248\u672c<\/p>\n<p>Raspbian\u5728\u684c\u9762\u73af\u5883\u4e0b,\u9694\u4e00\u6bb5\u65f6\u95f4\uff0c\u7cfb\u7edf\u4f1a\u8fdb\u5165\u4f11\u7720\u72b6\u6001.\u00a0 \u5c1d\u8bd5\u4e86\u4e00\u4e9b\u65b9\u6cd5\u5982\u76f4\u63a5\u7528xset\u5173\u95eddpms,\u662f\u4e0d\u80fd\u6210\u529f\u7684\u3002<\/p>\n<p>Raspbian\u4f7f\u7528\u4e86\u8f7b\u91cf\u684c\u9762\u663e\u793a\u7ba1\u7406\u5668\u5373lightdm,\u901a\u8fc7\u8be5\u7ba1\u7406\u5668\u53ef\u5bf9xserver\u684c\u9762\u4f1a\u8bdd\u4ea4\u4e92\\\u663e\u793a\u7b49\u8fdb\u884c\u8bbe\u7f6e.<\/p>\n<p>1.\u6253\u5f00\u7ec8\u7aef;<\/p>\n<p>2.\u7f16\u8f91\/etc\/lightdm\/lightdm.conf<\/p>\n<p>3.\u627e\u5230[SeatDefaults]\u6bb5\u4e0b\u7684&#8217;xserver-command&#8217;,\u53d6\u6d88\u6ce8\u91ca,\u4fee\u6539\u4e3a\u5982\u4e0b:<\/p>\n<p>xserver-command=X -s 0 -dpms<\/p>\n<p>-s # &#8211;\u8bbe\u7f6e\u5c4f\u5e55\u4fdd\u62a4\u4e0d\u542f\u7528<\/p>\n<p>-dpms \u5173\u95ed\u7535\u6e90\u8282\u80fd\u7ba1\u7406<\/p>\n<p><a href=\"http:\/\/raspberrypi.stackexchange.com\/questions\/4773\/raspberry-pi-sleep-mode-how-to-avoid\" target=\"_blank\" rel=\"noopener noreferrer\">\u70b9\u51fb\u6253\u5f00\u94fe\u63a5<\/a><\/p>\n<ol>\n<li>Open a root terminal in raspberry Pi. Now you need to edit your script that&#8217;s starting X. In the default build with lightdm.<\/li>\n<li>Open &#8220;lightdm.conf&#8221; file located in,\n<p>\/etc\/lightdm\/lightdm.conf<\/li>\n<li>Add below line in to SeatDefault section.\n<p>[SeatDefaults]<\/p>\n<p>xserver-command=X -s 0 -dpms<\/li>\n<li>Restart your Raspberry Pi.<\/li>\n<\/ol>\n<p><span style=\"color: #999999;\">\u6458\u81ea\uff1ahttp:\/\/blog.csdn.net\/ikevin\/article\/details\/53729516<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>#\u6587\u4e2d\u8bbe\u7f6e\u5747\u57fa\u4e8e\u6700\u65b0\u7248\u7684Raspbian\u7cfb\u7edf2016-11\u7248\u672c Raspbian\u5728\u684c\u9762\u73af\u5883\u4e0b,\u9694\u4e00\u6bb5\u65f6\u95f4\uff0c\u7cfb\u7edf [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[505],"tags":[518,507,517,516,519],"_links":{"self":[{"href":"https:\/\/yanjingang.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1388"}],"collection":[{"href":"https:\/\/yanjingang.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yanjingang.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yanjingang.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yanjingang.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1388"}],"version-history":[{"count":0,"href":"https:\/\/yanjingang.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1388\/revisions"}],"wp:attachment":[{"href":"https:\/\/yanjingang.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yanjingang.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yanjingang.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}