![]() |
2010-03-03
, 09:36
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#2
|
![]() |
2011-01-15
, 02:25
|
Posts: 235 |
Thanked: 89 times |
Joined on Oct 2009
@ italy
|
#3
|
![]() |
2011-02-10
, 10:20
|
Posts: 235 |
Thanked: 86 times |
Joined on Dec 2010
|
#4
|
http://wiki.maemo.org/Templateanger
thank you cehteh for your script. I'll use it, really useful. but more important for me is to understand. please, can you explain your script? what means each code line?
eg:
1.what means com.nokia.mce, is it a web address?
2.why you didn't use a simpler one-line command like PatternbatteryLow=(code) in /etc/mce/mce.ini instead of script? we need both?
what I've to write in /init.d directory? a new file or I've to modify existing mce file?
please, don't forget to the newbies too and help them to understand.
thank you cehteh
![]() |
2011-02-10
, 12:37
|
|
Posts: 491 |
Thanked: 341 times |
Joined on Nov 2009
@ LA
|
#5
|
![]() |
2011-02-10
, 13:29
|
Posts: 235 |
Thanked: 86 times |
Joined on Dec 2010
|
#6
|
# Default error pattern is always present bit may be inapprobiate BATTERYLOW_PATTERN=PatternError # When you defined your own pattern: #BATTERYLOW_PATTERN=PatternBatteryLow
![]() |
2011-02-10
, 14:21
|
|
Posts: 491 |
Thanked: 341 times |
Joined on Nov 2009
@ LA
|
#7
|
![]() |
2011-02-10
, 14:36
|
Posts: 235 |
Thanked: 86 times |
Joined on Dec 2010
|
#8
|
dbus-send --system --dest="com.nokia.mce" --type=method_call \ "/com/nokia/mce/request" \ "com.nokia.mce.request.req_led_pattern_deactivate" \ "string:$BATTERYLOW_PATTERN"
![]() |
2011-02-10
, 16:43
|
|
Posts: 138 |
Thanked: 375 times |
Joined on Aug 2009
@ Berlin
|
#9
|
I posting this here, maybe someone has use for it or may even package it (or implement it in C).
The Following 4 Users Say Thank You to pH5 For This Useful Post: | ||
![]() |
2011-02-10
, 17:02
|
|
Posts: 1,030 |
Thanked: 792 times |
Joined on Jun 2009
|
#10
|
The Following 4 Users Say Thank You to hawaii For This Useful Post: | ||
I posting this here, maybe someone has use for it or may even package it (or implement it in C). There is currently one small problem that it leaves a stale process around when one stops it (busybox problem?) But since it should be started at startup and never be stopped this doesn't hurt much. Anyways If anyone fixes this, please notify me.
You need to hack some upstart and/or init.d scripts to start it on boot, I don't post these here and leave that as exercise to the reader. I've also defined my own 'PatternBatteryLow' in /etc/mce/mce.ini, if you are too lazy to define your own, you may just use the error pattern which blinks red at very high priority.