PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2 > Android On TP2 > Android On TP2 Development
Register Community Search

Notices


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #9 (permalink)  
Old 04-25-2011, 02:14 AM
toadlife's Avatar
Lurker
Offline
Pocket PC: T-Mobile Touch Pro 2
Carrier: T-Mobile
Location: Lemoore, CA
 
Join Date: Dec 2008
Posts: 15
Reputation: 15
toadlife is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] SCBS: Improved battery meter system

I solved my problem of scbs blowing up logcat by starting scbs as a service...

I created a shell script called scbs.sh and placed it in /bin

Code:
#!/bin/sh    
scbsargs=`cat /sdcard/scbsargs.conf`
if [ ! "$scbsargs" == "" ] ; then
    if [ ! -f /dev/scbs0 ] ; then
        dev=$(cat /sys/class/scbs/0/dev | sed -e "s/:/ /g")
        mknod /dev/scbs0 c $dev        
    fi
    scbs $scbsargs
fi
I created a file called scbsargs.conf and placed it in the root of my sdcard...

Code:
-d -co /sdcard/scbs.conf -lf /dev/null
And finally, edited /init.cfg/init.froyo.rc and added scbs.sh as a service...

Code:
service scbs /bin/scbs.sh
oneshot
__________________
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega
Reply With Quote
 

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2 > Android On TP2 > Android On TP2 Development

Tags
battery, tp2


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
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 03:07 AM.


Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com