|
This post has been thanked 1 times. |
|
||||
Re: [TESTING] SCBS: Improved battery meter system
Thanks for the syntax. I think I'm happy with my model now so I'm going to disable logging by redirectly to /dev/null. That should lighten up the writes to the SD card constantly.
__________________
WinMo: Jan.3.2011 VINdows Neodium (2.37 WV radio) OC'ed to 710Mhz
Neopeek Android: Huawei Midnight Cherry Pie v3 650Mhz XDAndroid 2nd Setup: FRX06 03.25.11 OC'ed to 650Mhz ![]() |
|
||||
Re: [TESTING] SCBS: Improved battery meter system
jonpry,
I'm having a strange issue with scbs and was wondering if you could shed some light on why this was happening. I've integrated scbs into F22's latest rootfs and in /init I've integrated the following code, which starts debug logging and scbs Code:
logfiledate=`date +%Y%m%d%H%M%S` cat /proc/kmsg>"$card"/debuglogs_kmsg_"$logfiledate".txt & logcat -v time >"$card"/debuglogs_logcat_time_"$logfiledate".txt & logcat -v time -b radio>"$card"/debuglogs_logcat_time_radio_"$logfiledate".txt & dev=$(cat /sys/class/scbs/0/dev | sed -e "s/:/ /g") mknod /dev/scbs0 c $dev scbs -d -co /sdcard/scbs.conf I tried starting scbs before the logging and after, and it makes no difference. I also tried some other things like having the script sleep for 5 seconds but the result is always the same. If I start scbs via gscript logcat does not blow up, so it seems like it might have to do with them being fired of in the same tty.
__________________
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega
Last edited by toadlife; 04-22-2011 at 10:08 PM. |
|
||||
Re: [TESTING] SCBS: Improved battery meter system
Any chance of the code being GPL'd?
Would be nice to export the logs and analyze them on a desktop PC... would definitely cut down on the .conf build time! |
|
||||
Re: [TESTING] SCBS: Improved battery meter system
Quote:
Not sure if BABS will be GPL'd, but the kernel code will be, don't worry 'bout that. Perhaps we can coax jonpry into giving up his x86 version ![]() |
|
||||
Re: [TESTING] SCBS: Improved battery meter system
Quote:
![]() I ran the analyzer, but came back 45 minutes later to find my TP2 rebooted back into MightyRom. ![]() |
|
||||
Re: [TESTING] SCBS: Improved battery meter system
The binary is in the first post. Just pull out scbs and add the change to init... done.
|
|
||||
Re: [TESTING] SCBS: Improved battery meter system
CWM should allow us, the users, to create an update.zip to patch any distribution with this and share it with the other users.
|
![]() |
|
Tags |
battery, tp2 |
|
|