yashsingh1/xdaforums huggingface dataset:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] litemintx:
I cant find in the advanced, for the wipe battery stats? Im using 2.8, i was on 80% then i flash a rom, it became 100%.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tobbbie:
You must go to CWM recovery - not TWRP. Seems though that this does not work either.

I think CTCaer has described what other things can be done by directly writing to some HW related /sys/ parts.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Gabrech:
Has someone solved 100%bat issue flashing Lupus with more thanb 90% batt then back to Ctcaer ?

I found this : http://xdaforums.com/showpost.php?p=35558542&postcount=2

Which for the moment allows me to wait until after 20th sept to go back to Ctcaer.

Thanks for all the support. And good luck for your exams !
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
You didn't change kernel with new rom right?

It seems that the problem comes from new roms. If it's true, I think the problem may be from not loading correctly the battery firmware.

In /system/etc/hw_config.sh (rwx-rw-)

Exist this

# TI BQ275xx firmware loader
bq275xx_fwloader

that executes /system/bin/bq275xx_fwloader (rwx-rx-rx)

which in turn loads this /system/etc/firmware/bq27520_fw-0507_filever-0112_proj-hall_golden.bqfs (rw-r-r)

into battery module.

Check if these exist and also have the correct permissions.

I hope that's the case, cause I can't think anything other. I never had this problem with any of the old Roms. (and as old, i mean roms that their 1st versions were before 2013).

Also try some restarts and some charges with the problem, maybe it unstucks...

Lastly just for the record these are the kernel messages (and explanations. Also bq27520 0-0055 is debug msg from driver):

# firmware loaded
bq27520 0-0055: FW v5.7 (expect v5.7). Golden FW v1.12
# this failed voltage_now is normal at boot because the driver is not fully initialised.
power_supply bq27520: driver failed to report `voltage_now' property
# battery module initialization complete (because this comes from the initialization of sysfs which is one of the last steps in loading the driver)
bq27520 0-0055: IT Enable confirmed to be set.
# aquire some battery info
bq27520 0-0055: bq27520_battery_info_setting() type=3 temp=300 status=0
# reporting battery capacity.
bq27520 0-0055: bq27520_init_worker(): capacity=71 flags=0x139

So basically when the capacity changes with use or charge after these only bq27520 0-0055: bq27520_init_worker(): capacity=XX flags=0xXXX

is reported
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tobbbie:
Just let it run and it delivers the following output:

=========================================
\\\ -=Super DeDuper Snooper=- /////
=====================================

================================================
Data DeDuping UKSM savings - 54.72 MB!
================================================
6.34 = Benefit/Cost Ratio -> HIGHER IS BETTER!
28.41 Benefit Ratio x Shared 1.93 MB = 54.72 MB
4.49 Cost Ratio x 54.72 MB = 245.42 MB (Unique)
================================================
1722 - Full Scans SINCE BOOT.
0 min 38 secs (38 seconds) Needed Per Scan
UKSM Executes 633.33 Times Per Full Scan
================================================
UKSM Per Minute Summary (Based on Awake Time)
UKSM Executes 1000 Times.
86.40 MB - Scanned Beneficially Per Minute.
387.51 MB - Scanned Wastefully Per Minute.
================================================

Current UKSM Values:
===================

full_scans - 1722
hash_strength - 353
min_scan_ratio - 1
pages_scanned - 6744648
pages_shared - 493
pages_sharing - 14008
pages_unshared - 61511
run - 1
saved_memory - 18% of total used memory pages freed.
scan_batch_pages - 5000
sleep_millisecs - 60
sleep_times - 1107920
thrash_threshold - 50

================================================
System Awake Time is 18:36:26
================================================
System Idle Time is 13:58:12
================================================
System Deep Sleep Time is 21:27:35
================================================
System Up Time is 40:04:01
================================================

================================================
WARNING: Kernel MIGHT Have A Deep Sleep Bug!
================================================

The above stats are an APPROXIMATION...

...based on timestamps which reflect boot time.

Below is what is likely happening...

...based on info in the /proc/uptime file!

================================================
System Awake Time is 18:36:26
================================================
System Idle Time is 13:58:12
================================================
System Deep Sleep Time is 0:00:02
================================================
System Up Time is 18:36:28
================================================

Regarding this "Deep Sleep Bug" I think that the 40 hours is more likely for uptime - at least I am quite sure that DS is active. My battery drain was 0.3 to 0.5 %/h when the device just sits in standby. Seems like drain rises with UKSM active to 0.5 to 0.8 % but I will have to observe further.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Gabrech:
I was fully charged on Lupus, then I flashed Ctcaer. Now it's 98% and battery is ok...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Ignore the deep sleep bug. It's obvious some wrong calculation.

The reasons are many, kernel version, different sleep architecture between old and qualcomm SoCs and more.

And that's easily checked, because it shows wrong uptimes even if you didn't reboot the phone.

With right programs like android/system tuner it shows the right offline=deep after a reboot.

And at settings->battery you can see (phone idle), the whole time in sleep mode, measured from the last 90%+ charge (or when the batterystats file was reseted).

Also about UKSM drain:

Uksm can't wake your phone, because it supports thread freeze.

And when your phone goes into early suspend, the uksm worker thread is freezed and can't wake the phone. (All this by just checking the thread source code.)

So that means that UKSM runs every time your phone is awake. Even if the screen is on, or a widget or a service waked the phone for an update.

And yeah uksm produces some drain when the phone is awake. But this is so little (normally 0.1-0.5%, which is waaaaay lower than other system threads), and changes with how much data it has to process.

So if you switch/open/close many apps in one go, it will have to check a lot of new data.

But, you don't have to worry, because it doesn't raise the drain a lot for specific reasons:

It doesn't use a lot cpu and can't raise the cpu freq for a lot.

And also all previous checked data that remain or is too scrubled doesn't checked again. UKSM is very smart

So even if have a lot of awake time (i.e. playing a game) and the drain can raise up to 0.8% of all drain, it's too little

and not only that, the battery performance overall rises, because your phone has more ram and doesn't waste cpu on killing/restarting services!

All the info above, comes from what I experienced since 9 may 2013. And believe me, I have an OCD with battery drain :)

That's why I hope xperia honami mini, will have good battery performance. And get it if it doesn't cost a whole house rent payment....

We'll see.. Maybe CTCaer kernel will make it's way to Z1 mini (aka, honami mini, aka amami, aka by a lot Ray3) sometime in the feature.

But until then, xperia Ray is the only phone that has a real phone size factor, exceptional camera and good performance for it's now super low specs.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tobbbie:
Good to have this stated and confirmed :)

So while I had observed ~0.5%/h Battery Drain at night I now notice ~0.7%/h and this happens as of course some wakelocks at night will wake the device and THEN also UKSM is kicking in as well. However there are so many influencing factors for the hourly drain at night and the overall benefit of UKSM is so obvious that I keep it and enjoy the Ray further on.

Still I see no valid replacement for the Ray to come anywhere. Any of the "mini" out there or announced to come are still way too big for replacing the sweet little Ray :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Daniux:
Xperia Pro mk16 ?

Sorry, maybe dumb question..

does this kernel work on Xperia Pro mk16i? :confused:

thanks!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] nedunilavan:
No... This kernel is only for Xperia Ray.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] bobrobsom:
And hopefully waterproof aswell :) I have high hope for ray3 to be my next phone :D

SE Xperia RAY[KERNEL]CTCaer2.8UV/OC[ROM]arcatarc SuperleggeraV6
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] masteriori:
[MENTION=4559618]CTCaer[/MENTION]

Can I use v2.8.2 as a daily driver?

Also, to quote:

Could you please tell me how? I used to be able to disable old versions of Google Play Services with Greenify but not anymore. Newwer versions don't appear in the list.

Keep up the good work. :good:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Yeah. It's not a beta version.

As for g play services (and any other app) there are 2 way to ease your phone:

1st way is to completely disable it.

Get an app like android tuner so you can freeze (disable) user data partition apps.

2nd way is to use android tuner and go to the details of g play services and disable unneeded services.

This can break the app completely and have an opposite effect if you disable a truly needed service.

For play services I disabled: mdm.mdmdispathcerservice till games.service.roomandroidservice and com.google.android.location.fused.fusedlocationservice till com.google.android.location.reporting.service.externalchangeservice.

But haven't looked a lot into this. It surely disabled the 2 from 3 services that i always see in task manager and released ~10ram.

But wifi still seems on all night, but from cpu usage it seems no drain (in settings->battery it shows because it use the same shared uid as other google framework services, but in apps that show each package doesn't show).

The sure way is the 1st. And you just enable it when needed
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] NazS!:
Is the features mentioned in OP are enabled by default, not just UKSM, asking about other than UKSM? Or is there is any interface like whats in Lupus Kernel to tweak as per our need??

Kernel is too good, thanks for your work!!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Everything is enabled by default except UKSM in the 2.8.2 version.

The optimal experience is coming out of package. (only in 2.8.2 you need to use the init.d script for UKSM)

As for it, 2 weeks left (originally one, but uni has a strike and the exams are extended for one week).

After that I'll try at last and port the newer UKSM version (0.1.2 if I remember correctly). If I don't succeed (because it uses many new things from 2.6.9.38 kernel tree),

I'll just make proper releases of 2.8.2 with UKSM on and tweaked for UV and VDD versions, without the need of the script.

But it's doable (from what I checked in sources). But it will need a lot of time.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] masteriori:
What is the difference between system apps and user apps? Now, I have googled it but it doesn't tell me if it affects the RAM usage.

Basically, moving apps to system/app or data/app results in more/less RAM available?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
No it doesn't. it may have the opposite results.

A system app is called like this for either of 2 reasons.

Or because it's a needed system app or the most common because it's inside /system partition.

Here I mean that it's inside the system partition.

You can disable only apps that are inside /system. To disable a user app (/data) you have to use another app that disables it (freeze it).

Here the google play services are a needed app for many reasons, that's why you don't uninstall it (it will come back on it's own anyway), and you only disable/enable it when needed.

So as for the ram usage with system apps:

The only disadvantage by transferring some apps inside /system partition, is that the apps take a little more permissions.

And some of them, can run as foreground or visible apps and thus making them unkillable or to hard to kill and they reduce performance.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] woofgoo:
on 2.8, cwm can't see backup rom of arcatarc superleggeraV6

back to 2.7 and install rom.

now back again to 2.8.

Sorry for my bad English.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
2.8 has twrp and cwm. TWRP uses the lates recovery api so older flash zip may not work.

Also TWRP is incompatible with nandroid backups, as it uses it's own method.

As said before, press POWER key to access CWM in 2.8.x or VOLUME keys for TWRP

Seems that many people prefer cwm to twrp for volume keys. I'll make a poll.. :P

---EDIT---

Posted it. Also have in mind, if we have a winner by large margin, I'll also make it the default when user presses everything, like *oooooh roflwtf press all to enter recovery.. aaaaRRRGHH* :D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Runner_cz:
I voted for the Volume - CWM, Power - TWRP for the main usability consistency. It's since years all users of the rooted devices are accustomed for using the volume keys for the CWM. 100% manuals say "press volume keys" in one or another way.

TWRP is a new thing. For the geeks it's OK to put it even on any other method, they'll be OK. But for the most of the normal people who don't play with the phone too much - I'd say the traditional way to call the CWM is better. You don't swap the brake and gas pedals in the in the car when you prepare a new model of Toyota for production just because you added the cruise control to it, right? :) ;)

Also, from the usability and UI point of view I'd suggest to add a simple text note on the main screen when either CWM or TWRP is loaded - explaining thatthis is CWM or TWRP respectedly and if the user wants the other way around - he should restart the phone and press this and that buttons to get the right one. This will be simple, clear, polite and useful for everyone.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] sourabhp:
wifi issue

Has anyone faced issues with wifi with this kernel?

I am not able to use internet on my mobile with wifi. My mobile connects to wifi network but there is no internet connectivity.

I tried CTCaer, xKernel, VDS, lupus kernels but no luck even after flashing wifi modules.

Please help.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
[MENTION=758266]Runner_cz[/MENTION]

To be true way back on 2.8 I made a nice boot screen with 2 lines and text like this that pointed to the buttons.

And wanted to incorporate them with a 2nd bootscreen, either by changing the bootlogo code or using the initlogo module.

But couldn't get them to sychronize. It was a nice image if you see it (it's on my dev pc right now).

If anyone knows a binary that can show image on framebuffer, please tell me. I'll research on that matter too, because I always liked it.

[MENTION=5095216]sourabhp[/MENTION]

As said again and again there's no problem with CTCaer kernel and wifi stock modules. It did and will always work with stock modules and a proper setup.

If your wifi connects and you don't have internet access then either of 2 things are happening:

1. Your phone's wifi chip is broken

or

2. your router have a problem

As a last resort,flash and try to see if stock ROM works (you also need to wipe data, so make a backup 1st with cwm). And test it with a kernel that uses stock wifi modules.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] arcatarc:
Some router have problem with crittography or wifi channel:

try changing auth method(wpa,wpe..)or channel...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] sourabhp:
wifi issue

last night, i went to my friend's house to check. there wifi was detecting on my ray but when i tried to connect it was continuously getting on n off. Even my friend was surprised seeing that. I think it could be hardware issue as no one else has reported wifi issue with CTCaer or any other kernel.

I will try flashing stock kernel n rom but its tedious work to get all apps reinstalled.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
It's indeed weird having that problem with all kernels.

Stock rom and kernel will refurbish the device though, so it's worth a try.

As I said make a nadnroid backup first and use titanium backup for painless app restore.

Don't forget to backup contacts and sms.

Anyway the app restore procedure is only if the stock works. If it doesn't complete restore your nandroid backup.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] sourabhp:
wifi issue

Now wifi is not even turning on. Its stuck between off n on. I tried rebooting phone multiple times.

If I have to take to service center I will have to flash stock kernel n rom. Really pissed off
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
To make sure if that is not problem of the flashing, download the generic .587 firmware for Xperia Ray in FTF format

Flash it with flashtool. If fixed and now wifi opens AND you have internet connection, then it's a problem of breaking the ROM's module through multiple flashing of kernels that use their own.

Also just for your ease of your mind, modules and software as it currently are, CAN'T break wifi hardware. So when you experimenting, don't be afraid that you damaged your phone's hardware. It's good to have it always in your mind.

(Had a thing before and thought that I broke my Ray's nand. I freaked out until I remembered this and flashed the full stock firmware [ftf]. That's why I'm telling you this.)

You have to be always prepared. Do nandroid backups with CWM, before flashing zips or flashing kernels that use scripts to change ROM for whatever reasons. And always, but always read OP of each thead, and replies for possible problems before doing a flashing.

As of that, I can't help you anymore here, as this was completely off topic of this thread scope from start.

I'm willing to help when I have time. So PM me with your ftf flash results.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] christopherjohn:
Hey not that I'm a fan of this genius dev and kernel but in my days when I'm on ICS (the last time was with the version 2.8) i never had the battery (100%) issue and the wifi issue. I think improper flashing and wiping damaged your devices. I always go for clean install to be sure none of the modules or some files will be kept. I recommend if you really will go for ICS work for clean install so you won't encounter any issues. CTCaer always aim for perfection before each of his releases.

Hahaha i said to much :p I really admire your work I'll go back to ICS after your next release. Good luck on your development and God Bless!

:good: :good: :good:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tobbbie:
Recently I had an unexpected reboot in the middle of a GPS tracking session. The database optimization has extended to the boot time to something unbearable for the track to continue :(

So is there an option to skip (on a key-press?) the DB optimization during boot time? If not on key-press, how can I disable that at all?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Well there's no way to stop init.d initialization. The only way is to delete your sqlite optimization script from the init.d folder.

Also it's not so important to run it every boot. Just use a oneshot script and run it... dunno, every week? Or whenever you are bored :P

Also about the kernel, I'm a little busy with work so development of the updated UKSM is slow for now.

I hope 0.1.2.x will work in the end.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tobbbie:
I have not added any script there doing that job. It comes with your kernel, doesn't it? If you put it there - what is the name of the script to delete?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Nope, my kernel doesn't have and never will have a DB optimization or a zipalign script because for me the 1st one is waaaaay too much to do it every reboot and the other one is completely useless because all good devs are zipaligning the modded apks for release.

Try to open your phone and connect it to pc and at bootanimation start write adb shell top -d 2 -n 10 to check what's going on.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tobbbie:
I had to fall back to an older TWRP backup (~1 month ago) as the reboot had spoiled something not traceable. No data lost as I backup messaging via MyPhone Explorer and the rest comes form Outlook via the same tool.

I could not find a trace of calling sqlite3 or zipalign in the hierarchy of init processing and finally renaming the programs in ..\xbin to !<name> to hide them from script calls did not change the observed boot behavior. So it cannot be that activity extending boot time.

What I observe is that the longer the device was not rebooted, the longer the boot time is. As I have chainfire's live dmesg and live logcat (paid versions) running as boot animation I can see a whole bunch of messages floating for logcat, but I cannot find the same detail later in the \dev\log\* hierarchy. I wonder which logcat viewer could best export the data from there. I am experimenting with Logcat Extreme (Verbose) and will check if I can trace back the origin of this.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Rubik.Orange:
I got same battery 100% bug on VDS kernel when i pull out battery from phone without turni it off. sony's battery driver is problem?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Just exactly after boot with alogcat or another will do.

Also my boot time since i got to ics (a year before) is almost the same. It only raised by a little when I moved all app2sd apps to user and to ext partition of my SD (because it loads every app on boot)

It's a bug of the battery module and it's firmware
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] chiyaanchinnu:
Please fix this bug. We already fell in love with your kernel. :) Please try to fix brother. Thanks in advance.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] CTCaer:
Well i can't because never had this problem, so no logs (if any), and if it's a bug with fw-drivers-module initialization, I don't think that's anything that can be done.

But the workaround fix exists (flash whatever kernel and reflash another), so it's ok I think.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Gabrech:
I had it again (had to remove the battery while on ) Best is to flash flykernel 0.8 then to charge the phone completely. Then you can flash Ctcaer. But right I do not understand why flykernel and Lupus do not have this bug but Vds, ctcaer do.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] abderrezak:
where is wifi modules for .578 or the .13 is the same ,

and plz tell me if v2.8 it fully stable bcoz im new here frindes i need just lighting my way ,

help me
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] arcatarc:
This kernel is more stable then stock!

And yes you can use .13 wifi modules on .587,they are better..
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] abderrezak:
ok now my wifi not work after flash .13 wifi modules plz give me a fix fo thas's soon ,

i use v2.8 UC14
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] litemintx:
The fix for wifi is at the OP already.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] fneelav:
which Kernel tweaker is the best for your kernel? :good:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matgras:
That depends on your needs,

But I recommend "nofrills cpu"

It has some basic over clocking, governor stuff but no undervolt (which isnt really recommended for beginners anyways)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] fneelav:
Thanks a Lot :laugh:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matgras:
Next time just press the "thank" button, it will keep the thread a lot cleaner.