View Full Version : [N900] Can someone help me with LED Patterns
blwthompson
01-14-2010, 07:12 AM
Hi,
i want to change my LED patterins.
I want SMS to be Blue
Emails to be Green
Im to be Red
Phone Calls to be Purple
Can anyone help??
Cheers,
Brendan
codeMonkey
01-14-2010, 08:50 AM
These are the default lines in /etc/mce/mce.ini
PatternCommunicationCall=30;1;0;b;9d80400002ff03ff 02ff03ff71080000;9d800000
PatternCommunicationIM=30;1;0;b;9d80400002ff03ff02 ff03ff71080000;9d800000
PatternCommunicationSMS=30;1;0;b;9d80400002ff03ff0 2ff03ff71080000;9d800000
PatternCommunicationEmail=30;1;0;b;9d80400002ff03f f02ff03ff71080000;9d800000
Change these to:
PatternCommunicationCall=30;1;0;rb;9d80400002ff03f f02ff03ff71080000;9d800000
PatternCommunicationIM=30;1;0;r;9d80400002ff03ff02 ff03ff71080000;9d800000
PatternCommunicationSMS=30;1;0;b;9d80400002ff03ff0 2ff03ff71080000;9d800000
PatternCommunicationEmail=30;1;0;g;9d80400002ff03f f02ff03ff71080000;9d800000
See here (http://wiki.maemo.org/LED_patterns) for more information about led patterns.
If you want to know something more specific, please ask.
Corwin
01-14-2010, 10:04 AM
Indeed codeMonkey did excellent work ;) in this thread:
http://talk.maemo.org/showthread.php?t=37691&page=5
Best regards,
Corwin
Diamorph
01-16-2010, 06:43 PM
Hi,
I read every post of how to change the LED Pattern but I don't get the clue.
I want to change the pauses between the pattern espacilly for the SMS, etc...
I came so far:
PatternCommunicationSMS=
30;1;0;b;9d804000
02ff 03ff 02ff 03ff 7108
0000 ;9d80 0000
The red marked has to be the string for the pauses I think.
When I compare this with the device on LED pattern
(PatternDeviceOn=
254;0;0;rgb;9d804000
4220 4320 7f10
0000 ;9d80 0000)
which is longer, I get stuck.
I want a pause between the blue flashing like it is in the charging pattern, but when I see this, I'm completly confused..:
(PatternBatteryCharging=
50;4;0;rg;9d804000
427f 0d7f 7f00 7f00 4200
0000;9d80 0000
)
Can anyone help me please??
The LED Pattern wiki doesn't help me to see thru this...
Sorry for my bad english...
Thanks so far!
Hi,
I read every post of how to change the LED Pattern but I don't get the cloue.
I want to change the pauses between the pattern espacilly for the SMS, etc...
I came so far:
PatternCommunicationSMS=
30;1;0;b;9d804000
02ff 03ff 02ff 03ff 7108
0000 ;9d80 0000
The red marked has to be the string for the pauses I think.
As mce.ini says, pause is achieved with 00 at the second byte (7108 will have a similar effect if the led is already dark). A good long pause is achieved with 7f00.
The devices' pattern is longer because it says 7f instead of 71.
You can add as many 7f00 as you want to the pattern, creating longer pauses.
Diamorph
01-16-2010, 07:34 PM
Thank you for your quick answer!
I think that I slowly get an idea how this works.
So if I place the three pause stings from charging to the SMS pattern like this:
PatternCommunicationSMS=
30;1;0;b;9d804000
02ff 03ff 02ff 03ff 7f00 7f00 4200
0000 ;9d80 0000
would that work?
I don't want to brick my sweet N900 in the first week so I better ask two times :)
Thanks!
greez Alex
Thank you for your quick answer!
I think that I slowly get an idea how this works.
So if I place the three pause stings from charging to the SMS pattern like this:
PatternCommunicationSMS=
30;1;0;b;9d804000
02ff 03ff 02ff 03ff 7f00 7f00 4200
0000 ;9d80 0000
would that work?
I don't want to brick my sweet N900 in the first week so I better ask two times :)
I suppose yes. I don't believe there is a way to brick your device by changing the LED patter. At worst, you'll have a led that doesn't work until you restore the mce.ini and restart mce. I've experimented quite a lot with the leds and didn't cause any problems, even with really nasty patterns.
chrisp7
01-17-2010, 09:27 AM
Out of interest how will the alerts work with different colours - the colour alert will be from the last event? ie if you get an email, then an sms the led will indicate just a received sms, yes?
Out of interest how will the alerts work with different colours - the colour alert will be from the last event? ie if you get an email, then an sms the led will indicate just a received sms, yes?
AFAIK mce handles conflicts using the priority field. It will show the highest priority event (e.g. when battery is charging but you have an sms it blinks blue).
codeMonkey
01-17-2010, 11:48 AM
9d80 4000 02ff 03ff 02ff 03ff 7f00 7f00 4200 0000
would that work?
This pattern would:
02ff (quickly fade-in to full brightness)
03ff (quickly fade out)
02ff (quickly fade-in to full brightness)
03ff (quickly fade out)
7f00 (pause)
7f00 (pause)
7f00 (pause)
4200 (set brightness to zero - redundant since it's already at zero)
aldevil
01-17-2010, 11:53 AM
Can't someone produce an app to help us noobs...? lol
This pattern would:
02ff (quickly fade-in to full brightness)
03ff (quickly fade out)
02ff (quickly fade-in to full brightness)
03ff (quickly fade out)
7f00 (pause)
7f00 (pause)
7f00 (pause)
4200 (set brightness to zero - redundant since it's already at zero)
First of all, your previous "code" had a 4000 at the beginning, which would set brightness to zero. You don't need to do that at the end of the sequence again (remember, it will jump back). Second, 4200 will be just a pause. Use "40xx" (e.g. 4000) to set the brightness.
You can test this when the led is already working (e.g. when the device is locked and charging) by copy-pasting this:
cd /sys/class/i2c-adapter/i2c-2/2-0032
echo "load" > engine1_mode
sleep 1
echo "9d80400002ff03ff02ff03ff7f007f000000" > engine1_load
echo "run" > engine1_mode
Just open and close the keyboard to restore the led.
p.s. I tested it already
Pedrolot
01-17-2010, 01:21 PM
How does one access this file?
Thanks
Cas07
01-17-2010, 01:50 PM
How does one access this file?
Thanks
You would need to be logged in as root from the console but I really think that if you do not know how to access the file it might be quite dangerous for you to be low level tinkering as there is a real risk of rendering the device unusable.
Pedrolot
01-17-2010, 02:00 PM
You would need to be logged in as root from the console but I really think that if you do not know how to access the file it might be quite dangerous for you to be low level tinkering as there is a real risk of rendering the device unusable.
Patience is a vitue i see.
I'll hold back in that case. Thanks.
ossipena
01-17-2010, 02:09 PM
Can't someone produce an app to help us noobs...? lol
first tip: use word please instead of lol. i could practice python and see if i manage to create an app. but even if it works some day, it'll take months before it is in extras even with best case scenario. so if someone else is interested, pm me.
Cas07
01-17-2010, 02:17 PM
A solution is actually already being worked on: mcedit (http://talk.maemo.org/showthread.php?t=27818)
Have no idea its status or anything else, just bringing it to the discussion.
codeMonkey
01-17-2010, 03:39 PM
Second, 4200 will be just a pause. Use "40xx" (e.g. 4000) to set the brightness.
Ahh yes, you're right there. My mistake.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.