yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] romanr:
+1 about swap, it really makes the things go faster

But actually there is no need to make a separate partition for swap - one can make just a file (/sdcard/swap) and use it as swap space (swapon /sdcard/swap), also it is possible to add it to /etc/fstab.

# making new swap space
dd if=/dev/zero of=/sdcard/swap bs=1048576 count=128 #makes 128M swap
# init swap space
mkswap /sdcard/swap
# enable swap space
swapon /sdcard/swap
# disable swap space
swapoff /sdcard/swap

IMO, this approach is more flexible since it's possible to add and remove several swap spaces on demand.

swapon /sdcard/swap1
swapon /sdcard/swap2
swapon /sdcard/swap3
...
swapoff /sdcard/swap1
swapoff /sdcard/swap2
swapoff /sdcard/swap3

Any time, one can shut down memory-consuming applications and disable some swap space (file), then delete that swap file and reuse freed space. We have zero access time for sdcard, so there is no performance penalty using several swap spaces on a single disk.
[G1 Android Development] rbotix08:
Yes! i have actually had this problem one time before. it seems working now. I also had the problem of the touchscreen not being able to deactivate the screen timeout. so when you type with the softkeyboard, the screentimeout would still go on as if no actions are happening on the phone. my next problem is with handcent sms just closing itself when selected. im a noob at rooting and i learned the hard way but now starting to pick up bits of info and im starting to actually appreciate all the language and vocabs you're using. btw, seems that rebooting the phone makes these things go away "FOR AWHILE".
[G1 Android Development] dead2hill:
@skirki

Its not windows 7 I have XP on laptop it worked with no adjustments, on desktop it asks for new driver
[G1 Android Development] skrki:
I "fixed" the first one by deleting some userinit.sh I've been using, now it works alright.

About the wake lock (had that one too :D):

http://code.google.com/p/cyanogenmod/issues/detail?id=560

http://code.google.com/p/cyanogenmod/issues/detail?id=457

Steve calls it fixed, we'll see what happens in 4.2.6...
[G1 Android Development] landstander:
What happens when you mount the sdcard to a PC? Wouldn't that pull the swap areas (both partitions and files) out from under you, or is the system smart enough to automagically run swapoff first?
[G1 Android Development] Fedburin:
Search bar problem

When I try to search the "Security & Location" pops up and ask for me to enable "Share with Google". I try to enable it; however, it will not stay checked. Additionally, "Use secure credentials" is checked; however, it becomes unchecked upon reboot. I cannot use the search function as it repeatedly pops up and the setting is not persistent. I am not running any theme and I have tried fix_permissions from recovery and the console. To install this build I wiped and reinstalled everything including the SD ext. Any ideas?
[G1 Android Development] TheBigCheese0:
What exactly are the changes made to the music application stated in the changelog?
[G1 Android Development] skrki:
Why do you want to do this? I don't see any real benefit...

Anyhow, host names can be set in /etc/hosts, this is how it works in Linux distributions. For example, I set my computer name on the network, and tell Linux to write it into hosts file. After having set it, I check the contents of /etc/hosts and see something linke this:

127.0.0.1 localhost
192.168.0.1 router
127.0.0.2 my_laptop.site my_laptop <-- this is the host name

So, I tried doing something similar on CM. And now, what is supposed to be the benefit? My router still doesn't see the name of neither my laptop, nor my phone in the DHCP client list. Maybe you can get some idea from this, and take it further?
[G1 Android Development] jaaronmoody:
i replied here.. http://xdaforums.com/report.php?p=5028224
[G1 Android Development] skrki:
If you are using a swap partition, you don't have a problem, because Windows mounts only FAT32, since it doesn't see the others.

Linux mounts both FAT32 and EXТ. Swap partition is not mounted, because of it's special properties, so your phone doesn't do swapoff in this case, and just keeps using it.

In case of the swap file, I can't say what will happen because I never was interested in using it. The only real benefit is the one pointed out by romanr.. flexibility of swap space size. There is a downside to it too, it still resides in FAT32 space, in which case you have to take into consideration exactly what you pointed out: What happens when you dismount FAT32 from the device?

Another thing which needs to be taken into consideration is the fragmentation of FAT32. Swap file that is made in fragmented space will perform a lot worse than swap partition, so if one does a lot of deleting, adding, or modifying FAT content, then the card will likely be fragmented, so the swap file will not be optimized.

What I would do, if I wanted different swap sizes, is I would make 2 swap partitions. Yes, I would waste some space, but I could care less (on an 8GB card). Then, when running CM I would use a swap of, say 32 or 64 megs, and when running Hero or Sense I would switch, and use the other one of, say 128 megs.
[G1 Android Development] Picolini:
Just installed 4.2.5 coming from a 4.0.x or something version. Love the improvements!

However, and I'm sorry if these issues have been adressed and solved but searching didn't help, I've got two problems.

1. I use Handcent as do plenty of others. I've turned on Handcent's notification and turned off the standard messaging apps notifications. However the standard one still shows in the notification bar. When I click the notification to view the text in the standard sms app it leaves the notification but says "you have 0 messages unread" so the notification stays until I click Clear.

Very annoying.

2. Turned on haptic feedback in Spare Parts... doesn't work!

edit: After having manually restarted about an hour before and using the phone pretty much constantly (installing and running many apps) I opened up Slide Me and it just rebooted the phone. Seems like reboots on these current ROMs are a consistent problem?
[G1 Android Development] mssmison:
an important note about using a swap file, it's a good idea to make your init delete it and recreate it on boot. Too many write to the same sectors on the sdcard will cause it to fail. I still do think though that a swap file is better than a swap partition.
[G1 Android Development] gyorik:
Thank you for your reply,

You get me wrong. In my work, we use dnsmasq for dns/dhcp service(for 200 clients). The dnsmasq config file has generated from a sql database. The clients get the correct ip from dnsmasq if the hosname is send. But the G1 sends only an asterisk(*) character. In the standard linux distro the dhclient.conf contains the correct hostname(send host-name "x.y.org"). In the JF 1.51 the init.rc file contains the hostname(G1). But in the CyanogenMod that does not work. Where can i set the hostname in the CyanogenMod that my G1 send its hostname to the dhcp server?
[G1 Android Development] PsychoI3oy:
the files in /system/etc/init.d/ are executed at boot. You could add it there or in a userinit.sh file at /system/sd/
[G1 Android Development] gyorik:
Thank you for your reply,

You won the match. :) I create the userinit.sh that contains: hostname xxx and it works.

Thanks
[G1 Android Development] htc_best:
hi there, got a problem i cant send and recieve mms, but i have the right mms apn. Somebody with the same problem
[G1 Android Development] jone_cage:
Need Help,

I have followed the manual as it says on http://wiki.cyanogenmod.com/index.php/Full_Update_Guide_-_G1/Dream_Firmware_to_CyanogenMod

I have installed RC 29 and cm-recovery-1.4.img.

Then i tried to update to CyanogenMod 4.2.5.

After I make the last reboot I can see the loading logo after some time it diapered and next thing is the BLACK SCREEN, Maybe someone found some solution for this problem ?
[G1 Android Development] skrki:
Does your MMS access point require PAP authentication? You might need to ask your provider... Also there's an issue with PAP it seems:

http://code.google.com/p/cyanogenmod/issues/detail?id=769

I've had problems with MMS (and I think I still can't send one). I've given up since 4.1.9999 or something, but now I set it up, and sent a couple, so I'm waiting to see if the people received them.. though I doubt it. You should perhaps ask your question in this thread:

http://xdaforums.com/showthread.php?t=540651

Provide as much information as you can, like a logcat, your device information, etc, otherwise your question will likely not get answered.
[G1 Android Development] jeremycool:
I don't know if its just me, but my screen timeout keeps switching to 15 seconds constantly.
[G1 Android Development] :
Just wonder, what's keeping Cyan's from releasing a "true" 2.0 ROM...?
[G1 Android Development] PsychoI3oy:
why wonder when you can search or read or look at his twitter?

what's keeping him from releasing is the lack of 2.0 compatable drivers from qualcomm/htc. Also, we'll need a 2.0 base to flash CM over.
[G1 Android Development] dekeijzer:
Not enough hardware support.

Would be pretty sucky to use basicly.
[G1 Android Development] Charrion:
2.0 on G1? Don't hold your breath.

Crap, I forgot about that. Otherwise we'll lose all the eclair based Google apps. And in order for CM to stay legal, that will be a deal breaker if HTC doesn't release an ADP image.

I guess we may just have to be satisfied with whatever bits of eclair Cyan can backport to 1.6.

That kind of sucks since the only phone even remotely 2.0 compatible available here with Rogers is the LG Eve and it comes stock with 1.5 and Rogers and LG have no plans to update. And noone has managed to root it yet.

Hopefully Cyan can backport the browser and the lockscreen from the AOSP version, those are the only parts of Eclair I'm really interested in, aside from performance enhancing bits of course :)
[G1 Android Development] Carloswithac:
HTC hasn't released the drivers.
[G1 Android Development] bowlofturtle:
someone help me noob-ness out please.

So i ran 4.2.4 on mytouch and then downloaded a couple apps. Now i updated to 4.2.5 and finally formatted my SD to allow for App2SD. Anyways, now is apps2sd suppose to work now in my case. Am i suppose to uninstall the apps i download prior to me formatting the card or will it do it on its own. How can i confirm the APPs are going into my SD and not on the phone.

Also i wanted to confirm i did format my SD card the right way. which pretty much is, use a partition program. format the main partition as FAT32 and then format a 2nd part of 1.4GB as linux ext2
[G1 Android Development] Picolini:
I want to mention another thing.

It seems like the browser doesn't get enough memory. Pretty much every time I back out of the browser, even for the smallest thing and open the browser back up it loses the previous page, or at least reloads the current page. This happens WAY more than on the previous version I had installed (4.0.x or 4.1.x, don't recall exactly).

Just bringing this issue up.

I haven't had any crashing problems since the one time I said in my last post though.
[G1 Android Development] delgotit99:
Love 4.25

Lurker noob here and finally made the jump from 4.04 to 4.25 and love it. I just followed these simple instructions and it worked great with only one minor snag.

I started from step 5 below because I already had the first 4 done.

http://wiki.cyanogenmod.com/index.php/Upgrading_From_Older_CyanogenMod_or_other_rooted_ROMs

The only snag I had was I needed to change the name of signed-dream_devphone_userdebug-ota-14721.zip to update.zip and then selected apply update.zip from the boot menu. After that everything went just fine and google navigation works perfectly. Thanks for all the support.
[G1 Android Development] no6969el:
your saying you had to do this even though you are on CM's newest bootloader or no? Cause he as teh apply ANYZIP feature... are you saying it didnt work when you did that cause that would be strange!
[G1 Android Development] cesarb:
cyanogen mod 4.2.5

I have been running cyanogen latest version for a while now and i love it. Up untill Google released the new version of maps before Thanksgiving. I tried to update the software and I could not insltall it cause it said that it was written incorrectly. Now I noticed that the old version of maps has dissapeared from my phone and cannot download it from the market place cause says that it is not compatible. Yesterday night I was inputting some codes on the emulator cause l saw in a forum a way to install the new maps with navigation but i was having some trouble getting it done. I dunno if that has anything to do with it. Please help. Should i just reinstall a fresh coy of the mod to see if that fixes my problem? Thanks....
[G1 Android Development] smuvman:
apps2sd

Go to settings then sd card & storage. If u see secondary storage that means u have apps2sd correctly working. U typically only need about 600-700mb of ext space. I formatted mine to 500 and with 265 apps I only have 130mb left. Lol hope that helped. Also the appss u downloaded should automatically be moved to your ext2. U should create a signature with your info so in the future people will know how your phone is set up. Look @ mine or oters for ans idea on how to do it. Trust me it'll save you ALOT of flaming!
[G1 Android Development] kyleds:
louder

anyway to get this rom to be louder. I have the extended battery with the bigger case and it makes the volume so quiet I can barely hear it at full volume. My computer broke so I can't do the volume hack thing.
[G1 Android Development] delgotit99:
sorry deleted...more accurate response is below.
[G1 Android Development] androidmonkey:
Anyone else have a lag problem? I havent installed any apps yet and just placing a phone call is slow. Sometimes I accidentally turn the phone in landscape and it locks up when changing to landscape mode.
[G1 Android Development] axion68:
Finally fixed my lag issues. Flashed back to RC29, installed cm 1.4 recovery. Used an old sd card with only a fat32 partition and flashed the HTC image, wiped then cyanogens new update. Took my old sd card deleted both partitions and set them back up. Swapped sd cards and now everything is fast again. Not sure what the issue was but either redoing my sd card or going back to rc29 seemed to do something.
[G1 Android Development] Vlad83:
Yes, everybody. BFS and compcache need tweaking. Cyan is aware and an update should arrive tonight...
[G1 Android Development] bessertier:
End button Behavior

Thanks Cyanogen! this is great, only bug I've found and it was half mentioned in this thread - the red end button cannot preform the home function - this is why when changing the end button behavior home then sleep doesn't work, home doesn't work, but sleep does work.

fix for 4.2?
[G1 Android Development] rialsi6:
I am having trouble playing Flac.music files. Music plays but lose function of the phone and have to reboot to gain control again. Has anyone else tried to use the Flac format. If you have could you please let me no if you have issues also.thx. Im using mt3g.
[G1 Android Development] woltion:
Just for the record, since I have never seen anyone else having this problem:

I had a problem both when I first installed cm 4.0.4 and now with update to 4.1.99 on my HTC Magic, the browser did not work and gave FC on startup. The reason was that /data/data/com.android.browser/databases was not a directory but a file, and the fix was to remove the file and make it a directory with proper permissions.

I just wonder what could cause this particular problem, and why nobody else seem to be affected by it. Otherwise I have had no real problems, neither with 4.0.4 nor with 4.1.99.
[G1 Android Development] brybam:
Ringer delay

I used search this thread for "delay in ringer" "ringer" "ring" and nothing came up so looks like I'm the first to report this.

I've been using 4.1.99 since it came out and i've noticed with this rom my phone will light up and start vibriating just fine, but it will take about 4 full vibrates before the ring audio starts
[G1 Android Development] LadFromWales85:
I'm patiently waiting up for the update, with it being gone 3am here now :(

4.1.99 doesn't work on my Voda Magic, followed the instructions, tried not wiping, tried another sd card...the end result is the same, the animated splash eventually times out, I wake up the phone and every google app force closes, followed by the phone and setup wizard repeatedly spawning and force closing.

My Magic is weird though, 4.1.11 won't even install at all, instead failing part way through saying it can't chmod/mod /system

Have even tried fastboot erase system -w, fastboot erase boot, and reflashing recovery, then installing either version from an empty SD card, no joy!

I also have issues with some ROM's with certain builds of libwebcore.so, causing my browser to die on start.

Perhaps I need a new Magic, this one just acts weird! :) Heres hoping that the next CM works on my fragile Magic!
[G1 Android Development] cityeyes:
I'm sorry if this has been discussed before, but a search turned up nothing specific to the cyanogen rom (although it's sort of a generic term, so I might have just missed it).

Since the update, my "extra" email has not been pushing correctly, nor has it been retrieving new emails from my email addresses. I don't know what triggers this problem, but it can be temporarily relieved by removing and re-adding the email addresses that I have.

I'm not having problems with the native "Gmail" application, just with the generic email application. The first symptom is that it doesn't push, the second is that when I go in and manually update, email that I know is in my inbox does not show up.

Any solutions? Did I do something wrong? Is it a known bug with the build?

Thanks!
[G1 Android Development] Pikeucf:
Good to know I wasn't the only one having super lag problems. There might be a very simple answer to this. After many attemps to fix it through reboots and such, I decided to try one last thing....I took out the battery for about a minute, put it back in, booted up and volia!! No more lag ( for me anyway).
[G1 Android Development] timal:
Second on the patiently ( yeah right ) waiting for an update :)
[G1 Android Development] spacezorro:
Backup Restore script

I found a problem in the backup_file sub

Here is the script as-is

echo "$2 $1" | md5sum -c -
if [ $? -ne 0 ];
then
echo "MD5Sum check for $1 failed!";
exit $?;

the if tests for $? not to be 0

then you echo some text

then you exit $?

Since echo returned successfully (it printed the text) it will reset $? to 0

you need to change it to

echo "$2 $1" | md5sum -c -
if [ $? -ne 0 ];
then
tmp=$?;
echo "MD5Sum check for $1 failed!";
exit $tmp;

or just replace "exit $?;" with

exit 1;
[G1 Android Development] 0Vw3:
Has anybody checked this out? When I replace by hand wpa_supplicant.conf with a previously saved one, its privileges are reseted every time I reboot the phone. If I turn wifi on after reboot, it fails because a permission issue, of course. Moreover, an userinit.sh won't fix this because /system/etc/init.d/05userinit is broken:

I//system/xbin/busybox( 49): /system/etc/init.d/05userinit: 14: Syntax error: "fi" unexpected (expecting "then")
I//system/xbin/busybox( 49): run-parts: /system/etc/init.d/05userinit exited with code 2

Just added the missing "then" and all started to work :)
[G1 Android Development] bradycl_84043:
You really think so?

I thought straight swap was actually considered to be faster (in general, not just 4.1.99)... Is there a general consensus on the best way to handle swap/compcache, or is it subject to hot debate?
[G1 Android Development] IConrad01:
CompCache is faster if you have a lot of RAM actually used by active programs.

Swap is faster if you have more in the way of background or passive services.

In short, if you have an ass-ton of desktop widgets and you run multiple processes simultaneously, CompCache is the "root" for you.

If, however, you tend to run lighter on your processes, then linux-swap will get you more performance.

In short, linux-swap starts out faster but the benefit isn't as progressive as it is for CompCache.
[G1 Android Development] cyanogen:
4.1.999 is up, enjoy :)

You don't need to do the ADP1 flash to upgrade from 4.1.99. Remember that the ADP1 flash is ONLY to get you the proprietary bits, once you have those you can upgrade CM versions without problems.
[G1 Android Development] prince.siraj:
Thanks. you do an amazing job :D. so the ADP1 flash has the proprietary bits but all your other updates are without?
[G1 Android Development] JAWheat411:
Sorry about the tweet Cyan.... didnt see this post.
[G1 Android Development] cyanogen:
Exactly. It's not possible for me to distribute those proprietary files legally, which is why you need the base image (and to agree to HTC's license). My installer backs up the proprietary files, installs the ROM, then restores the proprietary files.
[G1 Android Development] bradycl_84043:
Looks like I'd be much better off with compcache... but...

I know this might be starting to look like it should go elsewhere, so just one question in reply if you'll excuse it, and I'll drop it.

Is doing both then the best of both worlds, as I have seen many people refer to "compcache+swap" in their sigs?

If so, I'll go looking for a thread on how to set that up and manage it, unless you have a link handy... ;)
[G1 Android Development] free-sidux:
Sudden system loss

Strange thing happened today on 4.2.5:

I use this rom since maybe 2 weeks (since it is available) without any problems.

Today the phone went dont after battery warning. I switched it on again and it bootet completely to the android welcome screen you get when first using the phone, which gmail-login etc. It also showed several force-closes.

I thought a three-finger-salute may fix this, in fact it became worse.

Now, the last thing I can see on screen is the cyanogen-boot-sequence, afterwards only a blank screen.

I tried to reflash 4.2.5, but didnt help. tried repairing ext, it repairs, but nothing. I have no cardreader, so I have not been able to actually check the sdcard, but in recovery I went into console and ls'ed a bit around. Everything seems to be ok with the sdcard.

Well, I'm going to try other solutions, if someone has some idea, please, I would appreaciate.

edit: was able to restore an older cm, but everything force-closes...

edit2: restored a backup from 11th :( which works at least
[G1 Android Development] delgotit99:
correct, it said installation failed, but when I renamed it to update.zip it worked. I did apply 4.25 with the anyzip feature and it worked fine. Not sure why just wanted to pass that on to maybe help someone else in the same boat.
[G1 Android Development] Stewartwi:
Sorry guys not sure if this is the correct place to post this but I'm having trouble installing CyanogenMod rom I get to the Flash Android 1.6 & CyanogenMod 4.2.5/4.1.9999 part of his wiki page and when I'm holding the home key and powering up the phone I get the ! and the phone icon but nothing happens. I have the signed-dream_devphone_userdebug-ota-14721 and update-cm-4.2.5-signed zip files on my SD card but it's not allowing me to flash them.

Any help would be greatly welcome and if this isn't the right section I apologize.