initial checkin

This commit is contained in:
Radar231 2022-11-21 22:49:00 -05:00
commit be72c271ac
3 changed files with 42 additions and 0 deletions

12
README.md Normal file
View File

@ -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

15
rpi-led-act.service Normal file
View File

@ -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

15
rpi-led-pwr.service Normal file
View File

@ -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