yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] nik3r:
Media scanner? It has to be Google Music or something that you added that invoked it. I am using QuickPic for that very reason, it has its own and much faster media handling and doesn't rely on the buggy system scanner.

And this morning I had a ringtone lag too. It is as I said, the phone swaps out too much important stuff after sitting idle for longer times. When the phone rings it tries to read something back in a hurry and the I/O or CPU can't keep up so the ringtone skips. I never had this happen without DataSwap and it only happens to me when it's in standby for longer time. Quite understandable. I disabled DataSwap for now just to make sure.
[G2 and Desire Z Android Development] Stevennnn:
With the newest kernel my phone runs really smooth, and the battery usage is the best I have ever had. Right now my phone is unplugged for something around 4 hours, I have used whatsapp and email a few times and I have 92% left!

Only minor issue for me is that it took a while before I found the right option to get my qwerty on screen keyboard back instead of the Czech qwertz. (But I see you're Czech and since you have stated this ROM is primary developed for your own use I will just have to get used to change this setting )
[G2 and Desire Z Android Development] nik3r:
Nice review :)

Please note that the sleep profile in smartass is capped at 768MHz with preffered frequency of 122MHz. Also unless you made a custom undervolt, the 368MHz has the same power consumption as 768MHz. There is no point using 368MHz in respect to saving power and it can hurt your ability to wake up or receive calls when there is some heavy background task running on standby.

The default auto-brightness can be tad dark but it's the way I prefer it. Besides the display backlight is the single most power hungry module on the phone, it makes a world of difference. The auto backlight is capped at 200 for 1023+ lux. You may want to raise this all the way to 255 in the custom backlight table if you operate a lot outside.

As for the tweaks in ROM Control, most get overriden by the kernel, becauise they would deteriorate performance. And specifically the memory tweaks, they will not work. Something in the ROM was overriding my memory manager settings with the default crappy values so I had to shoot back. The kernel effectively chmods minfree values to 0444 so that they can't be changed by any apps after the kernel init tweaks them. If you think you can do better than my defaults, feel free to edit /system/etc/elitemod_kernel.sh as you see fit ;)
[G2 and Desire Z Android Development] kbeezie:
Good point on the 368mhz vs 768Mhz, I've not done any custom undervolting as I've no clue how to (and SetCPU on this device doesn't have a voltage tab). Course if you have any insight based on my power draw table, I'm more than happy to hear em.

Not sure where I can change the custom backlight table. I don't operate a lot outside, rather I'm indoors most of the time, just so happens that yesterday I was outside at the local botanical gardens, overcast day, couldn't even see my battery level under that lol. So I turned off auto-brightness and it stayed off since.

Makes sense, I imagine it's there because it's a part of the AOKP package, but you got your own thing going to keep it from overriding. So in other words ignore this setting.

---------- Post added at 11:40 AM ---------- Previous post was at 11:39 AM ----------

PS: I now changed my CurrentWidget to also log running apps, and I've cleared the log since then. So once it's back up to 100% I'll go another day treating the phone like normal and using auto-brightness and tweak my SetCPU setting to 768 top where it shows 368, and see how it goes. Hopefully with the running apps being logged it'll be easier to decipher.

---------- Post added at 11:45 AM ---------- Previous post was at 11:40 AM ----------

Edit: I found the light tables in the system settings, bumped the min up to about 50 or so which is a bit more comfortable on my eyes at the lowest.
[G2 and Desire Z Android Development] buxtahuda:
Oh man! Lol missed that you opened a new thread. Time to get to flashing I suppose :D
[G2 and Desire Z Android Development] parkave85:
Edit my previous statement of flashing kernel and everything good... it appears I lost batterybar... no biggie... I even pushed a clean systemui.apk to system but can't get it back. Idk why this is but thought I should state.
[G2 and Desire Z Android Development] nik3r:
I kinda wondered where are you, you missed a lot of awesomeness :D

Changed the CM7 thread title accordingly :D

Look into the AOKP Rom Control in settings - Battery and try to change the style.

The kernel alone makes no adjustments that would interfere directly with this settings though.
[G2 and Desire Z Android Development] parkave85:
Already tried man... way before pushing systemui.apk lol
[G2 and Desire Z Android Development] nik3r:
Good, if even reflashing the ROM with cache wipe doesn't help, you can always just wipe all settings manually.

rm -fR /data/data/com.com.android.providers.settings
rm -fR /data/data/com.android.settings
reboot

I hope you are backed up though lol
[G2 and Desire Z Android Development] parkave85:
Just realized it prolly is due to the fact I also repartitioned sdcard to sdcard and sd-ext4. Even though I backed up entire sdcard and replaced it fully after repartition?? I'd prefer not to reflash everything so any help much appreciated.
[G2 and Desire Z Android Development] nik3r:
sd-ext doesn't touch system apps or data of any apps, must be something else.

If the settings wipe fails, Titanium is your friend.
[G2 and Desire Z Android Development] parkave85:
Ok... after removal of files do I replace?? Obviously I'll need to reset settings to liking... what else to consider? Sorry for all the ??'s
[G2 and Desire Z Android Development] nik3r:
Basically delete the two folders in /data/data

Then reboot to recovery

Wipe cache and dalvik

Flash the Rom of choice and latest kernel

Reboot

If that doesn't fix it, it's something totally unrelated, like some app messing with it.

Sent from my Desire Z powered by EliteMod.
[G2 and Desire Z Android Development] kbeezie:
By the way any insight to these font coruptions (also saw it in the menu bar of SetCPU and once in Facebook app) doesn't seem to happen often (counted 4 times at best today) and the system didn't seem hot battery checked around 28C. So maybe wondering if maybe just using too many items in background etc (i.e.: didn't seem to happen til some time after I installed that Swift Keyboard 3 promo today, but might be unrelated to that specifically).
[G2 and Desire Z Android Development] nik3r:
It's just ICS bug, nothing we can do about this. I suspect it's video memory corruption, fortunately limited to a single app that can be restarted to fix it.

It was the same when Windows Vista first introduced desktop composition, some older videocards had a similar problem with memory corruption, even though they would play 3D games fine. Same way Adreno205 was never designed with composition in mind and that might be the problem.

Or it's a bug in the drivers, take you pick :D I figure if it was an easily solvable bug, it would be fixed by now.
[G2 and Desire Z Android Development] kbeezie:
That's mainly what I was wondering, since the only other ICS rom I tried was the unofficial CM9b13 release, and then yours, so no clue if it was OS prone (which you just confirmed) or if it was something specific to the rom or a custom driver.

---------- Post added at 08:00 PM ---------- Previous post was at 07:03 PM ----------

By the way why no static links to your files, I imagine trying to download thru a download.php is causing most of your server crashes (503s.etc) (or an underpowered hosting plan).
[G2 and Desire Z Android Development] nik3r:
I wrote the script it's fine! lol

I like to keep track of the downloads and the server is fast. The real problem is my PHP seems to be limited to 5 threads at a time, I didn't realize the script is actually feeding the file through http all the time it takes to download. I'll have to contact the hosting company about it or find a way around it. Was thinking about placing the actual files to another folder and have the script write to database and redirect the browser to the actual file instead.

You may think it's useless, but you can't even imagine how good it is to know I can for example pull a release safely in case of a bug, because nobody downloaded it yet. Without this I would have to make an announcement, increase version number or deal with people complaining about half-baked stuff :D This happened to me more than once.

You can see the download stats here but I prune old files from the list every so often:

http://elite-force.eu/elitemod/stats.php
[G2 and Desire Z Android Development] kbeezie:
I ask mainly cuz for the last hour or so it's been 503-ing on me as I been trying to pull the 96MB Dataswap file. Far as php only having 5 threads, that should not be an issue, I've configured my own wordpress with APC and such to handle a couple thousand hits in a span of a minute (and I only run 4 PHP-FPM processes on the server kbeezie.com runs on).

And if you're doing a simple readfile() with PHP then that's the wrong approach, causes PHP to lock up quite a bit when handling multiple requests, should be using X-Sendfile (with apache) or X-Accel-Redirect (nginx) to hand off the threading of the file to the webserver without revealing the static location.

I can't even pull up your stats.php it's so slow until it just times out on me. (Came thru on second try... unique over what time frame?)

Disclaimer: I own and operate ionvz.com
[G2 and Desire Z Android Development] nik3r:
Something like this?

header("X-Sendfile: $fullPath");
header("Content-type: application/octet-stream");
header('Content-Disposition: attachment; filename="' . $path_parts["basename"] . '"');

I tried to apply it but still 503d, looks like we have to wait for those 5 ongoing downloads to complete.

(unique ever for files I kept unpruned)

EDIT: Yeah that looks much better :D Problem solved I think.. I didn't know about that apache mod.
[G2 and Desire Z Android Development] kbeezie:
It's one of the most crucial mods for PHP regardless if you use the bloated apache server or the lean nginx server (Since php is the weak link), especially for file servers lol.
[G2 and Desire Z Android Development] nik3r:
Cool, my PHP is quite rusty, it's been like 4 years since my last big project. But besides a simple download area for a clan I never actually worked with files this way. Let alone wanted to hide the files and invoke something on DL, so this was the first and no tutorial I've seen ever mentioned that module :D

Wow I can actually download 3 files at once without clogging it :D
[G2 and Desire Z Android Development] kbeezie:
You'll basically be able to serve however many files the apache webserver can handle at once, now that the PHP processes are no longer tied up for more than a few milliseconds looking it up. I'd also reduce your keep-alive time if you have it set high just in case as well (in most cases no need to have it more than 5-10 seconds) that will also free up some connections on the apache side.

---------- Post added at 09:06 PM ---------- Previous post was at 08:57 PM ----------

X-SendFile might not be configured correctly http://elite-force.eu/elitemod/MOD_DataSwap_96MB.zip is downloading as 'zero bytes'. Sometimes when that happens it's a sign that apache/httpd may not have permission to the files/folder that they are in.
[G2 and Desire Z Android Development] nik3r:
I'm on line with support (yes, saturday 3:47 in the morning - I'm a difficult customer lol) but the guy seems to be at a loss. He said he will forward it to tech department tomorrow, so I switched back to the old script. Download now before it gets clogged again :D

EDIT: I solved the problem temporarily at the cost of exposing the files for direct links. So all downloads from my server should be perfectly stable now. The script notes the download to database and redirects to another folder with rewrites off. Crude but it works :D
[G2 and Desire Z Android Development] kbeezie:
:) well got the 96mb zip down at least.
[G2 and Desire Z Android Development] demkantor:
Surprised there hasn't been more downloads, you have done such great work and I feel like it should be shared between all g2 and dz owners! I mean 6 hits on the linux swap? How are people not interested in this? Whatever, keep up the awesome work!
[G2 and Desire Z Android Development] nik3r:
The support contacted me and they do not provide that module unless I get VPS plan and install it myself. Well my hack will have to do for now. The hosting supports unlimited filesize and unlimited bandwidth, 2GB database and free reign of subdomains as long as all the hosted files are linked and for only $5 a month. For that price I will overlook this detail and get VPS later :D

6 hits on the extended 96MB version, I read 25 on the recommended 64MB ;)

And keep in mind it's not up for long and it was was basically "undownloadable" for many due to the webserver problem, such attempt wouldn't get a thread at all and would not count.
[G2 and Desire Z Android Development] masterismos:
thanks for your answers. and smth alse. phone reboots during a call not all time but most of the times.
[G2 and Desire Z Android Development] nik3r:
try +25 on all voltages in incredicontrol. or +50. or update radio to .19.

Sent from my Desire Z powered by EliteMod.
[G2 and Desire Z Android Development] milousek73:
This ROM is in Czech language? thanks :)
[G2 and Desire Z Android Development] nik3r:
Všechny androidí ROMky maji na výběr čestinu ;)

(All android ROMs support CZ language)
[G2 and Desire Z Android Development] rc_enzo:
Screenshots are down.
[G2 and Desire Z Android Development] Broman400:
Should I use the matching .ril's with your ROM or are they already included?
[G2 and Desire Z Android Development] nik3r:
It's up to you, I was using even the .03 radio for a while without problems. I say if it's not broken, don't fix it.

The rils are whatever is stock in AOKP.

The GPS driver is from .19 RIL package.
[G2 and Desire Z Android Development] nik3r:
Experiment

Problem: audio skipping and wakeup lags with DataSwap

This is due to DataSwap blocking the I/O buffer for whatever audio you are playing. You can increase the audio buffer size in your player to mask it, but that doesn't solve the problem.

I think I have a possible solution but I'm not releasing it in a flashable package yet, because it needs changes to ROM as well.

Can you please try the experimental settings in this package?

adb push elitemod_kernel.sh /system/etc/elitemod_kernel.sh
adb push build.prop /system/build.prop
adb shell
chmod 0775 /system/etc/elitemod_kernel.sh
reboot

Note this may actually decrease your benchmark performance but should improve overall system responsiveness under heavy I/O load with full swap.

This is NOT FLASHABLE .. just saying :D
[G2 and Desire Z Android Development] jspina:
just adbed it in to my phone and will let you know how it goes. i was having issues where it would take a sec or two too long to wake up.
[G2 and Desire Z Android Development] nik3r:
I can tell it didn't help much but at least a stress test didn't lag itself to complete death like before. At least I found out which variables have any effect at all.
[G2 and Desire Z Android Development] kbeezie:
Oh It's shared hosting, that explains a lot. Yea custom modules and such are not very flexible on a shared hosting plan. If you of course are good with being self-managed (i.e.: use an external free DNS like your registrar or dns.he.net, and email like google apps, so that only your web/database/php is on the VPS) then I'm sure you can find a cheap VPS plan for around 10$ a month, can even make better use of low resources going the Nginx + PHP-fpm + mySql route (though postgresql would be lower, I'm assuming you know mysql already).

(If you want a mirror VPS lemme know).

---------- Post added at 08:47 PM ---------- Previous post was at 08:45 PM ----------

By the way I went from ClockworkMod Touch Recovery to the latest 4EXT (paid/donate) Recovery, and I noticed that if I partition my SD card to have two sd-ext , that this rom will no longer see the swap partition on the card. However if I re-partition it to have just a single sd-ext and a swap, then the ROM identifies the sd-swap. Just thought I'd let you know (I've no clue of what benefits of having a second sd-ext2 would be anyways).

by the way is there a technical explanation on why a 'df' output in adb shell would show half the actual sd-ext size (i.e.: 4EXT partition output will show that it's 2GB as I selected, but once booted and I do df -h it'll show that partition as 1GB.)

---------- Post added at 09:00 PM ---------- Previous post was at 08:47 PM ----------

Another issue, I think the light sensor is not working, I had to use manual brightness set at about half to read outside, on the light tables I noticed that the filter/raw even sitting in the car with bright outdoors around me it would still read 1/1, as such would always be on the minimum auto brightness, even as I moved the phone under direct daylight it did not increase at all stuck at the miminum brightness.

Any chance that having that invisible shield screen protector over it might be affecting the auto-brightness?
[G2 and Desire Z Android Development] nik3r:
Thanks for the offer but this will do for now, I'm not hosting anything demanding at the moment and I'm on a tight budget in this matter. In the future I will probably need a PHP + MONO + MySQL combo on a server for a webgame I started developing but that's still far on a horizon.

In 4EXT the second SD card is useless unless you write your own mounting script. As it is now the first partition is /sdcard, second is /sd-ext and third is swap. You would need to rewrite the mounting script to mount second sd-ext instead of swap. I have no idea why would anyone want that though, fragmenting free space like that I can barely fit on my 32GB card with all the experimental kernels and roms :D

The df is interesting, I'd say it can't follow mount --bind points so it sees sd-ext as a folder on /data partition. That folder has bound storage on another device but df doesn't follow the link. In essence it is true, there is an empty folder named /data/sd-ext even if the card is unmounted.

The brighness gets stuck if some app is using it and doesn't release the driver properly. For example an app registers a listener on sensor change and then it force closes for some reason. There's a 50:50 chance this would happen, a reboot will solve it until next crash.

By chance I'm just working on Lumos for Android, app that gives you total control over backlight so I know this driver bug very well :D
[G2 and Desire Z Android Development] kbeezie:
Yea I wasn't even sure why there was an sd-ext2 option, short of some archaic rom that couldn't see more than 1GB per partition or something.

Which would confirm my suspicion that it was working a couple days ago to some extent (just too dark for me) and then maybe something somewhere crashed it before I was using it in the car.

Looking forward to the release of this app. Right now I got it setup in 12 steps from 55 at the lowest to 200 at the highest. That's of course if the sensor would actually work most of the time for me.
[G2 and Desire Z Android Development] nik3r:
New EliteMod and EliteKernel

with date stamp 120624 are released

This is currently my best shot to address the most pressing performance issues. DataSwap viability is again increased dramatically, the swapping lags should be very reduced or gone completely. Raw performance increased little over 5% since last kernel version and general smoothness and multitasking should be improved as well.

Wipe dalvik + cache, flash ROM and flash DS mod if you want.

No fullwipe necessary coming from last version as most changes are in kernel.

For AOKP users - definitely flash the full version of kernel, the compatibility version is just for CM9.

Changes since 19th:

- improved network throughput

- 3G tweaks

- fixed the random scrolling/pinching bug

- eliminated extreme lags on background app ANRs by writing immediate stack traces to /dev/null

- improved memory management when using DataSwap, apps should now actually get killed when swap is nearing full

- fixed root always mounting as RW

- included todays release of Awesome BEATS by ...Awesome... (you may need to enable the engine in Settings - sound - effects)

- updated all bundled apks

- I/O tweaks for better multitasking, sometimes I have a feeling I'm the only one who actually RTFM

- Enjoy :)
[G2 and Desire Z Android Development] kbeezie:
Flashing away now. :D

:D What Manual? :D
[G2 and Desire Z Android Development] nik3r:
This one: http://www.linuxinsight.com/proc_sys_vm_hierarchy.html

According to this, the "widely recommended" uber tweaks for caches are all wrong

Talking about

dirty_expire_centisecs

dirty_ratio

dirty_writeback_centisecs

dirty_background_ratio

I don't get why background ratio should ever be less than ratio for example. Unless I'm an idiot it should be the other way around, basically I think that ratio is sync write while background is async write, and you never ever want async write to have any kind of high priority over sync write, because it would just lag the whole thing. :D

I can be wrong but both logic and benchmarks say I'm right. :D
[G2 and Desire Z Android Development] kbeezie:
Digging that Awesome Beats controls. :P

EDIT: Though on the other hand, seems the next time I goto the app, it didn't save any of my settings (all are marked as disabled again for say Headset).

---------- Post added at 01:08 AM ---------- Previous post was at 12:36 AM ----------

Just a small note on this, if you've manually installed an application as a System App (in my case Mobile Defense Beta), you'll need to reinstall it after applying the rom, as it seems it replaces everything in /system/app fresh, thus removing any custom apps I had moved to that folder.

---------- Post added at 02:00 AM ---------- Previous post was at 01:08 AM ----------

Based on the data I found in /data/local/undervolt.sh (which are the same values currently in vdd_levels) I've re-adjusted my SetCPU Profiles based on the maximum frequency of the same shared voltage (since OP made a comment earlier regarding 368Mhz consuming no less power than 768Mhz with the default undervaluing table).

In Order of Priority (all but overheating profile are at SmartAssV2 Governor)

Battery > 46C 768 - 122 Conservative

In Call 768 - 122

Screen Off 768 - 122

Charging & Battery <= 70% 768 - 122

Battery <15% 768 - 122 (default max voltage: 925)

Battery <30% 844 - 122 (default max voltage: 950)

Battery <50% 940 - 122 (default max voltage: 1000)

Battery <75% 1171 - 122 (default max voltage: 1100)

Battery <=100% 1286 - 122 (default max voltage: 1150)
[G2 and Desire Z Android Development] DRSdroid:
i had JUST redone my phone to eliminate all swap partitions (i was having a TON of lag issues with google music and general UI responsiveness issues) I formatted everything and removed both swap partitions (dataswap & sd swap). Then you go and release an update!

I installed the update and decided to still avoid sd-swap, but i'm using the 96mb dataswap again and so far it seems as though everything is good. I'll report back with any problems after a day of use.