maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   (N900) Possible to change the colour of the notification light??? (https://talk.maemo.org/showthread.php?t=37691)

munky261 2009-12-22 14:52

Re: (N900) Possible to change the colour of the notification light???
 
Ok, a reboot seemed to be need, now it works..only it flashes really rapidly, unlike the slow steady pulse before.

Corwin 2009-12-22 14:56

Re: (N900) Possible to change the colour of the notification light???
 
Thanks for thanking, codeMonkey ;) Hard to find button, isn't it?
Do you see something I did wrong?

munky261, can you paste the 'Pattern' part from your mce.ini?

codeMonkey 2009-12-22 15:02

Re: (N900) Possible to change the colour of the notification light???
 
munky:

From the original file:
PatternCommunicationCall=30;1;0;0000;0000;40007f00 017f017f050001ff01ff0000

From corwin's third example:
PatternCommunicationCall=30;1;0;40002000200040ff20 0020000000;0000;0000

If you copied the third example directly into your mce.ini then you've changed the flashing pattern. You should have just moved the original pattern from your mce.ini file to the correct channel.

@corwin:
I dunno - I must accidentally click it a lot *points to "Thanks!" count*

munky261 2009-12-22 15:09

Re: (N900) Possible to change the colour of the notification light???
 
I did that, but as I said, it flashes rapidly instead of slowly like the original.

codeMonkey 2009-12-22 15:24

Re: (N900) Possible to change the colour of the notification light???
 
If you just moved the original string over your from mce.ini file I can't think of any reason why it would change anything else in the speed of the pattern - someone else might know more.

munky261 2009-12-22 15:31

Re: (N900) Possible to change the colour of the notification light???
 
Are you sure that that portion is color only, cause it sounds to me that the "30;1;0" portion has nothing to do with the actual timing if I understand it correctly.

codeMonkey 2009-12-22 15:51

Re: (N900) Possible to change the colour of the notification light???
 
Quote:

Originally Posted by munky261 (Post 437638)
Are you sure that that portion is color only, cause it sounds to me that the "30;1;0" portion has nothing to do with the actual timing if I understand it correctly.

Yeah, the Priority;ScreenOnVariable;TimeOut are to do with the pattern as a whole.

Quote:

Originally Posted by codeMonkey (Post 437565)
The basic structure is:
PatternName=Priority;ScreenOnVariable;TimeOut;Red channel pattern;Green channel pattern;Blue channel pattern
PatternCommunicationCall=30;1;0;0000;0000;40007f00017f017f050001ff01ff0000

The timing is set by the coloured sections.
Breaking the blue channel pattern there down further we have 8 instructions for the blue channel pattern, and one instruction for each of the red and green (to do nothing).
4000 7f00 017f 017f 0500 01ff 01ff 0000

What these instructions do is defined in Corwin's post - repasted here for clarity.
Code:

# 0000 -- Jump to the start of the pattern for the channel
# 40xx -- Set channel brightness
# xxyy -- Increment/decrement
#      xx determines the speed;
#        01-3f -- short step time (granularity 0.49ms)
#        41-7f -- long step time (granularity 15.6ms)
#      yy determines the increment/decrement steps
#        00-7f -- increment steps 00 = 0 steps, 7f = 127 steps
#        80-ff -- decrement steps 80 = 0 steps, ff = 127 steps
#
#        Use 0 steps to create pauses
#        Two consecutive increment/decrement sequences are needed
#        to cover the entire range from 0-255
# c000 -- End pattern execution
# e002 -- Send red trigger
# e004 -- Send green trigger
# e008 -- Send blue trigger
# e080 -- Wait for red trigger
# e100 -- Wait for green trigger
# e200 -- Wait for blue trigger

Instruction 1 (4000) Set the channel brightness to 00
Instruction 2 (7f00) Long step time, 00 increment steps

And etc.

blwthompson 2009-12-22 17:10

Re: (N900) Possible to change the colour of the notification light???
 
can anyone tell me where to get mceedit for N900 or another way to edit the file please?

codeMonkey 2009-12-22 19:07

Re: (N900) Possible to change the colour of the notification light???
 
You'll have to ask TrueJournals - it won't work if he hasn't made any updates for the new format.

munky261 2009-12-23 02:19

Re: (N900) Possible to change the colour of the notification light???
 
Thanks codemonkey, that clarified it for me, now it works perfectly!


All times are GMT. The time now is 10:41.

vBulletin® Version 3.8.8