Notices


Reply
Thread Tools
Posts: 429 | Thanked: 217 times | Joined on Apr 2010 @ Dubai
#1
well i need some help with this
or atleast someone to tell me whether im going in the right direction or not

basically ive edited the mce.ini file:
Code:
[LEDPatternLystiRX51]

# Patterns used if the device has an RGB LED connected to a Lysti 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
#            5 always show pattern, even if LED disabled
# Timeout in seconds before pattern is disabled, 0 for infinite
# LED(s) to map to Engine 1/Engine 2
#         "r", "g", "b" maps the LED to engine 1
#         "R", "G", "B" maps the LED to engine 2
#         Example:
#            "rG" maps the red LED to engine 1,
#                      the green LED to engine 2,
#		       and leaves the blue LED unmapped
#         Avoid mapping the same LEDs to both engines...
# Engine 1 pattern in Lysti format (16 commands at most)
# Engine 2 pattern in Lysti format (16 commands at most)
#
# 0000 -- Jump to the start of the pattern for the channel
# 40xx -- Set channel brightness
# 9d80 -- Refresh Mux (use as first command in every pattern!)
# xxyy -- Increment/decrement
#      xx determines the speed;
#         02-3f -- short step time (granularity 0.49ms)
#         42-7f -- long step time (granularity 15.6ms)
#
#	  If xx is even, increment
#         If xx is odd, decrement
#      yy determines the increment/decrement steps
#         00-ff -- in/decrement 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 engine 1 trigger
# e004 -- Send engine 2 trigger
# e008 -- Send engine 3 trigger <used by key backlight!>
# e080 -- Wait for engine 1 trigger
# e100 -- Wait for engine 2 trigger
# e200 -- Wait for engine 3 trigger <used by key backlight!>
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;b;9d80400002ff03ff02ff03ff71080000;9d800000
PatternCommunicationIM=30;1;0;r;9d80400002ff03ff02ff03ff71080000;9d800000
PatternCommunicationSMS=30;1;0;rgb;9d80400002ff03ff02ff03ff71080000;9d800000
PatternCommunicationEmail=30;1;0;gb;9d80400002ff03ff02ff03ff71080000;9d800000
PatternCommonNotification=30;1;0;b;9d80400002ff03ff02ff03ff71080000;9d800000
PatternWebcamActive=20;1;0;r;9d80400004ffc0000000;9d800000
PatternBatteryCharging=50;4;0;rg;9d804000427f0d7f7f007f0042000000;9d800000
PatternBatteryFull=40;4;0;g;9d80407f0000;9d800000
Patternbatterybarlow=242;1;0;r;9d804000422043207f100000;9d800000
Patternbatterybarmedium=241;1;0;rg;9d804000422043207f100000;9d800000
Patternbatterybarfull=240;1;0;g;9d804000422043207f100000;9d800000


# 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;rg;9d80400044ff45ff0000;9d800000
added what you see in red
Note:ive also set the priority for it at the end where is should be out taken by sms or missed calls
i dont know whether this is the correct place because i see many diffrent types in the folder but this is where i edit the colors and all
anywho

using a dbus command to activate it
which is:
Code:
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_led_pattern_activate string:"patternbatterybarlow"
i dont know whether this is all correct or not
but ive tried using it
and well to be honest nothing happend

so any help?? if i could just get this to work
__________________
N900 @850Mhz
My N900 changed my life and made it ALOT easier!
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#2
You need to add it to the one line list under the first [LED]
You can use mceledpattern to add them automatically.
 
Posts: 429 | Thanked: 217 times | Joined on Apr 2010 @ Dubai
#3
Originally Posted by MohammadAG View Post
You need to add it to the one line list under the first [LED]
yes, i found it. ill try doing that tomorrow, thanks a lot.

Originally Posted by MohammadAG View Post
You can use mceledpattern to add them automatically.
where do i get that form??
__________________
N900 @850Mhz
My N900 changed my life and made it ALOT easier!
 
jd4200's Avatar
Posts: 451 | Thanked: 424 times | Joined on Apr 2010 @ England
#4
Originally Posted by bakuur View Post
yes, i found it. ill try doing that tomorrow, thanks a lot.



where do i get that form??
It's in the repos. it's called LED Pattern editor.
__________________
BTC:
19ePiXZUdxqNAq9tStLzZV4dduSQeGPJzj
 
Reply


 
Forum Jump


All times are GMT. The time now is 17:37.