关闭树莓派电源LED灯,禁用wifi、蓝牙

关闭树莓派的电源指示灯和状态指示灯中,对关闭树莓派指示灯的原理进行了详细的讲解,本文不再讲解关闭树莓派指示灯的原理,只写命令。如果想要了解原理的,可以去原来的文章参考。以下是具体的过程:

禁用树莓派电源指示灯

echo "# Disable the PWR LED" | sudo tee -a /boot/config.txtecho "dtparam=pwr_led_trigger=none" | sudo tee -a /boot/config.txtecho "dtparam=pwr_led_activelow=off" | sudo tee -a /boot/config.txt

禁用树莓派以太网指示灯

echo "# Disable Ethernet LEDs" | sudo tee -a /boot/config.txtecho "dtparam=eth_led0=14" | sudo tee -a /boot/config.txtecho "dtparam=eth_led1=14" | sudo tee -a /boot/config.txt

禁用树莓派wifi

echo "dtoverlay=pi3-disable-wifi" | sudo tee -a /boot/config.txt

禁用树莓派蓝牙

echo "dtoverlay=pi3-disable-bt" | sudo tee -a /boot/config.txt

禁用树莓派板载音频驱动程序

echo "blacklist snd_bcm2835"> /etc/modprobe.d/alsa-blacklist.conf
阅读全文

关闭树莓派的电源指示灯和状态指示灯

树莓派的电源指示灯只要加电就是一直亮的,而且还很亮,尤其在晚上,特别晃眼,我就想能不能关掉,经过实验,终于找到了关闭树莓派电源指示灯的方法,下面是完整的过程,以供大家参考。实现的原理并不难,在给树莓派添加一个硬件开、关机按键 中,我已经讲过了利用/boot/config.txt文件来给树莓派添加一个硬件的开关,如果想了解其中的原理,可以参考该文章。树莓派电源指示灯和状态指示灯的控制,官方文档中是这么说的:
act_led_trigger         Choose which activity the LED tracks.Use "heartbeat" for a nice load indicator.(default "mmc")act_led_activelow       Set to "on" to invert the sense of the LED(default "off")N.B. For Pi 3B, 3B+, 3A+ and 4B, use the act-ledoverlay.act_led_gpio            Set which GPIO to use for the activity LED(in case you want to connect it to an externaldevice)(default "16" on a non-Plus board, "47" on aPlus or Pi 2)N.B. For Pi 3B, 3B+, 3A+ and 4B, use the act-ledoverlaypwr_led_triggerpwr_led_activelowpwr_led_gpioAs for act_led_*, but using the PWR LED.Not available on Model A/B boards.
即可以通过关闭act_led_trigge...阅读全文