Raspberry Pi
LED
LED mode
led0 | Green LED (ACT LED) |
led1 | Red LED (PWR LED) |
Get current mode and list available mode
sudo cat /sys/class/leds/led{0|1}/trigger
Set LED mode
echo <mode> | sudo tee /sys/class/leds/led{0|1}/trigger
Switch
0 | Off |
1 | On |
echo { 0 | 1 } | sudo tee /sys/class/leds/led{0|1}/brightness
Disable LED
# /boot/config.txt
dtparam=pwr_led_trigger=default-on
dtparam=pwr_led_activelow=on
dtparam=act_led_trigger=default-on
dtparam=act_led_activelow=on
Auto start
Disable warning
Disable warning symbols
# Disable warning
avoid_warnings=1
# Disable warning and allows turbo mode even when low-voltage
avoid_warnings=2
Raspberry Pi 4 USB-C issue
cat /proc/cpuinfo | grep Revision
If the revision is {a|b|c|d}03111
(Revision 1.1), it has USB-C power issue