yashsingh1/xdaforums huggingface dataset:
[Motorola Milestone Android Development] Strokesws:
Well... I deleted my swap partiton and yet I have about 40MB of swap when I type "free" in the Terminal Emulator.
[Motorola Milestone Android Development] Merri1:
Did you delete the swap script (98swapon) from system/etc/init.d? Delete this and reboot and that should sort it :)

I was on 20121121 from the day it came out until last night and I didn't experience that at all. I tried replicating it on 20121122 but couldn't!

Before upgrading to CM10 did you do a full factory wipe of your phone and/or your SD card? Also have you experienced it on any other roms apart from CM10?
[Motorola Milestone Android Development] Erovia:
You have to delete the swapon script because it creates a swap file (if no swap partition is present) during the booting.

You can do it with a root browser or Terminal Emulator:

su

rm system/etc/init.d/98swapon

Also, delete the swapfile. If you don't have swap partition, it is created on your sd-ext partition and called swapfile.
[Motorola Milestone Android Development] afadel:
Could be. Just wanted to make sure it as not a known or replicable problem.

It started between CM10 versions so I don't think it's a wipe problem. I'll check in CM7 to rule out or relate it to hw problem as suggested by Erovia.

Thanks guys! ;)

Enviado de meu Milestone usando o Tapatalk 2
[Motorola Milestone Android Development] pnsdhrn:
I installed CM10 20121122 afresh after formatting my new 16 GB sd card with SD Formatter and partitioning it to 14GB FAT32 and 4GB Ext3 using MiniTool partition.Also I had done Cahe wipe,Dalvik wipe and Full Data wipe before applying update in MiniMod OR.And after applying CM10 and Gapps I applied "Copy 98swapon" and "Continue" using SDTool Menu of MiniMod OR.After this I saw in the OR log 'copying 98swapon complete".Then I rebooted.Now seeing your your instruction to type "free' in Terminal I had done it.But the swap line showed "0 0 0" instead of "32768".So I rebooted to recovery,opened console,typed "chmod 750 /system/etc/init.d/98swapon" and rebooted .Again when I checked with Terminal by typing "free" the swap line still shows "0 0 0".Whether the swap is not functioning in my phone?How can I confirm it further?And if it is not functioning ,how can I make it function? Waiting for an advice with thanks,

pnsdhrn
[Motorola Milestone Android Development] Erovia:
Sometimes (I dont know why) the MiniMod's "Copy 98swapon" doesn't copy the script to its place.

Check it by typing into terminal: ls system/etc/init.d

There should be a file name called 98swapon

If there is no such a file, then apply it by yourself, HERE is the latest version.

It is flashable from OR, so just flash it like you do it with a rom or gapps.
[Motorola Milestone Android Development] Strokesws:
I tried deleting 98swapon file but the terminal returned me "no such file or directory" then I realized that my zRam was enabled after zRam disable my "free" command returned 0MB swap. :P
[Motorola Milestone Android Development] pnsdhrn:
Thank you Erovia for your assistance.As you said I typed in the Terminal "Is system/etc/init.d" . The result showed "system/bin/sh not found".Now whether I have to apply the 98swaponV9.zip you provided through the Updates of OR?

pnsdhrn
[Motorola Milestone Android Development] Erovia:
Something is wrong.

The command should have returned with the list of scripts in the init.d folder not that error msg you got.

Does the busybox work fine on your phone?

Type busybox. It should show you the available shell commands on your phone.
[Motorola Milestone Android Development] mrvek:
@Erovia: it is permission issue (root). The terminal app is saying that /system/bin/sh was not found.
[Motorola Milestone Android Development] pnsdhrn:
When I typed 'busybox",then came 12 lines.The first four of them are given below.

minimod.route.run-parts.rx.sed.seq.

setconsole.setserial.setsid.shshalsum.

sha256sum.sha512sum.sleep.sort.split.

start.stty.sum.swapoff.swapon.

.............................................

............................................

......................................................

pnsdhrn
[Motorola Milestone Android Development] Erovia:
@mrvek: That was the first came into my mind, but for a single ls one does not need root. At least I don't have to su when I execute this command. :S

@pnsdhrn: Apply the script I linked, it is flashable from OR like a rom. It will overwrite the old script if there is any.
[Motorola Milestone Android Development] -FuFu-:
the issue is thats is its not "IS" its "LS"...

just flash the lastes 98swapon script via OR and it will work (for me its works on 2 devices) and cause there no issue reports here i think it also will work fine on cm10 ;)
[Motorola Milestone Android Development] pnsdhrn:
@FuFu and @Erovia,

Whether Cache wipe and Dalvik wipe is needed before applying this script?

pnsdhrn
[Motorola Milestone Android Development] Erovia:
You don't have to wipe anything.
[Motorola Milestone Android Development] pnsdhrn:
@Erovia and @FuFu,

Sorry,just one more please.After applying the script what is the preferred option for zRam to be selected in the settings of the phone?

pnsdhrn
[Motorola Milestone Android Development] afadel:
Leave zRam off. You should use one or the other, never both at the same time. At least this is what I noticed by experience. Both on is very laggy.

Enviado de meu Milestone usando o Tapatalk 2
[Motorola Milestone Android Development] Erovia:
FYI, the build-bot has built a new nightly. (11.28)
[Motorola Milestone Android Development] nagabushan.c:
Using CM10 22NOV build. Can anyone guide me, where I'm missing to tune. Start of the phone, it would be fine, after several hours of use, even launcher laggs. Attached blank sThis is what I configured.

Settings> Performance

Processor:

CPU gov: On demand

Min CPU: 400Mhz

Max CPU: 1000Mhz

Set on boot: enabled

Memory Management:

ZRam: 18% default

Allow purging: Disabled

Kernel same page merge: Disabled

16bit transparency: Enabled

surface improvement: Disabled dithering

All animations, transitions : Disabled

Disable HW overlay: Not selected

Force GPU Rendering : Disabled.

Disabled all unwanted apps like STK. EMAIL, VPN etc using HWA

No swap enabled. I do have script to push from OR. But not installed.

Battery drains even in screen is off. Please suggest me some settings. Thanks in advance. BTW, I'm using mini mod 0.22 and 8GB Class 6 SD card with which 1.5GB set for sd-ext.
[Motorola Milestone Android Development] Erovia:
Some advice:

-Use the Interactive governor (it is backported from the linux 3.0 and is part of the jelly bean's "project butter")

-Disable zRam. I think using swap is more performance wise. Use FuFu's script, it works great with default values. (32mb swap, swappiness:15)

-Try out some launchers. In my opinion, Lightning Launcher and FTL Launcher are the fastest ones.
[Motorola Milestone Android Development] oVeRdOsE.:
What is the fufu script?? All I found is the [Script] swapconf - swap config from mrvek...

thanks
[Motorola Milestone Android Development] Erovia:
HERE you can download the latest version. 98swaponV9or.zip

Flash it from OR like it was a rom.
[Motorola Milestone Android Development] Merri1:
Here's the FuFu script :) You can find more detailed instructions on installing it a few pages back in this thread!

http://xdaforums.com/showpost.php?p=32995138&postcount=8363

[EDIT] Sorry Erovia didn't see your post! oVeRdOsE follow Erovia's instructions they are easier :)
[Motorola Milestone Android Development] pnsdhrn:
@Erovia and @FuFu,

Many many Thanks to both of you.With your efficient help Finally I could enable the swap.I applied the 98swaponV9.zip through the Updates in OR..Afterwards I also disabled zRam.Now the phone functions smooth and fast even more than CM7.Once again thanking you,

pnsdhrn
[Motorola Milestone Android Development] oVeRdOsE.:
Thanks to both of you.

So wich one is the best.

So far I can enable swap with

- app (swapper2.apk)

- mrvek's srcipt

- fufu's script
[Motorola Milestone Android Development] Merri1:
FuFu's is I think, I haven't used the other two but from reading this thread FuFu's seem to be the most popular choice!
[Motorola Milestone Android Development] -FuFu-:
every user must test the ways to activate swap, the app swapper2 is the best way for users who only want to activate

the both scripts are for advanced users. in my latest script its possible to setup the script with the swapon.conf on sdcard (just edit with rootexplorer or any other app that can do this)
[Motorola Milestone Android Development] Erovia:
Swapper is easier because it has gui.

The scripts have better performance (imo).

I prefer FuFu's script because I dont need to turn swap on/off or do other stuff. I just want my swap working all the time.

mrvek's script is more advanced from this aspect.
[Motorola Milestone Android Development] Strokesws:
Do we really need to have a swap? I flashed 98swapon with a partition in my SD (Milestone Stock) and I think that phone's performance is better without it. Without swap I also solved all my problems with calls.
[Motorola Milestone Android Development] Erovia:
I think it depends on how someone uses his phone.

Swapping is much slower than RAM and it takes more cpu power.

On the other hand if one uses apps that fits in the internal memory then swap is not used and when more free space is needed, the app doesnt force closes.
[Motorola Milestone Android Development] kabaldan:
The Milestone and Defy (and also Milestone2, Bravo etc.) development is very closely bound together (it's one common mapphone platform).

One could even say that we are a team, though not officially declared anywhere.

If there is any major breakthrough in development on any Motorola OMAP3 device, users of any of all mentioned phones can perceive it very soon.

The Omap3 HWComposer has not been enabled on any mapphone device yet, so the vsync question has no actual meaning so far...
[Motorola Milestone Android Development] Erovia:
Could you please tell me what the "Omap3 HWComposer" is and what does it does?

Thanks in advance.
[Motorola Milestone Android Development] Eiertschik:
AFAIK:

A composer takes several graphics (app symbols, GUI element,...) and merges them into one big picture that's handed to the display to be shown on.

http://en.wikipedia.org/wiki/Digital_compositing

Someone please correct me, if I'm wrong :)
[Motorola Milestone Android Development] Seronez:
Good evening,

i flashed this Rom recently on my fathers Milestone, but discovered that Home and Search hardware buttons don't work anymore any way to fix this?

Edit: Flashed again 2 times and somehow it's working now but very slow....

thx in advance

Seronez
[Motorola Milestone Android Development] Strokesws:
Well... I don't have problems with FC while using an app on CM7, when I type "free" in terminal emulator it says that I'm using only 20MB in my swap. Based on what you said I think is better to remove swap. :P
[Motorola Milestone Android Development] Eiertschik:
You HAVE to flash kabaldan's GApps package right after applying the ROM, otherwise this issue will occur.
[Motorola Milestone Android Development] nagabushan.c:
Have to thank kabaldan for his great work on CM10, I can now use it for daily driver.

Only few bugs

Can anyone guess, why these things are not working.

1. Photo upload to Facebook - it just stuks at 0%, my sync is on , tried reinstalling from play.

2. After taking screenshot, can't remove it from status bar- have to restart to clear it.

3. Camera: very laggy, can't take photos.

Couple of applications gives wait pop, either to FC / to WAIT.

Is it normal behaviour? Only swap enabled with swaponV9 and interactive governor @ 1Ghz OC.

WITH APEX LAUNCHER it works charm.
[Motorola Milestone Android Development] koodiifin:
Is there a way to OC past 1ghz? And would it help performance. That old telus lite ROM claims to have a 1.2ghz oc.

---------- Post added at 06:26 AM ---------- Previous post was at 06:14 AM ----------

Im using swaponv9or by fufu and i edited my swap conf file to try and use internal memory in the cache partition. Here's my config:

## 98swapon config file

##

## set swapfile size in MB

## default setting is 32 for 32mb

SWAPSIZE=32

## set to 1 to use intern memory for swap

SWAPINT=1

## settings for use swap on intern memory

## use /cache or /data for swap

SWAPDEV=/cache

## recreate swapfile on every boot

## set to 1 to recreate swapfile on every boot, may be helpfull if you change SWAPSIZE

RESETSWAP=0

## set to 1 to set only swappiness value all other values will be ignored

SWAPIONLY=0

## vm settings

## swappiness

SWAPPINESS=15

## dirty radio

DRADIO=80

## dirty backgriound radio

DBRADIO=30

## vfs cache pressure

VFSCP=10

## dirty expire centisecs

DEC=1000

## dirty writeback centisecs

DWC=1000

## laptop mode value 0 or 1

LAPTOPM=0

## oom kill allocating task value 0 or 1

OOMKAT=1

## panic on oom value 0 or 1

POOOM=0

But when I look in the cache partition I only see a swap on log file, no swapfile. Here's my log file output:

/sdcard/swapon.conf not found...

mmcblk0p3 not exist...

use /sd-ext/swapfile for swap...

Setting up swapspace version 1, size = 33550336 bytes

set swappiness settings...

all done
[Motorola Milestone Android Development] pnsdhrn:
Reg Camera, it is not consistent for me also.It used FC frequently and Video never worked.So uninstalled the Gallery Apk and installed UCam and QuickPic from Playstore.The Ucam works fine for me and it's Video Recorder also works .More over it is more sophesticated than the stock camera.

Regarding Launcher,FTL Launcher is more light and having more speed and smoothness.

pnsdhrn
[Motorola Milestone Android Development] -FuFu-:
the swapon.conf will not be found on boot... i not test it on cm10 by the way only on cm7, may there is a problem by mounting the sdcard on boot...

please edit the 98swapon script line 19, delete the "##" and then reboot again and then please post again swapon.log here... may i must edit the script for cm10 that the sdcard will be mount on boot, if it not works i will make a script that use /data for the config file

---------- Post added at 04:05 PM ---------- Previous post was at 03:50 PM ----------

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

please use this thread if you have problems with my 98swapon script ;) so we can hold this thread clean
[Motorola Milestone Android Development] Erovia:
I recommend FTL Launcher and Lightning Launcher.

(Lightning Launcher is faster, imo)
[Motorola Milestone Android Development] koodiifin:
Hi FuFu, thanks for the reply. I uncommented line 19, and rebooted but the log is the same:

If I change the swap location to the /data partition in the config file, will that work? I'll try it. Thanks.

---------- Post added at 10:13 AM ---------- Previous post was at 10:07 AM ----------

EDIT: I tried changing the location to /data in the conf file, but doesn't help. I guess that's obvious because the problem is the actual swapon.conf file isn't found.
[Motorola Milestone Android Development] -FuFu-:
if you edit the 98swapon with rootexplorer, did you delete the .bak file that will be create?

after deliting the "##" there must be all mountpoints in the log...

also check that there is only 1 swapon script in /system/etc/init.d
[Motorola Milestone Android Development] -FuFu-:
now my 98swapon script will also be work on cm10 ;)

Download: http://droid-world.bplaced.net/load.php?file=download/scripts/98swaponV10or.zip

in V9 the script not mounts sdcard on boot, now it works and you can use the swapon.conf on sdcard to setup the script...

i also add a disable funktion if you want do disable swap on boot ;)
[Motorola Milestone Android Development] Dany303:
Runs better with swap partition and Lightning Manager than the old CM7 without swap...

Thanks a lot..
[Motorola Milestone Android Development] -FuFu-:
with swap on /cache i think its run a little bit smoother that with swappartition
[Motorola Milestone Android Development] nagabushan.c:
Hey, I'm not sure if you this has been working out or in setup.. Just thinking, can we link, Srilax build-bot with System >Cyanogenmod updates > Nightly built. So that, updating ROMs will be easier, instead of downloading complete ROM and then pushing it through OR.

Its just a thought, may be I'm more curious.
[Motorola Milestone Android Development] beobu:
Will this rom support USB music? New function of JB? Thanks!!!
[Motorola Milestone Android Development] douglasroos:
I have an issue with the camera. It hangs and runs very laggy is almost impossible to take a picture. Any option to increase camera performance?
[Motorola Milestone Android Development] vikcon:
is showing repeatitively right after flashing and first boot.

Unable to connect to Wifi (Update - wifi issue sorted after triple wipe again. But com.android.phone stopped issue is really annoying. Unable to use as a phone at all)

Am I doing something real silly?
[Motorola Milestone Android Development] zemko:
I have similar issue with the process, when someone calls me or when I press home button in some app
[Motorola Milestone Android Development] pnsdhrn:
Video

The Video Recorder in the CM10 20121122 is not consistent.Sometime it works and most time it won't.Is there a way to make it work dependable?In my earlier CM1O 2012 0802 it was working .

Waiting with thanks,

pnsdhrn
[Motorola Milestone Android Development] Erovia:
That option works on officially supported phones. That could be made to work with Skrilax's

site but there is a bigger problem.

That option download the latest nightly specific for the phone, flash it and reboots it.

This can't be done on our phone with this ease. We need to work around the locked bootloader with the OpenRecovery.

I guess you are talking about the JB4.2 . We only have 4.1.2 and beside this, it might need some hardware implementation.

So it may not be available in the near future.

Some people said that the camera performs better with custom camera apps. You can find plenty of the on Play.
[Motorola Milestone Android Development] pnsdhrn:
What about Video Recorder?In 10121122 Nightly it works sometimes and doesn't most times.It was working consistently in the 20120802 Nightly.Is there a way to make it consistent in this also?Or is it stable in the latest releases?

pnsdhrn
[Motorola Milestone Android Development] Erovia:
I've never used my phone for video recording, so I don't really know about this feature.

Try using a 3rd party recording app from Play. Maybe they work better than the stock.
[Motorola Milestone Android Development] beobu:
Will this support USB audio? Anyone tried to test USB Dac with MS with CM10.

Thanks Kabaldan for this magic.

You gave my MS a new life!
[Motorola Milestone Android Development] Erovia:
Read my reply to your question in post #354.
[Motorola Milestone Android Development] beobu:
As I know 4.1 JB support this function already. Ex: Galaxy S3,...
[Motorola Milestone Android Development] Erovia:
I don't know much about this feature, but I guess it works via some hardware component which our old Milestone doesn't have.
[Motorola Milestone Android Development] beobu:
Yeah, maybe. Because I saw "audio dock" in setting but nothing when I plugged in my USB DAC. thanks
[Motorola Milestone Android Development] madwyn:
If the firmware has implemented the USB Audio protocol, then it should work.
[Motorola Milestone Android Development] kabaldan:
To enable USB Audio support in kernel config is easy.

But first you have to get the USB OTG working, which is more complicated...
[Motorola Milestone Android Development] Ricfil:
Hello there.

I´m in the means of testing CM10 Nightly latest build,and have some questions/doubts regarding some aspects of it and the app installation using the ext 3 partition in itself.

I´ve just installed all my apps onto the ext3 partition (I needed a bigger partition for that). All apps seem to be working ok.

Things to point. Using the build in memory managmente app (in "apps in execution"), we can´t really see what apps are using which memory (as I go to the running apps window and not many appear), but still only 30 or less MB ram or so is available after the Titanium restore, when before I had more like 45-60MB.

Using the lib2ext 1 command still does not sets all my internal memory free. In data/data I still can see most app lib files. The same files are also on the sd ext/data folder, but seem less complete (less files whithin each specific folder). I can´t quite get it. Shouldn´t the ext 3 partition, CM10s ability to install apps to it and the lib2ext command help reduce the amount of space taken by app data on internal memory?. From 100 or so MB a got only 43 or so MB internal memory available after Titanium Restore. Which isn´t much. And makes the rom more laggy. Swap makes it way better, but still If I can put all Lib files on the ext partition it would be ideal. I find Link2SD more useful in that regard. It really puts all app data on the external partition we choose it to. I´m trying not to use it... kabaldan itself says we should not use apps like these.But we will see... Te more space the better!

Any idea why Lib folders appear both on data/data internal path and ext 3/data ext3 partition path?

The phone went laggy like hell after the restore (swap minimized it a great deal, but still...low space is what I have right now).

Also, when using the built in CM10 CPU overclock module, even if I put another value (diferent from 1000MHZ) it still goes back to 1000MHZ after a while (the behaviour is erratic, meaning this does not happen all the time), and definetly does not stick on boot. Just to point out.

Lastly, does anyone know a way to disable the send sms on pushing Enter key on physical keyboard? CM7 had that feature available and I can´t find it on CM10. Really anoying when I, without intention, push the enter key and send an uncompleted sms to its destiny...:m

This things apart, I must say that kabaldan is doing an excelente work. 225 MB available ram on our Milestones and Jelly Bean is running this smooth?! Awesome effort!

Thanks for all and any help/idea on this subjects:good:
[Motorola Milestone Android Development] kabaldan:
The libs are moved to sd-ext by lib2ext only during boot, so you have to reboot for the libs of newly installed/restored apps to be moved.

The lib folders in /data/data/<app>/lib should be only symlinks to /sd-ext/lib/<app> folders when lib2ext is used.

The Min and Max CPU frequencies set in Performance>Processor are currently not respected by the PowerHAL module, so they do not stick.

Until the PowerHAL is made smarter (or another solution invented), if you need to adjust the frequencies, you have to edit your /system/etc/init.d/10overclock file.
[Motorola Milestone Android Development] pnsdhrn:
swap in boot

In the github repo of nadlabak it is seen that Swap is added to boot on 10th Dec2012.So whether this modification is added in the Nightly by Skrilax cm10 20121211?

pnsdhrn
[Motorola Milestone Android Development] Erovia:
The new build contains the 12swap script. So the answer is yes.
[Motorola Milestone Android Development] Ricfil:
Thanks for the useful info Kabaldan.

One question though, editing the 10overclock file , will the edits persist upon boot?

Thanks for the awesome work:good:
[Motorola Milestone Android Development] L3ibnitZ:
Yes
[Motorola Milestone Android Development] Ricfil:
Thanks for that.:good:

The thing is, I went and took a pic at the file in itself and it contains the various overclock values (from minimum 250 to maximum 1000MHz). I do not know how to edit it so to put a custom value to it (I would like the maximum value to be 600MHz for testing). Will I need to put 600 instead (and in the place of) 1000 for it to work? Will it work this way?
[Motorola Milestone Android Development] L3ibnitZ:
If you want a maximum value of 600mhz replace the highest value (1000mhz)with 600 and don't forget to lower the other values too

For example

600

500

400

250

You should also adapt the vsels.