LED Status Rock64
#1
Does anyone know what the LED's mean when flashing? I have mine running fine but I have a flashing red LED that flashes twice.
  Reply
#2
(03-13-2018, 03:30 PM)Dayve Wrote: Does anyone know what the LED's mean when flashing? I have mine running fine but I have a flashing red LED that flashes twice.

The red LED is assigned as the 'standby' led... it could be that the trigger for it is disk activity (or heartbeat if that was a valid trigger at some point?)? If you want to check, see what trigger is bracketed when you run the following (first group of triggers will be standby led, second will be power led):

Code:
cat /sys/devices/platform/leds/leds/{standby-led,power-led}/trigger

On the current build I'm running, they have both defaulted to [none].

Code:
Linux rock64 4.4.114-rockchip-ayufan-193 #1 SMP Sun Mar 4 20:24:21 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux

[none] rc-feedback kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock mmc0 mmc1
[none] rc-feedback kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock mmc0 mmc1
  Reply
#3
Hi,

I'm a newbie but would like to set the green or white LED to flash when there is disk activity. Would you be able to help in doing that?

Thanks.
  Reply
#4
Controllable LEDs are red and white LEDs
The green LED is a power supply lamp, it lights up when power is supplied.
Lighting can not be controlled.

> flash when there is disk activity
I think that it refers to things such as "USB-HDD", but it can not be done at present.
You need to add code to realize the function to the kernel.

----
With the latest Ver dts (4.4.120)
    linux, default-trigger = "disk-activity"
It already has the above setting.

But, the 4.4.xx kernel does not support this keyword(""disk-activity").
It is supported keyword  at Main-line-kernel (Ver 4.16.xx, ..)
But, this keyword is for activity of "ata-disk".

For this reason, in the current rock64, setting "disk-activity" is meaningless for any kernel.
  Reply
#5
As t4_4t commented above, the green led is coupled directly to the 5v input to indicate power is present, so you can't control that!

If you do a ...

Code:
sudo sh -c "echo 'mmc0' > /sys/devices/platform/leds/leds/standby-led/trigger"

... that should make the red led flash when there is activity on the eMMC. Change standby-led to power-led if you want the white one to flash. Replace mmc0 with mmc1 if you are using a SD card. Note that it only flash when there is activity on the specified device, not when there is activity on other devices (i.e. it will only flash when there is activity on the microSD if set to mmc1, and will not flash if it was set to mmc0).

I'll leave it to someone else to explain how to make it stick... as this setting will be lost on reboot. DTS overlay? Or just shove it in rc.local?
  Reply
#6
(04-19-2018, 05:25 AM)pfeerick Wrote: As t4_4t commented above, the green led is coupled directly to the 5v input to indicate power is present, so you can't control that!

If you do a ...

Code:
sudo sh -c "echo 'mmc0' > /sys/devices/platform/leds/leds/standby-led/trigger"

... that should make the red led flash when there is activity on the eMMC. Change  standby-led to  power-led if you want the white one to flash. Replace mmc0 with mmc1 if you are using a SD card. Note that it only flash when there is activity on the specified device, not when there is activity on other devices (i.e. it will only flash when there is activity on the microSD if set to mmc1, and will not flash if it was set to mmc0).

I'll leave it to someone else to explain how to make it stick... as this setting will be lost on reboot. DTS overlay? Or just shove it in rc.local?

Thank you for this! I have been playing around with this trying to figure a way out to getting the sda1 drive to trigger the red stand-by light. I went ahead and put sda and sda1 in the trigger file but the save won't hold. I go through the motions of savings and then when I am done, I pull another cat on trigger and it shows it as unchanged. Any idea what I am doing wrong? Is it pulling that data from somewhere else?

Thanks!

~T
  Reply
#7
(05-09-2018, 08:05 PM)mr.travo Wrote:
(04-19-2018, 05:25 AM)pfeerick Wrote: As t4_4t commented above, the green led is coupled directly to the 5v input to indicate power is present, so you can't control that!

If you do a ...

Code:
sudo sh -c "echo 'mmc0' > /sys/devices/platform/leds/leds/standby-led/trigger"

... that should make the red led flash when there is activity on the eMMC. Change  standby-led to  power-led if you want the white one to flash. Replace mmc0 with mmc1 if you are using a SD card. Note that it only flash when there is activity on the specified device, not when there is activity on other devices (i.e. it will only flash when there is activity on the microSD if set to mmc1, and will not flash if it was set to mmc0).

I'll leave it to someone else to explain how to make it stick... as this setting will be lost on reboot. DTS overlay? Or just shove it in rc.local?

Thank you for this! I have been playing around with this trying to figure a way out to getting the sda1 drive to trigger the red stand-by light. I went ahead and put sda and sda1 in the trigger file but the save won't hold. I go through the motions of savings and then when I am done, I pull another cat on trigger and it shows it as unchanged. Any idea what I am doing wrong? Is it pulling that data from somewhere else?

Thanks!

~T


SDA? Is that in the list of valid triggers? It certainly wasn't on my system, as shown further up this thread. If it's not in that list, you can push it all you like, it'll probably be ignored as an invalid option.

Code:
cat /sys/devices/platform/leds/leds/{standby-led,power-led}/trigger
  Reply
#8
(05-10-2018, 04:38 AM)pfeerick Wrote:
(05-09-2018, 08:05 PM)mr.travo Wrote:
(04-19-2018, 05:25 AM)pfeerick Wrote: As t4_4t commented above, the green led is coupled directly to the 5v input to indicate power is present, so you can't control that!

If you do a ...

Code:
sudo sh -c "echo 'mmc0' > /sys/devices/platform/leds/leds/standby-led/trigger"

... that should make the red led flash when there is activity on the eMMC. Change  standby-led to  power-led if you want the white one to flash. Replace mmc0 with mmc1 if you are using a SD card. Note that it only flash when there is activity on the specified device, not when there is activity on other devices (i.e. it will only flash when there is activity on the microSD if set to mmc1, and will not flash if it was set to mmc0).

I'll leave it to someone else to explain how to make it stick... as this setting will be lost on reboot. DTS overlay? Or just shove it in rc.local?

Thank you for this! I have been playing around with this trying to figure a way out to getting the sda1 drive to trigger the red stand-by light. I went ahead and put sda and sda1 in the trigger file but the save won't hold. I go through the motions of savings and then when I am done, I pull another cat on trigger and it shows it as unchanged. Any idea what I am doing wrong? Is it pulling that data from somewhere else?

Thanks!

~T


SDA? Is that in the list of valid triggers? It certainly wasn't on my system, as shown further up this thread. If it's not in that list, you can push it all you like, it'll probably be ignored as an invalid option.

Code:
cat /sys/devices/platform/leds/leds/{standby-led,power-led}/trigger

No- you're right, it's not on the list. My question is which program determines what goes on that list? I am just wondering what all is "uphill" of triggers. Thanks for your help and input!

~T
  Reply
#9
(05-10-2018, 01:42 PM)mr.travo Wrote: No- you're right, it's not on the list. My question is which program determines what goes on that list? I am just wondering what all is "uphill" of triggers. Thanks for your help and input!

~T

That I'm not sure of... it may be a driver or something in the the device tree (DTS). The dts certainly seems to set the default... the power led is supposed to be 'on', and the standby led is supposed to be 'disk-activity', but I'm guessing the actual driver stuff doesn't support it atm (although from what someone else said in another thread it did at one point).
  Reply
#10
(05-10-2018, 07:44 PM)pfeerick Wrote:
(05-10-2018, 01:42 PM)mr.travo Wrote: No- you're right, it's not on the list. My question is which program determines what goes on that list? I am just wondering what all is "uphill" of triggers. Thanks for your help and input!

~T

That I'm not sure of... it may be a driver or something in the the device tree (DTS). The dts certainly seems to set the default... the power led is supposed to be 'on', and the standby led is supposed to be 'disk-activity', but I'm guessing the actual driver stuff doesn't support it atm (although from what someone else said in another thread it did at one point).


All of the triggers are part of the kernel. If you're configuring the kernel and go into 'make menuconfig', most of them are under Devices --> LED Support --> LED Trigger Support (but some are elsewhere). On my rock64's there's an 'mmc0' and 'mmc1' trigger available, and I'm able to use mmc0 to show activity on my emmc. I was looking for a similar trigger  that would show activity on my USB hard drive, but haven't found one. I didn't look very hard, though, because the drive I'm using has its own activity LED.
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  My Rock64 died (with a happy ending!) rmbusy 1 145 08-15-2019, 06:48 PM
Last Post: tllim
Information Brushless Fan (5v) for Rock64 Clear Case Soft PWM Drive 2N2222 MarkHaysHarris777 7 4,349 07-09-2019, 06:15 AM
Last Post: merwone
  Rock64 stereo audio dac add-on board with RockPro64 Tim13 1 132 07-08-2019, 07:15 PM
Last Post: tllim
  Rock64's temperature while being in aluminium case _zernok 3 386 06-23-2019, 08:00 AM
Last Post: rasputin
  Rock64 Stereo Audio DAC add-on board Hukmut 3 525 06-15-2019, 07:56 AM
Last Post: MiiCode2
Smile wooden case for ROCK64 killor 12 2,347 05-05-2019, 07:45 AM
Last Post: killor
  Will Gert's VGA666 adapter work with the Rock64? Other display options? pcosm 0 64 05-03-2019, 01:32 AM
Last Post: pcosm
  Is my Rock64 is dead ? totalgaara 9 706 04-30-2019, 03:03 AM
Last Post: totalgaara
  Rock64 and USB 3.0 HDD + USB 2.0 CC2531 doungle ABoosh 3 354 03-19-2019, 09:19 AM
Last Post: azacan
Lightbulb Mount a HeatSink on the Rock64 using 3M Thermal Tapes MarkHaysHarris777 19 9,572 03-13-2019, 12:27 PM
Last Post: methanoid

Forum Jump:


Users browsing this thread: 1 Guest(s)