兔八哥极品软件园    运行: 2460天 | 文章:560 篇 | 评论:101 条 | 碎语:1条

禁用树莓派主板LED灯

作者:admin 发布于:2018-6-22 18:32 Friday

将以下几行加到 /boot/config.txt 即可禁用树莓派 两盏指示灯。

# Disable the ACT LED.
dtparam=act_led_trigger=none
dtparam=act_led_activelow=off

# Disable the PWR LED.
dtparam=pwr_led_trigger=none
dtparam=pwr_led_activelow=off

如果指示灯还亮着,把以下几行加到 /etc/rc.local 即可

# Turn off ACT LED
echo gpio | tee /sys/class/leds/led0/trigger
echo 0 | tee /sys/class/leds/led0/brightness

# Turn off PWR LED
echo gpio | tee /sys/class/leds/led1/trigger
echo 0 | tee /sys/class/leds/led1/brightness
 
#树莓派关闭摄像头灯
disable_camera_led=1


Powered by 兔八哥极品软件 苏ICP备12049267号 sitemap