![]() |
LED pattern I/O activity
Hi everyone,
I was wondering if it is possible to have a custom LED pattern to indicate I/O activity like the HDD LED on a computer. Also some network activity LED pattern? I don't know if the patterns are limited to specific types, and all I found was a thread of someone asking a question about a custom LED pattern for each contact, which was not answered... Thanks for your help! Daniel |
Re: LED pattern I/O activity
If you have Advanced Clock Plugin installed, I've made a clock style that I'm going to be releasing soon that shows bars for network activity over different interfaces. [/shameless plug]
As for led pattern editing... it should be doable, but I'm not sure how much of the actual software controlling the LED light is closed source. |
Re: LED pattern I/O activity
Thanks for the hint, I don't have such a plugin though.
Any idea how this could be done? (I admit, my question was only if it is possible, but I actually want to know how :) ) Using "LED patterns" I seem to be only able to customize given patterns, instead of creating custom patterns... |
Re: LED pattern I/O activity
Quote:
|
Re: LED pattern I/O activity
in etc/mce/mce.ini under 'modules=' there is a variable that is named 'led' you can remove this to disable normal led function, just like i did with the 'filter-brightness-als' in my custom brightness
|
Re: LED pattern I/O activity
Thank you guys! Now just tell me how to control the LEDs directly and I should be fine... :)
|
Re: LED pattern I/O activity
@G :
you can add how many patterns you want. if you want hdd like led there is no way with led chip. this is designed to display a fixed pattern like a beacon when a specific event trigger it. random patterns are difficult to make and controll. the only way to have hdd-like behavior is by direct alter led current. so yo must make a "white" pattern and activate it and after that you can drive the leds as you want by shell script*, pyton script or c program * command is echo X > /sys/class/leds/lp5523:r( or g, or b )/led_current where X is led current in 0.1 mA step so 255 value mean 25,5 mA . the led brightness is this value weighted by pattern value .Example : pattern PWM 128 and 10 mA ( echo 100 > .... ) mean 5 mA |
Re: LED pattern I/O activity
Leds intensity are in "/sys/class/leds/lp5523:$C/brightness" where $C is b,g or r, echo it from 0 to 255 to change intensity.
I'm not sure if this is the better way to set leds but it works. Edit:watching a youtube video while posting is a good idea to get pwned. |
Re: LED pattern I/O activity
Thank you guys, works flawless!
After echoing a value, the LED lights up for X ms. Is X the smallest possible value (probably 49 ms if LED pattern uses the smallest possible value)? Or is there a way of altering the duration in this scenario? EDIT: What is the exact difference between led_current and brightness? I did some testing, and got weird results: If I change the brightness of RED to 255 during the orange pulsing battery-charging pattern, the red LED turns on and stays on until the charging-pulse is over. Then everything is back to normal (orange pulse)... If I set the led_current to 255 tho, the color of the pulsing pattern stays red forever (now pulsing as well)... How to explain that? |
Re: LED pattern I/O activity
led driver have 2 hardware modules and 2 operations mode .
operations mode ->fixed brightness and programmed. hardware modules -> constant current source ( programmed by led_current ) and pulse width modulator PWM values programmed by brightness or by running program led_current is self explained : and set max current. this is a primordial value. it act as "volume" on a music player brightness and PWM ( & ramp settings in the pattern ) act as a "melody" .it is a percentage of current applied to led. 255 value mean 100 % if you program brightness this value is overwritten by pl5523 running programs even on "black" pattern if you want to test you need a "stopped" program. try to make/ modify using led pattern editor, a pattern with end ( hold ) instruction instead GoToStart. after that you can play any "melody " at your WHITE programmed led. i recommend you to not set currents above 5 mA ( 50 value ) . ussless drain of the battery & asic heat, but you can set pwm or brightness to 255 mean 100% of current ( 5mA example ) r=/sys/class/leds/lp5523:r/ echo 10 > $r/led_current ; echo 255 > $r/brightness and echo 255 > $r/led_current ; echo 10 > $r/brightness are equivalent in led light perceptual intensity first give a continuous dimmed red second make pulsed light |
All times are GMT. The time now is 04:24. |
vBulletin® Version 3.8.8