Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
britoso
Old
(Last edited by britoso; 11th October 2011 at 06:28 AM.)
#1  
britoso's Avatar
Senior Member - OP
Thanks Meter 242
Posts: 2,632
Join Date: Jan 2010
Location: FortWorth/TX

 
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.
Java Developer.
Phone: Galaxy Nexus-> CM10.1 PA Nightlies
Phone: Nexus One-> CM10.1 AOKP Unofficial Nightlies
Tablet
: Nook Color -> CM10.1 Nightlies
Tablet
: HP Touchpad -> CM10.1 -SCHIZOID
Links:
»My Apps [CPUStatusLED] [MoreRecent]
»My Threads
»My Posts
»Transparent widgets
 
G1-evolve
Old
#2  
G1-evolve's Avatar
Senior Member
Thanks Meter 16
Posts: 920
Join Date: Mar 2009
Location: Chicago
Installed, nice work!

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

 
DONATE TO ME
wow,nice work!!!!!
#SG3, LG 2X
#CyanX Lock Screen
#LockscreenMod #BlackSmilies #BlackWidgets #SmokedWidgets #ADW ThemeSmoked #Statusbar PulldownMod #Tmo-CM7 Themes: HoneycreamTheme..

#Twitter
-------------------------------------------------------
If you like my work, buy me a cold Budweiser
 
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 242
Posts: 2,632
Join Date: Jan 2010
Location: FortWorth/TX

 
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.
Java Developer.
Phone: Galaxy Nexus-> CM10.1 PA Nightlies
Phone: Nexus One-> CM10.1 AOKP Unofficial Nightlies
Tablet
: Nook Color -> CM10.1 Nightlies
Tablet
: HP Touchpad -> CM10.1 -SCHIZOID
Links:
»My Apps [CPUStatusLED] [MoreRecent]
»My Threads
»My Posts
»Transparent widgets
 
ptrrrrrck
Old
(Last edited by ptrrrrrck; 19th June 2010 at 03:56 PM.)
#7  
Senior Member
Thanks Meter 30
Posts: 1,066
Join Date: Jun 2009

 
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 :\
Black apps for energy saving on AMOLED screens

Nexus One with
- CyanogenMod 7 Build by fitsnugly
- wildmonks' kernel
- Clockwork Recovery
 
britoso
Old
(Last edited by britoso; 19th June 2010 at 04:12 PM.)
#8  
britoso's Avatar
Senior Member - OP
Thanks Meter 242
Posts: 2,632
Join Date: Jan 2010
Location: FortWorth/TX

 
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)
Java Developer.
Phone: Galaxy Nexus-> CM10.1 PA Nightlies
Phone: Nexus One-> CM10.1 AOKP Unofficial Nightlies
Tablet
: Nook Color -> CM10.1 Nightlies
Tablet
: HP Touchpad -> CM10.1 -SCHIZOID
Links:
»My Apps [CPUStatusLED] [MoreRecent]
»My Threads
»My Posts
»Transparent widgets
 
hktony
Old
#9  
Senior Member
Thanks Meter 1
Posts: 109
Join Date: Jul 2008
great work , mate !!!!!!!
 
3Shirts
Old
#10  
3Shirts's Avatar
Senior Member
Thanks Meter 260
Posts: 1,277
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
Please vote for me to go INTO SPACE! https://www.lynxapollo.com/en_GB/159...m-lake?image=0 - You can use a fake email if you want

Get 2GB Free online storage at DropBox

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Side-Swiping Multitasking with Kakudo

Recovering iPad users may still remember the multitasking function where you can swipe left or right to … more

Learn to Edit Graphics for your Development Work

The importance of good and appropriate graphics for your development work is undeniable. Be … more

Tasker Alternative: AutomateIt, Automates Your Device Tasks – XDA Developer TV

XDA Developer TV Producer Kevin wants to help make your … more