Power & Source of Big Ideas

Is there a way to dim/turn off the LEDs?

Moderators: chensy, FATechsupport

Hi,
Just a cosmetic issue: the Nanopi M4 has two very red and green LEDs that keep on flashing.
Two questions:
    Why are they flashing continuously? Is there something wrong?
    Is there a way to dim or even turn off the flashing LEDs, at least when the board is working continuously (OK when starting up)?

Best,
Stephen
Hello Stephen.
Similar work of all LEDs is the norm.
Red - constantly on, not blinking, this is a kind of power indication, or rather, device operation.
Green - blinking, it is said that the device is working (loading and / or doing calculations).
Disable them ... theoretically, this can be done programmatically, but 99% that the manufacturer does not advise how to do this.
Some users of boards of another company (Korean) asked the manufacturer on the contrary - to output the signals of these LEDs to the GPIO pins, the manufacturer did it.
In general, stick a piece of dark tape to the LEDs, and everything will not be so bright.
P.S. they sometimes bring me discomfort too.

Sincerely, Pavel.
you could try to switch they off like in the following sample (use the led-names of the Neo4 if available):

Code: Select all

root@npi-neo2-23(192.168.6.23):~# cd /sys/class/leds
root@npi-neo2-23(192.168.6.23):/sys/class/leds# ls -l
insgesamt 0
lrwxrwxrwx 1 root root 0 Jan  1  1970 nanopi:green:status -> ../../devices/platform/leds/leds/nanopi:green:status
lrwxrwxrwx 1 root root 0 Jan  1  1970 nanopi:red:pwr -> ../../devices/platform/leds/leds/nanopi:red:pwr
root@npi-neo2-23(192.168.6.23):/sys/class/leds# more /sys/class/leds/nanopi:red:pwr/trigger
none kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd
-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock usbport usb-gadget usb-host disk-activity disk-read disk-wr
ite ide-disk mtd nand-disk [heartbeat] cpu cpu0 cpu1 cpu2 cpu3 default-on panic mmc0 0.2:07:link 0.2:07:1Gbps 0.2:
07:100Mbps 0.2:07:10Mbps
root@npi-neo2-23(192.168.6.23):/sys/class/leds# echo 'none' > /sys/class/leds/nanopi:red:pwr/trigger
root@npi-neo2-23(192.168.6.23):/sys/class/leds#


maybe this will only work if you use armbian for your Neo :)
Thanks to all! There is actually a simple way to dim/turn off the lights on a raspi.
Will try your code.
Best,
Stephen

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 3 guests