yashsingh1/xdaforums huggingface dataset:
[Xperia Z Original Android Development] alnikki25k:
Upload corrected. Try again. :highfive:
[Xperia Z Original Android Development] tomgus1:
Flashed good, thanks for Re-Upload :D
[Xperia Z Original Android Development] m0b:
Installed, so far so good. Everything but deep sleep: 12:58 boot time and 00:01 DS. Will look a little more.
[Xperia Z Original Android Development] mankent7:
installed v18 hope my phone can sleep well, yesterday 15hour awake. later post report to u .
[Xperia Z Original Android Development] alnikki25k:
Ya. Expected Sony made a mess. There's an IRQ 54 that keeps the device awake. I am looking into this. Honestly this is Sony's job lol.

EDIT: I think I fixed this. But it's extremely hacky. Looking for any side-effects.
[Xperia Z Original Android Development] kingrion88:
yeah! nice.

alnikki, did you remove intelli-thermal?

I cant seem to have it in fauxclock or trickster.
[Xperia Z Original Android Development] alnikki25k:
Yup. Removed. The current thermal driver is more efficient and simpler. Try it ;)

Also, I need beta-testers. 4 of them. Post here if ready to test the deep sleep solution
[Xperia Z Original Android Development] -totonio-:
I'm here for beta testing :)
[Xperia Z Original Android Development] m0b:
+1
[Xperia Z Original Android Development] jpacho89:
+1 I can test whatever you want ;)

Already flashed v18 and deep sleep seems to work!

Will upload at the end of the day screenshots about battery life, cpu usage and whatever you need, but for the moment I have 35 minutes of deep sleep with 1hour of usage, looks nice.

Thanks for your work [MENTION=4645070]alnikki25k[/MENTION] hope you have a good job, if not sony must consider including you in their company...
[Xperia Z Original Android Development] spida_singh:
Count me in for testing.
[Xperia Z Original Android Development] alnikki25k:
Sent. That's it for now. Thank you.
[Xperia Z Original Android Development] alnikki25k:
Looks like this wakelock is because of something Sony changed in the Power Supply Drivers. Remember how the battery was not calibrating correctly? Must have been a patch for that. But it's just got another problem. So reverting those to 4.2.2 and checking now.
[Xperia Z Original Android Development] kingrion88:
Tried v18, phone does not go to deep sleep either. Total run-time 2 hours+, deep sleep 1 minute and 1 hour 38 min on 384 mhz.

Looking forward to your solution bro.
[Xperia Z Original Android Development] alnikki25k:
Great news! It's fixed! Suspend_backoff is gone :D :cowboy:

mmc1_detect might be there but that's hardly any problem and that too it's of very little duration. Will post results in an hour. :cool:
[Xperia Z Original Android Development] beniamin24:
So gama control is better now but i dont hear any difference in sound control...
[Xperia Z Original Android Development] alnikki25k:
Will look into it. :good:
[Xperia Z Original Android Development] kingrion88:
You're the man. :victory:

May I ask what is causing the wakelock? I probably wont understand anyway, nvm. lol
[Xperia Z Original Android Development] -totonio-:
If you have the soniko audio patch you should stop sound enhancement, next it will work.

I had the same issue :)
[Xperia Z Original Android Development] beniamin24:
i dont have any patch the ideea is that in 4.2.2 at doomlords kernel when ever i choosed a audio profile from trikster or faux audio app i wold emediatly hear a big diference, where is here i am able to modifie the volume but it doesnt seem to be any differnt
[Xperia Z Original Android Development] beni8978:
How can i revert to stock kernel?

I reverted using flashtool or recovery with doomlord advanced but the wifi didn't work. Any suggestions?
[Xperia Z Original Android Development] alnikki25k:
A quick fix would be to reflash the ROM without wiping data. Specifically, from the ROM zip replace /system/etc/firmware/wlan and /system/lib/modules
[Xperia Z Original Android Development] alnikki25k:
Previously, there was a problem in the battery gauge i.e. in 4.2.2. So looks like Sony decided to patch that with a calibration. But, that calibration was constantly issuing a wakelock for some unknown reason. Now, I replaced the charging drivers with the one from 4.2.2 and it sleeps like a baby.
[Xperia Z Original Android Development] r-ikfoot:
Can't wait to try it !!!

I need this **** sleeps correctly again ;)

Thank you Sir for your hard work !
[Xperia Z Original Android Development] psycmos:
FAT32 sdcard Not mount on V18 too

After install the v18 my sd card not mount again i was remove this:

system/etc/init.d/00load_exfat

but keep not mounting...

system/lib/modules/exfat_core.ko

system/lib/modules/exfat_fs.ko

Are not presents.

how can i put my sd card mouting again?
[Xperia Z Original Android Development] alnikki25k:
Alright. I have uploaded v18.5 with a possible fix for the deep sleep issue. Mind you mmc1_detect still causes problems and might even cause an occasional suspend_backoff. But this is far lesser compared to what you people are actually experiencing now.

Anyways, try it and let me know :good:
[Xperia Z Original Android Development] o0oP5:
Does this mean the battery bug will be back?
[Xperia Z Original Android Development] alnikki25k:
Shouldn't be. But I suggest you use this and figure it out. 99% sure it shouldn't be back.
[Xperia Z Original Android Development] alnikki25k:
Did you miss deep sleep? Haha.

Sent from my C6603
[Xperia Z Original Android Development] Tommy-Geenexus:
yeah ;)

i'll try the new release asap hope my phone will finally sleep

Gesendet von meinem C6603 mit Tapatalk
[Xperia Z Original Android Development] -totonio-:
I have an issue.. My screen doesn't turn on after long deep sleep this happens also when im listening to music, the music continues but the screen won't turn on.

I deleted undervolt but no changes :)

I need to restart the phone with vol up +power
[Xperia Z Original Android Development] alnikki25k:
Can you post the last_kmsg from /proc/

Also, try lowering GPU frequency to 320 MHz and let me know

Sent from my C6603
[Xperia Z Original Android Development] -totonio-:
Is here! Thank you! :D
[Xperia Z Original Android Development] alnikki25k:
Got it. You have enabled qualcomm's MPDecision as well as the MPDecision i implemented in the kernel. Disable either one of them using trickster mod.

Sent from my C6603
[Xperia Z Original Android Development] -totonio-:
Thank you! So I have to disable MPDecision like in the screenshot?
[Xperia Z Original Android Development] m0b:
Only one of them! Enable Intelli-plug or MPDecision.
[Xperia Z Original Android Development] Destroyedbeauty:
Disable MPDecision and enable Intelliplug instead - smoother performance / speed and better battery life - two in one easy said! :)
[Xperia Z Original Android Development] kingrion88:
Confirmed deep sleep is now back.

7:23 hours run time

Deep sleep: 7 hours

384: 5 min

Nice :good:
[Xperia Z Original Android Development] -totonio-:
Yes is back, in airplane mode :)
[Xperia Z Original Android Development] o0oP5:
Uh oh, is that battery bug?

Try to reboot twice and the battery drop significantly..
[Xperia Z Original Android Development] alnikki25k:
Wait. How much of a drop was it? The battery bug generally is sudden increase in battery. Not drop. Also, after installing 4.3 have you calibrated your battery?
[Xperia Z Original Android Development] o0oP5:
well that's weird, because I always get battery drop since the first I know there's battery bug..

sorry I forget to take note after and before but if i guess it was around 5% each..

and about the battery calibration.. how am i supposed to do that? some say it was just a myth so i never done it.. LOL..

next time i get battery drop i will tell you for sure how many % the drop is..
[Xperia Z Original Android Development] alnikki25k:
Then it's not the battery bug. Don't worry. Calibration is not a myth. It works well especially when you flash a new ROM. But I would not advise calibrating it frequently.

It's simple. Charge your phone till 100%. Then discharge it fully till 0 and the phone is off. Then charge it again but don't switch on the phone for about 3 hours. Then switch it on while the charger is connected. It should work.
[Xperia Z Original Android Development] yeyi01:
Wow I think boss alnikk is one of Sony developers!! ;)
[Xperia Z Original Android Development] o0oP5:
Okay noted, i will find the right time to calibrate my battery..
[Xperia Z Original Android Development] Hellscythe:
was running stock 4.3 kernel since the day of its release, today i try this kernel and find i get the wifi problems again

after a while of connected to wifi, it disconnects and cannot be found again
[Xperia Z Original Android Development] alnikki25k:
When you try to reconnect, can you post the logcat?

Sent from my C6603
[Xperia Z Original Android Development] Hellscythe:
okay i will do that next time it happens

but what i mean is, my wifi network just disappears from the list :S so not sure if its trying to reconnect or not
[Xperia Z Original Android Development] m0b:
I have low deep sleep when WiFi turned on. It wasn't so on the same ROM & config but with stock kernel.

When i turn off WiFi - DS became perfect.
[Xperia Z Original Android Development] alnikki25k:
Ya. That's something I have noticed too. Problem is mmc1_detect. I am not sure how to fix that though. Will look into it. :good:
[Xperia Z Original Android Development] spida_singh:
Still get suspend back off wakelock as well....
[Xperia Z Original Android Development] zabi1994:
2K Display

V19 will make our screen display in 2K resolution ? Wow !!! Really excited for this one.. Hope it won't drain our battery as much though.. Keep up the great work man.. :good:
[Xperia Z Original Android Development] shaanyt:
What do you mean by 2k res? Our screen is only 1080p. Can you clarify? :)
[Xperia Z Original Android Development] zabi1994:
I know right.. But look at the OP.. Its in the To-Do list for next version..
[Xperia Z Original Android Development] secondkai:
How is this even posibble?
[Xperia Z Original Android Development] zabi1994:
alnikki25k might have the answer.. He stated it in the OP for next release.. I'm just mentioning.. :)
[Xperia Z Original Android Development] CaracalSef:
OK, I flashed this kernel and my phone doesn't start :D I mean that it DOESN'T, not boot! :) I flashed in recovery the latest (18.5) zip file (notouchwake), then rebooted. It did not rebooted, so I tried to power it on. The only thing that happens is to vibrate. If I long press the power button, it vibrates once at 2 seconds or so.

I was on rooted stock 4.3, dual recovery, unlocked bootloader. So what can I do? :D
[Xperia Z Original Android Development] braacic17:
Okay I've been using eXistenZ ultra 5.0 and your 18.5 kernel. I had today 5h screen on time and now i have 25% left. I deleted a lot of unnecessary apps that are causing battery drain. Still there is some work to do and you're really good developer and i can't wait for 2K to see on my xz.

Keep up the good work!!
[Xperia Z Original Android Development] CaracalSef:
Uh, It worked booting in flashmode and I flashed C6603_10.4.B.0.569_Stripped.ftf with flashtool. Now I don't have Wi-Fi, but that's not a problem, I can replace files replaced by this kernel with stock ones.

Weird thing that it's not working. There's something special about flashing this custom kernel?!
[Xperia Z Original Android Development] alnikki25k:
Sure bootloader is unlocked?
[Xperia Z Original Android Development] alnikki25k:
Alright, so the 2k thing is just an experiment. I'll post more on this soon. Even 4k works lol. But it's laggy as hell. I mean the system literally stalls.
[Xperia Z Original Android Development] beniamin24:
Hope you will fix sound control coause despite the ability to change it, it does not work, there is no diference in sound
[Xperia Z Original Android Development] CaracalSef:
Hmmm...is there a way I can check? I am sure I have unlocked it. It can be relocked by something else, without my interaction?!
[Xperia Z Original Android Development] alnikki25k:
Will fix this. :good:
[Xperia Z Original Android Development] alnikki25k:
Dial *#*#7378423#*#* and then Service Info > Configuration. Tell me what it says under boot-loader information.
[Xperia Z Original Android Development] CaracalSef:
It says IMEI, IMEI Software Version, Available Speech Codecs, Working band/s and

Rooting status:

Bootloader unlock allowed: Yes

Nothing about booloader status? :D

L.E.: I found this post: http://xdaforums.com/showpost.php?p=44713761&postcount=14

From that I figure that my bootloader is locked...and I can't understand how that happened. I am sure I unlocked it. On sony site, with IMEI (last digit from IMEI removed because was giving an error - too long IMEI or something like that), then with fastboot and the phrase I got from sony.

Before unlocking bootloader, I backed up TA partition, then restored after 4.3 flash...So how it could've got locked again?!
[Xperia Z Original Android Development] tribemac:
If you restore you're TA Backup you re locking the bootloader again....

Skickat från min LG-V500 via Tapatalk
[Xperia Z Original Android Development] CaracalSef:
Ooooooooh SNAP! Didn't knew that...Thank you for the info. Now I have to unlock the bootloader again and loose my data and things like that :D

Thank you again, I'll do that, for this kernel! :))
[Xperia Z Original Android Development] Destroyedbeauty:
Is this true 2K / 4K resolutions or just upscaled (outstreched 1920 x 1080 pixels) with added HD-depth?
[Xperia Z Original Android Development] m_k1815:
consume battry is ok.and speed is ok.thanks.
[Xperia Z Original Android Development] braacic17:
can we test 2k if you already have it on kernel ?
[Xperia Z Original Android Development] CaracalSef:
About 2k...I don't think that's possible. Maybe DPI changed, but AFAIK, you can't add pixels to the display :D :D Or maybe 2k res with other display :)
[Xperia Z Original Android Development] Destroyedbeauty:
Or perhaps some kind of cheated upscaling method? ;)
[Xperia Z Original Android Development] shaanyt:
So I am assuming by that you mean the gpu would be rendering in 2k / 4k instead of the usual 1080p.
[Xperia Z Original Android Development] alnikki25k:
Yes. Of course it's a cheated method. I mean I can't change the hardware lol. But, think about this. By changing the resolution I am effectively changing how many pixels the gpu can render. If 2k works well, the other end of the spectrum would do the same I. E. 720p. That would save us a lot of battery because the gpu is only rendering 720p. I am experimenting with these anyway. Let's see.

Sent from my C6603
[Xperia Z Original Android Development] Hellscythe:
here is the logcat regarding the wifi issues.

wifi disconnects and stops finding most networks for about 15 minutes, then it find all the networks and connects back to mine again.

i tried turning wifi on and off, rescanning etc but it doesnt work. the only way to get it instantly working again is to reboot.

01-17 17:09:47.038 I/WifiManager(1864): Process ndroid.systemui disabled Wifi

01-17 17:09:47.038 D/WifiService(1545): setWifiEnabled: false pid=1864, uid=10138

01-17 17:09:47.048 D/WifiHW (1545): close sockets 1

01-17 17:09:47.178 I/MTP-usbux.Class(13241): Action = android.net.wifi.STATE_CHANGE

01-17 17:09:47.208 I/ActivityManager(1545): Start proc com.sonyericsson.psm.sysmonservice for broadcast com.sonyericsson.psm.sysmonservice/.WifiStateReceiver: pid=18131 uid=1000 gids={41000, 2993, 3003, 1015, 1028, 3002, 3001, 3006, 3007, 1021, 3004, 3005, 1000, 3009, 1023, 1010}

01-17 17:09:47.268 V/KeepAlert(5273): Action android.net.wifi.WIFI_STATE_CHANGED

01-17 17:09:47.298 V/KeepAlert(5273): Action android.net.wifi.WIFI_STATE_CHANGED

01-17 17:09:52.703 I/WifiManager(1864): Process ndroid.systemui enabled Wifi

01-17 17:09:52.703 D/WifiService(1545): setWifiEnabled: true pid=1864, uid=10138

01-17 17:09:53.093 V/KeepAlert(5273): Action android.net.wifi.WIFI_STATE_CHANGED

01-17 17:09:53.274 I/wpa_supplicant(18181): Reading GSM home network domain configuration file '/system/etc/wifi/gsm_domains.conf'

01-17 17:09:53.624 E/WifiConfigStore(1545): Failed to look-up a string: WPA_PSK_SHA256

01-17 17:09:53.644 E/WifiConfigStore(1545): Failed to look-up a string: WPA_PSK_SHA256

01-17 17:09:53.664 E/WifiConfigStore(1545): Failed to look-up a string: WPA_PSK_SHA256

01-17 17:09:53.704 V/KeepAlert(5273): Action android.net.wifi.WIFI_STATE_CHANGED
[Xperia Z Original Android Development] alvino11:
Usb tethering freezes phone

Usb tethering freezes phone when enabled and later reboots....I'm on existenz rom black edition v5
[Xperia Z Original Android Development] whoisboss84:
bro any chance of making such awesome kernel for ZL ? plzz o plzz make one plzz:good:
[Xperia Z Original Android Development] alnikki25k:
Nope. Sony confirmed it was a hardware error. Due to a spike in the charging.
[Xperia Z Original Android Development] alnikki25k:
If I get some time, I surely will :)
[Xperia Z Original Android Development] mkone:
Developer life :/

My good news is over 1 full day on battery with V2.0 3h screen time and 2h talk time
[Xperia Z Original Android Development] alnikki25k:
XzK is still very much alive. I just need some money to get my phone fixed, after that it should be up and running. Also, me and ErosizeD are working on a team kernel with camera/video tweaks. I'll see if I can rope in ZeroInfinity to get some audio mods. :good:
[Xperia Z Original Android Development] alnikki25k:
Brilliant. I actually rebased 4.0 on 2.0 itself. Seems like the battery life is good :cool:
[Xperia Z Original Android Development] alnikki25k:
v4.0 will be up in some time. Beta testers didn't have any major issues. I have fixed all the other problems. Have fun :good:
[Xperia Z Original Android Development] JPWOA:
Where is the 4.0 link?:confused:
[Xperia Z Original Android Development] alnikki25k:
Was still updating the OP lol. It's up now.
[Xperia Z Original Android Development] C.Eduardo:
hello, this new version 4 has the possibility to reduce the clock for less than 386mhz??
[Xperia Z Original Android Development] alnikki25k:
Not yet. I have been testing lower clocks, but the battery is actually worse in those cases and also they're not that stable.
[Xperia Z Original Android Development] ankabo:
Nice performance, a bit better as doom. Now I will check battery over night.

Add: Battery is also very good for me.
[Xperia Z Original Android Development] matique:
Version 4 has been running pretty smooth so far :)
[Xperia Z Original Android Development] Thraxzzz:
Working perfectly so far :)

Sent from voldemort's nose
[Xperia Z Original Android Development] ckyy:
I'm having audioskips in walkman (both screen on/off). Not sure if kernel or rom related. Besides that, everything.working fine. And sio seems kinda smoother than sioplus.

Gesendet von meinem C6603 mit Tapatalk 4
[Xperia Z Original Android Development] zyxel25:
i dont know whats the problem why my phone cant read my sd card when i flash this kernel, i think because my sd card is formatted to exFAT but im using doomkernel and dont have any problem like when i flash this kernel.
[Xperia Z Original Android Development] ckyy:
Any benefits of using zram?

Gesendet von meinem C6603 mit Tapatalk 4
[Xperia Z Original Android Development] beni8978:
"sleep of death" or black screen happened for me about 5mins ago again on existenz v2

C6603 ?
[Xperia Z Original Android Development] alnikki25k:
Noted. Were you using intellidemand?
[Xperia Z Original Android Development] alnikki25k:
Not really. Just a feature. May not be that useful.
[Xperia Z Original Android Development] bern4d1:
Why can't I get back to stock or other kernel after using this v18.5 kernel.

The wifi doesn't work.

I'm on existenz black edition.
[Xperia Z Original Android Development] m0b:
XzK install pack installs not only boot.img (kernel), but also some drivers (to /system/lib and /system/etc folders).

If you want to use stock kernel after XzK, you should reinstall full ROM or use a backup.
[Xperia Z Original Android Development] shaanyt:
I think that lowering it would be more beneficial than pushing it up hahaha, yeah, 720p would be great when we really need the dumbass smartphone battery to last longer.
[Xperia Z Original Android Development] bern4d1:
What? Can I just flash the stock system/etc and system/lib folder?
[Xperia Z Original Android Development] alnikki25k:
1. I'll release a stock revert pack to revert to any other kernel.

2. Spazzy1912, the wifi issues seem to be because of security. Can you try changing to WPA2 or WEP and let me know?

3. Post a logcat related to USB tethering.

Sent from my C6603
[Xperia Z Original Android Development] m0b:
Yes, you can, but also you should set correct permissions for those files. It's easier to reinstall ROM, but you can do as you want.

You can unzip the XzK install package and look into system folder in it, and you'll see what files was changed.

Or just wait for:
[Xperia Z Original Android Development] o0oP5:
oh YES! I would trade 1080p to 720p just to extend battery life..

I think 720p is enough for daily use..
[Xperia Z Original Android Development] CaracalSef:
So I managed to flash the kernel. The thing is that I got a call and the screen went off because of the proximity sensor when it was over my ear. After I finished talking, I wanted to end the call, but surprise! The screen did not turned on! What can I do? I made a test and the phone is still ringing if I get a call, but the screen remains off. Is there a way I can "remove the battery"? I know I had a HTC One X which I could long press the power button and turn it off that way. It doesn't work on my Xperia Z :)

I managed to shut it down with volume up and power. But does anyone knows why this happened? Anyone else got this at some point? I flashed XzK-v18_5_notouchwake.zip.
[Xperia Z Original Android Development] alnikki25k:
Yup. Noticed this. Will turn up a few voltages that I turned down. Happens occasionally though.
[Xperia Z Original Android Development] beniamin24:
Please dont forget about the sound control
[Xperia Z Original Android Development] alnikki25k:
Fixed. Testing :)

Also, Special Thanks to [MENTION=4594401]DarkStone82[/MENTION] for your generous donation! Thank you so much :)
[Xperia Z Original Android Development] alnikki25k:
Also, I have started work on porting Kexec patching. If it goes as planned, we might have MultiROM for Z ;)
[Xperia Z Original Android Development] beniamin24:
Thx now i am waiting for the release, oh an another issiue, if my phone stays in deep sleep for a long time and someone calls the screen doesnt open, and it doesnt open even if the call is ended, i have to restart the phone to use it again.i dont know if it hags or not or anything i only can use it if i reboot, any solution for that?
[Xperia Z Original Android Development] alnikki25k:
Already reported. Looking into it. Must be a minor voltage issue :)
[Xperia Z Original Android Development] sea2605:
[MENTION=4645070]alnikki25k[/MENTION]

How much mV or mA does the touch2wake-feature for the display consume when active?

Did anyone compare touch2wake- and non-touch2wake-kernel regarding battery life?

______________________________________

My thread about optimizing battery life:

http://xdaforums.com/showthread.php?t=2382712
[Xperia Z Original Android Development] Haldi4803:
did you modify max GPU clock to 450 or was that a change from Sony ?

I'm kinda sure it was 400mhz a while ago.

But there is no 400mhz step now.
[Xperia Z Original Android Development] Tommy-Geenexus:
the 400 mhz freq was removed.

The standart of the adreno 320 is 450mhz.

Gesendet von meinem C6603 mit Tapatalk
[Xperia Z Original Android Development] -totonio-:
Also the standard freq for snapdragon s4 is 1.7 Ghz, why Sony lowered it? :p
[Xperia Z Original Android Development] DarkStone82:
Your welcome, thanks for the hard work and making my phone faster and better.
[Xperia Z Original Android Development] alnikki25k:
It shouldn't. This is a hardware method unlike other devices. I mean the touchscreen driver puts the phone into deep sleep and only wakes it up with an interrupt. So maybe a few micro amps. Extremely negligible. Kind of a perfect implementation with the Z :cool: