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)

blwthompson 2009-12-18 16:49

(N900) Possible to change the colour of the notification light???
 
hey just wondering if there is any way/app to change the colour of the notification light to a different colour for different things??

cheers Brendan

codeMonkey 2009-12-19 08:20

Re: (N900) Possible to change the colour of the notification light???
 
You can edit the appropriate section in /etc/mce/mce.ini, but you would need to do this as root, and be VERY careful - messing up mce.ini can brick your device.

blwthompson 2009-12-19 15:11

Re: (N900) Possible to change the colour of the notification light???
 
any chance that some one will build an app for doing this do u think

codeMonkey 2009-12-21 11:03

Re: (N900) Possible to change the colour of the notification light???
 
TrueJournals made the mcedit application for diablo, the best bet would be asking whether a version is planned for fremantle. I've not tried it out myself on one of the previous devices, but from what I can see you'd still need to write LED pattern strings yourself. It also looks like it's still quite an early test - he's numbered the version 0.0.7-1

Corwin 2009-12-21 11:23

Re: (N900) Possible to change the colour of the notification light???
 
I changed the notification light for MS and Calls o red, as I am always getting Mails (blue) and want to be able to distinct them.

Thanks again for the tip, codeMonkey.

munky261 2009-12-21 12:55

Re: (N900) Possible to change the colour of the notification light???
 
How did you change it to red...would you mind posting this...as I have an N810 and the same issue. Would love to have it set for red for calls, blue for email, and green for IMs using Pidgin and the LED plugin.

Devil 2009-12-21 13:31

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

Originally Posted by munky261 (Post 436337)
How did you change it to red...would you mind posting this...as I have an N810 and the same issue. Would love to have it set for red for calls, blue for email, and green for IMs using Pidgin and the LED plugin.

or other im plugins

Corwin 2009-12-21 14:21

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

Originally Posted by munky261 (Post 436337)
How did you change it to red...would you mind posting this...as I have an N810 and the same issue. Would love to have it set for red for calls, blue for email, and green for IMs using Pidgin and the LED plugin.

As codeMonkey said, I edited /etc/mce/mce.ini. It is pretty much self explainatory, for the N900 you edit the lines 447 and 449, change 'b' for blue to 'r' for red:

Code:

PatternCommunicationCall=30;1;0;r;9d80400002ff03ff02ff03ff71080000;9d800000
PatternCommunicationSMS=30;1;0;r;9d80400002ff03ff02ff03ff71080000;9d800000

There are also several other controllers listed. Still I do not know, if this helps you with the N810 and Pidgin, probably not.

Best regards,
Corwin

A77ALiSTiC 2009-12-22 08:02

Re: (N900) Possible to change the colour of the notification light???
 
n00b question here, as this is my first maemo device:
how can i edit the mce.ini file?

munky261 2009-12-22 09:29

Re: (N900) Possible to change the colour of the notification light???
 
1 Attachment(s)
Here is a screenshot of my ini file....I dont see anywhere simply change "r" "g" or "b" any ideas?

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?

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!

blwthompson 2009-12-23 02:39

Re: (N900) Possible to change the colour of the notification light???
 
Ok, how else can i go about editing the MCE.ini file then?

munky261 2009-12-23 04:18

Re: (N900) Possible to change the colour of the notification light???
 
Even got it set so that now, IMs are green, emails are blue as usual, calls are red, and new sms notifications using gv notifier are purple.

codeMonkey 2009-12-23 09:46

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

Originally Posted by munky261 (Post 438566)
Even got it set so that now, IMs are green, emails are blue as usual, calls are red, and new sms notifications using gv notifier are purple.

Glad you got it sorted :)

Quote:

Originally Posted by blwthompson (Post 438507)
Ok, how else can i go about editing the MCE.ini file then?

If you want to change it, you're going to have to do some jumping through hoops and play around with the terminal.

There's a very basic guide here to some of the things you can do with the terminal. Please don't try out all of the examples (e.g. the 'rm -rf' one, and you can ignore number 5 since the guide isn't maemo specific), the terminal gives you a lot of power to break things.

After you're familiar with the stuff in the guide above you should be able to do things like look around the file system. Next step would be to learn a little about one of the text editors.

A version of vi comes built into the n900, so you could look for a basic vi tutorial - vi is a model text editor, which can be a bit confusing for new-comers.
More advice on some of this can be found in this thread.

Another option would be to install leafpad.(if it's available for n900) and using that (as root) to modify the file. Standard disclaimers apply here - doing things as root / editing mce.ini can mess up your device.

munky261 2009-12-23 09:50

Re: (N900) Possible to change the colour of the notification light???
 
For me, I find using emelfm2 as root and viewing and editing using it is much easier.

CrckMc 2009-12-23 10:01

Re: (N900) Possible to change the colour of the notification light???
 
sry to be a bit off topic but someone mentioned he had the light for incoming pidgin ims. my question is how to get any notification (e.g. vibration) for pidgin, the only thing i have is the status bar plugin.

thx

codeMonkey 2009-12-23 10:10

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

Originally Posted by munky261 (Post 438798)
For me, I find using emelfm2 as root and viewing and editing using it is much easier.

Yeah, unfortunately the emelfm2 port for fremantle isn't looking so great yet, last time I checked it looked like it could really use some fremantlisation.

Quote:

Originally Posted by CrckMc (Post 438808)
sry to be a bit off topic but someone mentioned he had the light for incoming pidgin ims. my question is how to get any notification (e.g. vibration) for pidgin, the only thing i have is the status bar plugin.

thx

There was a plugin here for chinook/bora, but I don't use pidgin so I'm not sure how much it will help for fremantle. If there is anything it's probably in testing/development.

tuxian 2009-12-23 12:21

Re: (N900) Possible to change the colour of the notification light???
 
I changed the light for missed calls to red.
When I receive a sms it blinks blue.
Is it possible that the light blinks alternating red and blue?

munky261 2009-12-23 13:11

Re: (N900) Possible to change the colour of the notification light???
 
does it still look on fremantle, like it does on diablo? If so...I dont think it would bother me, as i never use it fullscreen on my N810 so the screen area is roughly the same as it would be fullscreen on the N900. The interface has always been a tad ugly IMO, but Ive gotten used to it over the last couple years.

codeMonkey 2009-12-23 13:22

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

Originally Posted by tuxian (Post 438941)
I changed the light for missed calls to red.
When I receive a sms it blinks blue.
Is it possible that the light blinks alternating red and blue?

For the n810 it looks like you can send triggers between different colour channels. For the n900 there seems to be something similar to send a trigger between engines.

If you get one engine/colour channel to wait for the trigger from the other you could do this.

Quote:

Originally Posted by munky261 (Post 438989)
does it still look on fremantle, like it does on diablo? If so...I dont think it would bother me, as i never use it fullscreen on my N810 so the screen area is roughly the same as it would be fullscreen on the N900. The interface has always been a tad ugly IMO, but Ive gotten used to it over the last couple years.

Mostly the same, but buttons etc are bigger so you only get a couple of lines of files listed.

Screenshot courtesy of bunanson.
http://talk.maemo.org/attachment.php...1&d=1261549703

munky261 2009-12-23 14:23

Re: (N900) Possible to change the colour of the notification light???
 
No way to make the buttons smaller like it is on diablo?


All times are GMT. The time now is 05:54.

vBulletin® Version 3.8.8