yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] godutch:
Here is a more exhaustive explanation:

Comment 261 by toddpoy...@google.com, Apr 20, 2011

@nsbu: The message about "'uart_clk' not off" looks alarming but is actually harmless -- this clock doesn't prevent the SoC from suspending, and this message always appears at suspend time in Android kernels running on Qualcomm MSM chipsets. (If other clocks were listed here then those could represent a problem.)

Similar to a previous report on a T-Mobile myTouch 4G discussed here, the data logged on wakeup reasons needs to be interpreted by the OEM that has the hardware specs for the phone and the Qualcomm radio firmware source that generates some of that info. HTC is the OEM for that phone; their support site is http://www.htc.com/us/support . Or try the T-Mobile support site at http://support.t-mobile.com/viewAllProducts.html , they seem to sell this device under their own brand.

In case anyone's confused, it's recognized that some phones do have battery life problems that stem from: (a) not properly suspending to low-power states and, (b) continually attempting to suspend and resume, burning CPU in the suspend thread. The causes tend to be due to devices continually generating interrupts (that might not be properly handled by device drivers and hence continue to be generated), or drivers rejecting suspend for conditions that should be short-lived but instead persist for long time periods. In many cases the drivers involved are written by OEMs and Google does not have any knowledge of the drivers or devices causing the problem -- the folks who made the phone need to take a look.

Problems with the Google Nexus One described in another issue referenced in previous comments fall in the same category, and in that case we have the hardware and the design info needed to diagnose the problem (wifi driver interrupt handling problem), and a fix is on the way.

http://code.google.com/p/android/issues/detail?id=11126#c261
[Galaxy S II General] yudi7:
Well, for me the battery is good. I don't use phone much for gaming and surfing but there are a lot of calls, maybe 3-4 hrs of call time or more. Also I keep quitting running services like social hub, voice command etc.

View attachment 625221
[Galaxy S II General] ithehappy:
Voice calls isn't a way to check your battery life. As soon as you hold the phone near your ear, screen turns off. For proper checking, you have to surf internet via Wi-Fi/3G, play Games, watch Movies etc..Just keep the screen on. I think if you even talk 6/7 hours per day (and do nothing else) then the GS II will last for more than 2 days, surely. Voice calls can't be a way to check battery, for any phone.

Regards.
[Galaxy S II General] yudi7:
Yes I know voice isn't a way to check battery. But like I said its good for me. I previously had iPhone 3G which I used like I use my GS2 and it gave me hardly 5-6 hrs usage of battery. So happy with GS2. I'll test my battery life by playing games and surfing and all that and I'll let you know the result.
[Galaxy S II General] ithehappy:
That would be kind of you.

For me, on Wi-Fi, at Auto Brightness in stock browser, with SetCPU set in Ondemand mode, battery drains at a rate of 18-20% per hour (I don't let the screen off). Lets see if yours are better or not :)
[Galaxy S II General] ammarselo:
i'm very happy with my battery performance.

__________________

Device: Galaxy S II

ROM: Lite'ning Rom v1.4 - overclocked to 1.4GHz

Kernel: CF-Root v.3.8 XWKF1

Previous Phone: Galaxy S
[Galaxy S II General] ithehappy:
As we don't know your happiness level I'd ask you to please mention some technical details, like how long your battery lasts or else? If possible post a Battery usage screen shot also.

Regards.
[GT540 Optimus General] nibras_reeza:
Hey,

So, I checked out both Swiftdroid 2.0 M6 and Joestone's AOSP Gingerbread 2.3.2. I've always noted that even though both these ROMs are noticeably faster, they still lagged while switching apps or when multiple apps at the same time when compared to the stock 2.1.

When I was playing around with Advanced Task Killer, I was surprised to find out that the native 2.1 has around 80-90MB of free RAM after you kill all appslisted by default in Advanced Task Killer. When you try the same thing in Swiftdroid, it gives only 40MB of RAM. And, Joestone's version gives only 60MB.

This is another proof that benchmarks are not everything. Real life performance is difference from benchmark scores.

Is there's a way to increase the free RAM?

I saw a 2.2 ROM which had around 110MB free RAM. But, it was the only one. No other choices. I tried odexing Joe's gingerbread but it didn't give the boost I wanted.

Perhaps Mur4ik can create another modified KDZ? Is it possible to reallocate the NAND chip such that there's more RAM?

Am curious. When you increase SWAP too much, the phone becomes sluggish. Why do you guys try to push the swap to SD while you can create it in internal memory which has better access speeds?

Update
[GT540 Optimus General] darkanubispr:
Try to clean Dalvik Cache in the Clockwork recovery section...

Remember to hit the thank bottom
[GT540 Optimus General] Danzano:
I fully agree more ram more zipaligning more compression = better rom 2.6.29 is stable m6 is good if m7 keeps same kernel and keeps these thing's in mind we will all be happy
[GT540 Optimus General] Danzano:
Also any system utilities etc with mem leaks if we tweak it all I'd be more than happy with the final product
[GT540 Optimus General] nibras_reeza:
I hit the thank button. lol

Is the Dalvik cache an issue in 2.3? Isn't it like cleared on every reboot due to JIT?

@danzano: true. it doesn't mean we should expect mur4ik to do everything. =)
[GT540 Optimus General] Danzano:
Exactly if I knew how I'd help but for now I give pointers and ask people to help mur4ik but I'm reading heaps and should be developing soon
[GT540 Optimus General] nibras_reeza:
That's exactly why I've been trying to reduce RAM usage. xD
[GT540 Optimus General] nibras_reeza:
It was like you said. I got upto 80MB free in Advanced Task Killer after clearing the dalvik cache.

I like to upload an odexed version for recovery but my internet is slow and would take around 4 hours for an upload(assuming the upload doesn't break). So, instead, I'll put together the scripts I used for odexing and instructions to odex by tonight.
[GT540 Optimus General] m1st3r1:
Maybe it's because swiftdroid (or any others 2.1+ rom) keeps some apps unkillable. Maybe like home launcher, messaging, dialer, etc can't be close using task killer. Don't know for sure though, I don't have problems switching apps.

N remember, u don't need task killer in 2.1+ roms, well except for gaming when u need all the horse power and for kill "naughty" apps which I prefer to kill via running service.

And no, u can't put swap in nand (internal storage) because it's irreplaceable and the highly usage of it because of swap can reduce its lifetime. As far as I know, gt540 has different chip for ram which has to be more durable than the nand

Do cmiiw!
[GT540 Optimus General] Danzano:
If it uses a different chip then how big is that separate chip are we using all it's potential?
[GT540 Optimus General] nibras_reeza:
I know that we don't need a Task Killer even in pre-2.1. Android's memory management is pretty good. But, sometimes, the phone acts dumb trying to be smarter than us. xD

I used Task Killer as a measure to see how much memory I could get with default settings. Advanced Task Killer ignores Launcher, core, phone etc by default.

Putting swap on internal shouldn't shorten its life that much. Usually, the internal NAND is pretty good. They usually have the quality of RAM rather than that of SD. And, both the RAM and ROM are NAND. NAND is an architecture. It basically uses NAND transistors.
[GT540 Optimus General] nibras_reeza:
I guess it's 256MB of which 167MB is useable. The rest goes to hardware drivers etc.
[GT540 Optimus General] nibras_reeza:
A simple fix.

http://xdaforums.com/showthread.php?t=1124034
[GT540 Optimus General] Mur4ik:
Just one word - SWAP
[GT540 Optimus General] nibras_reeza:
SWAP is a bit slow for me. After odexing, I'm not having problems anymore.

Thanks for the great work though.
[GT540 Optimus General] Danzano:
How do you set up swap from what I've read there's several different ways what's best?
[GT540 Optimus General] m1st3r1:
here's i think it's the best way:

create swap partition in ur sdcard. best way (for me) is to create it via recovery (cwm). dont forget to backup ur sdcard first.

then type in cmd (or terminal emulator):

adb shell (or su if in terminal emulator)

echo "#!/system/bin/sh" >> /data/local/userinit.sh
echo "swapon /dev/block/mmcblk0p3" >> /data/local/userinit.sh
chmod 0755 /data/local/userinit.sh

mmcblk0p3 means the swap partition is in 3rd partition (fat partition, ext, and then swap, if u dont have swap (fat then swap partition only) use mmcblk0p2

reboot, then type "free" in terminal emulator.

u can use swapper though (by making swap partition first, then configured swapper to use it), the advantage is u can configure the swappiness (number of file that goes to swap), but for me, swapper taking some amount of ram, and i think it's not good.
[GT540 Optimus General] Danzano:
Is it possible to give mybe little more simplified instructions think I stuffed it up so did a wipe and going to try again also mur4iks custom kdz rom the partition one is it best to install that first? Or will swap be fine without it
[GT540 Optimus General] nibras_reeza:
Use swapper 2 from market. Use mini partition tool to create a swap partition in your SD. Search around. You'll find plenty of resources. SWAP would not modify system. Only the SD. It is not a matter which ROM as long as they support swap. If you are on swiftdroid, toto settings > cyanogenmod settings > performance.
[GT540 Optimus General] Danzano:
I'm currently on m6 o/c ill start installing swap etc now :)
[GT540 Optimus General] m1st3r1:
It's simplified enough. Just copy ur sdcard, boot to recovery, pick partition sdcard, choose the size for swap partition. Then reboot, in adb type the codes and reboot again.

Wipe didn't remove the code, even when I remove system, the swap is still active.

I don't use swapper 2 because it takes some amount of ram, and who knows when u multi task much, android can kill it. And I fell swapper slows my phone.
[GT540 Optimus General] Danzano:
I don't have SD card boot I usually fast boot any rom I use
[GT540 Optimus General] Danzano:
Not recovery zip if that's what you mean
[GT540 Optimus General] nibras_reeza:
You are getting it wrong buddy. You have to partition your SD before you activate swap. When you partition, you might lose SD data. So, backup it by copying first. Then, you can use recovery or minitool partition wizard to create partition. Got it?
[GT540 Optimus General] Danzano:
Sorry extremely sleep deprived lately :( got what you mean

Phone not booting into recovery when I choose option just stays on LG logo do I have to re flash?
[GT540 Optimus General] eoghan2t7:
just reflash recovery
[GT540 Optimus General] Danzano:
with swap is bigger better ive got a 16gig and it says i can choose up to 4gig for swap and as low as 128 whats best size i was thinking maybe 1gb sit in the middle?
[GT540 Optimus General] Danzano:
ok so if im not using swapper etc that means i use mmcblk0p3 code not mmcblk0p2 right ?
[GT540 Optimus General] eoghan2t7:
what partition is swap on?
[GT540 Optimus General] Danzano:
all sorted :) now to tweak it all back up give it a few days of use and see what this whole swap things like
[GT540 Optimus General] nibras_reeza:
Don't go over 512MB. Optimus and Android were not designed to use swap, let alone a 1GB one. An extremely large swap would slow things.
[GT540 Optimus General] Danzano:
2gig partition and 256mb swap should I re partition or is this ok sorry still learning all thus stuff
[GT540 Optimus General] m1st3r1:
I have 8 gB of sdcard and made 128 mB for swap partition. And whenever I type free in terminal emulator, the swap won't ever use above 70 MB. I don't know why is that, so I think u should have smaller size for swap
[GT540 Optimus General] Danzano:
Is the amount I have ok or will it slow things down because at the moment I have 86mb free ram and seems to be quick with less crashing?
[GT540 Optimus General] m1st3r1:
in theory, u shouldnt have too big of swap. because the system will prefer to store things (before they go to processor) there. if this happens, the things (process, etc) will be slow, because sdcard is slower than nand ram in the phone. and sdcard is less durable too.

but it's just a theory. if u think ur own settings can truly speed up the phone, u should use that.

for me, i use 128 mB because i dont want wasted space in my sdcard. i put my lossless audio in my phone, and dont forget for cwm backup and gingerbread's app2sd
[GT540 Optimus General] nibras_reeza:
The swap size is entirely up to you but you should keep the swap partition/swap file size to somewhere below 512MB. Preferably around 128MB and do this only if you really need SWAP.

Android has a swapping system very different from the linux swap. Generally, when Android runs out of memory, it kills older processes but before it kill, it allows the app/process to saves it state. So, theoretically, Android would never need SWAP.

However, many of us tend to use multiple apps at once. So, sometimes when switching around, the apps we need might get killed sooner than we want.

Basically, as a rule of thumb, don't use SWAP unless app switching is not smooth for you.

eg:

* You open browser. Browse a site. Now, you go to facebook app to share the link and when you return to the browser, the site you had loaded is gone.

* Your IM app keeps disconnecting because Android keeps killing it to free up memory.

When you enable SWAP, Android will move the app to SWAP instead of killing and saving state. However, Android and GT540 were never designed to use SWAP. Using a large swap would slow down your phone basically because the phone needs to manage the swap.

If your problem is as same as mine where app switching is not smooth and apps keep getting killed, personally, I'd recommend,

* Use autostarts to stop unnecessary apps from starting up at startup and stop unused widgets from updating.

If that doesn't work,

* Use Auto Memory Optimizer to change the Memory Management variables to Android default instead of the one used by swiftdroid.

* If that doesn't solve your problem, odex the ROM.

If you don't want to odex or if odexing doesn't solve your problem, then use SWAP as your last resort.

First enable a small swap of around 256MB on a dedicated swap partition. If you have a lot of free space in swap, slowly decrease it so that your swap usage is around 60-75% of the swap allocated.

I'm using an odexed version of swiftdroid with no swap. I used Auto Memory Manager to use default Android memory management settings. I have no complaints. I can switch between Opera Mini, Facebook, Native Browser and Youtube app with no issues/lags.
[GT540 Optimus General] Danzano:
So in theory it also depends on the class of ur SD I'm using class 10 with SD speed boost I'm guessing if you had very high class SD it would almost mimic band because the nand on this phone isn't exactly super fast
[GT540 Optimus General] Danzano:
Also I thought m6 was already odexed? But will look into changing settings :)
[GT540 Optimus General] nibras_reeza:
J disk is saying optimus internal is slower than even class 2. Can anyone verify this?
[GT540 Optimus General] nibras_reeza:
Its not odexed. I have written a bat scripts and guide to codex. Check it if you want.
[GT540 Optimus General] angemon10:
Thanks ;). I used swapper before it.

Question: how to know if swap is working :confused:?

EDIT

After typing free in Terminal Emulator, I saw swap is used :D.
[GT540 Optimus General] Danzano:
Ill check out odex :)
[GT540 Optimus General] Danzano:
Tinkering with performance settings think I found the sweet spot scored 1166 in quadrant smooth snappy and stable if I odex can it be even better performance if so definitely keen my phone is new quick but quicker again I would be surprised and happy :)
[GT540 Optimus General] nibras_reeza:
First, remember that nobody uses quadrant all day. I'm not sure if odexing will increase quadrant but it will make app switching and boot faster and smoother. Just make a nand backup with recovery and odex it. If you don't like the outcome, just restore the backup. Btw, share your settings here.
[GT540 Optimus General] Danzano:
My settings at the moment :

2gb partition 256mb swap

On demand 656mhz - 825mhz

Jit

Copache compression 10%

Vm heap 28mb (I think)

Surface div off

SD speed boost

Dalvik cache cleared weekly

If there's anything else I can think of ill add also I usually have Bluetooth and wifi running etc
[GT540 Optimus General] nibras_reeza:
How long does your battery last? Your settings are overkill. Lol

You don't have to overclock that much. I used CPU spy and noticed that my phone uses only 244MHz most of the time and 600MHz somewhat often but the in-between speeds were used sparsely. This means that most of the time, 244 is enough. Only CPU intensive apps, probably benchmark tools and games need the higher bands.

Update :

I used performance 600-805MHz with no swap or compcache and scored 1110 on quadrant. I'm eager to see if odexing would give you a performance boost.

Btw, can you try jdisk benchmark? According to it, our nand rom flash is slower than even class 2 SD.

Update 2:

Surface dith : off

Compcache: 10%

CPU 600- 805 performance

This gave me 1129.
[GT540 Optimus General] Danzano:
Usually my battery lasts a day to a day and a half I'm quite a heavy user tho

I'm also keen to odex and see what gains I get also try different partition settings what's the swap and partition sweet spot??

Also if nand is slower than SD than my idea for utilizing the SD memory more is valid :)

Hope we can find best settings for cm7

when and if we change kernal will this mean having to find best settings again???
[GT540 Optimus General] :
If your thinking about using RAM for swap, then its a big fat no, because RAM isn't a filesystem as such.

Jack
[GT540 Optimus General] Danzano:
Not for swap to squeeze out all ram available SD for swap
[GT540 Optimus General] nibras_reeza:
You are wrong. :)

It's called compcache. =)
[GT540 Optimus General] nibras_reeza:
You are write about it if SD is faster but it's not supposed to be like that. Maybe the test we are doing is flawed. Generally, SD is supposed to be slower. If we verify this, we can try moving most apps to ext4, 2nd partition with apps2sd to link2sd.

yes, if the kernel is updated, the optimum settings might become different.

And, I do not use swap. Most of my apps run smooth enough.
[GT540 Optimus General] Danzano:
I keep most apps on SD

Today I'm going to odex m6 or try :)

Is there a tool to zipalign all apps you have installed?

I think swap plus odex plus zipaligned will be very fast
[GT540 Optimus General] Danzano:
Ok so quadrant scores drop once CPU is 844 and up 806 is most stable 825 is stable ish so I think an option for 815 or 830 would be the sweet spot but currently these arnt available

also I'd like to start a custom project to make more CPU settings zipalign every thing on my current system odex the system and create a custom swap of 1gb partition and 512mb swap I think if this can be done it will be the fastest m6 and if the technique for doing it can be perfected we can use on m7 or any newer kernels etc to greatly improve speed with slightly differing variables

If anyone would like to help me achieve this or can teach me how would be great

Any help would be appreciated if this can't be done please explain why but from what I know so far none of what I've mentioned is impossible
[GT540 Optimus General] Danzano:
Is there a newer cwm with more swap options that will work on gt540 I really want 512 swap I think it would be the Max our phone could support but want to see the out come

Like I said I'm gunning for speed but stable speed :)
[GT540 Optimus General] nibras_reeza:
Check out my guide in signature. It does the zipalign for you
[GT540 Optimus General] nibras_reeza:
I don't think CPU speed could be modified just like that. And, swap will slow you down after a certain point. You could always try experimenting. ;)
[GT540 Optimus General] nibras_reeza:
Cwn has nothing to do with swap. Use minitool partition wizard on your PC to partition SD.you might need a card reader which could be bought for1-2$
[GT540 Optimus General] Danzano:
I used cm to partition but will try PC version

Just more CPU settings more frequency options

And as for zipaligning ill try you're technique :)
[GT540 Optimus General] Danzano:
If I use PC tool how do I set swap size?
[GT540 Optimus General] Danzano:
Is this maybe to do with kernel or framework?

If mur4ik was to do a re write with swap and zipaligning in mind would we be able to use bigger swaps or more compache? Or would we see a significant difference?
[GT540 Optimus General] nibras_reeza:
Not all frequency bands will work. There are specific values that you can set. CM lists only supported values. You may try cpu master which also detects supported values.
[GT540 Optimus General] nibras_reeza:
Simple. You make a fat32 partition, an ext partition if you want apps2sd scripts or link2sd and a swap partition. You can specify any size for these three partitions. All three partitions should be primary and you should follow the order. 1st partition is fat32. 2nd ext. Last swap.
[GT540 Optimus General] nibras_reeza:
Like i said Androiddoes not need swap. Android is not linux. Its a linux fork.

Further, most mobile apps wont use more than 20MB RAM. Do you think youvare going to use 25 apps at once on your mobile to use all that swap?
[GT540 Optimus General] Danzano:
20 tabs in browser plus music fb SD speed boost etc like I said I should save for another phone but this ones a good learning curve :)
[GT540 Optimus General] nibras_reeza:
Holy ****. How can you browse that much on this small screen? :/If you use only these 3 apps all the time, you can use a memory manager to keep those apps alive all the time.

If you want to browse that much, get an archos 101 or nook color.
[GT540 Optimus General] Danzano:
Usually 4 5 apps but always atleast 3 I'm generally out and about so treat phone as mobile PC

This is why dual core 1gb ram icecream driven phone will be my next upgrade lol hoping one is realesed end of year by LG
[GT540 Optimus General] nibras_reeza:
I wish I had enough money to go out and buy an optimus 2x =P

If you are up for it, wait for that some new phone by Asus.. PadFone.. xD

It's my dream phone.

http://www.crunchgear.com/2011/05/3...nounces-its-android-tabletphone-combo-videos/

The problem with phones is small screen. I mean even Optimus can do everything I do on my PC and sometimes even faster than my PC. However, the screen is a real pain. I need at least 12 inches.
[GT540 Optimus General] Danzano:
It's a cool idea. Charge battery etc

:)
[GT540 Optimus General] nibras_reeza:
Yes but I doubt it will come out this year.
[GT540 Optimus General] Danzano:
Lets hope this idea takes off though cracker of an idea and will increase useability for alot of people
[GT540 Optimus General] nibras_reeza:
It took off already. It's more than a concept. It's an officially announced phone. =)
[GT540 Optimus General] Danzano:
Awesome!!!!!!

Guess we all know what you want for Christmas then ae :)
[GT540 Optimus General] nibras_reeza:
Hmm. I guess I'd love it. lol

I'm most probably planning to trade in my gt540 for a dual core phone around black friday. ;)

I bought my phone through a friend on vacation on US. Tax free off Amazon for 175$. The phone still costs around 270$ where I live. I guess I can sell it for the price I bought but the problem would be finding someone to get me another phone tax free.

I have had some really bad experiences buying newly launched phones. The price drops far too quickly.
[GT540 Optimus General] max1919:
270$?! In my country price of new gt540 is around 150$ and generally in Croatia phone's prices are high.
[GT540 Optimus General] nibras_reeza:
Hmm, that can't be high. Even in USA, 130$. How much is Optimus 2x and galaxy s 2?