Notices


Reply
Thread Tools
Posts: 1,522 | Thanked: 391 times | Joined on Jul 2010 @ São Paulo, Brazil
#11
just plain color blinks could get confused with regular LED patterns, somthing more complex than that would be needed, perhaps a prefix pattern that would always play before the actual charge status pattern would help.
 
Posts: 1,522 | Thanked: 391 times | Joined on Jul 2010 @ São Paulo, Brazil
#12
Is that why the LED pattern editor has such a big difficulty to test a pattern? How does HealthCheck's LED test does it?
 
woody14619's Avatar
Posts: 1,455 | Thanked: 3,309 times | Joined on Dec 2009 @ Rochester, NY
#13
The problem with this is that the LED use does actually eat battery. It may not seem like much, but when you're blinking it every 30 seconds all day, it adds up.

A better idea may be to trigger on another indicator (like say camera button) when the screen is off, and have it blink things to you then. Or, just have it use espeak to say the time and % battery left maybe? A lot easier than learning morris code to tell the time and battery level.
 
Posts: 1,522 | Thanked: 391 times | Joined on Jul 2010 @ São Paulo, Brazil
#14
Just keep the average usage of the LED to somthing similar to the default white flashing
 
woody14619's Avatar
Posts: 1,455 | Thanked: 3,309 times | Joined on Dec 2009 @ Rochester, NY
#15
Default white flashing? Does yours flash white at times? Mine never flashes unless something is going on, like a incoming SMS. The only time I see white is when the device is powering up or down...
 
Posts: 1,522 | Thanked: 391 times | Joined on Jul 2010 @ São Paulo, Brazil
#16
With the screen locked and no notifications etc waiting, it flashes faint white every once in a while
 
Posts: 968 | Thanked: 974 times | Joined on Nov 2008 @ Ohio
#17
OK, messing around a little bit; this is probably one of the worst ways to do this, but:

I wrote a little script that will:
1) grep the current bar level, and compare it to a previously stored level
2) if the levels are the same (ie 6 bars) it will exit
3) if the levels are different it will
4a) overwrite the current mce.ini file with a new mce.ini file based on the bar level
4b) restart mce
4c) set the stored bar value to the current value
5) exit
*settings,notification light, device on needs to be checked.

Obviously this needs to be run as root. There are a variety of ways to have the script run automatically at a predetermined interval. If the level hasn't changed nothing is written or restarted.

Based on the wiki, mce shouldn't be restarted too often (several times in less than 2 minutes) or there may be problems restarting it. If the battery last for 4 hours at 100% cpu, and there are 8 bar levels, there should be about 30 minutes between changes (if I did my math right). So from that perspective it shouldn't cause any issues.

I suppose it could do very bad things if something prevented if from completely writing the file, or the file was corrupted.

I'll play with it a little more, if it seems to work and there is interest, I could post it.
__________________
*Consumer*, not a developer! I apologize for any inconvenience.
My script to backup /home and /opt
Samsung Galaxy S Vibrant, Huawei S7, N900(retired), N800(retired)

Last edited by lemmyslender; 2010-10-06 at 23:46.
 
hawaii's Avatar
Posts: 1,030 | Thanked: 792 times | Joined on Jun 2009
#18
Anytime you restart MCE, you'll lose "stacked" or in-progress notifications. This is not conducive at all.

There is no sane way to do this with MCE.
 

The Following User Says Thank You to hawaii For This Useful Post:
Posts: 1,522 | Thanked: 391 times | Joined on Jul 2010 @ São Paulo, Brazil
#19
There gotta be a better way to control the status LED...
 
Posts: 429 | Thanked: 217 times | Joined on Apr 2010 @ Dubai
#20
please post it if you can
ill work on it too
maybe i can help you abit
__________________
N900 @850Mhz
My N900 changed my life and made it ALOT easier!
 
Reply


 
Forum Jump


All times are GMT. The time now is 08:50.