Skip to main content

Raspberry Pi

LED

LED mode

led0Green LED (ACT LED)
led1Red 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

0Off
1On
echo { 0 | 1 } | sudo tee /sys/class/leds/led{0|1}/brightness

Disable LED

Reference

# /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

Reference

Disable warning

Reference

Disable warning symbols

Under Voltage Over temperature Over temperature

# 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