yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] iDynamics:
Without hw overlays enabled this rom most certainly speeds up. Great job as always t_f. :)
[Galaxy S II General] RukusX7:
In my hellkat rom, this is usually green lines that glitch across the screen. I tend to have problems with RR's with Disable Hardware Overlays unchecked.

Have you made any major changes to the kernel to help with hardware overlays?
[Galaxy S II General] titanic_fanatic:
No actually, so that goes to show that it might not be entirely related to the kernel which I originally thought the case. I'll have to diff cm with carbon to see what differences there are.
[Galaxy S II General] RukusX7:
Seriously, some devs had given up on fixing project butter, but I always impressed with what titanic_fanatic brings to our device!!! I might switch to this rom if it works so well. I'll do builds with DIABLO or UBER kernel perhaps, Also dont forget the work that TF is doing to his kernel as well. our kernel diff's slightly from the hercules and skyrocket (which mine is based on), and he will likely have a kernel that is tweaked specifically to our device.

Great work [MENTION=4859152]titanic_fanatic[/MENTION]!!

---------- Post added at 05:08 PM ---------- Previous post was at 05:06 PM ----------

Yeah, I've been all stuck on the kernel as well. But I agree its starting to not appear as so. You're making some amazing advancements lately!!!
[Galaxy S II General] titanic_fanatic:
With your hw overlays disabled, do you get graphical glitching in the gallery? I get those lines rukusx7 was talking about.
[Galaxy S II General] titanic_fanatic:
Might have just found a really easy fix for the graphics glitching... FACE PALM ;) Only time will tell though. Navigate to /system/lib/egl and edit egl.cfg. you will see this:

Change this to:

This will force the device to always use adreno200 for graphics processing. I don't get those wavy lines in gallery anymore with hw overlays enabled, and I haven't had any screen flickering yet either. Not sure what this means for battery yet, but this might just be a step in the right direction ;)

Please let me know how this works out for you guys.
[Galaxy S II General] manfromgta:
I made the change this morning. Will report back later. Thanks TF!

Sent from my SGH-I757M using Xparent Cyan Tapatalk 2
[Galaxy S II General] manfromgta:
Well after 10 hours with your little trick TF the results are positive. No glitches or weird lines through screen. Overlays were unchecked as well. The battery life seems unaffected by the changes in my view. The overlays do not stay unchecked through reboot. I suppose this will be changed if you find this fix to be effective. This is awesome. Thanks once again!

Sent from my SGH-I757M using Xparent Cyan Tapatalk 2
[Galaxy S II General] JayR_L:
I just applied the egl.cfg fix to your Slim build, removed the init.d script and rebooted with HW overlays unchecked. Improvement was noticed, and no glitching so far.
[Galaxy S II General] titanic_fanatic:
To make your external sdcard usable by apps, use the terminal emulator and

Now you should be able to use your sdcard for whatever ;)

EDIT:

You will have to do this every boot for now.
[Galaxy S II General] formercontra:
I was thinking when people were reporting all the bugs, my phone runs fine why am I not experiencing these at all? I've been setting the minfrees at light or ultralight immediately with the past few updates, so I guess that's why I never noticed anything. Can confirm the 2 lightest options are best for our phone :)
[Galaxy S II General] titanic_fanatic:
I am currently the maintainer of all KitKat roms for this device except for Strange Peer has his own build of cm-11.0.

I had no prior experience with kernel programming or even c and c++. I learned by spending a lot of time with Google and got really good at knowing what to search for. For me it's intuition. The rest is a matter of posting in the right forums for help when I need it or watching other threads for similar devices. If they apply a fix, I can check to see what they changed in their repo and compare and maybe cherry pick to my own code source like I did with the slim recents.

The biggest thing is patience and willingness to learn about hardware and how it works at the lowest level which is how you learn to understand how each file full of code works the way it does.

For android programming, java is the language and is easy to learn. I encourage you to Google it if it interests you as it's very easy to pick up. It's also much easier than kernel programming and there's do much more documentation for app programming vs kernel programming.
[Galaxy S II General] RukusX7:
I second the memory presets. I've never liked how aggressive they seem and I've automatically chose a setting in the middle. I'm gonna try even lighter settings now and see what I find out.
[Galaxy S II General] Sultanxda:
Trick the device into using the USB charge source when an unknown charge source is detected... You mean this? https://github.com/sultanxda/sultan...lob/cm-11.0/drivers/power/sec_battery.c#L2477 and https://github.com/sultanxda/sultan.../cm-11.0/drivers/power/smb328a_charger.c#L712

It seems like a few other changes are needed in those drivers, but it doesn't seem that bad.

As for your RAM woes... Here's a patch to utilize all of the available memory while retaining the 0x48000000 kernel start address: http://d-h.st/m3i

You can apply that patch as a cherry-pick with the git am command (git am Sultan-I757-mem-map_5-19-2014.patch). It requires this commit in order to apply cleanly to your kernel: https://github.com/titanic-fanatic/...mmit/e9f245fdfd797e5a70af3ccb07584fc35ea309bd

EDIT: Made a small derp in that patch: msm8x60_calculate_reserve_sizes should not have been removed. Instead, it should be empty.

EDIT2: Also, since I don't have an I757M, I have no idea if this works ;)
[Galaxy S II General] titanic_fanatic:
Thanks for the patch, I appreciate it. Unfortunately it boots and then freezes and reboots. Will try to get a log later, just didn't have time.

Are you having any luck with the video glitching?
[Galaxy S II General] Sultanxda:
You added back the 2 parts to msm8x60_calculate_reserve_sizes, right? Does it get to the boot animation?

I'm taking a break from those graphical glitches since they're driving me crazy :p
[Galaxy S II General] titanic_fanatic:
Yes, I added back the posts for msm8x60_calculate_reserve_sizes. It fails to boot on the first boot, but in the second boot, I get past the boot logo and animation to "Android is upgrading" then it freezes and reboots.

Those glitches have been around for me since my first KitKat build so I feel you. I've been bashing my head on the wall trying to figure this out for quite some time now and can't wait to lay it to bed ;)
[Galaxy S II General] Sultanxda:
What really irritates me the most is that newer framebuffer drivers won't boot. I hate it when manufacturers add all of their display hacks to the framebuffer drivers :mad:

Try changing MSM_ION_SF_SIZE to 0x2900000
[Galaxy S II General] titanic_fanatic:
Awesome, will give this a try tonight ;)
[Galaxy S II General] titanic_fanatic:
I another note guys, I will be posting a new build late tonight. We will be using my 91fixoverlays script to fight the graphics glitches that will cause a reboot at this time. All changes since the last build have been synced with sources.
[Galaxy S II General] formercontra:
Will this update have the increased RAM?
[Galaxy S II General] titanic_fanatic:
Not yet, but next release ;)
[Galaxy S II General] GrAt_On:
I am so psyched thinking about how far the development for this phone has come! I wish you the best of luck! :)
[Galaxy S II General] titanic_fanatic:
New build is up

New build is up. This one uses the new kernel that uses media-caf and also uses the new camera wrapper. This fixes the issue with the camcorder pausing 5 seconds before starting to record.

With the existing commits, there was an issue with the Google Camera FC when you tried to open the resolution settings. I reverted the commit that broke this so it's now fixed ;)

I have been forced to add back my 91fixoverlays script because the new kernel causes the same graphical glitching that we experienced previously and it's really bad this time. I would say you have a 99% probability of a reboot if you turn hw overlays back on. If you remove the script, you will most likely not be able to get into android without the phone rebooting, so leave it in place for now. I know this is not favourable because of the performance hit, but it's necessary right now and the old "lag" isn't actually that bad if you set your window animation scales to .25x.

For the gapps, I have not had a chance to update them so they are still the release from March.

Like most of you have already tried with the new Omni performance controls, I'm using the light setting under Memory Settings and am experiencing the same positive results that have already been posted. I agree that the settings were way too aggressive, and will hard code the light settings into the next build. This will be our new base Memory Management settings and you can choose to increase or decrease as you please. This will help improve the "Out of the Box" experience ;)

In regards to the new kernel RAM optimization that I'm working on, it's unfortunately just not ready yet and I'm still trying to bump it up just a little more with the help of [MENTION=4800121]Sultanxda[/MENTION]'s patch. It didn't quite work, but it also did not produce a non-booting ROM so that is good news. I haven't tried his last change yet, but that is next on the list after I get out new builds for all ROMs with the new changes to the kernel and camera.

And now, the download:

Download

Thank you to "Everyone" for all your patience and continued support, you guys make this forum worth visiting ;)

Enjoy!!!
[Galaxy S II General] formercontra:
So glad they finally removed that awful white flash from the default boot animation

Also looks like the Interactive governor got replaced with Intelliactive, though it's still called interactive. Same basic governor but with a few more ondemand-y parameters, very neat
[Galaxy S II General] big_biso:
TF, Thanks for the new build. I flashed and it seems to work fine and kept all the setting for performance from the previous build. The delay in video recording is gone but the weird thing is i have over 70% battery and when I took a photo the phone shutdown and when I brought it it up it had only 41% battery (i know this is known issue that cannot be reproduced but this is the first time it happen with me when battery is almost charged).

Since I switched to carbon, the last few build always have problem with Google Play service FC repeatedly after start up until I go to the play store and and install it again. it never happened with CM11. it could be gapps thing.

Also something did not happen in CM11 is an APP that I use for VOIP called Magicjack. IN CM11.0 it works fine. in Carbon it keep initializing at startup and can never be used (just loops trying to start). I hope you can try it on your phone and see if it works. I am attaching a logcat for this problem

EDIT: The lockscreen button programing (longpress) is seems to be fixed also in this build.
[Galaxy S II General] manfromgta:
In new build, clicking menu from home screen then clicking settings is not working. Other than that, it's running well for me. Thanks very much for the release.

Sent from my SGH-I757M using Xparent Cyan Tapatalk 2
[Galaxy S II General] big_biso:
i tried interactive in both this build and the previous one, but it is sluggish. it starts ok but after a while it get laggy.
[Galaxy S II General] titanic_fanatic:
Thanks for the log. I will look over it this evening ;) still haven't been able to log the camera issue yet :(

Here's a fix for Launcher3.apk to fix the settings button from launcher menu.

http://www.androidfilehost.com/?fid=23501681358537446

Just replace existing Launcher3.apk with this new one and set the save permissions as the other apps then reboot ;)

I find on every rom that ondemand/deadline are the best settings for this device.
[Galaxy S II General] manfromgta:
Here's a fix for Launcher3.apk to fix the settings button from launcher menu.

http://www.androidfilehost.com/?fid=23501681358537446

Just replace existing Launcher3.apk with this new one and set the save permissions as the other apps then reboot ;)

Replaced and working as it should. Ty TF!!

Here's a little feedback...Recording and playback of a 3 minute test video was flawless at 1080 res. The camera started with no delay. Perfect!!!!

Running ROM since release with ondemand/deadline is showing normal battery usage for me.

I also kept your new default memory settings which seem to work well.

I have not experienced any flicker as of yet. I used to get it on all ROMs while typing in this taptalk app, but its gone now.

Definately moving in a positive direction with development!!!! Thanks again for all the effort!
[Galaxy S II General] RukusX7:
I just bought a Asus chromebox and installed Linux mint 17 rc on it with coreboot bios. All standalone baby! Who thinks I can compile an android ROM on it? I only have 2gb ram but I think I can make it happen! Maybe run a larger swap or swap on my ssd. With new ssd firmware that requires fewer writes, I think its doable! All I need is an external sata hard drive adapter and I can try!
[Galaxy S II General] formercontra:
Interactive worked fine on other builds, I'm pretty sure what's causing the lag is its lack of cooperation with mpdecision. I can't seem to get Interactive to boot without mpd no matter what app I use, meanwhile yeah I am getting very good standby drain with ondemand (which plays much better with mpd it seems)
[Galaxy S II General] RukusX7:
+1for ondemand/deadline. Should tweak the ondemand gov some perhaps.

What are our thoughts on this optimization? [MENTION=4859152]titanic_fanatic[/MENTION] and anyone.

http://xdaforums.com/showthread.php?t=2754997
[Galaxy S II General] titanic_fanatic:
Looks like someone with Carbon has already thought of that. Here is the pending commit in their gerrit ;)

https://review.carbonrom.org/#/c/11/

Hopefully this works out for our older device.
[Galaxy S II General] big_biso:
Dalvik Setting

I am looking for the best setting for our device under Omni Performance -> Dalvik settings. the default settings seems to be very high for our device. I looked online and found different people talking about different best settings, but I found a thread that talks about Samsung phones and the following setting were used for best performance, so I changed on my I757m and will see. But what is your take on this:

vm.dirty_writeback_centisecs=2500

vm.dirty_expire_centisecs=1000

vm.dirty_ratio=90

vm.panic_on_oom=0

vm.dirty_background_ratio=60

vm.page-cluster=3

vm.swappiness=0

vm.vfs_cache_pressure=25

vm.min_free_kbytes=4096

vm.min_free_order_shift=4
[Galaxy S II General] formercontra:
Those are pretty much what I've got for dalvik settings, except I keep vfs cache pressure at 10. Probably not that much of a difference either way. For Ondemand, things are going smoothly with these settings if anyone's interested:

down_differential = 2

down_differential_multi_core = 2

ignore_nice_load = 1

io_is_busy = 1

optimal_freq = 384000

powersave_bias = 10

sampling_down_factor = 1

sampling_rate = 20000

sync_freq = 384000

up_threshold = 95

up_threshold_any_cpu_load = 95

up_threshold_multi_core = 95

That's preferred toward battery, if you want more performance lower the up_thresholds/raise the sampling down factor. I don't really know how optimal_freq or sync_freq affect performance, they might need to go lower or higher.

edit: looks like lower is better for sync and optimal
[Galaxy S II General] manfromgta:
I've been playing with an app called "Lux" to maintain my display brightness. There is a free version on play store. I opted to buy paid version because it allows for negative brightness figures. It has really improved battery life significantly. You basically set a percentage of back lighting for a given ambient light value.

I find it more accurate than androids auto backlight feature. Just thought I'd share for those interested in checking it out.

Sorry for o.t.

Sent from my SGH-I757M using Xparent Cyan Tapatalk 2
[Galaxy S II General] big_biso:
i just discovered that the new values are not sticking.. once you are out of omni they are back to old value. It must be a bug
[Galaxy S II General] formercontra:
I use Performance Control to set all the options, includes sysctl and io scheduler settings too!
[Galaxy S II General] RukusX7:
Trickster mod will set all those values as well. They are edited in sysctl.

I also found this,

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

The script is meant for the i717 but IMHO our phone is very close to the note.

---------- Post added at 06:47 AM ---------- Previous post was at 06:28 AM ----------

I've unchecked disable hardware overlays with this script applied and I'm having positive results. Can anyone test for me?
[Galaxy S II General] big_biso:
yes I installed the script too. too early to report back and will update by EOD. but what I noticed is that, this script will set the memory setting back to aggressive so we might get freezes and notification drop down freezes

---------- Post added at 10:48 AM ---------- Previous post was at 09:57 AM ----------

it did not take till the EOD to get results. the system did flickers and then crashed after unchecked disable HW overlay.
[Galaxy S II General] iakovl:
well i can't answer calls, show there is a call but no option to actually answer it
[Galaxy S II General] titanic_fanatic:
The answer and hangup buttons are at the bottom of the call screen when you receive a call. Just press answer.
[Galaxy S II General] iakovl:
well... they ain't in my case
[Galaxy S II General] RukusX7:
Try out a dirty flash of the ROM after wiping cache and dalvik. If that doesn't work, reinstall from scratch or try a previous carbon version
[Galaxy S II General] RukusX7:
I'm very serious that after installing the script I posted earlier, I do not experience any glitch with hardware overlays enabled. I used trickster mod to apply sysctl at every boot. Basically run the script and use trickster to capture those setting to apply every boot. I think there is a way to keep things persistent in the script too but I didn't do that yet.

Worth looking into titanic_fanatic. I'm still on my own Hellybean kernel mar 27 build.

I only just had one instance where the app drawer persisted to draw over the left menu button function at home screen. Bit that could just be a buggy launcher.

---------- Post added at 07:46 AM ---------- Previous post was at 07:14 AM ----------

Also, have a look at the quincyatt defconfig in the Hellybean repos.

https://github.com/Hellybean/androi...h/arm/configs/cyanogenmod_quincyatt_defconfig

Maybe because we share that same kernel offset, there is something there to help us.
[Galaxy S II General] formercontra:
Is there a way to get inside that script's xmd file that goes in /xbin to see what all the exact changes are? If I could do that I could pick through the changes and maybe see what fixes the graphics, while avoiding anything we don't want like aggressive minfree settings
[Galaxy S II General] RukusX7:
No idea. I had some glitches recently. But they've definitely minimized. You can try contacting the developer for more info maybe. I run the aggressive minfrees with no issues so far.
[Galaxy S II General] formercontra:
I got to the list of settings, and it sets the composition to gpu and adds "ro.config.disable.hw_accel=false" to build.prop.... which I take to mean doesn't fix hw overlays, just disables them regardless of however you toggle it in developer options.
[Galaxy S II General] RukusX7:
The glitches have returned for me. I guess I was having a good run perhaps... But Maybe what some of this script does is still relevant to those wishing to tweak some values.
[Galaxy S II General] formercontra:
There's quite a few sysctl and build.prop values... the script does a few other more complicated things, but these are the tunable settings

#sysctl

fs.lease-break-time=10

net.ipv4.conf.default.rp_filter=1

net.ipv4.conf.all.rp_filter=1

net.ipv4.tcp_syncookies=1

net.ipv4.ip_forward=1

net.ipv6.conf.all.forwarding=1

net.ipv4.conf.all.accept_redirects=0

net.ipv6.conf.all.accept_redirects=0

net.ipv4.conf.all.secure_redirects=1

net.ipv4.conf.all.send_redirects=0

net.ipv4.conf.all.accept_source_route=0

net.ipv6.conf.all.accept_source_route=0

net.ipv4.conf.all.log_martians=1

net.core.rmem_max=6777216

net.core.wmem_max=16777216

net.ipv4.tcp_timestamps=0

net.ipv4.tcp_keepalive_probes=3

net.ipv4.tcp_rfc1337=1

net.ipv4.tcp_mtu_probing=1

#build.prop

ro.sf.compbypass.enable=0

ro.min_pointer_dur=1

ro.secure=0

ro.max.fling_velocity=25000

ro.min.fling_velocity=15000

ro.config.disable.hw_accel=false

debug.egl.hw=1

debug.sf.hw=1

debug.composition.type gpu

debug.performance.tuning=1

debug.egl.profiler=1

debug.gr.swapinterval=0

debug.gr.numframebuffers=3

hw3d.force=1

persist.android.strictmode=0

persist.sys.NV_FPSLIMIT=60

persist.sys.NV_POWERMODE=1

persist.sys.NV_PROFVER=15

persist.sys.NV_STEREOCTRL=0

persist.sys.NV_STEREOSEPCHG=0

persist.sys.NV_STEREOSEP=20

video.accelerate.hw=1

windowsmgr.max_events_per_sec=90

touch.presure.scale=0.001

persist.sys.shutdown.mode=hibernate

ro.config.hw_quickpoweron=true

persist.sys.purgeable_assets=1

ro.config.hw_fast_dormancy=1

ro.config.hw_power_saving=true

ro.ril.disable.power.collapse=1

pm.sleep_mode=1
[Galaxy S II General] titanic_fanatic:
Here's a fix for the omni performance controls. It's flashable from cwm and fixes a permissions issue where the settings would not stick if set in the performance control app ;)

http://www.androidfilehost.com/?fid=23501681358541470
[Galaxy S II General] manfromgta:
Thanks for the fix TF. Unfortunately there was a status 6 error in recovery. I found culprit and corrected it. I uploaded to Google drive. Cheers!

https://docs.google.com/file/d/0B2b1GYy3t8rlRVB2MWY2OVloaU0/edit?usp=docslist_api

Sent from my SGH-I757M using Xparent Cyan Tapatalk 2
[Galaxy S II General] titanic_fanatic:
Can you make the file public in your Google drive? It says I don't have permission ;)
[Galaxy S II General] manfromgta:
Here use this link. Google drive is giving me a headache today. lol

http://www.mediafire.com/download/y6y8rnlv8jmhh4f/FIX-PerformanceControl_CARBON-KK-20140602.zip
[Galaxy S II General] big_biso:
4.4.3 is released to nexus devices.

Mobilesyrop also said that it is released to AOSP
[Galaxy S II General] Tronith:
Hello guys. So was wondering... We're is the home screen menu on carbon? I can't make any. Ore screens and I've racked my brain looking. I even went to carbon official site and got nothing.... Help :s
[Galaxy S II General] RukusX7:
Good question. I also thought I had two home screens.... I just have 1.
[Galaxy S II General] manfromgta:
If you long press any app in drawer, you can drop it on another screen. To change order of screens (when you have more than one) long press home screen then slide screens to order you prefer. As far as I know there is no context menu for this launcher in settings.

Sent from my SGH-I757M using Xparent Cyan Tapatalk 2
[Galaxy S II General] RukusX7:
This worked for me. Thanks
[Galaxy S II General] big_biso:
swiftkey is free

Swiftkey keyboard is going free forever if anybody interested. it is one of the most popular keyboard app in the store
[Galaxy S II General] manfromgta:
Just a quick question. Is there a way that anyone has noticed to clear all recents at once like the old recents? I believe the option is in settings for clear all handle location but it doesn't appear to function.

Sent from my SGH-I757M using Xparent Cyan Tapatalk 2
[Galaxy S II General] titanic_fanatic:
For the slim recents app, just pinch like your zooming out and that will clear them all.
[Galaxy S II General] manfromgta:
Well that's neat. Lol. I'm liking it.

Sent from my SGH-I757M using Xparent Cyan Tapatalk 2