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)

djlucklu 2010-01-18 18:42

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

Originally Posted by codeMonkey (Post 467844)
If you kill/stop the mce process more than (rough estimate) 4 times in approx 2 minutes the service doesn't restart.
You're best off using something like
Code:

initctl stop mce; sleep 2; initctl start mce
because it gives feedback - so will tell you if it hasn't been able to start or stop it.

I've also put a guide to the n900 led patterns here in case anyone wants to play around further with colours etc.

i seriously need help.. i did the kill mce before a read your post but i did your instructions to start the mce again. i rebooted and now my phone doesnt have any light notifications.. any suggestions?

codeMonkey 2010-01-18 19:38

Re: (N900) Possible to change the colour of the notification light???
 
On reboot mce should start again.
You can check to see if it's running by typing:
Code:

ps | grep mce
Iget the following output
Code:

  741 root      5312 S <  /sbin/mce --force-syslog
 1750 user      2092 R    grep mce

which shows mce is running.

If mce is running then it might be that some changes you've made have done wrong.
If it isn't then you should be able to restart mce by typing
Code:

rootsh initctl start mce
Let us know what happens.

ossipena 2010-01-20 07:49

Re: (N900) Possible to change the colour of the notification light???
 
http://wiki.maemo.org/Customizing_maemo_for_power_users

feel free to help.

codeMonkey 2010-01-20 09:23

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

Originally Posted by ossipena (Post 483717)

It looks like there's quite a bit of cross-over with this.

ahynes1 2010-01-30 15:54

Re: (N900) Possible to change the colour of the notification light???
 
Working off of codeMonkey's comments, I've added new patterns to my N900 and used them in new scripts. A few things to keep in mind in adding a new pattern to the N900:

Be sure to add the pattern to the LEDPatterns in mce.ini. Also, be sure to add the LED pattern to the [LEDPatternLystiRX51] section. Initially, it wasn't clear to me which section to use.

Finally, using the dbus commands that codeMonkey provided you can add your new patterns to any application you are creating or modifying.

For more details, check out my recent blog post about controlling the status LED on the N900

rocky272727 2010-02-26 18:33

Re: (N900) Possible to change the colour of the notification light???
 
http://www.mynokiaworld.com/2010/01/...cation-lights/

Did mine....looks great

blue_led 2010-02-26 19:19

Re: (N900) Possible to change the colour of the notification light???
 
more in the last 3-4 pages
http://talk.maemo.org/showthread.php?t=42201

raedn900 2010-06-13 12:45

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

Originally Posted by Corwin (Post 437531)
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

Here is the most NOOB question ever here? Plz where do i copy and paste those stuff (Not joking RELLy dnt know!)??

raedn900 2010-06-13 12:46

Re: (N900) Possible to change the colour of the notification light???
 
plzz where do i copy & paste those codes??! Really DONT know at all :D?

blwthompson 2010-06-13 14:49

Re: (N900) Possible to change the colour of the notification light???
 
you dont copy it just open mce with leafpad and change them manually its rather simple reread the thread and youll get it


All times are GMT. The time now is 02:13.

vBulletin® Version 3.8.8