|
|
| 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
Quote:
It's possible to edit it directly on your phone, but it might be easier to download the file using droid explorer, edit it and re-upload the file. You have to remount your rootfs so that it is writable in order to change the file mount -o remount,rw / Set permisisons on the Remount the fs read only after you're done... chmod 755 /init mount -o remount,ro / If you are confused by any of the above, I would recommend you NOT do this. |
| This post has been thanked 1 times. |
|
||||
|
Re: [TESTING] SCBS: Improved battery meter system
I'm trying to stop SCBS by using /dev/null via a terminal emulater. I have set rootfs as writable, but after running the /dev/null code as written above, I get the following error:
Cannot open device: /dev/scbs0 Anyone have a clue on what I should try? THANKS! |
|
||||
|
Re: [TESTING] SCBS: Improved battery meter system
Quote:
You should probably just leave things as they are if you don't understand what that means. |
| This post has been thanked 1 times. |
![]() |
|
| Tags |
| battery, tp2 |
|
|