{"id":146,"date":"2018-03-28T08:52:28","date_gmt":"2018-03-27T23:52:28","guid":{"rendered":"http:\/\/www7390uo.sakura.ne.jp\/wordpress\/?p=146"},"modified":"2022-07-17T11:59:25","modified_gmt":"2022-07-17T02:59:25","slug":"%e6%b6%88%e7%81%af%e3%81%97%e3%81%9f%e3%82%b3%e3%83%b3%e3%82%bd%e3%83%bc%e3%83%ab%e7%94%bb%e9%9d%a2%e3%82%92%e7%82%b9%e7%81%af%e3%81%95%e3%81%9b%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/archives\/146","title":{"rendered":"\u6d88\u706f\u3057\u305f\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762\u3092\u70b9\u706f\u3055\u305b\u308b"},"content":{"rendered":"\n<p>Raspberry Pi 3 Model B<br>OS: Raspbian stretch lite November 2017<\/p>\n\n\n\n<p>Raspbian stretch lite November 2017\u3067\u306f\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762\u304c600\u79d2\u3067\u6d88\u706f\u3059\u308b\u3088\u3046\u30bb\u30c3\u30c8\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ cat \/sys\/module\/kernel\/parameters\/consoleblank\n600<\/pre>\n\n\n\n<p>\u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u63a5\u7d9a\u3057\u3066\u3044\u306a\u3044\u304b\u3089OS\u8d77\u52d5\u304b\u308910\u5206\u3067\u3059\u3063\u304b\u308a\u6d88\u706f\u3057\u3066\u3057\u307e\u3046\u3002\u3057\u304b\u3057\u4e4d\u3089\u6642\u306b\u306f\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762\u306e\u8868\u793a\u3092\u30c1\u30e9\u3068\u62dd\u898b\u3057\u305f\u3044\u3053\u3068\u304c\u3042\u308b\u3002\u3059\u308b\u3068\u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u63a5\u7d9a\u3057\u3066\u50c5\u304b\u306b\u64cd\u4f5c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3051\u308c\u3069\u3082\u3001\u652f\u5ea6\u306b\u624b\u6570\u304c\u304b\u304b\u3063\u3066\u53ad\u3067\u3042\u308b\u3002\u305d\u3046\u3044\u3046\u3068\u304d\u306fssh\u3067\u63a5\u7d9a\u3057\u3066\u3053\u3046\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo su -c \"setterm --term linux --blank 10 &gt; \/dev\/tty1\"<\/pre>\n\n\n\n<p>\u3053\u3046\u3059\u308b\u3068\u6697\u3044\u753b\u9762\u306b\u706f\u304c\u3068\u3082\u308b\u3002<code>--blank<\/code>\u306e\u53d6\u308a\u3046\u308b\u5024\u306f0\uff5e60(\u5206)\u3067\u3042\u308b\u3002\u5185\u30010\u306f\u6c7a\u3057\u3066\u6d88\u706f\u3057\u306a\u3044\u3002\u306a\u304a<code>--blank poke<\/code>\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3082\u6d88\u706f\u306f\u89e3\u9664\u3055\u308c\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo su -c \"setterm --term linux --blank poke &lt; \/dev\/tty1\"<\/pre>\n\n\n\n<p>\u4eca\u3059\u3050\u6d88\u706f\u3055\u305b\u305f\u3044\u306a\u3089\u3070<code>--blank force<\/code>\u3067\u3042\u308b\u3002\u4f46\u3057\u6b64\u308c\u306f\u6c38\u7d9a\u7684\u306a\u6d88\u706f\u3060\u304b\u3089\u30ad\u30fc\u30dc\u30fc\u30c9\u64cd\u4f5c\u3092\u3057\u305f\u3068\u3066\u70b9\u706f\u306f\u53f6\u308f\u306a\u3044\u3002\u4eca\u5f8c\u306f\u624b\u63a2\u308a\u3067\u64cd\u4f5c\u3059\u308b\u304b<code>--blank poke<\/code>\u3067\u70b9\u706f\u3059\u308b\u304b\u9078\u629e\u3092\u8feb\u3089\u308c\u308b\u3068\u3053\u308d\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo su -c \"setterm --term linux --blank force &lt; \/dev\/tty1\"<\/pre>\n\n\n\n<p>\u3068\u3053\u308d\u3067\u4ee5\u524d\u306f<code>setterm<\/code>\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u30cf\u30a4\u30d5\u30f3\u4e00\u3064\u3060\u3063\u305f\u6c17\u304c\u3059\u308b\u3051\u308c\u3069\u3082\u8fd1\u9803\u306f\u30cf\u30a4\u30d5\u30f3\u4e8c\u3064\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3053\u3068\u306b\u6c17\u304c\u3064\u3044\u305f\u3002\u30de\u30cb\u30e5\u30a2\u30eb\u306b\u3082\u3053\u3046\u3042\u308b\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>COMPATIBILITY<\/p><p>Since version 2.25 setterm has support for long options with two hyphens, for example &#8211;help, beside the historical long options with a single hyphen, for example -help. In scripts it is better to use the backward-compatible single hyphen rather than the double hyphen. Currently there are no plans nor good reasons to discontinue single-hyphen compatibility.<\/p><cite>$ man setterm<\/cite><\/blockquote>\n\n\n\n<p>\u306a\u304aOS\u3092\u518d\u8d77\u52d5\u3057\u3066\u3082\u6c38\u7d9a\u7684\u306b\u6d88\u706f\u6642\u9593\u3092\u56fa\u5b9a\u3059\u308b\u306a\u3089\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30aa\u30d7\u30b7\u30e7\u30f3\u306b<code>consoleblank<\/code>\u3092\u5f15\u304d\u6e21\u305b\u3070\u3088\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3042\u308b\u3002\u5358\u4f4d\u306f\u79d2\u3067\u3042\u3063\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo vi \/boot\/cmdline.txt\n#dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=fb9e6cf7-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait\ndwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=fb9e6cf7-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait <strong class=\"orange\">consoleblank=0<\/strong><\/pre>\n\n\n\n<p>setterm\u30b3\u30de\u30f3\u30c9\u306eblank\u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u9055\u3063\u3066consoleblank\u306f\u3069\u3046\u3084\u3089\u4e0a\u9650\u304c60\u5206\u3067\u306f\u7121\u3044\u6a21\u69d8\u3067\u3042\u308b\u3002\u83ab\u5927\u306a\u6570\u5024\u3092\u6307\u5b9a\u3057\u3066\u3082\u53d7\u3051\u5165\u308c\u305f\u3002\u7136\u3057\u4e4d\u30891\u51045\u5343\u4e07\u3092\u8d85\u3048\u305f\u3042\u305f\u308a\u304b\u3089\u8d77\u52d5\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u306a\u304f\u306a\u3063\u305f\u3002\u7121\u95c7\u306b\u5927\u304d\u306a\u5024\u3092\u653e\u308a\u8fbc\u3080\u306e\u306f\u826f\u304f\u306a\u3044\u3088\u3046\u3067\u3042\u308b\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2021\/09\/raspi-console.png\"><img loading=\"lazy\" decoding=\"async\" width=\"445\" height=\"388\" src=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2021\/09\/raspi-console.png\" alt=\"\" class=\"wp-image-996\" srcset=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2021\/09\/raspi-console.png 445w, https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-content\/uploads\/2021\/09\/raspi-console-300x262.png 300w\" sizes=\"auto, (max-width: 445px) 100vw, 445px\" \/><\/a><figcaption>\u56f31. \u8d77\u52d5\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u306a\u3044\u69d8\u5b50<\/figcaption><\/figure>\n<\/div>\n\n\n<h3 class=\"link\">\u53c2\u8003:<\/h3>\n<ul>\n <li><a href=\"https:\/\/raspberrypi.stackexchange.com\/questions\/752\/how-do-i-prevent-the-screen-from-going-blank\/61080\">How do I prevent the screen from going blank?<\/a><\/li>\n <li><a href=\"https:\/\/www.raspberrypi.org\/documentation\/configuration\/cmdline-txt.md\">The Kernel Command Line &#8211; Raspberry Pi Documentation<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Raspberry Pi 3 Model BOS: Raspbian stretch lite November 2017 Raspbian stretch lite November 2017\u3067\u306f\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762\u304c600\u79d2\u3067\u6d88\u706f\u3059\u308b\u3088\u3046\u30bb\u30c3\u30c8\u3055\u308c\u3066\u3044\u308b\u3002 $ cat \/sys\/module\/kernel\/parameters\/consoleblank 600 \u30ad\u30fc\u30dc\u30fc\u30c9\u3092\u63a5\u7d9a\u3057\u3066\u3044\u306a\u3044\u304b\u3089OS\u8d77\u52d5 &#8230; <a title=\"\u6d88\u706f\u3057\u305f\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762\u3092\u70b9\u706f\u3055\u305b\u308b\" class=\"read-more\" href=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/archives\/146\" aria-label=\"\u6d88\u706f\u3057\u305f\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762\u3092\u70b9\u706f\u3055\u305b\u308b \u306b\u3064\u3044\u3066\u3055\u3089\u306b\u8aad\u3080\">\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[166],"tags":[232],"class_list":["post-146","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi","tag-232"],"views":4035,"_links":{"self":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/posts\/146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/comments?post=146"}],"version-history":[{"count":0,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/posts\/146\/revisions"}],"wp:attachment":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}