{"id":7563,"date":"2025-04-07T09:44:35","date_gmt":"2025-04-07T00:44:35","guid":{"rendered":"https:\/\/do-gugan.com\/~furuta\/?p=7563"},"modified":"2025-04-07T09:44:35","modified_gmt":"2025-04-07T00:44:35","slug":"pi-zero-2_optimization","status":"publish","type":"post","link":"https:\/\/do-gugan.com\/~furuta\/archives\/2025\/04\/pi-zero-2_optimization.html","title":{"rendered":"Raspberry Pi Zero 2 W\u306b\u3088\u308bGPS\u30d3\u30fc\u30b3\u30f3\u306e\u6d88\u8cbb\u30ea\u30bd\u30fc\u30b9\u6700\u5c0f\u5316"},"content":{"rendered":"\n<p>\u524d\u8a18\u4e8b\u3067Raspberry Pi Zero 2 W\u3092\u4f7f\u3063\u305fGPS\u30d3\u30fc\u30b3\u30f3\uff08\u73fe\u5728\u4f4d\u7f6e\u3092\u5b9a\u671f\u7684\u306b\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3059\u308b\u8ffd\u8de1\u30c7\u30d0\u30a4\u30b9\uff09\u3092\u81ea\u4f5c\u3057\u305f\u969b\u3001ChatGPT\u3055\u3093\u306e\u30a2\u30c9\u30d0\u30a4\u30b9\u3092\u5143\u306b\u30e1\u30e2\u30ea\u3084\u6d88\u8cbb\u96fb\u529b\u5468\u308a\u3092\u6700\u9069\u5316\u3057\u305f\u306e\u3067\u899a\u3048\u66f8\u304d\u3002OS\u30ec\u30d9\u30eb\u3068\u3044\u3046\u304b\u3001\u81ea\u4f5c\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u95a2\u4fc2\u306a\u3044\u60c5\u5831\u306a\u306e\u3067\u5225\u8a18\u4e8b\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u25a0ROM\u5316<\/h1>\n\n\n\n<p>microSD\u30ab\u30fc\u30c9\u306e\u3088\u3046\u306a\u30d5\u30e9\u30c3\u30b7\u30e5\u30e1\u30e2\u30ea\u306f\u66f8\u304d\u8fbc\u307f\u56de\u6570\u306b\u3088\u308a\u52a3\u5316\u304c\u9032\u3080\u306e\u3067\u3001\u901a\u5e38\u904b\u7528\u6642\u306f\u66f8\u304d\u8fbc\u307f\u3092\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u73fe\u5728\u306eRaspberry OS 12\u7cfb\u306fBookworm\u3068\u3044\u3046\u4e16\u4ee3\u306eDebian\u30d9\u30fc\u30b9\u3067\u3001Overlay File Sytem\u3068\u3044\u3046\u306e\u3092\u6709\u52b9\u5316\u3059\u308b\u3060\u3051\u3067\u3001\u30e1\u30e2\u30ea\u4e0a\u306b\u4eee\u60f3\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u751f\u6210\u3057\u3066\u30ed\u30b0\u306a\u3069\u306f\u5168\u3066\u305d\u3061\u3089\u306b\u66f8\u304d\u8fbc\u307f\u3001\u96fb\u6e90\u30aa\u30d5\u3067\u3059\u3079\u3066\u6d88\u3048\u308b\u3001\u3068\u3044\u3046\u5f62\u306b\u306a\u308a\u307e\u3059\u3002\u96fb\u6e90\u6295\u5165\u6bce\u306b\u771f\u3063\u65b0\u306a\u72b6\u614b\u304b\u3089\u59cb\u307e\u308b\u306e\u3067\u3001\u30ed\u30b0\u304c\u6ea2\u308c\u308b\u3068\u304b\u3082\u306a\u3044\u3057\u3001SD\u30ab\u30fc\u30c9\u306e\u52a3\u5316\u3082\u6291\u3048\u3089\u308c\u308b\u306e\u3067\u9577\u671f\u653e\u7f6e\u904b\u7528\u306b\u306f\u3082\u3063\u3066\u3053\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u8a2d\u5b9a\u306f\u6a19\u6e96\u8a2d\u5b9a\u30b3\u30de\u30f3\u30c9raspi-config\u3067\u7c21\u5358\u306b\u884c\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo raspi-config<\/code><\/pre>\n\n\n\n<p>\u300cPerformance Options\u300d\u2192\u300cOverlay File System\u306a\u3093\u3061\u3083\u3089\u300d\u3067Yes\u3067\u6709\u52b9\u5316\u3001No\u3067\u7121\u52b9\u5316\u3002\u7d9a\u3051\u3066boot\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u3082\u7121\u52b9\u5316\u306b\u3059\u308b\u304b\u805e\u304b\u308c\u3001raspi-config\u7d42\u4e86\u6642\u306b\u518d\u8d77\u52d5\u3092\u4fc3\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u8272\u3005\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\u6642\u306f\u7121\u52b9\u5316\u3057\u3001\u7d42\u308f\u3063\u305f\u3089\u6709\u52b9\u5316\u3059\u308b\u306e\u3092\u5fd8\u308c\u305a\u306b\uff01\uff08\u6709\u52b9\u5316\u3057\u305f\u307e\u307e\u8a2d\u5b9a\u5909\u66f4\u3057\u3066\u3082\u518d\u8d77\u52d5\u3067\u623b\u3063\u3066\u3057\u307e\u3044\u307e\u3059\uff09\u3002<\/p>\n\n\n\n<p>\u73fe\u5728\u306e\u72b6\u614b\u78ba\u8a8d\u306f\u3001<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mount | grep overlay<\/code><\/pre>\n\n\n\n<p>\u3068\u3057\u3066\u3001\u300coverlay on \/ type overlay (rw,relatime,lowerdir=&#8230;,upperdir=&#8230;,workdir=&#8230;)\u300d\u307f\u305f\u3044\u306a\u306e\u304c\u51fa\u308c\u3070\u6709\u52b9\u3001\u306a\u306b\u3082\u51fa\u306a\u3051\u308c\u3070\u7121\u52b9\u3067\u3059\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u25a0\u30ea\u30bd\u30fc\u30b9\u30c1\u30a7\u30c3\u30af\u6cd5<\/h1>\n\n\n\n<p>\u8af8\u3005\u6700\u9069\u5316\u3092\u56f3\u308b\u524d\u306b\u6570\u5024\u3092\u53d6\u3063\u3066\u52b9\u679c\u691c\u8a3c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>free -h<\/code><\/pre>\n\n\n\n<p>\u3067\u73fe\u5728\u306e\u30e1\u30e2\u30ea\u7dcf\u91cf\u3001\u6b8b\u91cf\u3001\u30b9\u30ef\u30c3\u30d7\u4f7f\u7528\u72b6\u6cc1\u306a\u3069\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ free -h\n               total        used        free      shared  buff\/cache   available\nMem:           416Mi       148Mi       185Mi       8.0Ki       131Mi       267Mi\nSwap:          511Mi       2.8Mi       509Mi<\/code><\/pre>\n\n\n\n<p>\u4eca\u56de\u306e\u5834\u5408\u3001\u30b9\u30bf\u30fc\u30c8\u72b6\u614b\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3057\u305f\u3002Pi Zero2\u306f\u30e1\u30a4\u30f3\u30e1\u30e2\u30ea512MB\u3067\u3059\u304c\u3001GPU\u30e1\u30e2\u30ea\u306b\u521d\u671f\u72b6\u614b\u306764MB\u5272\u308a\u5f53\u3066\u3089\u308c\u3066\u76ee\u6e1b\u308a\u3057\u3066\u3044\u307e\u3057\u305f\u3002\u5b9f\u8cea\u306e\u6b8b\u91cf\u304c267Mi\u3001\u30b9\u30ef\u30c3\u30d7\u304c\u308f\u305a\u304b\uff082.8Mi\uff09\u306b\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u6700\u7d42\u7684\u306b\u30b9\u30ef\u30c3\u30d7\u7121\u52b9\u5316\u307e\u3067\u3082\u3063\u3066\u3044\u304d\u305f\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CPU\u6e29\u5ea6<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>vcgencmd measure_temp<\/code><\/pre>\n\n\n\n<p>\u3068\u3059\u308b\u3068SoC\uff08CPU\uff09\u6e29\u5ea6\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002\u521d\u671f\u72b6\u614b\u306760\u2103\u307b\u3069\u3067\u3057\u305f\u3002\u516c\u5f0f\u306e\u63a8\u5968\u52d5\u4f5c\u6e29\u5ea6\u7bc4\u56f2\u306f0\uff5e 85\u2103\u306780\u2103\u7a0b\u5ea6\u304b\u3089\u30b5\u30fc\u30de\u30eb\u30b9\u30ed\u30c3\u30c8\u30ea\u30f3\u30b0\u767a\u52d5\u3059\u308b\u307d\u3044\u3002\u307e\u3060\u307e\u3060\u5b89\u5168\u570f\u3067\u3059\u304c\u3001\u3053\u308c\u306f\u5ba4\u5185\u3067\u306e\u6570\u5024\u306a\u306e\u3067\u3001\u8eca\u5185\u306b\u96a0\u853d\u8a2d\u7f6e\u3057\u305f\u969b\u306f\u590f\u306e\u6c17\u6e29\u3084\u6696\u623f\u306e\u5f71\u97ff\u3067\u66f4\u306b\u4e0a\u304c\u308b\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002\u3067\u304d\u308b\u3060\u3051\u4e0b\u3052\u3066\u304a\u304d\u305f\u3044\u3068\u3053\u308d\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u25a0\u3084\u3063\u305f\u3053\u3068<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">[\u4e88\u7fd2] config.txt\u306e\u7de8\u96c6\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u306e\u3044\u304f\u3064\u304b\u306f\/boot\/firmware\/config.txt\u3092\u7de8\u96c6\u3059\u308b\u3053\u3068\u3067\u884c\u3044\u307e\u3059\u3002\u901a\u5e38\u306f\/boot\u30d1\u30fc\u30c6\u30a3\u30b7\u30e7\u30f3\u306fro\uff08read only\uff09\u3067\u30de\u30a6\u30f3\u30c8\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u30b7\u30a7\u30eb\u304b\u3089\u76f4\u63a5\u7de8\u96c6\u306f\u3067\u304d\u307e\u305b\u3093\u3002mount\u30b3\u30de\u30f3\u30c9\u3067rw\u3067\u518d\u30de\u30a6\u30f3\u30c8\u3059\u308b\u306a\u3069\u3082\u53ef\u80fd\u3067\u306f\u3042\u308b\u3093\u3067\u3059\u304c\u3001\u4eca\u56de\u306fmicroSD\u3092PC\u306b\u30de\u30a6\u30f3\u30c8\u3057\u3066\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308bconfig.txt\u3092\u30a8\u30c7\u30a3\u30bf\u3067\u7de8\u96c6\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GPU\u30e1\u30e2\u30ea\u5272\u5f53\u3092\u6e1b\u3089\u3059\uff0864GB \u2192 16GB\uff09<\/h2>\n\n\n\n<p>\u73fe\u5728\u306e\u5272\u308a\u5f53\u3066\u306e\u78ba\u8a8d\u306f\u3001<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vcgencmd get_mem gpu<\/code><\/pre>\n\n\n\n<p>\u3067\u3059\u300264GB\u3067\u3057\u305f\u304c\u3001GPS\u30ed\u30ac\u30fc\u3067\u306fX\u306e\u3088\u3046\u306aGUI\u306f\u4f7f\u308f\u306a\u3044\u306e\u3067\u4f59\u5270\u306b\u5272\u308a\u5f53\u3066\u3055\u308c\u3066\u3044\u308b\u3068\u8a00\u3048\u307e\u3059\u3002\u6700\u4f4e\u306e16GB\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002\u306a\u304a\u5b9f\u969b\u306e\u4f7f\u7528\u91cf\u3092\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u78ba\u8a8d\u3059\u308b\u306e\u306fGUI\u30c4\u30fc\u30eb\u304c\u5fc5\u8981\u3063\u307d\u3044\u306e\u3067\u672c\u672b\u8ee2\u5012\u306a\u306e\u3067\u65ad\u5ff5\u3002\u3069\u306e\u307f\u3061\u4f7f\u308f\u306a\u3051\u308c\u3070\u767a\u71b1\u306b\u306f\u3055\u307b\u3069\u5f71\u97ff\u3057\u307e\u305b\u3093\u304c\u3001\u30e1\u30e2\u30ea\u3092\u304c\u3063\u3064\u308a\u53d6\u308a\u8fd4\u305b\u308b\u306e\u3067\u52b9\u679c\u306f\u5927\u304d\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>config.txt\u306e[all]\u30bb\u30af\u30b7\u30e7\u30f3\u8fba\u308a\u306b\u3001<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gpu_mem=16<\/code><\/pre>\n\n\n\n<p>\u3068\u66f8\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u52d5\u4f5c\u30af\u30ed\u30c3\u30af\u3092\u5236\u9650\u3059\u308b\uff081.2GHz \u2192 1.0GHz\uff09<\/h2>\n\n\n\n<p>\u767a\u71b1\u3092\u6291\u3048\u308b\u65bd\u7b56\u3067\u3059\u3002config.txt\u306e\u300carm_boost=1\u300d\u306e\u7b87\u6240\u3092\u300carm_boost=0\u300d\u306b\u66f8\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e0d\u8981\u306a\u30c7\u30d0\u30a4\u30b9\u3092\u7121\u52b9\u5316\u3059\u308b<\/h2>\n\n\n\n<p>\u8a72\u5f53\u7b87\u6240\u3092\u63a2\u3057\u3066\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\uff08\u884c\u982d\u306b#\u3092\u3064\u3051\u308b\uff09\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># GPU\u30c9\u30e9\u30a4\u30d0\u30fc\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\n# dtoverlay=vc4-kms-v3d\n# max_framebuffers=2\n\n# \u30ab\u30e1\u30e9\n# camera_auto_detect=1\n\n# DSI\u63a5\u7d9a\u306e\u30e2\u30cb\u30bf\u30fc\uff08HDMI\u306f\u7121\u95a2\u4fc2\uff09\n# display_auto_detect=1\n\n# \u30aa\u30fc\u30c7\u30a3\u30aa\n# dtparam=audio=on\n\n# initramfs\uff08\u72ec\u81ea\u306einitrd\u3092\u4f7f\u7528\u3057\u306a\u3051\u308c\u3070\u4e0d\u8981\uff09 \n# auto_initramfs=1<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Bluetooth\u306e\u7121\u52b9\u5316<\/h2>\n\n\n\n<p>\u3044\u3063\u3055\u3044\u4f7f\u308f\u306a\u3044\u306e\u3067\u7121\u52b9\u5316\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3067\u306f\u306a\u304f\u3001\u884c\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Bluetooth\u3092\u7121\u52b9\u5316\u3059\u308b\ndtoverlay=disable-bt\n\n\u306a\u304a\u3001Bluetooth\u3082\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u306e\u4e00\u7a2e\u306a\u306e\u3067\u3001\u7121\u52b9\u5316\u3059\u308b\u3068\u30c7\u30d0\u30a4\u30b9\u756a\u53f7\u304c\u8a70\u307e\u308b\u306e\u304b\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u306e\u4eee\u60f3\u30c7\u30d0\u30a4\u30b9\u540d\u304c\u304b\u308f\u3063\u3066\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u30a8\u30e9\u30fc\u3092\u5410\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\n\u3082\u3068\u3082\u3068\u300c\/dev\/ttyS0\u300d\u3092\u6307\u5b9a\u3057\u305f\u306e\u3092\u300c\/dev\/ttyAMA0\u300d\u306b\u5909\u66f4\u3057\u305f\u3089\u5143\u901a\u308a\u52d5\u304f\u69d8\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">LED\u3092\u7121\u52b9\u5316<\/h2>\n\n\n\n<p>\u30dc\u30fc\u30c9\u4e0a\u306eLED\u3092\u7121\u52b9\u5316\u3057\u307e\u3059\u3002\u3069\u3046\u305b\u898b\u3048\u306a\u3044\u3068\u3053\u308d\u306b\u96a0\u3059\u3057\u3001\u5149\u3063\u3066\u306a\u3044\u65b9\u304c\u898b\u4ed8\u304b\u308a\u306b\u304f\u3044\u3067\u3057\u3087\u3046\u3002\u305f\u3060\u3057\u4eca\u56de\u88c5\u7740\u3057\u305fGPS\u30e2\u30b8\u30e5\u30fc\u30ebHAT\u4e0a\u306eLED\u306f\u6d88\u3048\u306a\u3044\u306e\u3067\u6c17\u4f11\u3081\u7a0b\u5ea6\u3067\u3059\u3002\u6d88\u8cbb\u96fb\u529b\u304c1\uff5e2mA\uff08\u5168\u4f53\u306e1\uff5e2%\u7a0b\u5ea6\uff09\u6e1b\u3089\u305b\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3082config.txt\u306e[all]\u30d6\u30ed\u30c3\u30af\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dtparam=act_led_trigger=none\ndtparam=act_led_activelow=on<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Wi-Fi\u306e\u30d1\u30ef\u30fc\u30bb\u30fc\u30d6\u3092\u7121\u52b9\u5316<\/h2>\n\n\n\n<p>\u3053\u308c\u306f\u9006\u306b\u6d88\u8cbb\u96fb\u529b\u3092\u5897\u3084\u3059\u63aa\u7f6e\u3067\u3059\u304c\u3001\u901a\u4fe1\u3092\u5b89\u5b9a\u304b\u3055\u305b\u308b\u305f\u3081\u306b\u3084\u3063\u3066\u307f\u307e\u3057\u305f\u3002GPS\u30ed\u30ac\u30fc\u3067\u306f\u4e00\u5b9a\u6642\u9593\u6bce\u306b\u30b5\u30fc\u30d0\u30fc\u306b\u73fe\u5728\u4f4d\u7f6e\u60c5\u5831\u3092\u9001\u4fe1\u3057\u307e\u3059\u304c\u3001\u30b7\u30b9\u30c6\u30e0\u304c\u4e00\u5b9a\u6642\u9593\u901a\u4fe1\u304c\u306a\u3044\u3068Wi-Fi\u3092\u7bc0\u96fb\u30e2\u30fc\u30c9\u306b\u3057\u3066\u3057\u307e\u3044\u3001\u5fa9\u5e30\u306b\u6570\u79d2\u304b\u304b\u3063\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u305d\u308c\u3092\u7121\u52b9\u5316\uff08\uff1d\u7701\u96fb\u529b\u3057\u306a\u3044\uff09\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u73fe\u72b6\u78ba\u8a8d<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>iw dev wlan0 get power_save<\/code><\/pre>\n\n\n\n<p>\u3067\u3001\u300cPower save: off\u300d\u3068\u304b\u300cPower save: on\u300d\u3068\u304b\u51fa\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30aa\u30d5\u306b\u3059\u308b\u306e\u306f\u3001<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>iw dev wlan0 set power_save off<\/code><\/pre>\n\n\n\n<p>\u3067\u3059\u304c\u3001\u30b7\u30b9\u30c6\u30e0\u8d77\u52d5\u6642\u306b\u81ea\u52d5\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u306f\u5c11\u3057\u64cd\u4f5c\u304c\u5fc5\u8981\u3067\u3059\u3002\u8272\u3005\u65b9\u6cd5\u306f\u3042\u308a\u305d\u3046\u3067\u3059\u304c\u3001\u3068\u308a\u3042\u3048\u305aChatGPT\u3055\u3093\u306b\u805e\u3044\u305f\u3084\u308a\u65b9\u3002<\/p>\n\n\n\n<p>\/etc\/rc.local\u306b\u8a18\u8ff0\u3002\u4eca\u56de\u306f\u5b58\u5728\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u65b0\u898f\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\niw dev wlan0 set power_save off\n\nexit 0<\/code><\/pre>\n\n\n\n<p>\u6700\u521d\u3068\u6700\u5f8c\u306e\u884c\u3082\u5fc5\u9808\u3067\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3063\u305f\u3089\u5b9f\u884c\u53ef\u80fd\u30d5\u30e9\u30b0\u3064\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chmod +x \/etc\/rc.local\n<\/code><\/pre>\n\n\n\n<p>\u6b21\u306b\u3001\/etc\/systemd\/system\/rc-local.service\u3092\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Unit]\nDescription=\/etc\/rc.local Compatibility\nConditionPathExists=\/etc\/rc.local\n\n&#91;Service]\nType=forking\nExecStart=\/etc\/rc.local start\nTimeoutSec=0\nRemainAfterExit=yes\nGuessMainPID=no\n\n&#91;Install]\nWantedBy=multi-user.target<\/code><\/pre>\n\n\n\n<p>\u305d\u3057\u3066\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u767b\u9332\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl enable rc-local\nsudo systemctl start rc-local<\/code><\/pre>\n\n\n\n<p>\u3053\u308c\u3067\u8d77\u52d5\u306e\u5ea6\u306b\u7121\u52b9\u5316\u3055\u308c\u308b\u306f\u305a\u306a\u306e\u3067\u3001\u5ff5\u306e\u305f\u3081\u300ciw dev wlan0 get power_save\u300d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u25a0\u30ed\u30b0\u30a4\u30f3\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u7701\u7565<\/h1>\n\n\n\n<p>\u30b7\u30b9\u30c6\u30e0\u30ea\u30bd\u30fc\u30b9\u3078\u306e\u5f71\u97ff\u306f\u307b\u307c\u306a\u3044\u3067\u3059\u304c\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30ed\u30b0\u30a4\u30f3\u30e1\u30c3\u30bb\u30fc\u30b8 \u306e\u300cThe programs included with the Debian GNU\/Linux system are free software;\uff5e\u300d\u307f\u305f\u3044\u306a10\u884c\u304f\u3089\u3044\u306e\u82f1\u6587\u304c\u3046\u3063\u3068\u3046\u3057\u3044\u306e\u3067\u524a\u9664\u3057\u307e\u3057\u305f\u3002\/etc\/motd\u306e\u5185\u5bb9\u304c\u5dee\u3057\u8fbc\u307e\u308c\u308b\u306e\u3067\u3001\u3053\u308c\u3092\u7a7a\u306b\u3057\u307e\u3059\uff08\u524a\u9664\u3067\u306f\u306a\u304f\u4e2d\u8eab\u3092\u6d88\u3059\uff09\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u25a0\u30b9\u30ef\u30c3\u30d7\u3092\u7121\u52b9\u5316<\/h1>\n\n\n\n<p>\u3042\u308c\u3053\u308c\u3044\u3058\u3063\u305f\u304a\u304b\u3052\u3067\u3001\u30e1\u30e2\u30ea\u7dcf\u91cf\u304c50Mi\u307b\u3069\u5897\u3048\u3066\u3001\u30b9\u30ef\u30c3\u30d7\u4f7f\u7528\u91cf\u304c0\u306b\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ free -h \n               total        used        free      shared  buff\/cache   available\nMem:           464Mi       152Mi       173Mi       816Ki       189Mi       311Mi\nSwap:          511Mi          0B       511Mi<\/code><\/pre>\n\n\n\n<p>\u6b8b\u91cf\u3082300Mi\u4ee5\u4e0a\u3042\u308b\u306e\u3067\u30b9\u30ef\u30c3\u30d7\u3092\u7121\u52b9\u5316\u3057\u3066\u3088\u3055\u305d\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>sudo nano \/etc\/dphys-swapfile\u3092\u30a8\u30c7\u30a3\u30bf\u3067\u7de8\u96c6\u3057\u3001\u300cCONF_SWAPSIZE=0\u300d\u3068\u3057\u307e\u3059\uff08\u6700\u521d\u306f512\u3068\u304b\u3060\u3063\u305f\uff09\u3002\u305d\u306e\u5f8c\u3001<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dphys-swapfile setup #\u8a2d\u5b9a\u3092\u53cd\u6620\nsudo systemctl disable dphys-swapfile #swap\u30b5\u30fc\u30d3\u30b9\u7121\u52b9\u5316\nsudo swapoff -a #\u30b9\u30ef\u30c3\u30d7\u505c\u6b62<\/code><\/pre>\n\n\n\n<p>\u3068\u3057\u307e\u3059\u3002free -h\u3092\u5b9f\u884c\u3057\u3066\u3001Swap\u306e\u884c\u304c\u3059\u3079\u30660\u306b\u306a\u3063\u3066\u3044\u308c\u3070\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u25a0\u6210\u679c\u78ba\u8a8d<\/h1>\n\n\n\n<p>\u8af8\u3005\u306e\u8a2d\u5b9a\u3092\u65bd\u3057\u3066\u3001<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30e1\u30e2\u30ea\u7dcf\u91cf: 416Mi\u2192 464Mi\u306b\u5897\u52a0<\/li>\n\n\n\n<li>\u30e1\u30e2\u30ea\u6b8b\u91cf: 267Mi \u2192 308Mi\u306b\u5897\u52a0<\/li>\n\n\n\n<li>\u30b9\u30ef\u30c3\u30d7\u4f7f\u7528\u91cf: 2.8Mi \u2192 0Mi\u3067\u30b9\u30ef\u30c3\u30d7\u3092\u7121\u52b9\u5316<\/li>\n\n\n\n<li>\u6e29\u5ea6: 60\u2103\u8d85\u3048 \u2192 48\u2103\u7a0b\u5ea6\u306b\u4f4e\u4e0b<\/li>\n<\/ul>\n\n\n\n<p>\u3068\u3044\u3046\u6700\u9069\u5316\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u6d88\u8cbb\u96fb\u529b\u3068\u3057\u3066\u306f\u6e2c\u308c\u3066\u306a\u3044\u3067\u3059\u304c\u3001<mark style=\"background-color:#fcb900\" class=\"has-inline-color\">\u6e29\u5ea6\u304c10\u2103\u4ee5\u4e0a\u4e0b\u304c\u3063\u305f<\/mark>\u306e\u306f\u9054\u6210\u611f\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a18\u4e8b\u3067Raspberry Pi Zero 2 W\u3092\u4f7f\u3063\u305fGPS\u30d3\u30fc\u30b3\u30f3\uff08\u73fe\u5728\u4f4d\u7f6e\u3092\u5b9a\u671f\u7684\u306b\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3059\u308b\u8ffd\u8de1\u30c7\u30d0\u30a4\u30b9\uff09\u3092\u81ea\u4f5c\u3057\u305f\u969b\u3001ChatGPT\u3055\u3093\u306e\u30a2\u30c9\u30d0\u30a4\u30b9\u3092\u5143\u306b\u30e1\u30e2\u30ea\u3084\u6d88\u8cbb\u96fb\u529b\u5468\u308a\u3092\u6700\u9069\u5316\u3057\u305f\u306e\u3067\u899a\u3048\u66f8\u304d\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,157,142],"tags":[1448,1449,1450,1451,1452,1453,1444,1445,1446,1447],"class_list":["post-7563","post","type-post","status-publish","format-standard","hentry","category-av","category-iot","category-cat190","tag-1448","tag-1449","tag-1450","tag-1451","tag-1452","tag-1453","tag-raspberry-pi-zero-2","tag-1445","tag-1446","tag-1447"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/posts\/7563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/comments?post=7563"}],"version-history":[{"count":3,"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/posts\/7563\/revisions"}],"predecessor-version":[{"id":7566,"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/posts\/7563\/revisions\/7566"}],"wp:attachment":[{"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/media?parent=7563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/categories?post=7563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/do-gugan.com\/~furuta\/wp-json\/wp\/v2\/tags?post=7563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}