Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,781,851 Members 46,451 Now Online
XDA Developers Android and Mobile Development Forum

[APP] [1.0] CPUStatusLED (Charging LED as CPU status indicator) [Gingerbread too]

Tip us?
 
britoso
Old
(Last edited by britoso; 11th October 2011 at 06:28 AM.)
#1  
britoso's Avatar
Senior Member - OP
Thanks Meter 282
Posts: 2,725
Join Date: Jan 2010
Location: Orlando

 
DONATE TO ME
Lightbulb [APP] [1.0] CPUStatusLED (Charging LED as CPU status indicator) [Gingerbread too]

What is this:
An app that uses the charging LED to show the current CPU load.
Source is up here




Video (outdated now):


Here are the colors, and the default order in which they are used: (colors may vary depending on the device)
The order of colors and threshold is configurable.
Code:
CPU%  -  COLOR
<3     -  Off
3-15   -  blue
16-40  -  green
41-75  -  amber
>=76   -  red
Works On: Should work on all. Root is needed for some models.
The logcat will tell you which LEDs were found and if root is needed.


Instructions:
Download the apk and install it. The app runs as a service in the background.
On Froyo you can email it to your gmail address, Gmail will show you an "install" option.
Otherwise:
Quote:
adb install -r CPUStatusLED.apk
ChangeLog: http://code.google.com/p/netmeterled/source/list

Todos, & Known 'bugs'
  • The Red LED does not stay lit on the N1, It always blinks by design.

Credits:
-Props to Bernhard.R.Suter creator of NetMeter, on which this was built upon. [project page]
-The awesome aChartEngine graphing API.


Download:
It is now (4/13/11) on the Market: https://market.android.com/details?i...o.cpustatusled
If you cannot access the market, get it from the project site: http://code.google.com/p/netmeterled/downloads/list
The signing key may have changed, so if you have any errors updating please uninstall the old first.
Remove NetMeter+LED or NetmeterPlus before installing CPUStatusLED or they will both set the LEDs and cause confusion.
Software Developer (Java/J2EE)
Phone: Nexus 5 32GB -> PA 4.4.2 + XPosed
Phone: Galaxy Nexus-> OmniMetal CM11
Phone: Nexus One (killed while replacing the digitizer)-> CM10.1 AOKP Unofficial Nightlies
Tablet
: Nook Color -> CM10.1 Nightlies
Tablet
: HP Touchpad -> CM10.1 -SCHIZOID
Stick: CX-919 RK3188/2GB (4.2.2 Finless 1.6b. FHD no-OC. Antutu 16753 Quadrant 4723)

Links:
»My Apps (ancient now) [CPUStatusLED] [MoreRecent]
»My Threads
»My Posts
»Transparent widgets
 
G1-evolve
Old
#2  
G1-evolve's Avatar
Senior Member
Thanks Meter 22
Posts: 991
Join Date: Mar 2009
Location: Chicago
Installed, nice work!

-----------
Galaxy S3
 
rori~
Old
#3  
rori~'s Avatar
Senior Member
Thanks Meter 705
Posts: 3,942
Join Date: Aug 2009
Location: Vienna

 
DONATE TO ME
wow,nice work!!!!!
 
t0ol
Old
#4  
Member
Thanks Meter 0
Posts: 90
Join Date: May 2010
Interesting stuff.. source plz?)
 
commodoor
Old
#5  
commodoor's Avatar
Senior Member
Thanks Meter 66
Posts: 911
Join Date: Mar 2008
Location: Venlo
Wow really nice one

Maybe if you can post a movie clip to show the working of it?
Phone: Samsung Galaxy S II

G+ > http://gplus.to/commodoor

Phone History (old to new):
Nokia 5110, Nokia 8850, Nokia 8210, Nokia 3310, Nokia 8310, Nokia 5210, Nokia 8910, Nokia 3410, Nokia 7650, Motorola V70, Sony CMD J7, SE T610, Nokia N-gage, Nokia 6230, Nokia 6230i, Siemens SL65, Siemens C65, SE K750, Nokia n73, SE K800, HTC Touch, HTC Touch Dual, HTC TytnII, SE Xperia x1, SE 303i, I-mate SPL, HTC Hero, NexusOne, SE X10, HTC WildFire, SE Xperia Arc
 
britoso
Old
#6  
britoso's Avatar
Senior Member - OP
Thanks Meter 282
Posts: 2,725
Join Date: Jan 2010
Location: Orlando

 
DONATE TO ME
Quote:
Originally Posted by commodoor View Post
Maybe if you can post a movie clip to show the working of it?
Added an existing video from the other thread, it shows the LED blinking. Just imagine that the blinking is off and there are 5 states (off>blue>green>amber(orange)>red). Updated OP.
Software Developer (Java/J2EE)
Phone: Nexus 5 32GB -> PA 4.4.2 + XPosed
Phone: Galaxy Nexus-> OmniMetal CM11
Phone: Nexus One (killed while replacing the digitizer)-> CM10.1 AOKP Unofficial Nightlies
Tablet
: Nook Color -> CM10.1 Nightlies
Tablet
: HP Touchpad -> CM10.1 -SCHIZOID
Stick: CX-919 RK3188/2GB (4.2.2 Finless 1.6b. FHD no-OC. Antutu 16753 Quadrant 4723)

Links:
»My Apps (ancient now) [CPUStatusLED] [MoreRecent]
»My Threads
»My Posts
»Transparent widgets
 
pzumk
Old
(Last edited by pzumk; 19th June 2010 at 03:56 PM.)
#7  
Senior Member
Thanks Meter 33
Posts: 1,068
Join Date: Jun 2009
Location: Lüneburg

 
DONATE TO ME
Will give it a try if you fix the red LED

Edit // Well, I tried it and it seems to work but it always auto closes my AppDrawer and makes the Homescreens buggy.. uninstalled since I can't use it like that :\
currently
iPhone 5 (Sep '12 to now)
iOS 7, jailbroken

old
Nexus 4 (June '13 to July '13)
Android 4.2.2, root
iPhone 4S (Jan '12 to Sep '12)
iOS 7
Nexus One (Jan '10 to Jan '12)
CyanogenMod 7
Samsung Omnia SGH-i900 (Dec '09 to Jan '10)
Windows Mobile 6.1
LG KM900 Arena (Apr '09 to Nov '09)
S-Class
Sony Ericsson W880i (mid '09)
modded/patched firmware
Sony Ericsson W810i (Nov '07 to Apr '09)
modded/patched firmware
Siemens MC60 (? to Nov '07)
Nokia 3410 ('04 to ?)
 
britoso
Old
(Last edited by britoso; 19th June 2010 at 04:12 PM.)
#8  
britoso's Avatar
Senior Member - OP
Thanks Meter 282
Posts: 2,725
Join Date: Jan 2010
Location: Orlando

 
DONATE TO ME
Quote:
Originally Posted by xPatriicK View Post
Will give it a try if you fix the red LED
That will involve fixing code in /system/lib/hw/lights.qsd8k.so
A binary patch wont do it, needs to be rebuilt.

Quote:
QCT MSM7K lights Module, Google, Inc.
Update:
Interesting, only the RED LED has a frequency file associated with it. Cant find the files for "grpfreq" and "grppwm" (power status colors?) though
RED_FREQ_FILE -> /sys/class/leds/red/device/grpfreq
RED_PWM_FILE -> /sys/class/leds/red/device/grppwm
Code:
# pwd
pwd
/sys/devices/i2c-0/0-0066/leds/red

# ls -l
ls -l
-rw-r--r-- root     root         4096 2010-06-19 10:04 uevent
lrwxrwxrwx root     root              2010-06-19 10:04 subsystem -> ../../../../../class/leds
lrwxrwxrwx root     root              2010-06-19 10:03 device -> ../../../0-0066
-rw-r--r-- system   system       4096 2010-06-19 10:04 brightness
-rw-r--r-- root     root         4096 2010-06-19 10:04 max_brightness
-rw-r--r-- root     root         4096 2010-06-19 10:04 trigger
drwxr-xr-x root     root              2010-06-19 10:04 power
-rw-r--r-- system   system       4096 2010-06-18 06:20 blink
-rw-r--r-- root     root         4096 2010-06-19 10:04 off_timer

# cd /
cd /
# find . -name "grpfreq"
find . -name "grpfreq"
(no results)
Software Developer (Java/J2EE)
Phone: Nexus 5 32GB -> PA 4.4.2 + XPosed
Phone: Galaxy Nexus-> OmniMetal CM11
Phone: Nexus One (killed while replacing the digitizer)-> CM10.1 AOKP Unofficial Nightlies
Tablet
: Nook Color -> CM10.1 Nightlies
Tablet
: HP Touchpad -> CM10.1 -SCHIZOID
Stick: CX-919 RK3188/2GB (4.2.2 Finless 1.6b. FHD no-OC. Antutu 16753 Quadrant 4723)

Links:
»My Apps (ancient now) [CPUStatusLED] [MoreRecent]
»My Threads
»My Posts
»Transparent widgets
 
hktony
Old
#9  
Senior Member
Thanks Meter 1
Posts: 111
Join Date: Jul 2008
great work , mate !!!!!!!
 
3Shirts
Old
#10  
3Shirts's Avatar
Senior Member
Thanks Meter 284
Posts: 1,348
Join Date: Jan 2009
Location: Bedford
Great idea. I'll hold off until the source is available and some more progress has been made but it's a fantastic start
Get 2GB Free online storage at DropBox and help me get a little extra too. Thanks.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Make Your Calendar Widget Beautiful with Month

For some of us, summer vacation is alreadyover. For those getting ready to school, work, or … more

Integrate Social Networks Into Your Project With ASNE Library

Social network applications and services have developed into major parts ofour … more

Give Your Android Wear Device a Lock Screen with Lockable

Without a doubt,Android Wear is one of the most frequently talked abouttopics of … more

Forums Added for the LG G Watch R and Samsung Gear S

A little over a week ago, LG “inadvertently” let the world know about the … more