yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] jinx10000:
I have two widgets on my desktop that always take several seconds to reload when exiting browser etc. Now with the swap partition they are always there when exiting even cpu intensive processes.

3.5 is much faster and more stable than anything else I have tried and with this swap method nothing is slowing it down.

Truly awesome.

Only question: Will using the swap partition be likely to kill the sdcard, and if so about how quickly? Unless it is really quick to kill the sdcard, it is probably worth it...
[G1 Android Development] cyanogen:
I've thought about enabling swap automatically if a third partition is found, but I'm still not sure about how safe it is for an sdcard. I run it myself and haven't had issues yet, though.
[G1 Android Development] farmatito:
Just out of curiosity, why couldn't this be done in a more standard way, e.g.:

1) let the user decide if he wants swap on file or on a partition

eventually through a GUI a la a-swapper and setup the swap file or partition

accordingly.

2) add /dev/block/xxxx or /sdcard/swapfile.swp to /etc/fstab

3) at boot in init.rc call swapon -a

4) at halt or reboot call swapoff -a

5) eventually patch vold to do swapon/swapoff when card is removed or inserted

With your method you assume that /dev/block/mmcblk0p3 IS a swap partition

but you cannot be sure and could overwrite the data of a user running a card

with 3 partitions with mkswap followed by swapon. In theory it should be safer

to call only swapon in your script:

swapon: /dev/sdg1: Invalid argument

as it will fail on a partition that was not correctly setup as swap space

(missing swap signature) saving user's data.

Just my 0.2 cents.

farmatito
[G1 Android Development] Chahk:
Your card will die in 5... 4... 3... 2... just kidding ;)

I stopped worrying about the lifespan of my SD card when I saw how cheaply they sell on eBay. I figure by the time it dies, 3 things will happen: (1) new cards with more capacity will cost even less, (b) someone will finally fix the "Backup for root users" app so that it properly restores stuff, and (III) I will probably move to a newer phone anyways.

Good stuff here. You should post this to the "swapper" thread so that the author builds it into their app.

Thanks for the tips, I'll take out the "mkswap" command. But seeing as I'm configuring this for on own phone, I'm not really making any assumptions because I know which partition is what since I formatted the card myself. Someone who'd want to do this on their own device, but may have set up their card differently, would definitely need to be careful.

[Edit]: Also, how do you execute commands on halt/reboot? Via init.rc as well?
[G1 Android Development] jinx10000:
Thanks for the info. For the decrease in load times that I am seeing, I think it is worth the risk to the sdcard.

I back up often anyways.
[G1 Android Development] farmatito:
I suspect that commands could be run only on boot as android

does not use runlevels........ ;-), was just wishfull thinking

......... unless some fearless knight substitutes android's init with a real init,

maybe busybox's init.... I wonder if this could be attempted in the emulator ???
[G1 Android Development] cyanogen:
I added some stuff to this ROM to run a system service when shutting down or rebooting. The service calls /system/bin/shutdown to do the work. So instead of just killing the power, we actually stop the Android runtime, remount the filesystems readonly, then actually do a poweroff/reboot.
[G1 Android Development] mianosm:
I've been using the 3.5 for near 2 days now...No issues that I can dig up.

Using your theme template I was able to make a nice Black/Aero theme (in signature).

I can't seem to figure out what I'm messing up that is causing the IM apk to go bork on me though. : (

Thanks a ton cyanogen.
[G1 Android Development] cyanogen:
I compressed /system/lib with cramfs and can't see any performance hit.

/system: 69120K total, 52008K used, 17112K available (block size 4096)

Very nice :)
[G1 Android Development] bkmo:
Very nice indeed. BTW I have the HTC Music player installed and working on 3.5, swap partition enabled, and v2 audio mod, and it runs real sweet. Thanks again for the great work.
[G1 Android Development] dwang:
So I'm guessing your planning to add the htc libraries?
[G1 Android Development] bkmo:
http://xdaforums.com/showthread.php?t=530572

Stericson has done it supposedly with google libraries using a converter that JF worked on. Check the above thread. There is also an update.zip posted on the thread so you dont have to push any files. It looks and runs great.

Bkmo
[G1 Android Development] cyanogen:
Stericson's hack is a great one, but I don't think I'll be including it. I don't really like that music player. Like most stuff from Hero, it's clunky to use and slow. I prefer the stock music player. Just my opinion :)
[G1 Android Development] simms22:
does it really take up 39mb memory ??? i dont run apps to sd but would like to try it ....
[G1 Android Development] temporizer:
So far, since my last episode, it's working great!
[G1 Android Development] bkmo:
Beagz has a link for an update.zip he created that will install the music player. It is only a 6 meg zip. This only installs the necessary files. The link is in the thread.

BTW I agree with you Cyanogen, leave it out because it can always be installed later if that is what you like. The same goes with the audio mods, etc.
[G1 Android Development] MontAlbert:
i think including it is a great idea- if people have a third partition then they are obviously happy with the risk on the sd card. If they dont have a 3rd partition then it wont happen anyway.

I like the idea of it doing everything automatically.
[G1 Android Development] t1h5ta3:
im thinking thats a great idea. swap file is small, make the partition ok size, new cards have wear leveling... shuld be a relitive non issue...:cool:
[G1 Android Development] Ryanmo5:
You are dead on man, i love the default music player and it actually runs without having to wait 20 seconds! Now the contacts widget would be really cool but not sure if its a possibility.
[G1 Android Development] jinx10000:
The great things about your builds are their speed and stability.
[G1 Android Development] JanetPanic:
I second that.
[G1 Android Development] here.david:
If this keeps up I'll have to buy you even more beers....I also agree with your keeping the stock music player...:cool:
[G1 Android Development] ShatBag1105:
Ive ran into this problem with almost every upgrade ive done. the way i solve it is uninstall HTC_IME with astro before flashing new build. That fixed all my problems like prediction turning itself on and off, lag, and touch input settings not saving after a reboot. This works for me. :)
[G1 Android Development] All~G1:
+1 and thats after going through a "coma" spell just now.

I noticed that my phone was trying to sync for about 2 mins before it went into "coma".

Still loving the ROM though.
[G1 Android Development] b0ricuaguerrero:
anyone having issues tethering with anetshare?

im tethering right now with my lappy with wireless tether for root @ work being that my job has xda blocked.

i really don't like it because i cannot surf when i enable access-control so basically i am vulnerable to being leeched.:confused:
[G1 Android Development] cyanogen:
Next build will have the extra netfilter modules and the backported ext4 patches, and some other goodies :)
[G1 Android Development] stellarman:
I have the same problem with Messaging / IM, and have posted about it a couple of times in the last ten pages. If you figure out what is going on, please let me know. (I haven't gotten any ideas from anyone in this thread so far.) App force closes every time I try to open it. I too am using a theme. But I had the same problem when I was on a pure CM 3.5 install yesterday and the day before. If I could find a copy of the app somewhere, I would uninstall and re-install.
[G1 Android Development] ShatBag1105:
Easy flash.

No wipe.

Works flawlessly.

Loves Cyanogen.
[G1 Android Development] BattousaiTMS86:
Love your work

Keep up the good work and enjoy your beer!!!!!
[G1 Android Development] ubernicholi:
​

Mount system as read/write and navigate to system/media/audio/UI and delete or rename camera-click.ogg

That will remove one of the shutter sounds.
[G1 Android Development] ScottGood:
Whats the Command for remaning a file?
[G1 Android Development] ubernicholi:
You can use mv

Mv cameraclick.ogg camerclick.ogg.bak
[G1 Android Development] blackomegax:
Maybe a bug?

I let my battery die the other night and when i turned it back on. gallery was *gone*. but everything else was fine.

I have since wiped and re-flashed, this time without entrusting anything to SD.
[G1 Android Development] ubernicholi:
Are you using ext4? If so maybe you had a bad unmount, problem with .29 and etx4 I think. Use ext3
[G1 Android Development] cidica:
Let mine die lastnight and recharded it today but no issues on this end with gallery.
[G1 Android Development] Stretch3000:
Thanks I'll try it.
[G1 Android Development] dwang:
swappiness values

I've been playing around with the swappiness values for my swap partition and I have observed that I see a noticeable performance boost if I set the swappiness value to 100.

Just to review what the swappiness value does is that it is used to define how aggressively memory pages are swapped to disk. So the higher the value, the more aggressive the kernel moves unused memory pages to disk.

So a value of 100 tells the kernel to be extremely aggressive in moving memory pages to disk.

So what I've observed is that switching between apps takes slightly longer, but once you are in a app, the UI is very responsive.

This makes sense because the kernel is being aggressive in freeing up unused RAM for the application that is currently running to use.

I will continue to run swappiness at 100, and observe the performance of the phone. It may be that performance will start deteriorating over time.
[G1 Android Development] bubz:
No Weather Too

I'm having the same problem. I wiped before I updated, so I wonder why nobody else is getting this.
[G1 Android Development] nxt:
Run gparted again, and shrink your fat32, then extend the ext3. It's simple.
[G1 Android Development] ronyoung08:
cyanogen,

for your rom what spl and usb drivers do you use for this rom?

trying to get adb, but for some reason with haykuro's spl and his updated usb drivers i cant get the driver to update... so cant use adb.

***if this is the wrong place to ask... just delete it i guess...
[G1 Android Development] cidica:
rofl I just ran into that issue as well here. trying to figure it out no luck so far.
[G1 Android Development] Denkai:
HardSPL is all that is need. as far as drivers, delete the drivers that your system has installed and use the specific ones for your system from the SDK.
[G1 Android Development] blackomegax:
It was a 195MB EXT3 partition on a 2gb card.

every other app on the card worked, but gallery was simply *missing*, except for the icon.
[G1 Android Development] ubernicholi:
Reflash 3.5 and see if its there again. If not wipe install 3.4.6 and install 3.5 without wiping
[G1 Android Development] cyanogen:
I just posted 3.5.1 with some fun stuff. See the first post for the changelog.
[G1 Android Development] blackomegax:
way ahead of you. i wiped, flashed 3.5. popped SD out. and its perfect again.
[G1 Android Development] Denkai:
uploading the new version right now, let you see how it is. I'm still on ext3.
[G1 Android Development] MontAlbert:
if i just want to change the clock colour in the status bar to white is it a single file swap?

happy with 3.4.6 but i think i might try out 3.5.1 (only if i can theme it)
[G1 Android Development] cyanogen:
The next thing I'm thinking about is using Linux cgroups to control background task priority. I don't want the user interface to become choppy or music to stutter when user-installed background apps are doing stuff. Core system apps should usually have higher priority. There is a lot of work that can be done in this area I think.
[G1 Android Development] cyanogen:
Ext3/Ext4 would have nothing to do with that, because it's on /system/app (yaffs2). Not really sure what could have happened.
[G1 Android Development] dynamisoz:
would i need to wipe coming from 3.4.4
[G1 Android Development] cyanogen:
You might want to upgrade to 3.4.6 first, then upgrade to 3.5.1 if you don't want to wipe. There is a script in 3.4.6 that cleans up a shared user in packages.xml for the new HTC camera/album to work.
[G1 Android Development] cidica:
cool that worked thanks. Now to see if fastboot will work with those drivers with the hard spl that I use.

Edit

Yep now fastboot will not work. So this sucks but whatever adb is working which is what I needed for the most part. Just not changing my bootscreens all the time. Not that I change them much anyways.
[G1 Android Development] Denkai:
running smooth and great like always. any tests you'd like me to run?
[G1 Android Development] SpyderMS:
LOL, I just updated to 3.5 less than an hour ago... oh well :D

Any reason the Hero theme would mess with this? And I see you've changed something having to do with the CPU clock... would the overclock widget, or any other overclocking app out there for that matter, have any adverse effects on this, or vice versa?
[G1 Android Development] ubernicholi:
This build is scary fast :o

Will run through my normal test ant let you know of any issues.

So far. Everything is quicker. And stable so far.
[G1 Android Development] MontAlbert:
ok. did a bit of searching- if anyone needs to do this just add the services.jar from this thread http://xdaforums.com/showpost.php?p=3724349&postcount=1

haven't done it myself yet....will do very soon... will this alter anything u have done cyanogen?
[G1 Android Development] cidica:
you need one of the modded hero theme zip files. Since the camera was changed a few ppl redid the theme real fast and removed the camera.zpk from it and it worked. Other then that hero theme works fine with 3.5.x
[G1 Android Development] cyanogen:
There is a patch to fix the ExtUSB headset that lives in services.jar. Not sure if the file from that post has that fix or not.
[G1 Android Development] cyanogen:
No, I just raised the sampling frequency to reduce latency.
[G1 Android Development] SpyderMS:
Hmm, I'll have to remember that for next time. Not a huge deal for me as I use SnapPhoto Pro as my default camera.

Excellent, thanks!
[G1 Android Development] cidica:
wipping and dropping 3.5.1 now. I don't really expect many issues it's a cyan rom....
[G1 Android Development] dwang:
I'm finding 3.5.1 very choppy and laggy. Swapping between screens is laggy, scrolling in the browser is choppy. Bringing up menus has a noticeable pause.

And this is with NO swapfile. Its even worse if I turn on my 16meg swapfile.

wifi seems slower as well. UI seems less responsive.
[G1 Android Development] _Kyros_:
The Camera and Camcorder doesn't come out of Greyscale when changing it to None for Effect, both Sepia and Negative work and obviously Greyscale and you see this quick change when 1st opening camera from Normal to Greyscale.
[G1 Android Development] SpyderMS:
Hmm, no problems like that at all here... UI is just as fast as before, Browser scrolling smooth, UI responsive, and I'm not using any swap file.
[G1 Android Development] MontAlbert:
thx mate- no big deal for me- i never use the headset....
[G1 Android Development] _Kyros_:
Did anybody else's Internal Memory go down? I'm not using apps2sd and I had 42 MB before installing this and now I have 25 MB.
[G1 Android Development] cidica:
87 meg here on a fresh install so about the same for me (apps2sd though here)
[G1 Android Development] ubernicholi:
Common issue. Reset your camera settings. Menu --> settings--> reset to default
[G1 Android Development] _Kyros_:
Ok, that fixed it thanks.
[G1 Android Development] temporizer:
downloading now. flashing in a minute. i'll post any bugs, if any.
[G1 Android Development] dwang:
Ok figured out what was slowing down my phone with 3.5.1 (it wasn't my imagination).

I'm using the "adfree" app, which modifies the /system/etc/hosts and adds a huge list of advertisers. So instead of the hosts file being 2k, its now 520k, which means every time the hosts file is accessed, squashfs has to decompress that, which slows the crap out of the phone.
[G1 Android Development] mexpress22:
I am having an issue where my ringer volume keys, when used while rcving call, will completely disable sound until call is answered/hung up. Any help would be great....ty
[G1 Android Development] cidica:
ok 3.5.1 installed with hero theme now and working just fine. First boot was a lil slower like you said but not that big of a deal. Ok noticing a few slowdowns myself. Not using addfree either. Adding pic with picture frames to the homescreens is a bit laggy more so then it was on 3.5. honestly think the cramfs was a better idea then squash.
[G1 Android Development] cyanogen:
/system/etc isn't on squashfs.
[G1 Android Development] ronyoung08:
i see people talking about going from ext2 to ext3 on your rom....

do they make an ext3 partition first.. or does your recovery image format your ext2 to ext3 without losing files?
[G1 Android Development] dwang:
Ok, but I'm sure adfree is what was the cause of the slowdown in 3.5.1 for me. Once I reverted hosts, 3.5.1 became speedy again.

Can you download "adfree android" by bigtincan.com from the marketplace and try it out?

Some library in /system/lib must be accessing the host file and causing the slowdown I guess.

Thanks,

Dave
[G1 Android Development] MontAlbert:
so u just uninstalled adfree?
[G1 Android Development] dwang:
No, I did a revert back to the original hosts file. Its an option in the app.
[G1 Android Development] DavidChill:
Just wiped and flashed and all seems to be working fine. Tested out a few apps, my usual after flashing a new ROM and noticed when I went to the Market that I was not getting an updates on my apps. Anyone else seeing this?

Other than that, it's an A+ quality ROM! Always top of the line work from The Great Cyan!

***EDIT***

Okay, so I did a restart of the phone after it sync'd my contacts etc etc etc. Went back in to check the apps in the Market and was seeing them all update now. And when I started downloading the updated version of apps, I think I noticed them downloading faster hehe. :)

So... No bugs. :)
[G1 Android Development] cidica:
you can drop down into console mode in his recovery image and do upgrade_fs it upgrades ext2 to ext3
[G1 Android Development] ronyoung08:
ok sorry im a noob...

so just make an ext2 partition... then do what you said it it makes it an ext3?

or would it be better just to partition my card to ext3 now?

and will it already know if i have ext3 with doing the upgrade when i using the recovery image to push apps 2 sd?
[G1 Android Development] cidica:
just make it ext2. drop to console do upgrade_fs. Now you might have to do upgrade_fs 2 times (I did but was no biggie) after that just reboot the rom and goto the homescreen everything will have been done and you are now on ext3and yes it will know if you have ext3 or not.
[G1 Android Development] Amdathlonuk:
I've had NO ISSUES coming straight from 3.4.4.

EVERYTHING is working just dandy at the moment.

I only had to re-install my prodigal sun theme and delete my current gallery shortcut on the desktop and drop the new one on.

Top upgrade so far, battery life is Waaaay better as well!!
[G1 Android Development] anthonws:
Excellent Rom!

This one (3.5.x) is going directly to number 1 in my rom chart :)

Best of luck,

Anthon.
[G1 Android Development] nurre:
Yes it would be.
[G1 Android Development] cidica:
Just got my first coma. was unable to pull a logcat though. funny thing is it happened just like others have said got a txt message and iggnored it for a few went to read it and phone would not wake up.
[G1 Android Development] farmatito:
Hi,

/system/etc/fstab reports wrong fstype?

Shouldn't it be squashfs rather than cramfs?

Isn't /system/lib missing?

/dev/block/mtdblock3	/system	yaffs2	rw
/dev/block/mtdblock4	/cache	yaffs2	rw
/dev/block/mtdblock5	/data	yaffs2	rw
/system/modules/modules.cramfs	/system/modules	cramfs	ro,loop
/system/xbin/xbin.cramfs	/system/xbin	cramfs	ro,loop

Just my 0.2 cents.

Ciao,

Tito
[G1 Android Development] MontAlbert:
so, i just flashed 3.5.1. coming from 3.4.6. I must say i am very disappointed... according to the title of the thread this is a scary experimental build....

nope... none of the sort-

stable, fast build is what i call this- i themed the update file, added volume hack v2, flashed. got the usual toggle settings force close when booting up . No other force closes at all. All apps i have tried so far work great. market downloads and installs fast....

thanks for a great build...What exactly does a build have to be to be called stable?
[G1 Android Development] kingsizeriz:
flashed 3.5.1 from 3.5, gotta say i love the new lock screen

- keep up the good work! no bugs as of yet :)
[G1 Android Development] df9517:
Thank you Cyanogen. No coma issue for 48 hours. Case closed.
[G1 Android Development] azimsu:
for me 3.5 was the best so far...no coma,no issue. i`m using Ext3 for now but 3.5.1 makes me dissappointed. i always wipe before upgrade but 3.5.1 makes my phone slow,lag all over the place...a bug found on auto rotate home screen..anybody got this bug? anyway 3.5 build was awesome..thanks cyanogen!
[G1 Android Development] kingsizeriz:
Auto rotate on home is a lil slow thats all i've found
[G1 Android Development] ScottGood:
I just moved from 3.5 to 3.5.1 and I'm getting a lot of force closes on boot up, but so far once they clear out its all good. will report more later.
[G1 Android Development] daveid:
Damn.. that flash went pretty darn quick there. First bootup took my phone a little longer (dalvikvm had to rebuild the cache) than a normal boot (but that is to be expected with a new update). All told from the time adb picked it up to idle at the desktop - about 6 minutes. K9 and Touch Input timed out (I just force closed them) on first boot - if they (or others) do this again, I may try to run fix_permissions - think that'd help? All in all, very smooth update.

BTW - coming from 3.4.6.
[G1 Android Development] ronyoung08:
just flashed 3.5.1...

now I have 2 gallerys...

anyone else?

fix?
[G1 Android Development] mascian:
Hi cyano, and thanks for your great work! Very Compliments...;)

I flashed 3.5.1 after wipe and fat_32/ext3 format (fat_32/ext3 partition formatted with Acronis, then I made "upgrade_fs" in Recovery for fix).

Fat_32: 6130 Mb / 5781 Mb.

ext3: 1474 Mb / 1343 Mb.

Internal: 82 Mb free.

Running smooth and great like all your fw. :)
[G1 Android Development] here.david:
I followed CM-twice update advice....1st boot slow (=<6mins), thereafter normal. 1st boot had forced closes, twice re-booted and wait for Home screen to load everything...now (past 18 hours no forced closes) all is currently well...tethering, sound, camera, etc all working..... :)
[G1 Android Development] robbie725:
are you using any themes?
[G1 Android Development] .PaNiNi.:
im flashing now will let you know my thoughts :-D
[G1 Android Development] ronyoung08:
htc hero 1.3.5, but got 2 galleries before the hero theme install
[G1 Android Development] Stretch3000:
Since 3.5 no coma issues. Just flashed 3.5.1 so far so good.

Autorotation a little slow but I can deal with that. Excellent job.
[G1 Android Development] .PaNiNi.:
so far so good i will play more with it
[G1 Android Development] SimonNWalker:
I got 2 Galleries after installing the Hero Theme.

Must be theme related.

Is there an easy way to remove a theme ?
[G1 Android Development] daveid:
Re-flash 3.5.1.
[G1 Android Development] cyanogen:
Oops, forgot to update that. Only used if you mount manually, though.

I do use Adfree. I agree that 3.5.1 isn't quite as smooth at 3.5. I have an idea why though. Testing some stuff now :)