I’m new to Dietpi and have recently installed v9.13.2 on a PC Engines APU. This board has 3 LED and I’d like to have led 1 as a heartbeat. I see no option for that under LED Control.
I have options for cpu, cpu1, cpu2, cpu3 and other options related to disk, kbd, etc.
How can I enable this?
If I’m not mistaken, all available options are listed based on availability by firmware aso. Probably the device is not supporting heartbeat
as option.??
I used to run Voyage MPD Linux (music server oriented distro) and had a heartbeat enabled by default.
Can this be enabled manually? Put a request in?
We use udev
rules to control the led. For this we create a file like this
(example)
root@DietPiProd:~# cat /etc/udev/rules.d/dietpi-led_control.rules
# Added by DietPi:
SUBSYSTEM=="leds", KERNEL=="PWR", ACTION=="add", ATTR{trigger}="none"
root@DietPiProd:~#
To see which led you have available check content within /sys/class/leds/
On my system it looks like this
root@DietPiProd:/sys/class/leds# ls -l
total 0
lrwxrwxrwx 1 root root 0 May 29 22:35 ACT -> ../../devices/platform/leds/leds/ACT
lrwxrwxrwx 1 root root 0 May 29 22:35 PWR -> ../../devices/platform/leds/leds/PWR
lrwxrwxrwx 1 root root 0 May 29 22:35 default-on -> ../../devices/virtual/leds/default-on
lrwxrwxrwx 1 root root 0 May 29 22:35 mmc0 -> ../../devices/virtual/leds/mmc0
lrwxrwxrwx 1 root root 0 May 29 22:35 mmc0:: -> ../../devices/platform/emmc2bus/fe340000.mmc/leds/mmc0::
You can select one of the led like PWR
and check for options
root@DietPiProd:/sys/class/leds/PWR# ls -la
total 0
drwxr-xr-x 3 root root 0 May 29 22:35 .
drwxr-xr-x 4 root root 0 May 29 22:35 ..
-rw-r--r-- 1 root root 4096 Jun 6 08:03 brightness
lrwxrwxrwx 1 root root 0 Jun 6 08:03 device -> ../../../leds
-r--r--r-- 1 root root 4096 Jun 6 08:03 max_brightness
drwxr-xr-x 2 root root 0 May 31 21:47 power
lrwxrwxrwx 1 root root 0 May 29 22:35 subsystem -> ../../../../../class/leds
-rw-r--r-- 1 root root 0 Jun 6 07:55 trigger
-rw-r--r-- 1 root root 4096 May 29 22:35 uevent
The trigger
file contoins what we display within our menu. These values are provided by kernel and firmware. Maybe your Voyage MPD Linux was running a different one.