Active Topics

 


Reply
Thread Tools
Posts: 2 | Thanked: 0 times | Joined on Jan 2010
#51
Originally Posted by codeMonkey View Post
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?
 
Posts: 755 | Thanked: 406 times | Joined on Feb 2008 @ UK
#52
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's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#53
http://wiki.maemo.org/Customizing_maemo_for_power_users

feel free to help.
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 
Posts: 755 | Thanked: 406 times | Joined on Feb 2008 @ UK
#54
Originally Posted by ossipena View Post
http://wiki.maemo.org/Customizing_maemo_for_power_users

feel free to help.
It looks like there's quite a bit of cross-over with this.
 
Posts: 41 | Thanked: 10 times | Joined on Dec 2009 @ Woodbridge, CT USA
#55
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's Avatar
Posts: 89 | Thanked: 35 times | Joined on Feb 2010 @ USA
#56
 

The Following User Says Thank You to rocky272727 For This Useful Post:
Posts: 306 | Thanked: 566 times | Joined on Jan 2010 @ Romania
#57
more in the last 3-4 pages
http://talk.maemo.org/showthread.php?t=42201

Last edited by blue_led; 2010-02-26 at 19:21.
 
Posts: 15 | Thanked: 1 time | Joined on Jun 2010
#58
Originally Posted by Corwin View Post
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!)??
 
Posts: 15 | Thanked: 1 time | Joined on Jun 2010
#59
plzz where do i copy & paste those codes??! Really DONT know at all ?
 
blwthompson's Avatar
Posts: 97 | Thanked: 8 times | Joined on Dec 2009
#60
you dont copy it just open mce with leafpad and change them manually its rather simple reread the thread and youll get it
 
Reply


 
Forum Jump


All times are GMT. The time now is 12:44.