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)

Pedrolot 2009-12-22 09:47

Re: (N900) Possible to change the colour of the notification light???
 
You can scroll to the right in that picture...

munky261 2009-12-22 09:57

Re: (N900) Possible to change the colour of the notification light???
 
there is still no r, g, or b when I scroll

codeMonkey 2009-12-22 12:18

Re: (N900) Possible to change the colour of the notification light???
 
Munky: The n810 uses a different scheme for creating patterns. The details of how to use it are in the mce.ini file.


Again, be careful editing this file.

munky261 2009-12-22 12:27

Re: (N900) Possible to change the colour of the notification light???
 
I have read it, but dont quite understand it. The patterns for call, chat, and email are exactly the same at present...so, Im asking, what do i need to change to make call red and chat green? Can someone that know tell me exatly what I need to type to change only the color, and not the flashing pattern?

Corwin 2009-12-22 14:17

Re: (N900) Possible to change the colour of the notification light???
 
I just fired up my good old trusty N810 to check ;) It seems to have a different controller with a different notation:

Code:

[LEDPatternNJoyRX44]

# Patterns used if the device has an RGB LED connected to an NJoy controller
# Please prefix pattern names with Pattern to avoid name space clashes
#
# Priority (0 - highest, 255 - lowest)
# ScreenOn - 0 only show pattern when the display is off
#            1 show pattern even when the display is on
#            2 only show pattern when the display is off, including acting dead
#            3 show pattern even when the display is on, including acting dead
#            4 only show pattern if the display is off, or if in acting dead
# Timeout in seconds before pattern is disabled, 0 for infinite
# R-channel pattern in NJoy format (16 commands at most)
# G-channel pattern in NJoy format (16 commands at most)
# B-channel pattern in NJoy format (16 commands at most)
#
# 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
PatternError=0;1;0;40002000200040ff200020000000;0000;0000
PatternDeviceOn=254;0;0;4000205f20df7f007f007f007f000000;4000205f20df7f007f007f007f000000;4000205f20df7f007f007f007f000000
PatternDeviceSoftOff=253;0;0;4000203f20bf7f007f007f007f007f000000;4000203f20bf7f007f007f007f007f000000;0000
PatternPowerOn=10;3;0;4000207f207f01ff01ffc000;4000207f207f01ff01ffc000;4000207f207f01ff01ffc000
PatternPowerOff=9;3;0;4000017f017f36ff36ff7f00c000;4000017f017f36ff36ff7f00c000;4000017f017f36ff36ff7f00c000
PatternCommunicationCall=30;1;0;0000;0000;40007f00017f017f050001ff01ff0000
PatternCommunicationChat=30;1;0;0000;0000;40007f00017f017f050001ff01ff0000
PatternCommunicationEmail=30;1;0;0000;0000;40007f00017f017f050001ff01ff0000
PatternCommonNotification=30;1;0;0000;0000;40007f00017f017f050001ff01ff0000
PatternWebcamActive=20;1;0;4000027f027fc000;0000;0000
PatternBatteryCharging=50;4;0;0000;4000257f06ff7f0041000000;0000
PatternBatteryFull=40;4;0;0000;407f0000;0000
PatternPsychedelia=250;1;0;4000167f167f17ff17ff0000;40001300197f197f15ff15ff0000;4000237f237f130022ff22ff13000000

# This example pattern has a priority of 42 (all patterns with a *lower*
# priority value will have precedence), and will flash in yellow
# This pattern will be visible even when the display is on.
PatternExample=42;1;30;4000167f167f17ff17ff0000;4000167f167f17ff17ff0000;0000


The explaination in the upper part corresponds to the lines below. The bold part seems to be for the color:

Code:

# R-channel pattern in NJoy format (16 commands at most)
# G-channel pattern in NJoy format (16 commands at most)
# B-channel pattern in NJoy format (16 commands at most)


This means the underlined part:

Code:

PatternCommunicationCall=30;1;0;0000;0000;40007f00017f017f050001ff01ff0000

Call is also blue on the N810, right? This is because we have 0000 for Red, 0000 for Green and 'something' for Blue.

You could search for patterns with red ('PatternError') or green ('PatternBatteryFull') and copy the underlined part I mentioned above responsible for the color from the pattern with the color you want to the pattern you wish to change. Do not copy the other parts of the line as they determine rythm and priority and you only want to change the color! This way you should be able to change the colors.

This should do what you want, although I am giving no warranties whatsoever. It is the whole 'Pattern' block, changed call to red, chat to green. Not sure, though, why green is so short:
Code:

PatternError=0;1;0;40002000200040ff200020000000;0000;0000
PatternDeviceOn=254;0;0;4000205f20df7f007f007f007f000000;4000205f20df7f007f007f007f000000;4000205f20df7f007f007f007f000000
PatternDeviceSoftOff=253;0;0;4000203f20bf7f007f007f007f007f000000;4000203f20bf7f007f007f007f007f000000;0000
PatternPowerOn=10;3;0;4000207f207f01ff01ffc000;4000207f207f01ff01ffc000;4000207f207f01ff01ffc000
PatternPowerOff=9;3;0;4000017f017f36ff36ff7f00c000;4000017f017f36ff36ff7f00c000;4000017f017f36ff36ff7f00c000
PatternCommunicationCall=30;1;0;40002000200040ff200020000000;0000;0000
PatternCommunicationChat=30;1;0;0000;407f0000;0000
PatternCommunicationEmail=30;1;0;0000;0000;40007f00017f017f050001ff01ff0000
PatternCommonNotification=30;1;0;0000;0000;40007f00017f017f050001ff01ff0000
PatternWebcamActive=20;1;0;4000027f027fc000;0000;0000
PatternBatteryCharging=50;4;0;0000;4000257f06ff7f0041000000;0000
PatternBatteryFull=40;4;0;0000;407f0000;0000
PatternPsychedelia=250;1;0;4000167f167f17ff17ff0000;40001300197f197f15ff15ff0000;4000237f237f130022ff22ff13000000


BUT:
Be REALLY careful! I am really, really not being nasty here, but maybe you should not edit the file.

Best regards,
Corwin

munky261 2009-12-22 14:24

Re: (N900) Possible to change the colour of the notification light???
 
I do not intend on editing the file unless someone can tell me exactly what needs to be typed for only the color to change.

Corwin 2009-12-22 14:30

Re: (N900) Possible to change the colour of the notification light???
 
Did that above... BTW, in case you find a post helpful, there IS a 'Thanks!' button ;)

codeMonkey 2009-12-22 14:35

Re: (N900) Possible to change the colour of the notification light???
 
Corwin's instructions there are good, but I don't have an n810 to test on.

The basic structure is:
PatternName=Priority;ScreenOnVariable;TimeOut;Red channel pattern;Green channel pattern;Blue channel pattern

So in Corwin's example above he's switched the instructions from the blue channel to the red channel - which should make the led flash red instead of blue.

munky261 2009-12-22 14:42

Re: (N900) Possible to change the colour of the notification light???
 
I changed the pattern for call, and it still flashes blue.

Corwin 2009-12-22 14:52

Re: (N900) Possible to change the colour of the notification light???
 
Did you reboot the device?


All times are GMT. The time now is 21:03.

vBulletin® Version 3.8.8