yashsingh1/xdaforums huggingface dataset:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] arcatarc:
Hd Playback

Hello CTCaer, it seems clear that you are a great developer, and I'm sorry if I go off the topic, but I noticed that replacing libOmxVdec.so of Ray with that of Xperia S, video playback in HD (from youtube)becomes very fluid, but those recorded with camera become very jerky, so I was wondering if perhaps you were able to fuse them together (maybe with a binary editor), I tried, but I failed.

I am attaching the two files, when you have time maybe you could give him a 'look?

Thank you in advance GREAT!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] jmurugesh:
Lags in Gaming

Looks like the phone lags in Gaming.

One thing not able to understand. When we run Benchmarks, the score level is crossing the Gingerbread ROM's. But while Gaming, this one lags more in comparison with GB ROM's. Looks like, still there are some more factors needs tuning for better support of Gaming...

Any specific reasons CTCaer?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
There's a really greeeeaaaaaaaatt possibility that these libraries work with the updated vidc code I was trying before weeks.

And when I tried them the hw playing was lagging with stock 2011 omx libs.

So indeed xperia s' omx libs may work pretty good with that code.

I don't know if they are good though (don't forget xperia s is optimised for 1080p play/rec and also the optimization is for a dual core).

A little testing when I have time will shed some light.

Unfortunately an ics rom will never be as good as gingerbread in games without swap.

The reason? Ram usage. Libraries from ics use a lot of ram and when a game runs which needs a lot of ram the killing of apps starts.

The constant killing/starting of services is what kills ics gaming. In GB the ram usage is lower and so that killing is lower in frequency.

For me the only way to play big games is by using swap. Until now nothing else worked and will not. Not until sony updates and fix at last it's 2011 ics roms and not the .13 fiasco.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] FEXTEZI:
Hello Dear CTCaer ! Just want to say HUGE THX for your hard work (Elegant AOSP and Kernel)

Iam using now 2.6 1.4Mhz version and i can say that its my best kernel for Zelly Cream 2.0 ! Very very good with battery! And performance is not soo bad but can be better!

I wish you Good Luck in the furure and May God Bless you !
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] arcatarc:
Greeeeeeaaaaaattt BRO',let me know if you need something from Xperia S(lib,bin,etc..).

if you succeed I will organize a petition among members of xda to force sony to make you work with them :laugh: :laugh:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] templeka:
CTCaer would you mind telling me what setting you use for swap in ICS? I mean the size of the swap file and the swappiness?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Maximus1a:
please can you have a look in making int2ext running with your kernel?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] ehl.ey14:
what is the pest scaling and i/o scheduler ? please reply asap
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] knightthgink:
smartassv2/SIO
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Hahahaah. Well the problem is that they must sell their new phones which are update.

If they update the old phones they would have waaaaaay less sells on new ones.

But still they come and say that our phones can take jb.. -.-

What jerks.. ICS is a lot of heavier than jb.

Well when I'm gaming I enable it to 256mb. and swappiness at 10 (to minimise swaps only when needed).

After that I disable it again if I remember it :P

But in my opinion more than 256 or 384mb is an overkill.

The most that I have ever seen my device use after heavy gaming and other stuff was 186mb.

So yeah 256mb will be enough

Well I didn't know what int2ext was before you mentioned it.

It unmounts /data and mounts /sd-ext to /data.

It should be working though. I assume you run it as a init.d script right?

If this runs exactly at init.d execution (before zygote android startup probably) without any sleep it should work.

For cpu smartassv2

For i/o is what you need. The most balanced is SIO.

Faster to slowest: deadline, bfq, sio, cfq

Cpu usage less to biggest: sio, cfq, bfq, deadline.

The above may not be fully accurate though. Still deadline is the fastest but uses a lot of cpu.

Sio has some functions of deadline so it's super light but loses some speed.

cfq is the default in linux systems and works good at all systems.

bfq is an optimized cfq for android. It provides almost the speeds of deadline but has a waaay better cpu management (through cgroups).

One is sure: sio and deadline will work good for you for sure.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] ehl.ey14:
i used max. frequency 1.4Ghz

Min Freq : 122Mhz

Governor : SmartassV2

and i/o scheduler : Sio

But it drains my battery :) please help! for maximizing my battery

i normally use my ray for textin, call, fm radio but it only last 15-18 hours
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] TheDynamiteGuy:
ctcaer please make a gb kernel like this..
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
If you previously used your phone at 1Ghz this is expected. 1.4Ghz uses 10-20mW more than 1Ghz.

But still check for services draining your battery.

For example google maps, weather widgets, facebook, viber and more. If they are properly setted they don't drain too much (for example I have disabled google maps location service and weather widgets updates at 1hour).

My phone after lots whatsapp msgs, some calls, youtube, browsing (wifi and some times gsm data), music, testing things and more @1.4ghz smartassv2 last a day with 20-35% left. And this drain is almost like it was when I got the phone and had aire's kernel.

And I say almost because through charge cycles (1 year now) my battery lost some max juice but still is reported as a 1500mah.

Also the last 3-4weeks the drain is a little more because of google's gms play app, the one with the fancy jigsaw icon.

EDIT1:------

After full day send me your usage from the battery 1st and 2nd screen menu. And also the time usage in usage details of radio (gsm/3g), idle, wifi, screen and whatever is on the top list in hours-minutes.

Also if you only use your phone for these it's better to create a init.d script and restrain max frequency to stock 1.0GHz like many users here do. This will drain a lot less than sony's stock kernel.

It seems that the next version will take a lot of time to complete, because of the difficulty of changing many parts of msm_fb and mdp4_overlay drivers.

So yeah I'll also work for porting my changes to a gb kernel now.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] jmurugesh:
CTCaer GingerBread Kernel... Excellent!!!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
CTCaer GB kernel development is going good.

Have to short out some compile errors on cpu schedulers and will see the 1st test build.

Other than that I have and idea when Xperia S jellybean update comes out.

Xperia S is the only phone with a kernel close to ours, so I want to try to port the whole jb kernel and rom to our phone.

The most difficult part will be ray's specific hardware drivers and porting the whole board-mogami..

One can dream right? :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] jmurugesh:
Best Wishes for your development..
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] knightthgink:
just want a super fast ICS kernel.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] jmurugesh:
That is already available. CTCaer v2.6
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] knightthgink:
Re: [KERNEL][ICS] ** CTCaer Kernel ** v2.6 [Linaro][UV/OC][Triple Buffering][RAM Hack

More faster
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] nedunilavan:
Great & much more faster than xkernel...

But I prefer to use cwm Touch Recovery by DooMLoRD/Team UtterChaos...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] frogerra:
Re: [KERNEL][ICS] ** CTCaer Kernel ** v2.6 [Linaro][UV/OC][Triple Buffering][RAM Hack

In my device, take a little time to to scan my sdcard on first boot. So my RamExpander can't autorun.

It's X-Ray with Tapatalk!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] knightthgink:
Re: [KERNEL][ICS] ** CTCaer Kernel ** v2.6 [Linaro][UV/OC][Triple Buffering][RAM Hack

Will update this week?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] meister777:
Paragon NTFS&HFS+ talks FUSE not installed, but "Modules for CIFS, NTFS, FUSE and USB Storage" are inslalled.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] sheppii:
I was hoping, that someone will say that! Man, if you can do this, you will definetely move our phones to the next level!

Wish you best luck with that! I will pray for it! :D

---------- Post added at 04:15 PM ---------- Previous post was at 04:14 PM ----------

Lol, then get better phone :laugh:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] skb6T9:
Re: [KERNEL][ICS] ** CTCaer Kernel ** v2.6 [Linaro][UV/OC][Triple Buffering][RAM Hack

does this kernel support cm9.1???

i just found this information in a sticky... just being sure.....

Sent from my Xperia Ray
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Yovecio:
R: [KERNEL][ICS] ** CTCaer Kernel ** v2.6 [Linaro][UV/OC][Triple Buffering][RAM Hacks

A little question, so from now you have implemented, point 1 & 2 of project butter, 3 & 5 are found so will be implemented soon and remain only 4th point to be found right?

Correct me if i'm wrong :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] m16:
Will this work with version .431?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] frogerra:
Re: [KERNEL][ICS] ** CTCaer Kernel ** v2.6 [Linaro][UV/OC][Triple Buffering][RAM Hack

Is 2.6 support init.d? Cause all my tweak is not working.

It's X-Ray with Tapatalk!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
These modules need to insmod 1st. I don't know if paragon does it.

For example Usb Otg Helper does it and works pretty on my phone. Yesterday I was copying a movie from my sd card to an ntfs harddrive and all were good.

Indeed, that is. I can't find any relevant patches for the 4th point in codeaurora's git. I'll search more.

Btw the developing of it and also the dev of gb kernel is right now halted. :/

I have absolutely no time currently to work on these because of my job.

I'll get to them as soon as possible.

I think so. Try it anyway.

It supports init.d from ramdisk way and from the install-recovery way. All scripts in my phone work well.

If it worked previously check the sh path and commands in every script, because in 2.6 the path order that checks for binaries is now:

/system/bin:/system/xbin:/sbin. So everything will use the busybox you installed and not the one in ramdisk
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] knightthgink:
hello CTC

will you release new version this week?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] superwoosh:
He just said he is busy with his job, so he can't work on the kernel at the moment. What's wrong with the current one anyway?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Unfortunately some ppl think that kernel development is like changing a x, y value here and there and some pics in an apk file, even though I write in my threads how i make thing done.

Even the installing linux, libs and everything you need to compile and make that compile finish takes hours the 1st time..

I even lost 37 hours of programming when I tested the latest adsp code and just to find that you had to change many things in board code and also use new libs in android. All that in vain.

So for ppl that don't apreciate work done just 2.6 of CTCaer kernel has thousands of lines of code changed from stock.

And the the things that I want to work on now have 1 year of changes to the video drivers. And I must

backport

them to work on our kernel and still don't know if the end result will work good.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] yousufhere:
Hello CTCaer! there is no doubt this kernel is faster than the legendary xKernel by sirkay! Since Sirkay left ray development we cant have updates! but xKernel D version was good enough so doesn't need further dev, Sirkay has done enough work, have respect for him!

Now CTCaer 2.6+UV is another kernel that i feel is great as xKernel & even if u stop updating it people will use it! I personally appreciate your work coz when i use ray i can see the difference, um testing this for 1 month & i am satisfied!! i respect u :D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] king3:
WiFI doesnt work.

I've finished installing this kernel but the wifi does not turn on. What I can do to make it work again? I'm Using ViperXperia. Thank you.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] arcatarc:
R: [KERNEL][ICS] ** CTCaer Kernel ** v2.6 [Linaro][UV/OC][Triple Buffering][RAM Hacks

Try installing stock wifi modules:

http://xdaforums.com/showthread.php?p=36988793

Inviato da me!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
For kernel devs and other curious people:

Ok found some time to update my kernel sources at https://github.com/CTCaer/CTCaer-ICS-Xperia2011 with the latest changes and frandom as pointed by GPL agreement.

If you want to see how to implement frandom in your own kernel sources check there.

You'll also need a script running at boot to point frandom and erandom to random and urandom also like I have inside ramdisk at /sbin/bootrec (last lines)

Cheers
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] knightthgink:
happy to see you update.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] frikisama:
Hi, CTCaer

I don't have time right now to get into kernel development or kernel patch reviewing, but I though you may find this interesting: http://comments.gmane.org/gmane.linux.ports.arm.msm/2911

The patch is roughly 700 lines, but it may not be so hard to include in this kernel, I don't know. It works quite well on my Nexus 7. I know, it's a different league than our 2011 Xperias, but who knows, it may smooth down the system in some situations.

Cheers!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tobbbie:
The kernel feels very smooth - will keep it on my device for a few days.

Thanks for your dedication!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] knightthgink:
May I know which ROM you use?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tobbbie:
Just a debloated stock .431 (not even the latest .587).
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] knightthgink:
This is my first time to heard stock ROM smooth...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tobbbie:
Maybe I have low standards, but any long lists, e.g. the Settings -> apps are scrolling really smooth after the sizes have been calculated - also other big lists (file manager - after symbols are created) scroll without any jerkiness and get to halt in a smooth way.

Can also be a placebo as you can hardly measure this, but the kernel has no other downside yet, so I will keep it for now.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] C_Karhu:
Hi!

I've used this kernel now for a while, it runs great using stock de-bloated .587!

But there's a little issue that I'd like to know if there's a solution to?

After about a day of use the Zram runs out of memory and my device starts to lag.

After a reboot it runs smooth again. Is there a way to stop it from running out of memory? :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tobbbie:
How do you notice that ZRAM runs out of memory? It has a fixed amount of RAM to supply to the paging and stores it on compressed RAM. It basically cannot get "out of memory".

Are some processes keeping swap memory hooked?

Are other processes just occupying your RAM?

Try the "Greenify" app from the play store or XDA support forum - this has greatly improved my experience by hibernating all the background hogs and event listeners.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] viorel78:
I want to check the lowmemorykiller work but does not work permssiob denied why?? [/url][/url][/IMG]

in Terminal Emulator to check the LMK code: /sys/module/lowmemorykiller/parameters/adj

/sys/module/lowmemorykiller/parameters/minfree
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tobbbie:
How can you well test the influence of IO schedulers? There are some benchmarks around, but they just do read and write tests in sequence - so basically not much the scheduler has to do here as there is only one task at a time.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Basically you have to control the buffer input, do more than 1 simultaneous read/writes, use random read writes and more.

There are some tools for linux that can do it. (if there's no binary for arm you have to cross compile them.)

In the other hand there are some android apps that do it.

Check https://play.google.com/store/apps/details?id=com.andromeda.androbench2. It's good.

Have in mind that speed in nand differs a lot (or little) everytime. Because yaffs does a fragmented write so you can use the cells in nand that have the least writes.

But anyway try to run at least 5 times every test in every io scheduler.

Also you cant see the real benefits from schedulers like bfq (they control also the priorities and how much cpu, a thread can take.)

But if there's nothing running on the background (use airplane mode) the results will be for the same thing.

At my kernel to save time with tests, just test SIO and BFQ if you really want to see something other than deadline.

(Deadline has the best thoughtput but uses a lot cpu. Noop is joke on the thoughtput side (I'm considering removing it, but some ppl use it for it's least battery drain, because it uses the least cpu). And cfq has also low thoughtput.)

Benchmarks on android show that the best for simple nands, greater ssd and sd cards are: ROW, SIO, BFQ and Deadline (in no particular order). With the 3 first being developed specifically for android and smartphones/tablets.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tobbbie:
I checked it and it complains that the filesystem does not support DIRECT_IO. Is this normal? Should the default settings for buffers and file sizes be altered? Can I test only the filesystem (skip the SQlite)?

Values are not so impressive (e.g. ~4MB Write on \data)...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Direct IO wants root for sure. Other than that I have to test it myself. In my own benchmarks I used multiple scripts running together via adb.

Yeah our nand is awful. The best sequential I saw on mine were 4.5mb/s write and 6.5mb/s read (both average). I saw some peaks but still the average was not good. In the other hand my class 10 sandisk had 12mb/s write and 26mb/s read.

Anyway gonna install it today and play a little
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tobbbie:
The online help tells:

So it is normal for YAFFS - and it did not ask for root rights either.

Still it just looks like any other benchmark, no indication for concurrent read and write where the IO schedulers would have an impact on.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tobbbie:
For me the init.d does not work either. I think the script \sbin\sysinitsupport.sh is not right by using the busybox binary hardcoded from \sbin in the if clause. In my \sbin the busybox there links to recovery there.

EDIT: Not wrong linking is the problem but the wrong nesting inside the IF clause.

Manually changing this and executing before reboot did not work either, after reboot changes there are gone.

In the end you want this to be executed:

/system/bin/logwrapper busybox run-parts /system/etc/init.d

I need to rework the execution of the init.rc call-tree where the miss-out is happening.

As I am no kernel expert, can you tell which of the paths are setup from RAM-disk and so changes in scripts would be useless after reboot?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tobbbie:
The script /sbin/sysinitsupport.sh is flawed. It will run once only and then no more.

Original:

#!/sbin/sh

# DooMLoRD: init.d support script (v1)
busybox mount -o remount,nosuid,noatime,nodiratime /
busybox mount -o remount,noatime,nodiratime /system
busybox mount -o remount,nodev,noatime,nodiratime /data
busybox mount -o remount,nosuid,nodev,noatime,nodiratime /cache
# [START] setting up
if /sbin/busybox [ ! -f /system/etc/install-recovery.sh ];
then
/sbin/busybox mount -o remount,rw /system >> /data/local/tmp/sysinitsupportlog.txt

# make init.d directory
/sbin/busybox mkdir -p /system/etc/init.d >> /data/local/tmp/sysinitsupportlog.txt

# correcting permissions of files in init.d directory
/sbin/busybox chmod 777 /system/etc/init.d/*

[COLOR="Red"]# make init.d directory
/system/bin/logwrapper /sbin/busybox run-parts /system/etc/init.d

fi;
[/COLOR]
# [DONE] all done exiting

Correct:

#!/sbin/sh

# DooMLoRD: init.d support script (v1)
busybox mount -o remount,nosuid,noatime,nodiratime /
busybox mount -o remount,noatime,nodiratime /system
busybox mount -o remount,nodev,noatime,nodiratime /data
busybox mount -o remount,nosuid,nodev,noatime,nodiratime /cache
# [START] setting up
if /sbin/busybox [ ! -f /system/etc/install-recovery.sh ];
then
/sbin/busybox mount -o remount,rw /system >> /data/local/tmp/sysinitsupportlog.txt

# make init.d directory
/sbin/busybox mkdir -p /system/etc/init.d >> /data/local/tmp/sysinitsupportlog.txt

# correcting permissions of files in init.d directory
/sbin/busybox chmod 777 /system/etc/init.d/*

[COLOR="SeaGreen"]fi;

# run init.d directory
/system/bin/logwrapper /sbin/busybox run-parts /system/etc/init.d
[/COLOR]
# [DONE] all done exiting

Needs to be fixed in kernel - no way to work around it.

---------- Post added at 01:31 AM ---------- Previous post was at 01:27 AM ----------

Not true for the /sbin/sysinitsupport.sh where the busybox/recovery in /sbin is addressed
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] frogerra:
+1

Can you tell me the simple way to test init.d working or not?!

It's X-Ray with Tapatalk!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] viorel78:
try http://xdaforums.com/showthread.php?t=1933849
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tobbbie:
You can add the lines

# run init.d directory

/system/bin/logwrapper busybox run-parts /system/etc/init.d

at the and of your /system/etc/install-recovery.sh

Mind that busybox is picked from the system path with above.

Make sure that the file has 755 attributes after editing.

The \system partition is not owned/altered by the kernel at boot time and changes there are persistent during boot.

So this way the system gets init.d support via your own script change.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] nedunilavan:
Please add touch cwm in next build...

It will make it easier to flash...

Thanks...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Maximus1a:
init.d did not work here, but now with your link and the use of android manager everything works perfect.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] vleutmans:
[ EDIT wrong thread posting, sorry]
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] nokiagye:
For quich phones is this kernel?