View Single Post
Posts: 92 | Thanked: 9 times | Joined on Apr 2010
#87
Awesome work mate ! i can ever change the LED colours and pattern from 'LED PATTERNS'. This is ubercool ! just a lil error in the first post of the thread.. the '1' in bold italics should be '5' it took me quite a while to search for the QBC for the 5 colour options


- Thanks
Originally Posted by bakuur View Post
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 1 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
 

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