initial checkin
This commit is contained in:
commit
be72c271ac
|
@ -0,0 +1,12 @@
|
|||
# rpi-led control files
|
||||
|
||||
## Introduction
|
||||
|
||||
A recent change to Debian on RPI4 seems to have affected the PWR and ACT LEDs. These files re-enable the LEDs.
|
||||
|
||||
These files should be copied to /etc/systemd/system, and then activated as per commands in comments.
|
||||
|
||||
## Links
|
||||
|
||||
* https://wiki.debian.org/ThomasChung/RPI4#Control_Power_LED_for_RPI4
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
[Unit]
|
||||
Description=Control Raspberry Pi ACT (activity) LED
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=sh -c "echo 1 > /sys/class/leds/ACT/brightness"
|
||||
ExecStop=sh -c "echo 0 > /sys/class/leds/ACT/brightness"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
# systemctl daemon-reload
|
||||
# systemctl enable rpi-led-act.service
|
||||
# systemctl start rpi-led-act.service
|
|
@ -0,0 +1,15 @@
|
|||
[Unit]
|
||||
Description=Control Raspberry Pi PWR (power) LED
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=sh -c "echo 1 > /sys/class/leds/PWR/brightness"
|
||||
ExecStop=sh -c "echo 0 > /sys/class/leds/PWR/brightness"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
# systemctl daemon-reload
|
||||
# systemctl enable rpi-led-pwr.service
|
||||
# systemctl start rpi-led-pwr.service
|
Loading…
Reference in New Issue