Notices


Reply
Thread Tools
Posts: 429 | Thanked: 217 times | Joined on Apr 2010 @ Dubai
#1
UPDATED!!!

Okay guy, now we have 3 different color managment reading the battery percentage NOT the battery Bars
  • 1 color
  • 3 colors
  • 5 colors

_the 1 color option will give only
red when below 20%

_the 3 colors option will give you
green from 100 to 67 %
yellow from 66 to 34 %
red from 33 to 0 %

_as finally for the 5 color management
white form 100 to 81 %
baby blue from 80 to 61 %
yellow from 60 to 41 %
purple from 40 to 21 %
red from 20 to 0 %

this script will hopefully work while charging,
i tried optimizing the power managment as much as i could really but so far i noticed no diffrence in my battery life
as in its the same thing as before,
further more i added all the 7 colors to the mce.ini

the script will not conflict with any other notifications ie.SMS or Missed Calls


So the steps on how to get the script working are:
1. download the .zip file attached below and extract it in your "/home/user/MyDocs/" that is the basic folder in your file manager!

2. go to main menu>settings> notification light>enable "Other Notification"

3.open the terminal, then type in the following code:
Code:
sudo gainroot
sh /home/user/MyDocs/batteryLED/modder
then,
Code:
a
WARNING:this will edit your mce.ini file! you can easyly revert back using this same script.
as choosing option "a" will mod your mci.ini and option "b" will install the original back!
(eg: to choose option "a" just type in a and then press enter)

4.use any app that runs a command every given interval
i personally will use "queen beecon Widget" so you will need to install it.
then once you create that widget,just simply chose the option to "add cmd"
give it a title
the at the command box enter this for the 1 color option:
Code:
sudo gainroot ; sh /home/user/MyDocs/batteryLED/led1color
the at the command box enter this for the 3 color option:
Code:
sudo gainroot ; sh /home/user/MyDocs/batteryLED/led3color
the at the command box enter this for the 5 color option:
Code:
sudo gainroot ; sh /home/user/MyDocs/batteryLED/led5color
NOTE: to test if the LED colors are installed and properly working
i wrote a script that will lock the screen shows you 7 LED colors each separated by a white blink then turn the screen back on
to try it out type in the terminal
Code:
sudo gainroot
sh /home/user/MyDocs/batteryLED/ledtest
5.go the the update policy section and ONLY choose "@ interval" i suggest 5mints for an accurate result
but its your wish after all.

Important: to turn off this script you must first disable the widget then open the terminal and run the following command :
Code:
sudo gainroot
sh /home/user/MyDocs/batteryLED/turnoff
or you can just disable the widget then reboot

and here you go!

Disclaimer: this is all done at your risk only!!

special thanks to renaldoTT for his mci.ini file (A) "he's a life saver" and to Blue_led for some help with some scripts
Attached Files
File Type: zip batteryLED.zip (11.0 KB, 189 views)
__________________
N900 @850Mhz
My N900 changed my life and made it ALOT easier!

Last edited by bakuur; 2010-11-12 at 21:17. Reason: Updated!!
 

The Following 17 Users Say Thank You to bakuur For This Useful Post:
RenaldoTT's Avatar
Posts: 511 | Thanked: 128 times | Joined on Aug 2010 @ Trinidad and Tobago
#2
so does the LED stay on constatntly while the screen is off/locked? or just blinks or something
__________________
Trini 2 D' Bone

I miss my N900
Hello DELL Venue Pro Mango
Listen to my music >>> www.reverbnation.com/rrule

TRINIDAD & TOBAGO
 
Posts: 429 | Thanked: 217 times | Joined on Apr 2010 @ Dubai
#3
blinks every 6 or 7 seconds with a faint light
__________________
N900 @850Mhz
My N900 changed my life and made it ALOT easier!
 
RenaldoTT's Avatar
Posts: 511 | Thanked: 128 times | Joined on Aug 2010 @ Trinidad and Tobago
#4
Testing it, so far so good, to stop the mod I just chose option "b" removed the widget and unticked "other notifications". all is well. going to reenable it and test it out fully. so far so good

reenabled and testing. when i receive messages and such, it blinks blue as usual so no clashing of priorities. works damn well, battery doesn't seem to be draining much at all either, checked CPU in battery graph, when not being used, barley any CPU usage takes place, so yea all is well. will run this next week with the UPDATED smart clocker script and see what happens
__________________
Trini 2 D' Bone

I miss my N900
Hello DELL Venue Pro Mango
Listen to my music >>> www.reverbnation.com/rrule

TRINIDAD & TOBAGO

Last edited by RenaldoTT; 2010-10-30 at 00:43.
 

The Following 2 Users Say Thank You to RenaldoTT For This Useful Post:
Posts: 23 | Thanked: 3 times | Joined on Oct 2010 @ Canada
#5
i want to try this, is the lights going to burn if i leave it for a long time?
 
RenaldoTT's Avatar
Posts: 511 | Thanked: 128 times | Joined on Aug 2010 @ Trinidad and Tobago
#6
burn? what do you mean?
__________________
Trini 2 D' Bone

I miss my N900
Hello DELL Venue Pro Mango
Listen to my music >>> www.reverbnation.com/rrule

TRINIDAD & TOBAGO
 
Posts: 23 | Thanked: 3 times | Joined on Oct 2010 @ Canada
#7
like the light stops turning on because its all used up and stuff.
 
RenaldoTT's Avatar
Posts: 511 | Thanked: 128 times | Joined on Aug 2010 @ Trinidad and Tobago
#8
most likely not because the light flickers every 6seconds or so it does not stay on continuously. these lights are very durable to my understanding as they are not like the light bulbs you use at home lol so you don't have to worry about it "burning" out
__________________
Trini 2 D' Bone

I miss my N900
Hello DELL Venue Pro Mango
Listen to my music >>> www.reverbnation.com/rrule

TRINIDAD & TOBAGO
 
Posts: 23 | Thanked: 3 times | Joined on Oct 2010 @ Canada
#9
hahaha thanks i love it
 
RenaldoTT's Avatar
Posts: 511 | Thanked: 128 times | Joined on Aug 2010 @ Trinidad and Tobago
#10
You're very welcome, you should also check out bakuur's other scripts they will make your life easy, I suggest the "Easy overclocking script" because it works well and I haven't tested the "SmartClocker" script thoroughly yet but bakuur says it works so you can it and report to us on the thread your results
__________________
Trini 2 D' Bone

I miss my N900
Hello DELL Venue Pro Mango
Listen to my music >>> www.reverbnation.com/rrule

TRINIDAD & TOBAGO
 

The Following User Says Thank You to RenaldoTT For This Useful Post:
Reply

Tags
bakuur, battery, indicator, notification


 
Forum Jump


All times are GMT. The time now is 01:03.