yashsingh1/xdaforums huggingface dataset:
[Motorola Milestone Android Development] wisefreakz:
Phone won't sleep ever.

Com.android.server£AlarmManager seems the process that will not sleep. Any ideas?
[Motorola Milestone Android Development] mike freegan:
Hi there

I've figured out this Supercharging thing. What setting would you recommend? I'm currently on 1. Aggressive
[Motorola Milestone Android Development] DannyDroid:
I do not seem to have that issue. I will look into it tonight.
[Motorola Milestone Android Development] DannyDroid:
The lastest release uses multitasking.
[Motorola Milestone Android Development] nitrobg:
Hi there. Awesome ROM, I love it.

However I've found 2 bugs.

1) There's no browser icon on the bottom row of icons - I have only 3 icons available: Dialer, Contacts, Messages. Same happened on last week's ROM.

2) Screen off animation is gone, the display just shuts down. It is enabled in Settings. This bug wasn't there in the last week's ROM.

Thanks!
[Motorola Milestone Android Development] :
1a) This is already know

1b) I also doesn't have a compass app (removed?)

2) I can confirm this, the screen off animation doesn't work.

Bug list so far:

- No browser

- No screen off animation

- Screen capture causes a hot reboot
[Motorola Milestone Android Development] wisefreakz:
@Danny the DSIFIX module is not working. I'm experiencing the infamous screen freezes / black screens. I have cheked that the file exists and have the rights permissions.

Any ideas?
[Motorola Milestone Android Development] hwithv:
Another bug is that the automatic brightness does not work
[Motorola Milestone Android Development] Babis_ECE:
-> You can place any browser icon you want in the Launcer dock. ;)

-> Yes, screen CRT On/Off Animation doesn't work.

-> Automatic brightness works fine here.

@ Danny:

Yes, Keep Launcher in Memory option is enabled.

Before I select any Angry Birds game I use App killer to use maximum memory available, but still it starts loading and at some point I get a black screen and get back to Homescreen. Is this the infamous DSI problem?
[Motorola Milestone Android Development] skadude66:
DSI errors will cause the phone to either freeze up completely causing you to pull the battery out or it will cause the phone to reboot. What you just described is the game FCing because you do not have enough memory to run it.

I supercharged MIUI to Multitasking values, had only 3 pages with the MIUI Launcher and I was only getting 15MB free, when I used to get much more. The Launcher would take up 30MB just by itself, which I never recall it doing before.
[Motorola Milestone Android Development] Babis_ECE:
Thank you for clearing that up skadude66.

So, what can I do to play Angry Birds again? :rolleyes:

(Besides getting a new more powerfull phone at some time..!)
[Motorola Milestone Android Development] skadude66:
You can try supercharging to Aggressive, but that will really clear up a lot of stuff and you might get apps you want to stay in memory removed. Honestly, I've never tried anything other than Multitasking so I don't know how it would interact with MIUI on the Milestone. Give it a shot and see how it goes!
[Motorola Milestone Android Development] fejker:
If you're really desperate to play games I suggest you flash a froyo based ROM, tweak it to the max and you'll forget that you need a new phone. :)
[Motorola Milestone Android Development] Babis_ECE:
I am so in love with MIUI's looks that i can't flash any other ROM right now!

I can play Angry Birds in my MacBook Pro, I just wanted to be able to play some times..!
[Motorola Milestone Android Development] wisefreakz:
That can never be true if the dsifix.ko have been correctly load. As I asked above without having any answer is being confirmed also by other users. So the file is in place, and looks like its being called but by having this freezes/reboots and looking at the logs I'm 99% sure that the module has not been loaded correctly.

Can some take a look at this?

Thanks and I'm also in love its look and just don't wanna flash other room.

Thanks

Edit: I tried to load dsifix.ko manually and it says the file is invalid.

Edit2: after applied the correct files from Kadalban DSI topic no more freezes/reboots and I confirmed know module is working.

The files were really different in size so I guess something went wrong while Danny compiled the rom.

Sent from Ijmy Milestone using XDA Premium App
[Motorola Milestone Android Development] DannyDroid:
The DSI fix isn't perfect, I suggest posting the logs in this thread;

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

I can confirm this.

Take it out of memory. I have applied a hard to kill launcher to the latest release.

I'm not sure what is wrong - but I must be the worlds worst DSI suffer but it seems to be fine for me and the module is loading fine and correctly.

I'm starting to think I should include hash tags in my releases and it could be an upload / download error.
[Motorola Milestone Android Development] wisefreakz:
Hehehe... let's just confirm... what is the size of dsifix.ko that come with your latest beta? As I could see yours was 47kb while Kadalban was aroung 11kb.

Go to your console and try:

su

Cd system

Cd lib

Cd modules

Insmod dsifix.ko

If it is loaded it will tell you.... otherwise will give the error I mentioned.

Cheers dude.
[Motorola Milestone Android Development] DannyDroid:
I think I've found the problem.

DSI Fix 2.61 fails to mount, but 2.6 does;

$ export PATH=/data/local/bin:$PATH

$ su

# lsmod

ext2 41253 0 - Live 0xbf0c1000

qtouch_num 2065 0 - Live 0xbf0bb000

overclock 2883 0 - Live 0xbf0b5000

cpufreq_stats 2119 1 overclock, Live 0xbf0af000

cpufreq_smartass 5051 0 - Live 0xbf0a8000

cpufreq_conservative 4603 0 - Live 0xbf0a1000

cpufreq_interactive 2077 1 - Live 0xbf09b000

tun 9924 0 - Live 0xbf093000

xt_multiport 2149 0 - Live 0xbf08d000

nls_utf8 898 0 - Live 0xbf087000

slow_work 8535 0 [permanent], Live 0xbf07f000

dsifix 5526 0 - Live 0xbf078000

symsearch 951 5 qtouch_num,overclock,cpufreq_smartass,cpufreq_interactive,dsifix, Live 0xbf072000

ext4 186373 1 - Live 0xbf03b000

jbd2 45824 1 ext4, Live 0xbf029000

sec 3712 0 - Live 0xbf023000

modem_pm_driver 1764 2 - Live 0xbf01d000

netmux_linkdriver 8406 0 [permanent], Live 0xbf015000

netmux 52275 19 netmux_linkdriver, Live 0xbf000000

#

.

So I will "downgrade" to 2.6 and include the browser as well.

Thank you wisefreakz ^^ .
[Motorola Milestone Android Development] wisefreakz:
Cheers mate... we are here - at least me - to try to help devs work. Thank you for the work with Miui ;)
[Motorola Milestone Android Development] zeppelinrox:
If you are using the latest SuperCharger, try the "Engine Flush"
[Motorola Milestone Android Development] nitrobg:
I have found one more minor bug.

When you go to homescreen edit mode and click on the settings icon on the digital clock, you should get a configuration screen or something like that. But now you are simply getting a blank screen.

Also, any ideas how to save some battery? Now the phone is barely lasting 2 days with GPS, Sync and Data off, Screen set to 10%, 3G off and moderate usage. On the stock firmware it lasted for around 3 days with a clocked CPU, same settings and usage. Is there any way to fix it or make the battery last longer, or this is normal in MIUI?

I noticed that the music player doesn't have scrobbling (last.fm) support. Is there any way to add one?
[Motorola Milestone Android Development] Babis_ECE:
Thank you for your answer zeppelinrox, I had V6 and I will install latest version and try "Engine Flush". :)

Edit: I downloaded and run V6-update8 and I can't see which option (1-17) is the "Engine Flush".

Can someone help me?

Thanks.
[Motorola Milestone Android Development] mcdevtingz:
Try the latest version!
[Motorola Milestone Android Development] DannyDroid:
Ohh, a new version. Can't wait to play with it.
[Motorola Milestone Android Development] DannyDroid:
Two days is pretty good. I get a day with 3G and autobrightness on.

No way to enable scrobbling. I requested it almost a year ago so don't get your hopes up.
[Motorola Milestone Android Development] Babis_ECE:
I want to say a big thank you to all, this community is just great!

After performing "Engine Flush" and disabling Keep Home Launcher in Memory, I can again play Angry Birds (without any glitches at all) and after exiting the app, I see around 75MB available..!

It certainly needed a Tuning..! :cool:
[Motorola Milestone Android Development] DannyDroid:
Anyone who is using the latest release should disable lock in memory under launcher settings. It is already set a bulletproof.

I did put this in the change log ;)
[Motorola Milestone Android Development] zeppelinrox:
heh.. Babis I'm glad you got it working :)

Danny, maybe HTK is a better option because bulletproofing won't allow extra ram to be freed when launching games.

Redraws should still be a non issue with HTK.

After all, it is because of this that I "invented" the HTK launcher ;)

If you like, I can post here when I put up an update as well.
[Motorola Milestone Android Development] DannyDroid:
Opps, typo. I set it to hard to kill for that very reason. And yes please. Your work is a huge part of this rom.
[Motorola Milestone Android Development] zeppelinrox:
Yeah, I've noticed :D

I actually feel a bit of a weird attachment to it lol
[Motorola Milestone Android Development] mike freegan:
Hi guys

I'm back on CM7, which is a bit slow, but annoyingly is faster than MIUI.

You've done a great job getting this to work, but can I ask: Do you use your Milestones as smartphones?

Because with MIUI on this phone I am unable to use Maps, Facebook, Google + or even Facebook in Dolphin Browser - Just get force closes due to insufficent memory, or very poor performance to the point that the screen doesn't come on in time to answer calls.

Am I missing something? Or do you guys just not use smartphone features?

I mean no disrespect by this? I would genuinely like to know if I've just done something wrong when installing. I did a full wipe and even tried supercharging (before the bulletproof update).
[Motorola Milestone Android Development] skadude66:
I use my Milestone as a smartphone, no doubt. In any given day, I will browse XDA, Facebook, CNN, play some games.

While I admit that sometimes MIUI can get frustrating with the low memory issues, if you use the stock MIUI launcher, you can usually have close to 40MB of free RAM.
[Motorola Milestone Android Development] DannyDroid:
I do yes. Facebook is a little bit of a pain tbh but I've been messing around with zeppelinrox work and I think I maybe able to make it better, a lot better.

As a side note: not sure how much longer I will be able to dev this ROM - my Milestone is dying ): .
[Motorola Milestone Android Development] wisefreakz:
Damn Milestone... :(
[Motorola Milestone Android Development] alicheusz:
On GB MIUI it is possible to free 75 MB of memory

On CM7 you can free like 95 MB of RAM

On Froyo 115 MB of RAM

There is very narrow memory gap on GB MIUI you can life in. To actually use it you need select your thirty part software very wisely and configure it properly. For example Google + is unlikable out of the box. On miui this mean you may experience freeze on Maps or FC.

You have 75 MB to live in. Browser/Maps need 60 MB to operate you need 15 mb for keyboard to be able to search. If you have Google + in bacground there is not enough memory. Solution is to configure all your thirty party software to synchronize on app startup not in background.

For example for Google + you need uncheck google/hudle notification and instant upload in setting and as extra Google + synchronization in google account at system preferences (trickiest app). Similar for Pulse, Evernote, Read It Later what have you. This way you will save tons of memory, battery and get your life back.

Another example is anti-thief’s software that’s running in background use seekDroid instead it virtually don’t use any battery and memory because it relays on Google push technology.

And another example keyboard. Android keyboard uses 15 MB of memory if you use custom keyboard like SwiftKey X (which is awesome) you will have problems with Maps because SwiftKey X uses 30 MB. SwiftKey X + Maps = too much

Use Android System Info to examine what is in the background
[Motorola Milestone Android Development] DannyDroid:
Epic post alicheusz! I couldn't have said it better.
[Motorola Milestone Android Development] zviki:
Yes,I agree.Thanks alicheusz for this info.
[Motorola Milestone Android Development] mike freegan:
All great information, thanks.

I think I'll have to stick with CM7 for now as I value features over eye-candy (hence I got android instead of iPhone) but this is all useful information nonetheless.

Keep up the great work!
[Motorola Milestone Android Development] Babis_ECE:
@ alicheusz: Very explanatory post, about what's happening. But can you tell people who don't don't who to configure these things, exactly how to get the 75MB of RAM available?:rolleyes:

Thanks again

@ Danny and skadude: Is there a way to preset these settings alicheusz mentioned in MIUI ROM? that would be awesome!
[Motorola Milestone Android Development] DannyDroid:
They are not settings but a way of using your device.

In other words, pick light apps and try use apps that run in the background (such as whatapp).

I have 82mb of free RAM doing so.
[Motorola Milestone Android Development] Babis_ECE:
Right now, System Panel shows 36MB of free RAM, with MiTalk only running always on background.

So something must be going wrong with my setup.. :o

Any suggestions?

Thanks for your time Danny.
[Motorola Milestone Android Development] DannyDroid:
Menu > Show cached apps.
[Motorola Milestone Android Development] Babis_ECE:
Danny I can't find this option.. :o
[Motorola Milestone Android Development] DannyDroid:
I would take a screenshot but, you know what happens if I try ;D .

New release tomorrow so (hopefully) I will be able to show you then.
[Motorola Milestone Android Development] wisefreakz:
Settings -> Programs -> Manage Applications -> Running then press the "Menu" button of your phone and you'll see the "Show cached process" then just press it!

Cheers!
[Motorola Milestone Android Development] alicheusz:
Meaby i wrote it wrong I don't get free 75 MB of memory I specially configure my phone to get as low of free memory as possible (multitasking). I examine tweaks from all mods and test a lot myself and I don’t get satisfactory results. Every change react good and bad. It is possible to get better multitasking but it will be also make more memory demanding apps unstable and cause some lags. You can speedup phone without OC but it will still drain battery more. You may free more memory but you will need to make launcher, messages or some essential service killable.

There are some things that this particular mod can benefit from. With all respect to zeppelinrox work I think that his tweaks has no fit here, at least mostly. They weren’t developed on miui for miui. We need this approach because Miui run on such edge.

Things that need to be changed in kickasskernel tweak

These there tweaks below slow down cpu only. I have written cm7 and miui default settings at the end of the line. If you want to speed up things you need to lower it like in conos or foyomod. I would stick witch default (comment out these three lines, or better all kernel.sched* most of these valuse are already setup correctly in init.rc)

busybox sysctl -w kernel.sched_latency_ns=18000000; # 10000000 in CM7
busybox sysctl -w kernel.sched_min_granularity_ns=1500000; #??
busybox sysctl -w kernel.sched_wakeup_granularity_ns=3000000; # 2000000 in CM7

these one bellow is huge value, 5120 is all you need, every one set it to 4092 I find 5120 safe in every situation. Goal would be to get rid of this tweak altogether but it’s tricky. This setting affect multitask very badly

busybox sysctl -w vm.min_free_kbytes=8192; # 4092 in CM7

again huge value in centisecs this supposed to save battery but have huge side effect on miui. It allows to pile dirty memory in ram and we don’t have any free ram for that. I use 200 in botch of these values. This give smooth animations and help in maps (side effect takes more battery). There is critical moment in maps when GPS kick first time, its pike ram usage. Android need free a lot of ram at this point very quickly to not freeze, lover centisecs valuses help with that. This setting say how long memory need to be dirty to be washed out of RAM. Big centisecs its still good idea. We need screen sate switcher that will trigger different centisecs values on screen on, and screen off like in ckMod SSSwitch by voku1987

busybox sysctl -w vm.dirty_writeback_centisecs=2000; # I don’t check but is more than 200
busybox sysctl -w vm.dirty_expire_centisecs=1000; # 200 in CM7

@Babis_ECE

If you are traying to run Cut the rope or any other game on GB Miui, forget about it. If I remember correctly Cut the rope requires 90 MB of RAM there is not enough room for this, it will always cause some problem no miui for game, or for everything else.
[Motorola Milestone Android Development] DannyDroid:
Thank you for the wonderful feedback alicheusz. I will hopefully look into this at the weekend.
[Motorola Milestone Android Development] zeppelinrox:
And your solution?

...

How much multitasking can you really expect without going below 20mb of free ram?

So it's either multitask really slowly and sluggishly which is unbearably painful.

Or make it as fast as possible without killing multitasking.

Also, HTK launcher is indeed killable.

That's why I created it - because bulletproofing with an OOM of 0 would cause large apps or games not to run reliably.

Feel free to come up with solutions at any time.
[Motorola Milestone Android Development] Babis_ECE:
Thanks for your great post alicheusz.

I don't wanna play "heavy" games on my MIUI Milestone. I know it can't. I just wanna play the Angry Birds collection and use my Navigon and Android Market without any glitces. ;)

Danny is there any chance you implement alicheusz' settings of kickasskernel in next release? :)

It will be nice to try them out.
[Motorola Milestone Android Development] Zool2107:
Have you tried iGO for navigation? I can use it flawlessly on my Milestone with Danny's Miui mod. Also I can play Angry Birds Rio. I've installed Zeppelinrox's V6 Supercherger script in AOR and used the 6th setting.
[Motorola Milestone Android Development] DannyDroid:
I believe he offered a solution (see after the #)

Ofc I can, but I would like to test them first.
[Motorola Milestone Android Development] zeppelinrox:
ah so just leave it as default... that's no fun lol
[Motorola Milestone Android Development] alicheusz:
I have written in post above only changes that may be applied to your supercharge. As I written earlier I don't get results that satisfy all my needs. But I get better results witch stock + modified kickasskernel tweak.

It would be good to be able to switch between mail and medium webpage. And it is possible after lowering caches witch some tweak. But lower caches may make problems with heavy apps at startup. It's very hard to test every setting and find that sweet spot that is working in every situation. Settings can't be isolated and examined on its own, that's my biggest problem.

For example looking at centicsec you need have in mind:

vm.dirty_background_ratio

vm.dirty_ratio

as they tell on when flush dirty ram (zeppelinrox your settings effectively tell to flush all the time, I am right?)

vm.min_free_kbytes

lover centisecs allows lover vm.min_free_kbytes and vice versa. It's good to have it as lov as posible because ti lower multitask. If we considering vm.min_free_kbytes we also need look at

swappiness

it’s possible to lover swappines when vm.min_free_kbytes takes place. Swappiness is based on memory usage condition default is 60 everyone take more aggressive approach and lover it to fit more in ram. should we lover vm.min_free_kbytes and increase swappiness or decrease botch. I think decrease both. But there is a line here when phone is getting laggy and unstable. Looking at swappines we need look at

vm.vfs_cache_pressure

botch higher swappiness and vm.vfs_cache_pressure make apps start faster but lover multitask. Yes on such low memory vm.vfs_cache_pressure lover multitask it fills RAM witch random stuff strain cpu and IO.

If you examine MIUI startup script you will notice that launcher is QHTK (Quite Hard To Kill) in default. It's getting killed only when is nothing else to kill besides essentials google services.

There are some solutions for miui problem in my two post above in this thread. I don't think that there will be solution that satisfy everyone. For sure not heavy gamers.

Maybe you will have some idea how to achieve things below in best possible way

make market service more killable it has to big priority and sits in RAM doing nothing

get rid of vm.min_free_kbytes jet still make Maps stable
[Motorola Milestone Android Development] hwithv:
Waiting for next release.

You are working great. trust me.
[Motorola Milestone Android Development] jonatasmz:
i´m using the last Eybee MIUI rom... i just need to wipe dalik cache right?

cya
[Motorola Milestone Android Development] Sörnäinen:
Cheers, guys, you are great!
[Motorola Milestone Android Development] DannyDroid:
Ether the battery life is amazing or I've broken 1% step battery as the battery hasn't moved one percent in four hours.
[Motorola Milestone Android Development] jonatasmz:
probally there´s something wrong.. my battery it´s on 100%.. but... was 40% before i flashed the ROM and i didnt charged..

cya
[Motorola Milestone Android Development] DannyDroid:
Same happened to me =/ .

I (and by that I mean SkaDude <3 ) will look into it.

Edit: We discovered that the pre-builds that I use (from miui.us) have the 4-way boot mod built in (which was from a older release) this cause the battery status to "freeze" and fail.

SkaDude has fixed the issue by using the miui-dev builds and leaving out the 4-way boot mod until this issue has been fixed. You have SkaDude to thank for all his hard work and he will be releasing a fix soon.
[Motorola Milestone Android Development] skadude66:
MIUI - 1.7.1 - SkaDroid (i.e. SkaDude and DannyDroid) VERSION 1

- 1% Step Battery - FIXED

- APP2EXT (SkaDude)

- 4-Way Boot

- Autoboot into OR on Reset (SkaDude)

- Fixed Tiny Keyboard (yep, they still haven't fixed that) (SkaDude)

- Dalvik VM Heapsize set at 24m

- Tweak from CM7 (Thank you Lalit)

- Left in MIUI Default Overclock (1GHz)

- Stock Boot Animation (In English, from miuiandroid)

NOTE: I believe that a combination of a lot of tweaks from MIUI.cn and the fact that we started by using last week's 4-way reboot caused the 1% battery increments to stop working. Why? I don't know, but as of now they work.

That being said, 4-way boot and Autoboot into OR on Restart will not be working right now, we are waiting on roenano to release his update to 4-way reboot, you can follow it here: http://forums.miuiandroid.com/showthread.php?5651-MOD-4-Way-Reboot-1.6.24-(weekly-updated)

Download:

http://www.multiupload.com/VPWAE0GJDO
[Motorola Milestone Android Development] :
Latest 4 way reboot for 1.7.1 is up on miui android. Regarding auto reboot into OR, we need to copy 60_autoboot_or file from cm7 into the /etc/init.d folder.

Just for info. Good work Nick.
[Motorola Milestone Android Development] skadude66:
Just saw it, thanks! Placed it into the ROM and reflashed and the 1% battery increment is still working fine. I guess it must have been a conflict with last week's 4-way reboot and this week's update to MIUI.

The autoboot to OR script was already included as I did not know of the 1% battery increments when I built it. So everything is inclusive except for 4-way reboot.
[Motorola Milestone Android Development] :
For 4way reboot, you can never use previous weeks build because for each release, miui cn makes changes to framework files. So there needs to be appropriate changes in android.policy.jar file .
[Motorola Milestone Android Development] skadude66:
Yeah, we found that out the hard way! I just wonder what the link is between the 1% increment files and the frameworks.