0
基于http://www.jeffgeerling.com/blogs/jeff-geerling/controlling-pwr-act-leds-raspberry-pi,据我所知,PWR上的覆盆子裨2 LED可以从使用下面的命令的命令行被关闭:启动完成后,如何关闭Raspberry Pi 2上的PWR LED?
echo 0 | sudo tee /sys/class/leds/led1/brightness
我还理解,下面的可以添加到/引导/的config.txt立即并永久禁用PWR LED在启动时:
# Disable the PWR LED.
dtparam=pwr_led_trigger=none
dtparam=pwr_led_activelow=off
什么是保持PWR最好/最简单的方法引导顺序中的LED上,但随后将其关闭,一旦启动顺序完成?
我想加入以下作为/etc/init.d/lightsoff:
### BEGIN INIT INFO
# Provides: lightsoff
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Disable PWR LED when startup is complete
### END INIT INFO
echo none | sudo tee /sys/class/leds/led1/trigger
echo 0 | sudo tee /sys/class/leds/led1/brightness
我然后跑:
chmod 0755 /etc/init.d/lightsoff
不幸的是,PWR LED在启动时开始工作,岿然不动。我错过了什么?