yashsingh1/xdaforums huggingface dataset:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Hello all,

The init.d is modified by me and checks if the /system/etc/install-recovery.sh (the if statement) exists.

That is so it does not run 2 times if you have the install-recovery method.

If it does not run check if there is a remnant of /system/etc/install-recovery.sh because of rom and delete it.

If you really use the system install-recovery method then you should check the sh path in the script and the busybox path also.

EDIT1:-----------------

Also about the sbin busybox linked to recovery it's normal because recovery is a multi-binary and have both the cwm recovery and busybox inside to save ram.

---------------------------

As for androbench, indeed does not do the full job like CrystalDiskMark.

About direct io it's enabled in kernel. It's strange why the app can't use it, as other does it indeed :/

Checked the android sdk also and it seems that it also needs permission in adroidmanifest.xml to use it.

Androbench has <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

but not the <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"

So it seems that is a androbench dev problem.

It has direct write permission but not read. And it only checks for read so it disables the direct io completely...

Also have in mind that if a storage disk has not a lot of space it can't be tested properly.

For example my sdcard if it's fragmented can be as slow as 4.5 mb/s for write (fat32). The normal is 10-12mb/s for mine.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tintin100:
Everything was going fine until yesterday when I tried to do a video chat in Gtalk. It showed calling the other person, but in reality, the call did not go through. When someone is calling me, I can see the call but when receive it, black screen occurs. No video and no voice at all.

I'm on stock .587 ROM with some craps removed.

Then I started investigating, and found, if I go back to stock kernel, all the problems solves by itself. But then I flashed back v2.6 of your kernel, the problem came back.

Now, I sometimes need the video chat, but don't want to stay on stock kernel. Your kernel is the hottest kernel in ray forum. I don't want to leave it. Please look into the matter, if possible.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tobbbie:
All the Link2SD users should have the install-recovery.sh as the needed mounting is done there.

I think the logic to skip run-parts if install-recovery.sh just exists is not ok.

Inside the IF clause you prepare for the init.d and run it (where the prepare would not be needed a 2.nd time).

If you want to check on potential double execution, then at least grep for "run-parts /system/etc/init.d" in it or alike in a 2.nd IF clause.

I know it does not catch all cases, but would be a little safer.

I still have the kernel on my device and I do enjoy the smoothness :)

Thanks for your continued support!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
I'll check on this matter. Strange thing that only when you are calling there's problem.

Never used GTalk though, only skype (which works both ways.)

I see, never used link2sd too. I create links to ext partition by my own when needed.

also grepping for run-parts is a good idea.

Again the dev is halted as I'm flooded with work.

Right now I made some more experimental thing, like vpe overclock only when video recording and trying to recover more total ram, but still haven't tested them.

Anyway I'll need someone with link2sd to check the fixed init.d in ramdisk too.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tobbbie:
I can do that, just PM me when you are ready.

Will be able to test thing in the evening usually.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Nice. I'll send it to you when I'll do it.

On another note:

As you can see here,

nobodyAtall from Team FreeXperia managed to boot 3.0.8 kernel on our phones.

These are great times in 2011 development. :D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Maximus1a:
dont free up more ram. add swap2cache in init.d. it is fast and fits the needs to more ram. by the way the multitasking thing in android is better than many people think. only userdata are stored in swap and will be reused when switched back to the app. the app itself is restarted every time you switch to it.

put this in init.d

i dont know who made this script, but it works. (if you (who is reading this) are the guy who made this.... thanks :) )

using int2ext is very important.

if you want to try it just use this script http://xdaforums.com/showpost.php?p=37738547&postcount=1098

and prepare your phone to use init.d before installing that cwm zip.

the best/easiest way i saw is the use of DroidManager http://xdaforums.com/showthread.php?p=28755856
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tobbbie:
I rather use ZRAM on freed RAM as swap, which is way faster than /cache partition for swap and use lower swappiness. If swappiness is too high there will be lag when switching between large apps. Mind also that any swap on NAND (internal in /cache or external on an sdcard) will wear out the NAND as the write count is really high! Also is internal NAND write slow on XPerias - not much faster than class 6 SD. If at all, then I would prefer an external NAND Swap - as you can dump an sdcard, but not replace the NAND in your device.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] leonlightning:
I'm on Zelly Cream 2.5 ROM, using the CTCaer 2.6 kernel.

I was using Zelly Cream 2.5 before unlocking my bootloader. After unlocking the bootloader, I flashed the kernel, then install (via CWM) the usb module

It said "enjoy working wifi now :D" on the usb module installation but I found my wifi not working, just the USB mass OTG works. The wifi slide button isn't highlighted (darken like inactive) and can't be slid. If I slide the wifi button (in the wifi settings), it slides back itself. It also lost MAC address and IP.

I've tried flashing this wifi module http://xdaforums.com/showpost.php?p=36296372&postcount=2 but my Ray wifi still not working. I've also tried the Superleggera V4 wifi module but not working too. I wonder is it the hardware's fault or the module?, thanks.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] arcatarc:
http://xdaforums.com/showthread.php?p=39752085

Inviato da me!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] leonlightning:
"I've tried flashing this wifi module http://xdaforums.com/show...72&postcount=2 but my Ray wifi still not working.

I've also tried the Superleggera V4 wifi module

but not working too. I wonder is it the hardware's fault or the module?, thanks."

I've tried this one and it didn't work on my Ray .-.

http://xdaforums.com/attachment.php?attachmentid=1765112&d=1361959214
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] phananhtuan:
I'm using CTCaer Kernel v2.6 1.4GHz + UV during 20 days, no issue until now. Some lags with game + link2sd but just a few second when start the app. Everything is smooth after that, free RAM about 124-140 MB with some background apps (viber, xperia keyboard, battery monitor wiget, google serives, ...).

Thank for your hard word and waiting a new version.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] knightthgink:
when will release GB version?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] leonlightning:
EDIT: I was getting my camera not working after install zip album, then when I wanted to restore ROM I was confused which backup to choose. Randomly I chose, it was the ROM before I unlocked my BL. AMAZINGly!, got my wifi working 100% without problem, all hardware works right.

Sorry for bothering members here. Thanks a lot.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] xeraphael:
CTCaer, I used the search function and the only other posts it could find with you mentioning zRam is the OP. Can you link me to it, because I'm trying to understand how zRam works in another ROM.

Thanks.

EDIT: Nevermind, I found it. However, do you know if it's possible to check what the zRam compression ratio is, and/or how much physical RAM it's actually taking up? Thanks again.

EDIT 2: Managed to answer my own questions... but now I can't figure out how to delete this post.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] TheDynamiteGuy:
you can use the attached script to check your zram/swap/ram status...

run as root/su in smanager or remove the .txt and put in xbin (rwxrwxrwx) run using terminal..
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] FEXTEZI:
Ane news Dear CTCaer!????
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
I saw the contents of this script. Yeah you don't need anything else to check the compression ratio.

The ratio also is changing everytime, because everytime new data comes in, it cant be compressed the same. The highest I saw was 75% (30mb -> 7.5mb). Or in that script format: 4x reduced size.

Other than that still no time to work on kernel.

Also with the current development on 3.x kernel on 2011 xperias I'm dropping working on msm_fb and other things.

If that project go well we maybe then combine libraries from XS and others to enjoy real JB on our phones.

Still I'll update the kernel with latest changes that I see to optimize and bring performance to our phones from garwedgess.

And ofcourse other optimizations.

Top priority will be the new LMK changes and see how well smartassv2 Boost performs, plus ROW i/o scheduler (I still think that's a lot heavier than SIO though) and maybe other things. (don't have time to do a real scheduling for kernel work right now).
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Ecou81:
Flashed over wayang rom - excelent ! ;)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
DEV UPDATE:

CTCaer Kernel 2.7 is under developing.

Many bugfixes to kernel and optimizations.

Also many speed optimizations.

The changes are so many that you'll have to wait for changelog.

Kernel is under testing now.

Also have to add ROW i/o scheduler, implement some ramdisk bugfixes pointed in the thread and some more kernel specific things.

The release will be probably in this week.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] ksmuthucv:
Observation:-

[MENTION=4559618]CTCaer[/MENTION]: When i used your kernel with ICS (.587) build, the HD videos (with 720p & mp4 extension) wasn't showing the preview/thumbnail image in gallery/album/photos-videos widget app's. It will show an non-recognized video image and can play them without any trouble. This wont be the case with VDS kernel 2.0 (it can show the thumbnail and can play). It is not an important one and just wanted to let you know. Please ignore this message, if it was discussed.

-Muthu
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] viorel78:
you should upgrade your version of the album
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
[MENTION=3746873]ksmuthucv[/MENTION]

There was a problem only in 2.5 version and which was corrected that.

So no problem on kernel side.

Just try to rebuild the thumbnail cache on the program you are using.

Or try to update it as mentioned.

Finally have in mind that if a video is broken (for example by not properly ejecting your sd card from pc.) it will show like this.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] ksmuthucv:
Thank you for the clarification [MENTION=4559618]CTCaer[/MENTION].
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
DEV UPDATE:

Seems that ROW scheduler is incompatible with 2.6.32.x kernels.

I'll try to update the block codes and add the necessary fixes to blk-core and elevator code and see if it can compile without breaking anything.

This will set back a little the release of 2.7. If in end can't compile with ROW I'll release it anyway.

Other than that the kernel is pretty much ready. Only some more things to implement and some edits to ramdisk.

Also gonna at last try to implement input ramp to smartassv2.

EDIT1:----

I'll need someone that uses a stock rom to test something for me.

The requirements are basically to having pure stock libraries and bravia engine 1 enabled.

The tests is to see the behavior of videos and photos on stock player and stock album app.

If someone knows a better way to test the reduced pmem_sf_size tell me.

I freed 21mb ram from surfaceflinger and it seems that nothing broke on my phone. But I have bravia engine 2 and I use mxplayer and quickpic, so I can't test.

If no flickering or crash or decreased performance in games (gpu uses /dev/pmem also, but preliminary tests showed the same fps.) occurs I'll free 6mb as in CAF latest code.

Well never mind. Found that sony's omx libs need that extra pmem for hw decoding..
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] nedunilavan:
Great news...

Hoping 4 lag free temple run in v2.7

Thanks 4 this awesome kernel with powerful performance along with long lasting battery stamina bro...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Well lag free temple run will never happen :P

It's the most awful coded game ever. It's why the temple run 2 with optimized and better code run sweet, although it has greater graphics.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] FEXTEZI:
Hey Dear CTCaer sry for my question but how about kernel for GB ?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] doujinsinner:
hi CTC

There is thread about develope kernel 3.0 for our 2011 phone. They need dev who have device to fix and port kernel. incase u interest here the link

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

Sent from my ST18i
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Well as I was quite busy I couldn't work on both ics and gb kernels.

Now that I found some time my priority is the ICS kernel, because currently with some incomplete changes I made, the GB doesn't even compile.

Btw no need to use underlines. I normally see every post in thread and I reply if I see I should.

Yeah I already mentioned it on this thread. I want to contribute to be true.

The development there goes pretty fast and stable. There are many real pros in kernel development working on it.

I may help by trying specific things for hardware because I tested backporting things with sony changes, like qdsp5v2, vidc and some msm_fb which they worked pretty good although I didn't pushed many of them to any CTCaer kernel release.

The problem though is that the 3.0.x dev is for CM and I don't have time to flash and test a CM rom for the 1st time.

Well not until I fix my obscure ext2 sd partition mounting so I can backup properly (all my /data/app and all big libs from /data/data are there.)

Anyway, gonna clone the sources today and check on it.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
UPDATED to v2.7

CTCaer Kernel v2.7:

This huge update (tenths of thousands lines of code changed/added) bring you:

Added ROW i/o scheduler

Optimized Smartassv2, SIO and deadline

Faster gpu rendering

Even more total RAM

Latest LMK

MANY memory management and performance optimizations

Keys reset

And many many more.

As always check post 2 for full changelog.

And OP for downloads.

Plus don't forget to press the thanks button :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] afi1982:
[MENTION=4559618]CTCaer[/MENTION] are you updated the source already?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Nope it's not pushed yet, as you can see in github. The sources are still local at my pc.

I was pretty busy with finalizing the kernel itself and with fidling with 3.x xperia 2011 kernel also.

As you can see in the kernel version info in settings, it's not many hours since I built the final 2.7 versions.

But I'll leave for holidays so this will have to wait couple of weeks.

The good thing is that I finally installed a gui for git so it will be more easy to merge and add commits to github.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] afi1982:
OK mate

enjoy your holiday :) , great work you are doing , I'm using your kernel and for me this is the best kernel out here , so thank you :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tintin100:
Yet another great update. Looks and feels great. The video calling bug in gtalk is gone. Thank you very much.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] frogerra:
Thank's for your great work, enjoy your holiday mate.

It's X-Ray with Tapatalk!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] masteriori:
Thank you CTCaer. :good:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] christopherjohn:
Thank you! :good: :laugh:

Edit: in the next version can you put the icon on the first page as the bootlogo it's very cool :)

wifi working
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Valtrex11:
wifi not working.. just patched 2.7 ver

Edit: As I said is not working for me...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] 8f86TcLjmt:
Any problems with init.d support in new 2.7 kernel? Doesn´t work for me. No problems with 2.6.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] templeka:
Wifi was not working for me either with v2.7 (1.4+UV). I restarted and flashed the modules from op and it's working now. Don't know if restart or modules fixed it.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] nedunilavan:
Most wanted update ever...

Thanks 4 this g8 update... bro

I can feel the buttery smooth experience on my ray now...

Temple run 2 & even temple run oz runs with no lag...

More snappier...

Touch screen is more responsive in games...

Faster booting...

Better multitask...

Overall ~best kernel ever~:good:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] arcatarc:
TOTALLY AGREE! :good:

I like very much the "*Added Reset by pressing Power+Home keys for 5s":

In this way if the phone hangs i don't need to remove the battery(i've an hard to remove plastic cover)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Well this is strange. Both versions have working wifi on my Ray. Using stock .587 modules.

What version of wifi modules you use, stock .587 or stock .13?

It should be working with .13 modules too though

Also the modules at OP have nothing to do with wifi. They are only needed for usb/net storage support. Probably the restart fixed it for [MENTION=4724592]templeka[/MENTION]

Well to accommodate for not working init.d for users that use install-recovery.sh for sth else than init.d I changed the script from:

if /sbin/busybox [ ! -f /system/etc/install-recovery.sh ];
then

to

IEREC=`cat /system/etc/install-recovery.sh | grep run-parts`

if [[ $IEREC = "" ]]; then

The change behaves like this:

If install-recovery.sh is non-existent or if there's nor busybox run-parts command in there it will execute the ramdisk method for init.d

Else it will do nothing and let the install-recovery.sh method initiate the init.d scripts.

I tested it and it really works this way. I don't know why for you is not.

Any scripter can shed some light here?

Well basically I have 2 logos. The one is formatted CTCaer and the other is that emblem at OP with a formatted CTCaer.

The kernel is called CTCaer kernel. So I didn't want to put the emblem there for simplicity reasons :)

EDIT---------

Is XDA breaking down or what?

Anyway want some more feedback for init.d about v2.7. Thanks
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] mathewgx:
I'm experiencing some freezes with ROW scheduler , especially at album app.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Updated Modules:

Modules v2 changes:

Updated cifs/fuse/ntfs/usb-storage

Added nls_utf8 for Unicode support

Added oprofile for people that want advanced debugging.

Yeah saw it too when testing. Have yet to do some real testing and benchmarking.

Have in mind that ROW scheduler for 2.6.x kernels is still experimental and missing many updates and some parts,

that need a 3.4 kernel.

Good guy KaSt who backported it, is working on it.

It's the only true 3.4 android i/o scheduler out there. Even in 3.0 kernels needs some backporting.

So it's not easy to port it.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] templeka:
ROW is not working for me very well. I mean some apps that are on sd card freeze on launch, opera and a1 sd benchmark for example. Would of loved to see if benchmarks show any difference.

I so hope it gets updated as it sounds like it's very promising.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] 8f86TcLjmt:
I have no install-recovery.sh but init.d doesn't work. Didn't understand the busybox part. It's installed in system/xbin. May be there's something wrong or something ROM related (IcedBean3.5)?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Yeah it is. Well just take it as proof of concept for now.

As I wrote in OP and changelog is experimental.

Hopefully we will have a fully working ROW scheduler. (well at least this bug, is now my top priority)

It seems that something messes with the queues.

The thing is that you have to do many changes in block kernel drivers to implement ROW.

The good one is that the old schedulers are affected from that.

I already see big improvements in SIO scheduler. between 2-3mb which are a LOT for an sd card.

Anyway sorry for releasing an incomplete i/o scheduler. I didn't checked a lot the debugging code of the scheduler,

so I thought that if a problem were gonna show up, I could take logs.

As I said, top priority. The reason? I've run a benchmark for random read/writes and was faster than SIO/BFQ/deadline.

Well until the bug showed up.

Nevermind the busybox part. It's just the command that runs the scripts in init.d folder.

Can you please run this script in a terminal or script manager:

#!/sbin/sh
IEREC=`cat /system/etc/install-recovery.sh | grep run-parts`

if [[ $IEREC = "" ]]; then
echo 1
else
echo 0
fi;

Included in attached zip also. Make sure you make it's permissions rwx-rwx-rwx (777).

It should return 1 for you with no install-recovery.sh file inside /system/etc.

It returns 0 only if you have it and inside that is the run-parts command.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] foggyflute:
everything fine, but it gonna be much better if CWM include four onscreen button... I use a PTU case, the volume is damn hard to press.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] yousufhere:
U are right bro! Hope CTCaer will include touch recovery in nxt update। :D

Via XDA Developers Premium
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] 8f86TcLjmt:
It returns 1.

app_2@android:/ # sh system/etc/init.d/test.sh

/system/etc/install-recovery.sh: No such file or directory

1

app_2@android:/ #

I tried this with other ROM (Superleggera) but still the same.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] frikisama:
Thanks for trying out the ROW scheduler, CTCaer! I honestly didn't know it would be so much work, so sorry about that... But glad to hear it's bringing some improvements to the kernel, even if it is indirectly!

BTW, about the recovery, which people keep mentioning... My personal opinion is: either stick to the standard CWM and go KISS (Keep It Simple!!), or go full touch with TWRP (which I don't know if it's even possible for these kernels). CWM Touch has a sort of "glued together"-feeling to it.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
"1" means the script that initiates the init.d works.

Are you sure you didn't changed anything inside your scripts?

Try adding this to your 1st script:

echo '255' > /sys/class/leds/red/brightness
sleep 1
echo '0' > /sys/class/leds/red/brightness

It will light up the red led for 1 second it the script run.

As for cwm I cloned the repo for it before I left. So yeah expect a new recovery when I come back.

For now I have the sources modded by garwedgess, but I'll look for full touch repo too