Code Monkey home page Code Monkey logo

Comments (9)

lanefu avatar lanefu commented on August 15, 2024 1

yeah same here... people seem to ask about it, so thought at least some basic instructions would help.

also my real dream is that it's an armbian-config feature

https://armbian.atlassian.net/browse/AR-449

from documentation.

EvilOlaf avatar EvilOlaf commented on August 15, 2024 1

Yes and no. It is another confirmation that there is no standardization between SoCs...

from documentation.

EvilOlaf avatar EvilOlaf commented on August 15, 2024

I mostly do this the noob way:

du -a /sys|grep led|grep trigger
echo heartbeat > /sys/whatever/led/i/need/trigger

🤦

from documentation.

EvilOlaf avatar EvilOlaf commented on August 15, 2024

I usually only use on, off or heartbeat on red/green led. I don't know on which familiy more stuff is possible and don't even know what stuff this might be like using led to monitor disk/net activity, cpu usage or whatever...

from documentation.

igorpecovnik avatar igorpecovnik commented on August 15, 2024

Is this standardised enough across different hardware? This could be added rather to armbian-config, but well if there are few lines in the docs, it can't hurt.

from documentation.

EvilOlaf avatar EvilOlaf commented on August 15, 2024

From my guts feel no. At least OPis have orangepi as string somewhere in the path to the led trigger files. Did not have a chance yet to compare. I'll get to it this weekend hopefully. Have an H3, H6 and RK3399 up to check

from documentation.

EvilOlaf avatar EvilOlaf commented on August 15, 2024

Nanopi R4S:

0	./devices/platform/gpio-leds/leds/status_led/trigger
0	./devices/platform/gpio-leds/leds/lan_led/trigger
0	./devices/platform/gpio-leds/leds/wan_led/trigger

Orange Pi One Plus:

0	./devices/platform/leds/leds/orangepi:red:power/trigger
0	./devices/platform/leds/leds/orangepi:green:status/trigger

Orange Pi One:

0	./devices/platform/leds/leds/orangepi:red:status/trigger
0	./devices/platform/leds/leds/orangepi:green:pwr/trigger

from documentation.

paolosabatino avatar paolosabatino commented on August 15, 2024

Setting the led at startup is a feature I miss a lot, so I propose myself to make the necessary configuration section to armbian-config and other changes/scripts to make it work.

Names are not standardized at all. So my idea would be to propose, as a list, all the content of /sys/class/leds to the user (maybe filter out the input devices leds), and let the user choose the led she wants to configure.

There are also extended options for some specific triggers that can be dealt with. For example, the timer trigger spawns two other filesystem objects that control the on time and the off time. I would ignore these extended configurations options for now.

from documentation.

lanefu avatar lanefu commented on August 15, 2024

@EvilOlaf

is this helpful?

https://armbian.lane-fu.com/linx/0ql9mql4.txt

from documentation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.