yashsingh1/xdaforums huggingface dataset:
[Xperia Z Original Android Development] buche23:
After 10:30 on the Rom I do have 65 percent battery left. No wake locks, all is good with Play services version 5.

CWM working fine, GPS locks fast. I'm happy with this one.
[Xperia Z Original Android Development] thomas1991_12:
I have the service drain myself too.. Stupid stuff, ill add waldi back in in the next release as a workaround.
[Xperia Z Original Android Development] BadBoy4490:
Hi thomas1991_12, I love your work, really good job there !

My issue is that I'm in love with your Job but with PAC too. You think you could give a try doing a PAC KMA ?
[Xperia Z Original Android Development] BrateloSlava:
[MENTION=2228255]thomas1991_12[/MENTION]

1. Many thanks for your work. This your project - very useful for owners of this device.

2. If you are interested, please, update to 1.2.6 exFAT driver in this way.

3. Do you plan to replace the standard mpdecision driver, for example, intelli_plug driver?
[Xperia Z Original Android Development] iKillCypher:
[MENTION=2228255]thomas1991_12[/MENTION]

the battery drainage is completely fix

ref -> http://review.cyanogenmod.org/#/c/66894/

I will let the Lorenzo M know.
[Xperia Z Original Android Development] ari197:
is the drain because of the SystemUpdateService or because of the NLPWakelock ?
[Xperia Z Original Android Development] thomas1991_12:
Still need to check, btw im also building AOSPA with my blobs.

Thanks [MENTION=5107895]Tobbyax[/MENTION] and [MENTION=4093504]webbimato[/MENTION] for your donation!
[Xperia Z Original Android Development] BrateloSlava:
1. Replace fastcharge code to https://github.com/faux123/htc-m7/commit/2fc85d234bd28f8a2eb76483faabd8d16a2ea0ae + https://github.com/faux123/htc-m7/commit/20c36e0338e2ff49fc72ee828c7123202a76fc6f

2. Fix drivers/cpufreq/cpufreq_intelliactive.c as here.

3. CCACHE greatly increases the compilation speed.

P.S. Two weeks ago, I myself struggled with the kernel for my last phone HTC One SV. Now, I hope my little experience will be useful.
[Xperia Z Original Android Development] thomas1991_12:
I uploaded a new build, i did a clean install on my device and havent had any battery drain so far. This is with pa gapps micro modular.

Someone needs to confirm this.
[Xperia Z Original Android Development] peekay2n:
Hi Thomas!

would it be possible for you to port this rom to the xperia ZL? please?! :fingers-crossed:
[Xperia Z Original Android Development] feydakin:
I've already asked and the answer was:

Looks like we have to wait till SuperHanss have some more time to test like he said @ http://xdaforums.com/showpost.php?p=53495557&postcount=327
[Xperia Z Original Android Development] Burag:
After 24h with this config:

cm-11-20140701-UNOFFICIAL-yuga.zip

pa_gapps-modular-micro-4.4.4-20140629-signed.zip

pa_gapps_playservices-games_update_20140702-signed.zip

I can proudly confirm that all drains are gone for me :victory:

+100

Also, if we are at kernel related stuff - seems that USB Host mode is crashing for me (looks like a kernel panic - will get the logs in next opportunity) - can anyone confirm this?
[Xperia Z Original Android Development] ghost7.me:
Been using this build (0703), dirty flash for almost 12hours now and no battery drain so far - I normally notice it pretty much straight away, was the case with 0701. This is with full pa gapps, everything sync, location reporting/history on, GNow on.

Thanks for your awesome work [MENTION=2228255]thomas1991_12[/MENTION], about time I did a donation!
[Xperia Z Original Android Development] as4m4df:
I've still got the battery drain using 0703. =(
[Xperia Z Original Android Development] iKillCypher:
guys who are getting battery drainage please you need to reflash with the gapps it wont magically just disappear when you update the rom

flash the rom -> gapps -> clear cache -> factory reset -> reboot
[Xperia Z Original Android Development] B14ck7hund3r:
I did this morning. Sadly the draining started again 5 hours after the installation. Rebooting fix this only for a few hours.

Could the 07/02 play service update from PA be the problem? It's version 5.0
[Xperia Z Original Android Development] Jodus:
Still 86℅ drain for me

It is horrible

Fresh install
[Xperia Z Original Android Development] B14ck7hund3r:
Do you have the google location report activated?

By the way: seems stock firmware 233 still hasn't fixed the problems with google play services as it was intended to, so no hope there for now.
[Xperia Z Original Android Development] nemer12:
dont use google now !
[Xperia Z Original Android Development] flasherTHC:
I have navbar bug when is it in landscape mode. Any solution?
[Xperia Z Original Android Development] msc3169:
It happened when i switched themes. A reboot fixed it though.
[Xperia Z Original Android Development] flasherTHC:
It works, thanks. :)
[Xperia Z Original Android Development] lonixlon:
I used the goo.im gapps and haven't experienced the drain, finally figured out why my WiFi was still using my battery when it was switched off

In WiFi > advanced > scanning always available off
[Xperia Z Original Android Development] doomhammer07:
Waiting for your pa build :fingers-crossed:
[Xperia Z Original Android Development] buche23:
Battery drain

I was wondering why so many users report everything is fine, whilst other complain about ongoing drain.

I deem the culprit to be the "location history" setting. My initial battery drain (on 3.7. build can be seen in "Stats_Location_History_Off". 58% aft5er 10:30, I'd say that is quite alright.

As I wanted to check my location history on the google dashboard it showed my I do not have a location history available. This is due to the google location setting "Location History". The point above (location reporting) was always enabled to allow Maps and others to give me a pinpoint GPS position. See "My Settings".

If you do not feel like google really needs your location history (you can always ask the NSA fo that ;) ) I'd suggest giving that a try. I know it's not a solution, but maybe an easy workaround.

HTH

Buche
[Xperia Z Original Android Development] buche23:
Check the google drive, there is a PA ZIP-File available.
[Xperia Z Original Android Development] hadramos:
Sorry, what is PA-Build ?

And i'm found cm-11-20140703-UNOFFICIAL-yuga.zip, it's new release ?
[Xperia Z Original Android Development] buche23:
I assume it's a paranoid android build. As I'm happy with the regular cm-11 build I'm not going to install or test it, so I do not have further information.
[Xperia Z Original Android Development] thomas1991_12:
First of all a big thanks to [MENTION=4291145]ghost7.me[/MENTION] for his generous donation.

I have build the AOSPA version, should be fully functional. Its on my drive as mentioned already.

I have now also updated the fastcharge code and updated the governors, as posted in an earlier comment. Will be included in the next builds.
[Xperia Z Original Android Development] Jodus:
Does the aospa build come with the same optimizations and blobs as the recent cm builds?

Edit: I saw the first post the answer is yes.
[Xperia Z Original Android Development] BrateloSlava:
If it will be easier - I posted a few ready-made patches here. (Jul 05, 2014) Once you release a new build - I'll remove that branch.

Switching between mpdecision and intelli_plug, IMHO, easier to accomplish through the some lines via init.d script:

## !!!!!!!WARNING!!!!!!!!
stop mpdecision
stop adaptive
stop pnpmgr
stop thermald
sleep 5

## Intelli plug start
echo 1 > /sys/module/intelli_plug/parameters/intelli_plug_active;
## Intelli plug setting
echo 702000 > /sys/module/intelli_plug/parameters/screen_off_max;
echo 0 > /sys/module/intelli_plug/parameters/touch_boost_active;

## Intelli thermal settings
echo 1 > /sys/module/msm_thermal/parameters/enabled;
#echo 65 > /sys/module/msm_thermal/parameters/core_limit_temp_degC;

These lines are taken from my script for another phone, so the names of some demons may differ from those used here.
[Xperia Z Original Android Development] jneka:
it sound pretty good but... any sreenshot?
[Xperia Z Original Android Development] klemen241:
after one day on cm 3.7. my batter says screen 28%, android system 12% wifi 7% android os 6% batter use....i am not a pro here, but i think this is ok
[Xperia Z Original Android Development] Burag:
... and another 48h with

cm-11-20140701-UNOFFICIAL-yuga.zip

build - still no drain here.

I'm perfectly happy with this setup, thank you Thomas, great job :good:

BTW. My usage pattern:

mobile data -> on

autosynch -> on

location -> on

'location history' -> off

Everyone who expirienced drains - please, as mentioned by [MENTION=3825370]buche23[/MENTION], try turning 'location history' off.

It might be a Google's fault at all.
[Xperia Z Original Android Development] angelsel:
It is. I posted a stack trace a few weeks earlier and thomas said it'd be fixed (but it hasn't been).

I can reproduce it if needed. Connecting anything via OTG (i.e. getting it into USB host mode) causes kernel panic instantly.
[Xperia Z Original Android Development] msc3169:
Great PA build as well [MENTION=2228255]thomas1991_12[/MENTION] good job.

The screen flicker still remains with hover and finally, dt2w (knock-on) causes a few screen freeze moments
[Xperia Z Original Android Development] aidfarh:
I connected a mouse and it works fine. No crashes and I got the mouse pointer on screen. It seems the problem's only when we connect a USB drive.

---------- Post added at 11:52 AM ---------- Previous post was at 11:49 AM ----------

EDIT: That was silly of me. I was replying to BrateloSlava's post, not Burag's post, but I clicked Reply on the wrong post. Here's the correct post I was replying to followed by my original reply. I'm editing here so people don't get confused.

On our phones we also need "stop system_monitor".
[Xperia Z Original Android Development] Burag:
So we have a confirmed bug - connecting USB drive causes kernel panic.

I've checked logs, it appears that my crash is identical to log posted by [MENTION=3505630]angelsel[/MENTION].

[MENTION=2961094]aidfarh[/MENTION] - could you also reproduce this crash and compare/post the logs?

BTW. Bumping this:

As it looks promising and is already done, just needs merging :)
[Xperia Z Original Android Development] BrateloSlava:
My only goal - optimizing the kernel for reducing energy consumption. Therefore, all of the patches, that I use, try to serve this purpose. And they all worked fine in my previous project. I'm not going to start my own project. I have almost all satisfied in the work of this author. Therefore, I propose to supplement it a bit. And apply these developments or not - decides to let the author of this project.
[Xperia Z Original Android Development] B14ck7hund3r:
Quick Question: Does anyone know why MSM-DCVS doesn't work with this kernel? It's always on maximum frequency. It was originally designed for MSM8960 and afaik it works for stock users.

Just asking, please don't hit me [emoji1]
[Xperia Z Original Android Development] BrateloSlava:
For example, I have not seen the kernel source code, where it worked fine immediately and without patches. ;)

ADD.

I could not previously realize the transition for the system power management from earlysuspend to powersuspend. I hope that in this project we will be able to implement it.

( link or link )
[Xperia Z Original Android Development] B14ck7hund3r:
I have only basic programming skills, but I found something:

the file /sys/module/msm_dcvs/cores/cpu0/freq_tbl has no entries, so I assume the governor had at the point of initialization no available frequencies to choose from. I searched a bit and stumbled upon something interesting.

According to this there is a array-structure named apq8064_freq[] and some additional lines in apq8064_core_info that are missing in /arch/arm/mach-msm/devices-8064.c of the CM-kernel.

I assume that is why the frequency table was empty, so adding the missing structure and the additional lines in apq8064_core_info will enable the msm_dcvs governor to scale the cpu.

As said before my programming skills are very nooblike, but it makes sense (at least to me :eek:) and IF Thomas would decide to include this changes in an experimantal build, I would volunteer, as my phone is insured :D
[Xperia Z Original Android Development] lonixlon:
Reset my phone battery stats to see how long my phone would last in standby initial results are promising, with all unnecessary stuff turned off I got these results less than 1% drop in 9 hrs
[Xperia Z Original Android Development] thomas1991_12:
I have been working on the kernel the last few days, your commits are now merged. I also have been busy porting over powersuspend to our yuga, which is a pain. I have just finished the first working build with that, i have been succesfully testing it now for a couple of hours. I also updated the intelliplug driver to its latest version, so mpdecesion wont be needed anymore in the future. Further more I merged some patches of Faux123. For a complete list see my git: https://github.com/daeiron/android_kernel_sony_apq8064/commits/cm-11.0

If all is well on my device, expect a new CM build tomorrow evening.

O yeah before I forget, because the new powersuspend I had to disable gamma control for now, because it depends on earlysuspend.
[Xperia Z Original Android Development] zero995:
[MENTION=2228255]thomas1991_12[/MENTION]

hi im xperia L developer i have some questions for you and i need your help for some missing libs if you can

please you share me your Sony .230 source and blobs and Adreno KitKat blobs (.230) files and help me with some libs

filename

camera.qcom.so

vendor-camera.msm8960.so OR camera.msm8960.so OR camera.msmxxxx.so

libcamera_client.so

thanks a a lot :laugh:
[Xperia Z Original Android Development] aidfarh:
That's really cool. Did you check whether the intelli-plug screen off max frequency works? I'm using my own custom kernel based on your kernel. From my testing, the intelli-plug screen off limit didn't work initially. I had to do the following hack to make it work: https://github.com/aidfarh/android_...mmit/2009083f38540f1934479d35b33a935f48d533fa

It's a crude hack based on intelli-thermal code, but it works for me. I'm sure you can find a better way.

---------- Post added at 01:18 PM ---------- Previous post was at 01:02 PM ----------

Yes, I reproduced the crash and the logs are similar.
[Xperia Z Original Android Development] BrateloSlava:
:good: Excellent work.

We are waiting impatiently. :)

IMHO, it - useless thing.
[Xperia Z Original Android Development] BrateloSlava:
I want to draw attention to the following patches:

1. disale CRC check

2. writeback: I believe these defines were calculated with HZ=1000 in mind.

3. mm: slub: Default slub_max_order to 0

4. Remove tracing (Morfic) + Remove another debug object + ARCH: remove debugging

5. msm: peripheral-loader: Change IOMAP_SIZE from SZ_4M to SZ_1M

6. cpufreq: Initial CPU utilization should be 0

7. readahead: optimize divide/multiply by power of 2 using L/R shift + readahead: optimize divide/multiply by power of 2 using L/R shift - Fix

8. smp: Allow booting a specific subset of CPUs

9. Update exFAT source to 1.2.7 from here.

10. switch the protection of percpu_counter list to spinlock

11. mm: Clear page active before releasing pages

12. writeback: fix occasional slow sync(1)

13. sched/cpuidle: reduce IPI storm. Backport upstream 3.16 scheduler updates

The patch is interesting, but I'm not sure its appropriateness : acpu: add cpu underclock

We have not used "Generic Dynamic Voltage and Frequency Scaling (DVFS) support" (CONFIG_PM_DEVFREQ, folder). It is likely, that we need to synchronize the folder with this, and use this (after Mar 28, 2012) or this (after Mar 28, 2012) patches.

And more. I "bit" interested in the new file system f2fs and use it in practice.

A few links on this subject:

- Use of F2FS for /data

- [Guide] Converting ANY ROM to All-F2FS Partitions

- f2FS

- Backup /data: ext4 -> f2fs

- https://github.com/psndna88/AGNI-pureSTOCK/commits/pureSTOCK-I9300-4.3/fs/f2fs or https://github.com/psndna88/AGNi-pureCM/commits/pureCM-smdk4412-I930x-CM11/fs/f2fs
[Xperia Z Original Android Development] Jodus:
I can't make calls on when using your aospa build, the network gets disconnected when I try to call? Any solutions?
[Xperia Z Original Android Development] thomas1991_12:
Yeah known bug, im now focussing on CM and kernel. AOSPA ill have a look to in the future, you could try replacing, libril.so, libreference ril.so and /system/bin/rild from CM build to PA.
[Xperia Z Original Android Development] SuperHanss:
Didn't realise you'd made a PA build as well lol. Anyway the fix is here.
[Xperia Z Original Android Development] thomas1991_12:
Thanks, that will spare me some time :good:

BTW, I never recently used PA, I know back on version 2 or something there was paranoid preferences included. It seems gone now, what about that? As you seem more knowledgeable about PA.
[Xperia Z Original Android Development] SuperHanss:
Yup Paranoid prefs/Hybrid is a WIP. They started from scratch on all features for KK.
[Xperia Z Original Android Development] ari197:
which build are you using?
[Xperia Z Original Android Development] Jodus:
The latest 4.41 pa, I am downloading infected aospa to replace the libs

Edit: that worked
[Xperia Z Original Android Development] thomas1991_12:
Ill fix and upload this evening. So new CM+AOSPA build.
[Xperia Z Original Android Development] Tommy-Geenexus:
[MENTION=2228255]thomas1991_12[/MENTION]

Left you another pull request, some more debug removing ;)

Sent from my Xperia Z
[Xperia Z Original Android Development] thomas1991_12:
Both new builds are up. (AOSPA should be done in 5 minutes, CM is done already)
[Xperia Z Original Android Development] B14ck7hund3r:
Performance is just crazy. Started Appy Geek and flicked to the end of the article list. No stuttering for any animation (never happened before).

This update is a really good one :good:
[Xperia Z Original Android Development] fards:
Had a quick play with the 0707 aospa, looks like out going calls are still an issue.
[Xperia Z Original Android Development] BrateloSlava:
good

:good: And where we lost intelli_thermal :confused: :D
[Xperia Z Original Android Development] asdf-chan:
Hi, last time I tried this ROM (03/07 Build IIRC) with BanK GAPPs or PA Micro GAPPs I had problems with Google Services draining my battery, I really liked the smoothness of the ROM but that was such a deal-breaker for me, heh. Is there a recommendation for a special GAPPs version?

As far as I've read here it's just a matter of luck or what?
[Xperia Z Original Android Development] Tommy-Geenexus:
It isn't enabled in the defconfig, took a quick look at the commits.

Sent from my Xperia Z
[Xperia Z Original Android Development] BrateloSlava:
This - is understandable. Question - why disabled.
[Xperia Z Original Android Development] ari197:
Tried the latest cm build..clean install.. Got hit by the Network location bug after a few hours..
[Xperia Z Original Android Development] B14ck7hund3r:
I noticed that this happens when. Network connection changes. I had 3 google location processes running (even with disabled location history and report). CPU utilization was constantly at ~60 percent and log had tons of CONNECTION_CHANGE entries.
[Xperia Z Original Android Development] BrateloSlava:
help, please

At the old phone, I used a batch file to get information:

@echo off
c:
cd \adb-t
adb kill-server
adb shell sync
adb shell "dmesg > /storage/sdcard1/dmesg.txt"
adb pull /storage/sdcard1/dmesg.txt c:/adb-t/dmesg.txt
adb shell rm /storage/sdcard1/dmesg.txt
adb kill-server
exit

On the current model - causes error with security. Please, show me the correct sequence of commands.
[Xperia Z Original Android Development] BrateloSlava:
Some patches:

1. NOATIME and NODIRATIME by default

2. block: bfq: BFQ-v7r4 -> BFQ-v7r5

3. int_sqrt.c: Correction square root algo with naming + int_sqrt: Improve 3x faster integer sqrt

4. af_unix: speedup /proc/net/unix /proc/net/unix has quadratic behavior, and can hold unix_table_lock for a while if high number of unix sockets are alive. (90 ms for 200k sockets...)

5. arm/crypto: Add optimized AES and SHA1 routines
[Xperia Z Original Android Development] cybershock:
Any chance for pretuned gamma ?
[Xperia Z Original Android Development] insanexd:
When you have some time maybe you could merge the .230 blobs into xperia ZL Kernel also :P Or you could give me some directions in how to do that.
[Xperia Z Original Android Development] thomas1991_12:
All Fusion3 devices are already merged in the kernel. On my git I have untested blobs for Odin too: https://github.com/daeiron/proprietary_vendor_sony/tree/cm-11.0-fusion3-4.4

So you could try a build, but no support as I dont own any of the other fusion3 devices.
[Xperia Z Original Android Development] thomas1991_12:
Thanks for your support, i have merged them all except for the noatime patch. I think its better to set these in fstab (which is already the case for data and cache)
[Xperia Z Original Android Development] BrateloSlava:
Please, allow to set min CPU voltage at 750 mV.
[Xperia Z Original Android Development] Tommy-Geenexus:
I've added it to the pull request

[MENTION=2228255]thomas1991_12[/MENTION]

This i/o patch is also nice:

https://github.com/Tommy-Geenexus/Zombie-new/commit/119d2207ded96700f749c6e28aa8955f78690fcc

Sent from my Xperia Z
[Xperia Z Original Android Development] zeduck:
Hi everybody,

I've just flash pa_yuga-4.41-20140707.zip that can be found on this Google Drive.

But from the time that I did that, I could not make a call anymore.

How can I fix it ?

Sorry for my ignorance if so, I come from a completely different smartphone (Nexus 4).

Thanks by advance
[Xperia Z Original Android Development] fards:
extract the libs from this to /system/lib and rild to system/bin/

don't forget to set the permissions.
[Xperia Z Original Android Development] zeduck:
It works.

Thank you very much! :)

How does it work? I am supposed to do that again after next update?

Is it related to ParanoidAndroid ROM?
[Xperia Z Original Android Development] fards:
There's a bug which was patched in cm ages ago based on PABX patch (see a couple of pages ago), doesn't look like it works with the latest aospa, unless Thomas didn't pull it in quite right.
[Xperia Z Original Android Development] golfgtiedition30:
The latest cm build is awesome. No bugs or battery drain here...
[Xperia Z Original Android Development] B14ck7hund3r:
15+ hours with 3 hours screen on, 2 hours google play music, a bunch of google searches, a lot browsing and chatting. This is clearly better than stock! Even no stutter playing music over Bluetooth.

Of someone is interested, here's my configuration:

Governor: abyssplugv2

Scheduler: noop

Read ahead: 2048

TCP: westwood

Hotplug: intelliplug

Undervolt: 100mV
[Xperia Z Original Android Development] Jodus:
Nice new pa build
[Xperia Z Original Android Development] venky716:
The gamma on the latest CM version seems a bit off, the red is a little higher it makes the darker colours look brown.

If possible could you reset it to default.

Thanks.:good:
[Xperia Z Original Android Development] ari197:
just wondering, where to read about the difference in each governor?
[Xperia Z Original Android Development] venky716:
http://xdaforums.com/showthread.php?t=1736168

http://xdaforums.com/galaxy-s2/general/ref-kernel-governors-modules-o-t1369817
[Xperia Z Original Android Development] heorung:
Does newest CM build has enable Intelli-Thermal? I can't find it in Trickster Mod