yashsingh1/xdaforums huggingface dataset:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] fuser1337:
Battery always 100%.

Flashed other kernel then flashed CTCaer again.

I'm on Ultimate HD.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Gabrech:
Again: Flash flykernel 0.8, then charge until 100% then switch back to CTcaer. Did it yesterday...

Any news on a new version ? How did you manage your exams ? :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] paul20:
i flached stock kernel then charge it till 97% and after that i flashed ctr kernel and i boot CWM,wipe battery stats and it's ok,also i would like to know what governor/scheduler without reboots on 1.4ghz

thanks

EDIT: unfortunatelly problem came back again after a reboot
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] faraaz3:
No matter what u do problem comes back after 1 or 2 reboots
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] firdyRAY:
CT Caer, you need to work on this battery problems.

It's been an outstanding issue for too long already.

Considering that you have a lot of users using your kernel, it's wise to fix it bro.

The community awaits your new fixed version. :D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tintin100:
A final version with UKSM and all the governors and volume down button for CWM and without the battery bug would be nice for all of the fans of your kernel. I personally am using this kernel since 0.8a. CTCaer, if you are not too busy, please spare some for your fans. :) We are waiting eagerly.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tintin100:
100% battery bug appeared in vds kernel also after 3-4 reboots. So, is it really a kernel related issue or something related to ROM? But one thing sure, it does not happen on stock kernel.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] ManthanRB:
No USB otg?

I plugged a pendrive with ntfs & fat32 file system but not working & yes Mice works fine.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matgras:
read the OP next time

http://www.mediafire.com/download/iuf0u1f49rbc0u5/ctcaer-v2-fs-usb-modules-flashable.zip
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] ManthanRB:
Flashed it still not working:rolleyes:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] superwoosh:
After flashing the kernel, on the first boot I can never get into CWM recovery, only TWRP.

As for the 100% battery bug, it happens to me after I remove the battery from the phone, regardless if it's turned on or off. According to this post, I suppose that this bug only occurs to older devices, so only some of us have it while the rest don't.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] arthurpl:
Did you try to press POWER button instead of VOLUME during boot?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] superwoosh:
Yes, of course I did. I'm just saying that for me, on the first boot after I just flashed the kernel, it refuses to enter CWM, and I have no idea why. After that it's all fine though, just that when the 100% battery bug occurs it's really annoying.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] masteriori:
[MENTION=4559618]CTCaer[/MENTION]

I very well know that it's been discussed/asked hundreds of time already but any idea why there's 100% battery bug with your kernel (and some others to be fair) when I don't have such problems with xKernel v9.587-D?

Thanks
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Long time no see.

Too busy with work and no time for anything but to relax and drink a beer.

So here are some quick answers:

Normally you need an app to mount the new device. The mounting is implemented in vold (ROM) so I can't do anything to this.

There are countless apps on play store. StickMount is the one I now use.

It's because CWM needs a onetime small initialisation of /cache, where it checks if it should run.

After a friend's successful Xperia S stock to CM11 operation success, it was working very fast and nice because of the dalvik, ram and all optimizations.

So I went this path today, and flashed mike's CM11 with nAa kernel.

I forgot to titaniumbackup some apps and export contacts so I had to switch back.

And it happened to me for the 1st time.

So what procs it? Flashing a non-stock based kernel.

And at last info about it (I was asking every time for logs but no one post anything related all this time)

bq27520 0-0055: Failed unseal when checking IT Enable. rc=-5
bq27520 0-0055: IT Enable check failed. rc=-5

Normally it should be

bq27520 0-0055: IT Enable confirmed to be set.

So the driver has a function that unseals the device for initialization.

And a command or a state fails.

Investigating further but don't expect a fix (seems like TI problem).

EDIT------------------------

Ok the fix is easy and intended ONLY to those that can't fix it by flashing another kernel and then CTCaer again.

With adb enabled connect the phone to a pc.

Open cmd and write "adb shell"

Enter su

enter cd /sys/class/power_supply/bq27520

enter echo 0 > fg_lock

enter echo "start" > fg_cmd

wait 10 seconds

enter echo "end" > fg_cmd

wait 10 seconds

enter echo 1 > fg_lock

Reboot phone
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Rubik.Orange:
Fix is working. Thanks CTCaer!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] superwoosh:
Thanks [MENTION=4559618]CTCaer[/MENTION]! It does fix the problem. But unfortunately the bug can still happen again.

Is there any clue on why it happens on this kernel as well as VDS kernel, and not on Lupus or xKernel?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] masteriori:
The 100% bug re-appeared even after the fix?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] superwoosh:
Once you take your battery out of the phone, the bug re-appears, or at least for me, I was just testing.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] masteriori:
Hi CTCaer,

Do you intend to release another build that doesn't have the '25mV lower voltages on higher frequencies'? It feels a bit laggy, especially after reboot for the first minute or so and when I wake my device up from sleep mode (at times, the lockscreen doesn't have a wallpaper, it loads it up after a split-second delay).

Thank you. :good:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] skupi20:
any update? its the best kernel but has 100% battery bug, as for others after the fix it happens again. Also i will be gratefull for no UV version too, cause i get reboot sometimes.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] daer2dai:
Hi i need some simple guidance. Still a noob ;)

The OP doesn't have an install guide.

I've tried flashing the Kernel using Flashtool into my Xperia Neo MT15i, stock ROM is still there, what i want is to use the CWM bundled with this Kernel to test other Custom Roms.

Bootloader is unlocked.

My problem is that the phone refuses to boot up. It shows a blank screen. Maybe CTCaer Kernel can't work with stock ICS Rom? I can't find the info so far.

The "Sony" logo never appears, so it doesn't seem possible to boot into CWM.

Thanks for your help!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Attitude.SSJ:
This kernel isn't for neo... Find neo kernels in neo development section...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] daer2dai:
That explains a lot! Thanks.

I'm trying this Kernel because it is recommended by the ROM that i want to use. Unfortunately while the ROM is for multiple devices, this Kernel is not :(

What a pity though, was looking forward to some triple buffering...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] dima2306:
Today took out battery from phone and after boot I see 100% battery. Helped only flashing on lupus or other kernel. Hope bug will be fixed soon!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] XDynamite:
Unfortunately it's probable that the development of this kernel has been stopped, by now it's a year that there aren't updates.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Unfortunately that is correct..

I tried many times to resume the development but in vain.

In the end, no free time, new phone (well phones, as I now work to a major android smartphones company), led this project to a halt.

Anyone is welcome to make changes through sources, but that's all of this kernel

Lastly about the battery bug it's a bug in hw and firmware. It's bound to happen by reflashing different kernels at once (it forces reflashing of battery module firmware).

Only way to fix until new kernel is flashed, is the fg_lock method (in supported kernels) that resets the lock mechanism where the bug in firmware exists.

So better late than never:

It was a nice run. Until next time, see you all.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] faraaz3:
Plz post fg lock mechanism.. I came back to gb without ur kernel ics is laggy and battery drain
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] arcatarc:
I don' t face this 100% bug so i can' t test but if someone want to try a possible solution could be :

Flash other kernel and delete(or renaming) the file "bq275xx_fwloader" inside system/bin before flashing ctcaerkernel ,this will prevent the firmware to be reflashed again...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Yeah deleting the firmware loader can work also before having this bug.

The fg_lock method is posted before here:

http://xdaforums.com/showpost.php?p=48491763

Read EDIT

Also this TI battery module bug is often happening by having wrong fwloader in rom.

For example about 2 years this never happened to me because my rom was always a Xperia Ray stock based. Not a xperia 2011 compatible rom.

When I changed to a CM11 rom made for most 2011 xperia then it happened.

But again nothing is at fault here from the xda side.

It's a bug from Texas Instruments,

a not sophisticated algorithm

in the module drivers, they didn't bothered making it better because it worked in stock roms.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] arcatarc:
[MENTION=4559618]CTCaer[/MENTION] :

Good luck with your new job,surely you'll bring great knowledge&experience to that company!

Buona fortuna amico mio ! :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tobbbie:
Black Screen / Wakeup bug - any hints?

Recently I start to suffer form the bug that the ray LCD does not wake up properly - instead only the background light is lit, but screen stays black. This seems a problem that cannot be cured by SW - reports state that the LCDs were replaced - but I wonder if not a reset of the LCD Bus at wake up should do it as well - as a reboot will almost always make the LCD work again. It will always work if the device was off and then started again - and it will work if the LCD plug is disconnected and then reconnected (while the device is on).

I am replacing my Xperia Ray now due to that bug - but if there is any hint what could be done, please tell. I have not found any treatment searching the web or identifying the internal device that coud be "reset" to avoid a reboot or repeatedly pressing the power button - which can take "forever" and is not easily done when receiving a call and the screen stays blind :(
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] jambriz:
I started having this problem too. I even tried a factory reset along with a new SDcard which didnt fix anything. I noticed the LCD bug came back fast after charing my factory reseted phone. I think the battery may have been affected so I have a new battery on the way.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Web_E:
I am another victim of 100% battery bug. If I open battery, than the bug appears.

Now we know that this is TI bug and way to fix it, thanks goes to CTCaer - http://xdaforums.com/showpost.php?p=48491763

I have moved to nexus 5 and handing over my ray to my relative and who doesn't know much of doing kernel re flashing or adb command execution. So I made a script using the method as mentioned in that post. Executing that script from smanager (https://play.google.com/store/apps/details?id=os.tools.scriptmanager) as root works fine.

The script is attached. Grab it if needed. :angel:

Rename the file to batteryfix.sh, run with smanager or any script manager as root. Reboot the phone once script is completed.:good:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tobbbie:
Great - while I never suffered from that bug, it is good to have this in backup!

---------- Post added at 08:32 AM ---------- Previous post was at 08:27 AM ----------

I effectively replaced the LCD now with a cheap 2.nd hand front-panel from ebay. The bug is now gone - so it is definitely a HW bug on the LCD. Mind that the separately sold LCD/Touch-screen replacement parts will create a lot of work to get them on the original front-frame. You better try your luck with water damaged units where you just need to put your main-board in that device.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Dekill93:
great for fix battery bug

I have problem, when I power off and remove battery, my battery stat back to 100% again

how to fix this ?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] nedunilavan:
Try the above provided script. If the bug still persists try flashing other kernel and reboot. Reflash this kernel back later.

P.S. I use Sirkay's xKernel for reflashing purpose bcs Lupus needs some changes to get wifi working back.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Dekill93:
yes ... i already flash other kernel, and I flash the kernel ctcaer again ... then I run the script batteryfix.sh and work perfect..

when I power off and remove battery my battery 100% again.. whats wrong ?

can u help ?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] nedunilavan:
There is still no permanent fix for this bug yet. Just some temporary solutions.

If you use backup batteries and replaces time to time, I suggest you to use previous version of this kernel or other kernels such as lupus or xKernel.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Dekill93:
I now use the kernel lupus, but why when booting fair amount of time? unlike the kernel CTCaer or Xkernel
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] moolokow:
Sir did this solution will fix this same problem? http://xdaforums.com/showthread.php?t=1831489 i have my girlfriend's xperia ray with the same problem mentioned, should this will help to solve the problem?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] nedunilavan:
I have no idea about it.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Dekill93:
this solved

im move scrip on system/etc/init.d to system/etc/boot.d and now my phone faster on boot..
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] muftiazan:
HELP!

I installed the uv kernel today and was trying to go to recovery but I can't. Pressing the power button repeatedly does nothing while the volume keys take me to a splash screen saying CTCaer and TWRP and stops there. Any help?

Also I am coming from Kitkat.

I also tried to flash another kernel but my phone has a problem by which I can't boot to Fasboot by using keys. Also I can't boot to Flashmode.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] nedunilavan:
This kernel is for ICS only.

Try to reflash your phone with flashtool because many things differs between KK and ICS.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] NazS!:
If you are coming back to ICS from Kitkat, flash the Kitkat kernel, go recovery, mounts & storage > format /system > format /data, format /cache. Then flash the CTCaer kernel, then install your favourite ICS ROM.

Else, flash the Stock ROM ftf using Flashtool. I hope you should be able to enter Flashmode even when you are not in proper kernel.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] muftiazan:
Cannot go to flashmode or fastboot by using keys.

I have been going to fastboot by adb all this time because using the keys doesn't work.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] NazS!:
Anyway, if you can fastboot, try what I suggested.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] muftiazan:
Any fastboot JIG?

Back on the Galaxy S we would make a JIG by cutting a USB cable which would directly send the phone to Download mode.

If you know something like that about ST18i, please tell me.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Re: [KERNEL][ICS] ***** CTCaer Kernel ***** [Linaro][UV/OC][Triple Buffering][RAM Hac

Well with the settings I have right now the battery is great and with great performance.

But you can squeeze more battery by using stock 1ghz max and sio at loss of performance. Check my script code in a post above + the instructions. Also don't change smartassv2, its still better for battery.

Check this quote. The kernel works with stock modules.

Also about virtuous ten studio I searched a little but didn't find info about adb.

Check for setting for adb. If there's not any, you may need to edit the script and just add a line with "su".

Its a petty if they don't have it already.

Anyway gonna add an unsecured version.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] pangeranpas:
so it not need any wifi module to make this wifi work?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] deemanthax:
working fine with xperia t v6.9.2

selected 1gz smartassv2 deadline

battery life also good & very smooth...:good::good::good:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
@pangeranpas.

About wifi modules you need them. But you need the stock ones. The ones that came from .587 or .13 fw

If you previously flashed a kernel that needed modified ones you have to flash the stock ones again.

There are many posts with them.

@rushland.

About the mass storage. It works like it should. You probably having something that prevents your SD from unmounting and mounting back to mass storage mode, or sth else. I can't help you with that.

Next version:

I did some teamviewing to my home computer and compiled and tested some things. So next version will have:

*1.6Ghz

It will come to the mainline and restricted at boot to 1.4Ghz. After that you can change with a simple script.

Voltage is at 1.3V as I don't know what is a safe UV there. Suggestions with voltages that are normal lowered are welcomed. Unstable ones and ones that produce error corrections in calculations (and thus have more drain) are not.

*remove Ondemand Governor

*Add OndemandX

OndemandX is the updated (kernel 3.x) Ondemand plus sleep/wake. I'll tweak it to have max 384mhz when screen off (not too low and enough for everything in sleep).

*Add CFQ i/o scheduler

It was intended to have it at initial version but forgot to turn on the config flag.

*Removed Autoroot

It caused many problems to users with SuperSU. And generally is a hated feature. For ppl with new xperia Rays just flash an autorot kernel 1st.

*Input freq ramp up

Add frequency ramp up when user touches screen or buttons (as in

Project Butter

). Not in all schedulers yet.

*More Ram available

*Some more optimizations and hacks.

Also if you still find annoying entering "su" in ADB to take root access I maybe change ro.secure to 1.

About CPU/IO schedulers I will only add the best ones (and only after reviewing them). Any strange scheduler that is requested will be ignored

Don't forget. MORE schedulers

equals

MORE Ram used by kernel

equals

LESS ram for Adnroid.

I'll do the best possible minmaxing to save even the possible MB.

Lastly anyone who want to help me with voltages for 1.6Ghz untill I can work on this, here's how to do it.

You'll need kernel with changable VDD levels, ADB and CPU stability test. Airplane mode and screen always on on developer settings.

Run the most stressful option or more.

And query (cat) results every 1s (using a script or watch command) from /sys/class/power_supply/bq27520/current_now (it's in μA[uA])

The drain is (current_now/1000)*(voltage_now/1000)= Watts

So lets say with a full battery (ex. 4,15V) current now 385000=0.385A it's ~1.6W

If you are willing to help me I can also provide a Kernel with a custom VDD driver and also I'll need the upper voltages in the same drain.

(ex. 800mV has same drain with 900mV, I'll need the 900 one.)

After this fun stuff (sarcasm) I will test for all frequencies in the next week. :)

Next version will come probably before the new voltages. For now I'll relax and go out for the weekend.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] SXUsr:
Thanks.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] stillka:
wifi tethering

hi, kernel is great but wifi tethering is not working as phone display turns off, could you please fix it?

thank you in advice :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] knightthgink:
really.. I am using with Iced bean v3.0 and it works fine.

may I know which ROM you use?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] stillka:
I am using maxworks MIUI v4 based on Sony 4.0.4.

I will try another kernel and let you know if I have same problem as I changed also MIUI rom this Friday, maybe it's new MIUI bug...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] knightthgink:
okay..
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] stillka:
Re: [KERNEL][ICS] ***** CTCaer Kernel ***** [Linaro][UV/OC][Triple Buffering][RAM Hac

so it doesn't work even with my old kernel, it's ROM problem, not kernel.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] viorel78:
12-14 wi-fi chanel

13 chanel works fine I'm the coolest just me on 13:silly:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
14 works too. you have to put router region to Japan though. no interference in that channel, I even have full signal at balcony more than 15m away from my crappy router antenna :P
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] viorel78:
my TPLink do not support 14 ch only 1 -13:(
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] arcatarc:
After a week end of tests all i can say is:

This kernel is a BOMB! :good:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] blaze012345:
Works superb with Jelly Dream!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Abyssmal:
You can consider these values (thanks to superwoosh) stable as in "not a single reboot in 2 months" with Optimax3.0 and Zelly Cream 1.2.3 on sirkay's xKernel v9.587-D.:good:

I personally ran this script 134-1306MHz 24/7 and it's perfect. My personal findings on UV are close to these.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] FEXTEZI:
Hey guys i have been using this kernel for 3 days and i can say that its NOT SO BAD ! Using on Zelly Cream 1.2.3 with 368 min and 1 Mhz max smartasv2 i/o noone! I can say that this kernel is not soo bad but neednew updates because battery life could be better and FPS lower than Xkernel 9.587c!

Keep updating CTCaer you are doing good job for our devices!

GOOD LUCK dude ))):good:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Thanks I'll test them.

Well for battery life it's pretty good but still needs mor UV. I'll try to find lower stable voltages. As for fps increase xkernel has vsync off thats why. So antutu shows 100-200 more points for 1.4Ghz without the cap.

Also next version will have 1.6ghz voltage at 1.25V (tested and stable).

Right now I'm reviewing some patches from CM10.1 and JB kernels for low memory killer, i/o schedulers and more.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
New Kernel Update:

Ok the kernel changes will take a lot time.

So for now I'm releasing version v0.9 renamed to v2 to fix and add some important things.

Check OP for downloads and post 2 for changelogs.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] PablooRupertooo:
wifi not working on me. should i flash modules?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] SXUsr:
Re: [KERNEL][ICS] ** CTCaer Kernel ** v2 [Linaro][UV/OC][Triple Buffering][RAM Hacks]

Read the last two pages.

Sent from Myushi
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Re: [KERNEL][ICS] ** CTCaer Kernel ** v2 [Linaro][UV/OC][Triple Buffering][RAM Hacks]

Again the kernel as I say in OP works with stock modules. So if you had others before you need to flash the stock ones.