maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   LED Pattern Editor by Philipp Zabel (https://talk.maemo.org/showthread.php?t=46054)

ossipena 2010-03-05 06:11

Re: LED Pattern Editor by Philipp Zabel
 
Quote:

Originally Posted by sygys (Post 550672)
WARNING!!! after install en deinstall i have a broken phone. the icon keeps apearing for a few seconds in the settings menu and then disapears again. backlight stays on the LED patterns dont work anymore. Also themes and virtual key both dont work anymore, and sometimes plugin the charger wont charge the phone!

DO NOT INSTALL THIS APP! Can someone please find out how the program has bricked my main settings?

if you are ready to install extras-dev software, you should just cold bloodedly reflash your device (and copy latest backup which is very recent to the device)

you really have been warned and I hope if there is next time for you, you have up to date backups and know-how to reflash.

Cheesymember 2010-03-15 11:26

Re: LED Pattern Editor by Philipp Zabel
 
Could someone advise how id resore the backup it creates. Still trying to get used to linux, after using DOS for so long. I tried to change the email notification and now i get no light on recipt.

Many thanks

Cheesymember 2010-03-16 12:21

Re: LED Pattern Editor by Philipp Zabel
 
or i have midnight commander if anyone can direct me to back up and how to restore, thanks in advance

nicolai 2010-03-16 12:38

Re: LED Pattern Editor by Philipp Zabel
 
Quote:

Originally Posted by Cheesymember (Post 567640)
Could someone advise how id resore the backup it creates. Still trying to get used to linux, after using DOS for so long. I tried to change the email notification and now i get no light on recipt.

Many thanks

The config file here
/etc/mce/mce.ini
the backup created by the program is
/etc/mce/mce.ini.orig

you can copy the file as root with midnight commander or directly
at the commandline with this command:

cp /etc/mce/mce.ini.orig /etc/mce/mce.ini

nicolai

sgleo87 2010-03-23 19:27

Re: LED Pattern Editor by Philipp Zabel
 
Thanks for all your time and effort pH5 (and whoever else helped to program this app)! Spent a couple hours playing with it already and works great!

One thing I did notice is although I changed the LED colors and pattern when turning the device on with this app, it stayed exactly the same and is still the standard white LED pattern (changing the LED pattern for turning the device off worked fine though). Anyone else having this problem?

LABAUDIO 2010-03-30 20:28

Re: LED Pattern Editor by Philipp Zabel
 
i wanna know if its possible to convert this application for working all on N810 diablo

yes cause on diablo side, we have mcedit but the option for control and manage n810 led never be finished and added by TrueJournals...

so if we have a good way to convert this nice n900 application for diablo OS...its going to be nice

Tx

designer2k2 2010-04-05 08:05

Re: LED Pattern Editor by Philipp Zabel
 
thanks, what a wondefull app!

something like this was realy missing, i dimmed the standy light to barely see and got fancy colours on the others, what a toy :D

sgleo87 2010-04-13 12:50

Re: LED Pattern Editor by Philipp Zabel
 
Nobody else having a problem configuring the LED pattern showing when the phone turns on?

LABAUDIO 2010-04-14 18:35

Re: LED Pattern Editor by Philipp Zabel
 
its suppose to be possible to make this application modified a little for work on n810...so i waiting for news...i want this application on my n810 lol

BCMM 2010-05-08 12:07

Re: LED Pattern Editor by Philipp Zabel
 
Using two colour engines is nice, but is there a technical reason that three is not possible? With three, it would be possible to effectively create any pattern by using a red, green and blue line.

For example, it is, as far as I can see, impossible to cycled through a rainbow of colours, but it could be done with three engines.

pH5 2010-05-09 12:57

Re: LED Pattern Editor by Philipp Zabel
 
Quote:

Originally Posted by sgleo87 (Post 579226)
One thing I did notice is although I changed the LED colors and pattern when turning the device on with this app, it stayed exactly the same and is still the standard white LED pattern (changing the LED pattern for turning the device off worked fine though). Anyone else having this problem?

I didn't reboot until recently, and yes, changing the PowerOn pattern doesn't work here, either. I guess it is hard-coded in the bootloader somewhere...

Quote:

Originally Posted by BCMM (Post 649230)
Using two colour engines is nice, but is there a technical reason that three is not possible? With three, it would be possible to effectively create any pattern by using a red, green and blue line.

Hardware wise, it should be possible to set all three engines to drive the RGB LEDs, sacrificing the keyboard illumination as long as such a pattern would be running. Unfortunately, MCE reserves the third engine for the keyboard LEDs. It is closed source, so I don't see any way to change that.
On the N8x0, all three engines are available for the RGB LEDs.

BCMM 2010-05-09 14:14

Re: LED Pattern Editor by Philipp Zabel
 
Ah, that makes things a bit clearer. What about three cycles that do not all overlap (or, equivalently, two engines, but one can change the colour of an engine)? It wouldn't permit everything, but it would allow my example. This might be a stupid question, since I don't really know anything about MCE.

LABAUDIO 2010-05-09 23:47

Re: LED Pattern Editor by Philipp Zabel
 
i try this python...

executed in terminal run like a charms...
Code:

#!/usr/bin/env python

### proof of concept for the N810 LED control (ld5521) by jott

import pygtk
import hildon
pygtk.require('2.0')
import gtk

class LEDColor:

    def set_color_callback(self, widget, data=None, value=None):
        self.set_color(self.sliders[0].get_level(), self.sliders[1].get_level(), self.sliders[2].get_level())

    def set_color(self,r,g,b):
        self.set_mode("direct")
        value = "%X:%X:%X" % (r,g,b)
        FILE = open("/sys/devices/platform/i2c_omap.2/i2c-0/0-0032/color","w")
        FILE.write(value)
        FILE.close()

    def set_mode(self,mode):
        FILE = open("/sys/devices/platform/i2c_omap.2/i2c-0/0-0032/mode","w")
        FILE.write(mode)
        FILE.close()

    def delete_event(self, widget, event, data=None):
        return False

    def destroy(self, widget, data=None):
        self.set_mode("run")
        gtk.main_quit()

    def __init__(self):
        self.set_color(0,0,0)

        window = gtk.Window(gtk.WINDOW_TOPLEVEL)
        window.connect("delete_event", self.delete_event)
        window.connect("destroy", self.destroy)
        window.set_border_width(10)

        content = gtk.VBox()
        self.sliders = []
        for i in range(0,3):
            slider = hildon.HVolumebar()
            adj = slider.get_adjustment()
            adj.set_all(0, 0, 255, 1, 10)
            content.pack_start(slider, True, True, 0)
            slider.set_property("has_mute",False)
            slider.show()
            self.sliders.append(slider)

        for i in range(0,3):
                self.sliders[i].connect("level_changed", self.set_color_callback, None)

        window.add(content)
        content.show()
        window.show()

    def main(self):
        gtk.main()

if __name__ == "__main__":
    led = LEDColor()
    led.main()

test it!

some more link

N810 LED Blinking

Previous post

http://www.google.com/notebook/publi...TgIgoQ3tW9iP0i

http://talk.maemo.org/showthread.php?t=27818


So like we see in the last link...its is very possible to make...but never be achieved...

If some one feel gratfull
Quote:

Originally Posted by pH5 (Post 650425)
...
On the N8x0, all three engines are available for the RGB LEDs.

i hope is see a LED Patterns Editor for N810 someday...

M A S T E R 2010-05-10 01:23

Re: LED Pattern Editor by Philipp Zabel
 
Does anyone know if this will be put in Testing anytime soon or did the author decide not to fix bugs and leave it for others to mess with??

Looks cool and fun but i try to do what i can to not touch devel things unless several people say its a good app that just hasnt gone through the process.

-MASTER

pH5 2010-05-11 20:00

Re: LED Pattern Editor by Philipp Zabel
 
Quote:

Originally Posted by BCMM (Post 650488)
What about three cycles that do not all overlap (or, equivalently, two engines, but one can change the colour of an engine)? It wouldn't permit everything, but it would allow my example.

Unfortunately, it's not possible to do that in hardware. The engine patterns can't change the muxing. And it's not possible in software either, because we can't modify MCE to support this.

Quote:

Originally Posted by LABAUDIO (Post 651053)
i hope is see a LED Patterns Editor for N810 someday...

Quote:

Originally Posted by M A S T E R (Post 651103)
Does anyone know if this will be put in Testing anytime soon or did the author decide not to fix bugs and leave it for others to mess with??

Messing with welcome!

It's all just a matter of free time. I figured I should at least fix the bug tracker entry and finish the copy & paste implementation before submitting to the QA process, so here you are. New version 0.0.3-1, still N900 only, for now. I promoted this one to extras-testing.

xperto 2010-05-11 20:19

Re: LED Pattern Editor by Philipp Zabel
 
can anyone temme if it is possible to get the blueish white light like when you switch on your phone for your im or messages? i tried rgb together but it isnt like the light that you see when you press and hold the power button for switching on the device. and how do i led colour for when your phone is on standby, like when you lock you phone.


-Thanks !:o

LABAUDIO 2010-05-11 21:04

Re: LED Pattern Editor by Philipp Zabel
 
Quote:

Originally Posted by xperto (Post 654095)
can anyone temme if it is possible to get the blueish white light like when you switch on your phone for your im or messages? i tried rgb together but it isnt like the light that you see when you press and hold the power button for switching on the device. and how do i led colour for when your phone is on standby, like when you lock you phone.


-Thanks !:o

There is a line where you blueish white color is :
Code:

PatternPowerOn=9;3;0;rgb;9d80400042ff02ffc000;9d800000
the digit in bold is the colors commands...

your im and chat line (and other notifications lines) is there :

Code:

PatternCommunicationIM=30;1;0;b;9d80400002ff03ff02ff03ff71080000;9d800000
PatternCommunicationSMS=30;1;0;b;9d80400002ff03ff02ff03ff71080000;9d800000
PatternCommunicationEmail=30;1;0;b;9d80400002ff03ff02ff03ff71080000;9d800000
PatternCommonNotification=30;1;0;b;9d80400002ff03ff02ff03ff71080000;9d800000


again the colors commands be bold....

so what you need its to replace the ''colors commands digits'' of your choice

for more reference see

Led Pattern ¤ N900 ¤ Wiki

cheers

dof250 2010-05-11 21:06

Re: LED Pattern Editor by Philipp Zabel
 
Quote:

Originally Posted by BCMM (Post 649230)
Using two colour engines is nice, but is there a technical reason that three is not possible? With three, it would be possible to effectively create any pattern by using a red, green and blue line.

For example, it is, as far as I can see, impossible to cycled through a rainbow of colours, but it could be done with three engines.

It should be possible! if you manually change the pattern.ini you can make it look like a traffic light. So it should be possible! dont ask me how though...

hellnick 2010-05-11 21:16

Re: LED Pattern Editor by Philipp Zabel
 
Quote:

Originally Posted by dof250 (Post 654144)
It should be possible! if you manually change the pattern.ini you can make it look like a traffic light. So it should be possible! dont ask me how though...

http://wiki.maemo.org/LED_patterns

Lots of great community made patterns there.

LABAUDIO 2010-05-11 21:19

Re: LED Pattern Editor by Philipp Zabel
 
Like you see in this

Default LED Patterns for Nokia N900

Code:

PatternError=0;5;0;r;9d8040007f007f0040ff7f007f000000;9d800000
PatternDeviceOn=254;0;0;rgb;9d804000422043207f100000;9d800000
PatternDeviceSoftOff=253;0;0;rg;9d804000423f433f7f100000;9d800000
PatternPowerOn=9;3;0;rgb;9d80400042ff02ffc000;9d800000
PatternPowerOff=10;3;0;rgb;9d80400001ff43ff7f007f00c000;9d800000
PatternCommunicationCall=30;1;0;b;9d80400002ff03ff02ff03ff71080000;9d800000
PatternCommunicationIM=30;1;0;b;9d80400002ff03ff02ff03ff71080000;9d800000
PatternCommunicationSMS=30;1;0;b;9d80400002ff03ff02ff03ff71080000;9d800000
PatternCommunicationEmail=30;1;0;b;9d80400002ff03ff02ff03ff71080000;9d800000
PatternCommonNotification=30;1;0;b;9d80400002ff03ff02ff03ff71080000;9d800000
PatternWebcamActive=20;1;0;r;9d80400004ffc0000000;9d800000
PatternBatteryCharging=50;4;0;rg;9d804000427f0d7f7f007f0042000000;9d800000
PatternBatteryFull=40;4;0;g;9d80407f0000;9d800000

i wanna point your attention in bold value up here

this value is a Priority

Quote:

0-255, 0 is highest, 255 is lowest.

Since currently only a single pattern at a time can be displayed, this is used to assign importance to the LED patterns. Although only a single LED pattern can be displayed at any time, multiple patterns may be active, the pattern with the highest priority being displayed.

A common example of this is where the n900 is on charge, the battery is full (starting PatternBatteryFull with a priority of 40), and an SMS message is received (PatternCommunicationSMS with a priority of 30). On receipt of the SMS, the LED begins to display the flashing blue led of an SMS. Once that SMS has been dismissed, the green LED of the full battery notification is again displayed.

in ligth of that

i wanna change some priority value but some change dont work

here we go :

Code:

PatternDeviceOn=254;0;0;rgb;9d804000422043207f100000;9d800000

PatternCommunicationIM=30;1;0;b;9d80400002ff03ff02ff03ff71080000;9d800000

So like you see in this, the deviceOn pattern be lowest priority then Im pattern...

so when i was in chat, contact or in im windows, and my tablet go sleep(cause no activitiy), the deviceOn pattern dont be trigged like supposed......cause IM priority look disable the deviceOn one...weird...

so cause i want my DeviceOn pattern be lighted in priority in front of ImPattern or mail pattern... i change the priority value of DeviceOn pattern for 29...(29 its one less the Notifications pattherns priority(30)

Code:

PatternDeviceOn=29;0;0;rgb;9d804000422043207f100000;9d800000
PatternCommunicationIM=30;1;0;b;9d80400002ff03ff02ff03ff71080000;9d800000

like this iam surely suppose to trigger DeviceOn in front of NotificationsPatterns...
but nothing work there too...

i have a n810 and is the same default priority then n900...

iam curious to see if someone test it this issue for future purpose..and solutions maybe

tx

~phoenix~ 2010-05-11 21:30

Re: LED Pattern Editor by Philipp Zabel
 
Quote:

Originally Posted by LABAUDIO (Post 610600)
its suppose to be possible to make this application modified a little for work on n810...so i waiting for news...i want this application on my n810 lol

hmm... there is no rgb led on n810 i think.....

LABAUDIO 2010-05-11 21:48

Re: LED Pattern Editor by Philipp Zabel
 
Quote:

Originally Posted by ~phoenix~ (Post 654175)
hmm... there is no rgb led on n810 i think.....

YES N810 have an RGB led perfecly worked...

better to read all the post in the thread before post :p

pH5 2010-05-11 22:07

Re: LED Pattern Editor by Philipp Zabel
 
Quote:

Originally Posted by dof250 (Post 654144)
It should be possible! if you manually change the pattern.ini you can make it look like a traffic light. So it should be possible! dont ask me how though...

The traffic light consists of two colours only: red and green. Yellow is achieved by mixing both red and green. Note the "Rg" section in blue_led's pattern.

xperto 2010-05-12 17:38

Re: LED Pattern Editor by Philipp Zabel
 
Quote:

Originally Posted by LABAUDIO (Post 654142)
There is a line where you blueish white color is :
Code:

PatternPowerOn=9;3;0;rgb;9d80400042ff02ffc000;9d800000
the digit in bold is the colors commands...

your im and chat line (and other notifications lines) is there :

Code:

PatternCommunicationIM=30;1;0;b;9d80400002ff03ff02ff03ff71080000;9d800000
PatternCommunicationSMS=30;1;0;b;9d80400002ff03ff02ff03ff71080000;9d800000
PatternCommunicationEmail=30;1;0;b;9d80400002ff03ff02ff03ff71080000;9d800000
PatternCommonNotification=30;1;0;b;9d80400002ff03ff02ff03ff71080000;9d800000


again the colors commands be bold....

so what you need its to replace the ''colors commands digits'' of your choice

for more reference see

Led Pattern ¤ N900 ¤ Wiki

cheers

Thank you so much for your help.
i would like to know how do i change the LED colour when the phone is locked (standby?) :)

LABAUDIO 2010-05-12 19:57

Re: LED Pattern Editor by Philipp Zabel
 
Quote:

Originally Posted by xperto (Post 655487)
Thank you so much for your help.
i would like to know how do i change the LED colour when the phone is locked (standby?) :)

in my book, we have 2 kind of standby on the tablet...

-PatternDeviceOn = When the screen and/or key are locked or close automaticly

-PatternDeviceSoftOff = When you going sleep by softpoweroff.


this is the 2 pattern for ''standby'' mode

cheers

maartenmk 2010-05-19 14:50

Re: LED Pattern Editor by Philipp Zabel
 
I couldn't figure out how to switch off the green 'battery full' led that is much too bright at night, until I tried this. In fact I now use a PWM level of 5, so it is still (just) visible.

It's the only thing I use the applet for atm, but well worth it!

LABAUDIO 2010-05-20 03:42

Re: LED Pattern Editor by Philipp Zabel
 
Quote:

Originally Posted by maartenmk (Post 666160)
I couldn't figure out how to switch off the green 'battery full' led that is much too bright at night, until I tried this. In fact I now use a PWM level of 5, so it is still (just) visible.

It's the only thing I use the applet for atm, but well worth it!

PatternBatteryCharging line

Raubtier 2010-05-27 21:24

Re: LED Pattern Editor by Philipp Zabel
 
i was wondering about the following:

if i receive an sms, it starts blinking green...if after that i also receive a missed call, it remains blinking green, no red light blibking me infoming me of the missed call. is there a way to configure it such that red and green blink after each other?

LABAUDIO 2010-05-27 21:44

Re: LED Pattern Editor by Philipp Zabel
 
Quote:

Originally Posted by Raubtier (Post 684114)
i was wondering about the following:

if i receive an sms, it starts blinking green...if after that i also receive a missed call, it remains blinking green, no red light blibking me infoming me of the missed call. is there a way to configure it such that red and green blink after each other?


you answer is in previous post...read carefully all this thread...:p

mankir 2010-05-31 02:18

Re: LED Pattern Editor by Philipp Zabel
 
Played around with your nice app may be found some bugs:
"Set PWN" with Level=0 is not necessary for normal patterns working, but testing of other patterns in the app is not possible.
When i charge, testing of another pattern is less possible (interrupted earlyer?).
In the wiki there are some random mce issues mentioned, i guess it's because one of the implementations differs in the use of low-level commands, because testing is only interrupted when switching to second engine while first engine still lights (used for fading).
I am nearly sure, that "Go to Start" is only needed on one engine to repeat!

pH5 2010-06-01 17:36

Re: LED Pattern Editor by Philipp Zabel
 
Thanks for the feedback.

Quote:

Originally Posted by mankir (Post 690958)
"Set PWN" with Level=0 is not necessary for normal patterns working, but testing of other patterns in the app is not possible.

Do you mean that if you remove the "Set PWM = 0" command from a pattern, testing doesn't work anymore? I can't reproduce that.

Quote:

Originally Posted by mankir (Post 690958)
When i charge, testing of another pattern is less possible (interrupted earlyer?).
In the wiki there are some random mce issues mentioned, i guess it's because one of the implementations differs in the use of low-level commands, because testing is only interrupted when switching to second engine while first engine still lights (used for fading).

Maybe adding some kind of always-on "PatternInhibit" with highest priority could keep mce busy, sidestepping all those race condition issues with the "Test" button.

mankir 2010-06-01 17:55

Re: LED Pattern Editor by Philipp Zabel
 
I noticed this, when i accidentally forgot the "Set PWN" with Level=0 at the beginning of engine2 (which waits for a trigger from engine1). I wasn't able to test the pattern in the app, but the pattern was working anyway.

Similar issue, when i forgot the "Return to start" at the end of engine2: The pattern was working, but the app returned an error code.

Interrupts of testing were noticed, when engine1 is still on and engine2 comes in. when plugged to usb, testing is interrupted immediatelly.

Just noticed that sometimes testing is only possible, when edited before and clicked on done already (may because of manual edit).

Raubtier 2010-06-03 13:01

Re: LED Pattern Editor by Philipp Zabel
 
if one receives a sms and a missed call the phone only displays the set colour of one of the notification lights, could led pattern (in the next update) be improved to enable the option that the set lights of both the sms and the missed call are displayed/blinked?

Zekahz 2010-06-08 15:05

Re: LED Pattern Editor by Philipp Zabel
 
I would acctualy like to combine the colors white and blue but this is impossible since white uses all the colors right?

Spotfist 2010-06-08 15:15

Re: LED Pattern Editor by Philipp Zabel
 
the message that is desplayed before saving "if you get this wrong your phone is dead" how series can this be? I don't wana brick my phone, if I can "test" the pattern and it shows working then am I ok?

I had a look on the wiki but there wasn't much info about it... Any tips on what not to do would be greatfull ;)

pH5 2010-06-08 18:32

Re: LED Pattern Editor by Philipp Zabel
 
Quote:

Originally Posted by Zekahz (Post 705476)
I would acctualy like to combine the colors white and blue but this is impossible since white uses all the colors right?

You can set one channel to blue and one to yellow (red+green). Light up blue+yellow at the same time to get white. Try pasting the following pattern for a start:
Code:

PatternExample=254;0;0;RGb;9d8002ff03ff6000e004047f057f6000e0040000;9d804000e080047f057fe0800000
Quote:

Originally Posted by Spotfist (Post 705493)
the message that is desplayed before saving "if you get this wrong your phone is dead" how series can this be? I don't wana brick my phone, if I can "test" the pattern and it shows working then am I ok?

I had a look on the wiki but there wasn't much info about it... Any tips on what not to do would be greatfull ;)

In theory, the worst case scenario would be a bug in the LED pattern editor where it writes a broken mce.ini that causes a mce startup failure (and thus possibly reboot loop).
In practice, I've been careful to abort early enough if there are inconsistencies. By now, the program has been tested by quite a few people, and so far nobody has been able to make it fail (and lived to tell about it). I should just remove that warning instead of needlessly scaring people.

Spotfist 2010-06-09 08:38

Re: LED Pattern Editor by Philipp Zabel
 
The first time the message did scare me, I found that on some occasions when using the test button that the led would not do exactly what was on the screen so when I then went to save I was orried I had done something wrong, for the moment I have just changed the colours, as some kinds of message are more important than others (im is red as they need a faster reply)

infected69 2010-07-01 10:01

Re: LED Pattern Editor by Philipp Zabel
 
i have changed the color of "PowerOn" but the color is still white when im turning on the device......

im i doing something worng?

infected69 2010-07-06 07:43

Re: LED Pattern Editor by Philipp Zabel
 
Quote:

Originally Posted by infected69 (Post 736842)
i have changed the color of "poweron" but the color is still white when im turning on the device......

Im i doing something worng?

****bump****

pH5 2010-07-06 20:19

Re: LED Pattern Editor by Philipp Zabel
 
Quote:

Originally Posted by infected69 (Post 736842)
i have changed the color of "PowerOn" but the color is still white when im turning on the device......

im i doing something worng?

http://talk.maemo.org/showthread.php...425#post650425

I don't think it is possible to change it.


All times are GMT. The time now is 09:38.

vBulletin® Version 3.8.8