{"id":16,"date":"2023-07-05T17:19:49","date_gmt":"2023-07-05T17:19:49","guid":{"rendered":"https:\/\/10.17.2.108\/?p=16"},"modified":"2023-07-05T17:21:54","modified_gmt":"2023-07-05T17:21:54","slug":"disabling-leds-on-raspberry-pi","status":"publish","type":"post","link":"https:\/\/blog.vicnunes.com\/?p=16","title":{"rendered":"Disabling LEDs on Raspberry Pi"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Lately, I&#8217;ve been on a tear shutting off as many device LED&#8217;s as I can. Note to self: stop walking around in the dark.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Love me some Pi, but wish they made LED management consistent across versions or provided a utility to do this automatically.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The terminal can display which model of Raspberry Pi is currently in use, including the name of the family and the version.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"to-have-the-terminal-display-the-model-of-raspberry-pi\">To have the terminal display the model of Raspberry Pi<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open the terminal<\/li>\n\n\n\n<li>Enter the command:&nbsp;<code>cat \/sys\/firmware\/devicetree\/base\/model<\/code><\/li>\n\n\n\n<li>Read the Raspberry Pi model number<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Add the following to the&nbsp;<strong>\/boot\/config.txt<\/strong>&nbsp;file<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"raspberry-pi-3-model-b-rev-12\">Raspberry Pi 3 Model B Rev 1.2<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#----------------------------------\n# Disable Red led\ndtparam=pwr_led_trigger=none\n\n# disable green activity led\ndtparam=act_led_trigger=none\ndtparam=act_led_activelow=off\n\n# disable the network LEDs (couldn't get this to work)\ndtparam=eth_led0=14\ndtparam=eth_led1=14\n#----------------------------------<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"raspberry-pi-4-model-b-rev-11\">Raspberry Pi 4 Model B Rev 1.1<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#----------------------------------\n# Disable Red led\ndtparam=pwr_led_trigger=default-on\ndtparam=pwr_led_activelow=off\n\n# disable green activity led\ndtparam=act_led_trigger=none\ndtparam=act_led_activelow=off\n\n# disable the network LEDs\ndtparam=eth_led0=4\ndtparam=eth_led1=4\n#----------------------------------<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"raspberry-pi-4-model-b-rev-14\">Raspberry Pi 4 Model B Rev 1.4<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>#----------------------------------\n# Disable Red led\ndtparam=pwr_led_trigger=none\n\n# disable green activity led\ndtparam=act_led_trigger=none\ndtparam=act_led_activelow=off\n\n# disable the network LEDs\ndtparam=eth_led0=4\ndtparam=eth_led1=4\n#----------------------------------<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Inspiration:&nbsp;<a href=\"https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?p=1306079\">https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?p=1306079<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lately, I&#8217;ve been on a tear shutting off as many device LED&#8217;s as I can. Note to self: stop walking around in the dark. Love me some Pi, but wish they made LED management consistent across versions or provided a utility to do this automatically. The terminal can display which model of Raspberry Pi is currently in use, including the name of the family and the version. To have the terminal display the model of Raspberry Pi Add the following&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/blog.vicnunes.com\/?p=16\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":18,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-16","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-lab"],"_links":{"self":[{"href":"https:\/\/blog.vicnunes.com\/index.php?rest_route=\/wp\/v2\/posts\/16","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.vicnunes.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.vicnunes.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.vicnunes.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.vicnunes.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16"}],"version-history":[{"count":1,"href":"https:\/\/blog.vicnunes.com\/index.php?rest_route=\/wp\/v2\/posts\/16\/revisions"}],"predecessor-version":[{"id":17,"href":"https:\/\/blog.vicnunes.com\/index.php?rest_route=\/wp\/v2\/posts\/16\/revisions\/17"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.vicnunes.com\/index.php?rest_route=\/wp\/v2\/media\/18"}],"wp:attachment":[{"href":"https:\/\/blog.vicnunes.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.vicnunes.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.vicnunes.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}