#N900 LED Modifications

As with the N800 and N810, the N900 uses MCE (Mode Control Entity) for controlling a lot of the user-input and user activity hardware, such as the display (on-off and dimming), keys and touch screen, light sensor and LED. We’re interested in the LED functions. Let’s take a look at the file structure, here’s a snippet of my mce.ini from /etc/mce/mce.ini

The last section of the LED entries looks like this;

[LEDPatternLystiRX51]

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;r;9d80400002ff03ff02ff03ff71080000;9d800000
PatternCommunicationIM=30;1;0;rb;9d80400002ff03ff02ff03ff71080000;9d800000
PatternCommunicationSMS=30;1;0;r;9d80400002ff03ff02ff03ff71080000;9d800000
PatternCommunicationEmail=30;1;0;b;9d80400002ff03ff02ff03ff71080000;9d800000
PatternCommonNotification=30;1;0;rg;9d80400002ff03ff02ff03ff71080000;9d800000
PatternWebcamActive=20;1;0;r;9d80400004ffc0000000;9d800000
PatternBatteryCharging=50;4;0;rg;9d804000427f0d7f7f007f0042000000;9d800000
PatternBatteryFull=40;4;0;g;9d80407f0000;9d800000

I’ve put the important bits that control color in bold. The LED can display yellow (rg), white (rgb), blue (b), red (r), green (g) and purple (rb). In order to change a color, simply open the file in an editor, I use nano – you can use leafpad or vi by running the following command (as root, you’ll need rootsh) in a terminal;

Screenshot-20100126-204956 Screenshot-20100126-205233

Scroll to the bottom, make your changes and then exit and save. It’s a good idea to back up this file using the following command (as root);

cp /etc/mce/mce.ini /etc/mce/mce.ini.bak

Now you can either restart your device, or simply issue;

killall mce

Your display will dim and your changes are now in effect.

Danger. The above settings can hose your device and require a FIASCO reflash. Proceed at your own caution.

 

Up next? Timed profile switching using cron wrapper; SES.

2 comments:

nhjizz said...

4AabSw dylvtwrxiifa, [url=http://nnlgwtinrrcd.com/]nnlgwtinrrcd[/url], [link=http://xtprgxdegike.com/]xtprgxdegike[/link], http://uhsssdlmknso.com/

Phoneomenon: A blog about the most exquisite mobile devices. said...

[...] For those looking to modify their LED status light on their N900 Simon from KnowNokia.ca has created a great write up that will allow even the most inexperienced Maemo coder to modify their LED status light successfully. Head on over for the full details: http://knownokia.ca/2010/01/27/n900-led-modifications/ [...]

Post a Comment