yashsingh1/xdaforums huggingface dataset:
[Xperia Z Original Android Development] xdagfg:
I will use the default charger of the Z which is 850mA(output) along with the default cable of it.I will report the outcome.Thanks.

btw. what you mean with AC charge?
[Xperia Z Original Android Development] Tommy-Geenexus:
Normal plug charging.
[Xperia Z Original Android Development] Tommy-Geenexus:
New build is up.

Please report if the experimental Pocket Mode works or not.

Quick Changelog:

* Wake gestures with haptical feedback and pocket mode

* 3-Phase Kernel-based Thermal

* CPU-Boost driver for more smoothness

Important: The new Thermal driver is more conservative by default to keep the device cool

(I don't want to loose my Backplate), if you are a gamer you can set the thermal throttling points higher

with any Kernel Tuner App.

Also the CPU-Boost driver may impact battery life, i couldn't test it much by now.
[Xperia Z Original Android Development] Borias:
Flashed and works fine. Don't really see any difference to the previous one yet. Sorry for the noob question, but how to enable dt2w? Trickster mod doesn't show it as an option...
[Xperia Z Original Android Development] Tommy-Geenexus:
echo 1 > /sys/devices/virtual/input/clearpad/wakeup_gesture

I am going to tune CPU-Boost for more performance, the current boost values are not final.
[Xperia Z Original Android Development] Borias:
Thanks, it worked and seems to run perfectly. No reaction when proximity sensor is covered. Great job! :D
[Xperia Z Original Android Development] Zacny04:
kexec

Has this kernel kexec-hardboot patch? Because when i try to boot other rom it shows error.
[Xperia Z Original Android Development] xdagfg:
installed the b4, seems to be smoother then previous, battery life seems unefected(might need more time to be certain).About the d2tw,i em not sure what to do with.I try to put that line with a editor but it doesnt save.Also i try this line on terminal but it didnt seem to do anything.Where is my mistake?Thanks.
[Xperia Z Original Android Development] kael2404:
Tommy, did you try something to repair exfat? If yes I could install and test it :)
[Xperia Z Original Android Development] airlessproject:
after running the command in terminal (as root - run 'su' before the command), check the file /sys/devices/virtual/input/clearpad/wakeup_gesture if it contains the value 1 (what the command actually does is write "1" in the file), but this will only stick until reboot, so you have to make an init.d script containing the command to make it stick across boots
[Xperia Z Original Android Development] Tommy-Geenexus:
Not yet, will look into it soon.
[Xperia Z Original Android Development] Tommy-Geenexus:
Somehow Kexec got deactivated in the config, next build will have it enabled again.
[Xperia Z Original Android Development] ahmed1994:
is it support double tap to walk??
[Xperia Z Original Android Development] Tommy-Geenexus:
Bugfix build is up.

Changelog:

* Fixed Kexec

* Better CPU-Boost Tunables hardcoded
[Xperia Z Original Android Development] xdagfg:
open temrinal , run su.Then echo 1 > /sys/devices/virtual/input/clearpad/wakeup_gesture ( is there a space btw the echo and the 1? is there a space btw 1 and >?is there a space btw > and /sys ?)Pressing enter after command didnt give any error or confirmation.Checking the file /sys/devices/virtual/input/clearpad/wakeup_gesture its also different here since after the /input i click on clearpad folder but the path shows me input1 folder.Its like clearpad folder and input1 folder have the same files in them.I just cant get to input/clearpad/ only input/input1. Since i em there i check the wakeup_gesture .I open it with the 920text editor, shows me 1|0. D2TW doesnt work. Any suggestion?Thanks.
[Xperia Z Original Android Development] Zacny04:
Kernel is smooth and kexec is working, but my device stuck at 1350mhz and i can't change this.
[Xperia Z Original Android Development] xdagfg:
install trickster mod.In general under cpu frequency control set min max. Under is the covernor and on other tab voltage settings etc.

*You right the frequency goes back to 1350 no matter governor or enable disable frequency lock in trickster mod.Flashing other build again :)
[Xperia Z Original Android Development] langeveld024:
U mean u double tap on the screen and phone just walks away from u? No it is not supported xD lol

Double tap to wake instead is supported, read the thread, it is all over here bro
[Xperia Z Original Android Development] ahmed1994:
hahahahahh thanks i didnt notice my mistake nor it in first post

thanks
[Xperia Z Original Android Development] Borias:
[MENTION=6307368]Zacny04[/MENTION] For me the frequency stays on 1512, can't reproduce your problem. I'm using ondemand governor.
[Xperia Z Original Android Development] Tommy-Geenexus:
Works fine for me, post your settings here please so i can see whats up.

I strongly recommend Interactive as Governor, others are outdated.
[Xperia Z Original Android Development] Zacny04:
When i set max freq to 1350mhz my device stuck with max freq. Actually i'm on ondemand and 384-1512 and it's fine:) But i can't set freq to lower than 1458. What logs can i provide?
[Xperia Z Original Android Development] Tommy-Geenexus:
You are right. Sorry. To solve this lower the input boost frequency for CPU-Boost.
[Xperia Z Original Android Development] Zacny04:
how can i do this?
[Xperia Z Original Android Development] Tommy-Geenexus:
/sys/module/cpuboost

Look for the parameters messing with frequencies and lower them as you wish.
[Xperia Z Original Android Development] Zacny04:
And now it works great. I set 1026000 and phone is still fast and smooth, thank you.
[Xperia Z Original Android Development] Tommy-Geenexus:
Nice, i'll add it as a reminder to the OP.
[Xperia Z Original Android Development] xdagfg:
Well i will give it a try then since i can solve that lock frequency.Something i did notice from your b4(that included the cpu boost) was more battery drain.Did not test to much though to be certain since i moved then to b5.Did you or anyone else on b5 notice any battery drain cause of cpu boost?Thanks.
[Xperia Z Original Android Development] Tommy-Geenexus:
It will affect battery life.

But i favor a smooth interface over ~20-30 minutes more screen on time any day.

You can however tweak the boosting to lower the power consumption.
[Xperia Z Original Android Development] xdagfg:
where should i change hte value :input_boost_ms? right now its 40. or boost_ms also 40.

what does the sync threshhold that is on 1242000?Thanks.
[Xperia Z Original Android Development] Tommy-Geenexus:
Lower boost_freq and sync_threshold as you wish, then uc will work fine.
[Xperia Z Original Android Development] xdagfg:
boost_freq is at 384000does it go lower? Sync is at 1242000 if i lower that can i choose for example 1512 in trickster mod?

you saying " You can however tweak the boosting to lower the power consumption." lowering the 1242000 is the tweak u mean?
[Xperia Z Original Android Development] Tommy-Geenexus:
I'll explain it.

If you are using 1,5 Ghz as max, then you are good to go with defaults. If you want more energy saving lower the sync threshold as you wish. If you want to disable the boosting simple put boost_ms to 0 and the driver is disabled.

If you are underclocking, always make sure boost freq and sync threshold freq are lower than the maximum cpu freq.

You should experiment yourself to find the best tunables fitting the way you use your device.
[Xperia Z Original Android Development] xdagfg:
Ok i think i got all now. I use 384-1026 in trickster(interactive and undervolt).input boost is 384, sync threshold is 918.I put boost_ms to 0 as u say disabled.My question is about input_boost_ms that is still on 40?Should i change that also to 0 meansing hte same value here as boost_ms?
[Xperia Z Original Android Development] Tommy-Geenexus:
It's enough to set boost_ms to 0, the rest of the settings won't have any effect, as the driver is disabled.
[Xperia Z Original Android Development] xdagfg:
Aright thanks.All the info was very useful and might help others reading the threat.Anw now my last question about the d2tw.I used it now and i can wake up my phone to lock screen with 2 fast taps , medium taps, even 2 slow taps.Is there a setting to limit it to fast taps only or slow ones?Thanks again.
[Xperia Z Original Android Development] Tommy-Geenexus:
No, and i can't do that. Wake Gestures are natively coded in the panel driver, i can't influence this.
[Xperia Z Original Android Development] xdagfg:
Aright.Thanks for all the answers.Keep up the good work. :)
[Xperia Z Original Android Development] Kanzhelier:
How to used kexec hardboot on this kernel?
[Xperia Z Original Android Development] xdagfg:
It works, but after boot you have to edit this setting again.How can set it without the need to redo after boot.Thanks.
[Xperia Z Original Android Development] Borias:
@ Tommy-Geenexus

Would it be ok for you, if I posted some ideas for future features? No requests or anything, just some things I would implement (if I had the skill, knowledge and tools required, which I lack)?
[Xperia Z Original Android Development] Tommy-Geenexus:
Create an init.d script.

For sure, go ahead.
[Xperia Z Original Android Development] langeveld024:
I use ukm + synapse. It is worth a try cuz it detects all kernel features on boot. Previously I was writing init.d scripts for any feature on any kernel, now I only use ukm :thumbup: only thing not displaying well (yet) is gamma control on this kernel.

(Due to the new reliable gamma control, I think ukm needs to be updates for it)
[Xperia Z Original Android Development] Borias:
All right, here we go. Please keep in mind that I'm only a user, not a dev, so I don't know in how far these things are realistic options and in how far they are possible to create and implement. So here is my little list of ideas :

- lower minimum frequencies: e.g. 192 MHz or even less. Helps to extend battery live and lower the impact of wakelocks. Maybe with automatic rise to stock 384 MHz based on music playback detection to avoid problems (is that even possible?)

- some more cpu governors like preservative or intellidemand. Extend battery life without sacrificing performance and thus being more efficient

- conservative GPU governor. Since GPU doesn't always need to run on 320-400 MHz when ui is rendered by CPU

- i/o schedulers sio and row, because I made some good experiences with them

- GPU undervolt, again for optimization purposes

- Possibility of CPU and GPU overclock to 1944 MHz and 627 MHz respectively. To ensure that our XZ will have enough power in the future, and to give users the possibility to find the best settings for themselves. Of course at their own risk, and with big disclaimer in OP, but giving everyone the chance to tune their device the way they want. Also for efficiency using race-to-idle. Stock values for boot sequence to avoid problems.

- options for fsync, e.g. dynamic fsync or complete disabling. Is risky, but can provide a significant boost in performance

- Intelliplug as alternative to autosmp. Choice between the two in kernel. From my experience Intelliplug provides better battery management with insignificantly decreased smoothness.

- a in-kernel integrated power save mode, limiting kernel settings to minimum required for normal usage (e.g. dual core @ 1026 MHz, GPU @ 128 MHz etc.) , for critical situations, when no charging possible. Maybe activation via trickster mod

- optimised idle battery drain with network tweaks etc. (not sure how exactly to achieve though)

- since a lot of stock based rom users use niaboc79's Existenz rom, maybe a joint venture to create the ultimate combination or exchange to optimise the coexistence of rom and kernel would be possible

Thanks for the opportunity to express some of my ideas, I hope you like some of them and of course it would be great if they found a way into your kernel. If not, no problem, these are merely ideas of a noob, and the kernel is your work, not mine. Keep it going, yuga needs good devs like you to stay alive :)

Regards

Borias
[Xperia Z Original Android Development] xdagfg:
So the RGB values cant be set on ukm+synapse?Thanks for suggestion i might try it.
[Xperia Z Original Android Development] langeveld024:
We share thoughts bro, some features are available on kernels for Samsung galaxy s5 (my girl has one :p), like the UC with automatic rise of freq on music (tuneable)

And like the power save mode: when below X% lower Max freq and when above Y% use higher Max freq.

Only thing I would add to ur nice text is (tuneable) simple GPU governor.

---------- Post added at 10:51 PM ---------- Previous post was at 10:48 PM ----------

That's all, but might be in the future
[Xperia Z Original Android Development] airlessproject:
Hi [MENTION=5960716]xdagfg[/MENTION], hope this will help:

In version b4, I had the same issue with turning on dt2w and found out what seemed to be that the kernel doesn't support init.d (of course this could be subject to confirmation by our dev)

my chance solution was a Play Store app that, so to say, enabled (triggered) init.d support, and after that, the script worked on reboot..

All the best
[Xperia Z Original Android Development] Tommy-Geenexus:
Init.d is present on most roms, that's why i never bothered looking into it.

[MENTION=5903312]Borias[/MENTION]

Most stuff is doable, some stuff i won't add for stability reasons (e.g. lower clocks).
[Xperia Z Original Android Development] airlessproject:
Hi Tommy, thanks for answering

if it's of use to you, I'd add that in my case I use eXistenZ rom which I guess has init.d support (it has the folder) but through experiment found that it didn't work in practice in combination with zombie kernel, although I don't know if it works with existenz + some other kernel as a way to be sure that it's an issue with zombie kernel.

Good luck and keep up, this is a very promising project!

Regards.
[Xperia Z Original Android Development] comax70:
On existez 3.5.5 work fine
[Xperia Z Original Android Development] xdagfg:
I fixed the issue i had with cpu clock locking at 1350.All is working as planned now :). I did use today the option fast charge .I did enable it in trickster mod.I measured the time to charge and didnt notice any difference as before.Has anyone another experience with it? Question to the Dev Tommy-Geenexus anything to set to force more aggresive charging, or it might cause problems?Thanks.
[Xperia Z Original Android Development] TechKiel:
Is it possible to add more voltage steps across all frequencies available?

The current setup is 25mV steps. Could you please make it just 12.5mV steps? :)
[Xperia Z Original Android Development] dedito:
hey everyone, i just activated dt2w via terminal but every time i reboot i have to activated again ? can someone please tell me how to activated it permanetly and seems like pocket mode doesn't work for me

thank you
[Xperia Z Original Android Development] xdagfg:
you have to do a script and place in init.d folder.
[Xperia Z Original Android Development] dedito:
yes i create init.d script but still it's doesn't work,

can you check it if my script is right or not ?

https://drive.google.com/file/d/0B1jsEc5XxOuUQ3BTNkE4MWw2Z2s/view?usp=sharing

Thank you
[Xperia Z Original Android Development] xdagfg:
Looks ok but since i em not an expert, check this and follow steps :http://xdaforums.com/showthread.php?t=2326585. Also check you script if its working through terminal(do this at first) , type su enter then sh and your directory of the script.See if it change the value.Dont forget permissions.When i edit a script it always changed my permission and i had to put them correct after again(i give 744 rwxr--r--).Just did try it works.
[Xperia Z Original Android Development] langeveld024:
Fast charge increases the USB current. Not ac current.

Disable fast charge, plug phone onto laptop and measure time, after that, enable fast charge and plug onto laptop and measure time.

You will see difference.

Fast charge enabled will not allow media/data access via USB on laptop, it will disable that for allow faster charging via laptop.

Use another app. I use ukm+synapse and I can set 00.5mv steps ;)

I use ukm+synapse app, there's an option for permanently enable dt2w.

Pocket mode works flawless .
[Xperia Z Original Android Development] xdagfg:
Oh its over usb , and then no data access.Ah well thought it was on normal AC charge :).

About mV settings , my phone did reboot yesterday so i changed the mV. 1458-1512 is on -175mV rest freqs is -200mV. So if i get another reboot what should i change? Include 1350 in the -175mV club or reduce the 1512 to -150mV?

Darn you and your synapse i em going to have to use it soon or later!!! :p
[Xperia Z Original Android Development] langeveld024:
Lol xD

I thought that a few years ago also, when I started using custom ROMs on my first android phone (galaxy s1) :p

You're quit new to this aren't u?

Look, I cant say what to change for u because even if we have the same pvs, same ROM/kernel, same use age and same setting's: things may differ between our phone's.

The one and only way to find out your lowest voltage is to:

1. Force all core's online

2. Make sure voltages u set are not loaded on boot.

3. Decrease voltage step by step, starting with lowest freq.

4. Write down on a paper freq u are testing and current voltage. (When phone reboots, increase voltage)

5. When every freq has crashed 1 time, u have the lowest voltage's possible. (POSSIBLE, NOT STABLE)

6. Then u are going to run stability test's for 10 minutes for every freq.

When reboot, increase voltage for that freq.

7. Now u have semi-stable voltage's for every freq.

8. Now u run stability test's starting from lowest to mid freq (348-1026).

(Again, when reboot, increase voltage for that step)

9. Now run stability test for full freq range.

Note: every time u run it, let all cores run for let's say: 6 run's (~10 minute's)

10. Now check if phone sleeps when turn of screen and no apps running. (20seconds screen off and then on, u can see in most OC apps, core stats, if phone was in sleep)

If so:

11. Put cpu locked on lowest freq.

12. Turn off screen and wait till it sleeps.

13. Plug in ac charge. (This will create big load, kind of panic so it is important to test)

Repeat 5 time's and move on to next freq.

14. Repeat step 12-13 for every freq.

If a reboot happens, again, increase voltage for that freq.

Note: constantly write down what u are testing

Note: make sure all cores are forced online during step 3-14 (during whole test).(either by disabling any hotplug, or by forcing minimum of 4 cores in auto-smp/intelli-plug)

Note: this WILL take time and phone will reboot a lot!

BTW this is kernel development thread, for further information use google or search XDA instead. There's a lot of write up's about this and more!

Good luck!

Regards
[Xperia Z Original Android Development] vicksready:
Installed and working perfect

I have installed this kernel and it is working perfect right now, Will do some testing and update if required.

Thanks again..
[Xperia Z Original Android Development] langeveld024:
[MENTION=5243932]Tommy-Geenexus[/MENTION]

I was searching through filesystem for how to completely disable dmesg log's (and logcat?) But I cannot seem to find out how.

Can u tell me how to disable? Or could u perhaps include in a future build?

Cuz kernel run's so nice I don't even need any log's ATM :p
[Xperia Z Original Android Development] Tommy-Geenexus:
There is stuff which should be left untouched, like this kernel logging. I need the kernel log for debugging, sure for a user it's not really needed ;)
[Xperia Z Original Android Development] langeveld024:
Yeah I know :p so could u make an option to disable it?
[Xperia Z Original Android Development] Tommy-Geenexus:
No, sorry.

But you would not gain any advantages trough it either way.
[Xperia Z Original Android Development] dedito:
yes i have set permission to but still it's doesn't work. any advice ? can you share your script please ?

i try use your method. i flash ukm.zip and install synapse app, but the app say " No uci support detected "

any advice ?
[Xperia Z Original Android Development] langeveld024:
Hmm I had no problems on installation. Refer to the original thread, there's a FAQ section.

Also, are u on latest? I updated yesterday, en now the mv steps are not 00.5 anymore but 01.0. Though not a big deal anyway :p lol
[Xperia Z Original Android Development] afeeq:
how to add smartass2 governer to this kernel??
[Xperia Z Original Android Development] langeveld024:
I don't know if possible by unpacking a kernel, but generally, u should have to build the kernel yourself to add governor's etc.

And I don't think the dev will add smartass2 since that would "bloat" the kernel a bit.
[Xperia Z Original Android Development] xdagfg:
did you test the script trough terminal, before you do a reboot to see it changes value?Iif yes and it works then remove the supersu rights from performance control.
[Xperia Z Original Android Development] Tommy-Geenexus:
Smartass is an old governor, which is not up-to-date and not optimized for Quadcore devices. No point in adding other governors than the already available.
[Xperia Z Original Android Development] TechKiel:
Random Reboots at Boot

Since I've updated from Build 2 to Build 5, I've been experiencing random reboots at boot. But after that first reboot, it works fine again.

The only mod that I have applied is undervolting it by -150mV with reference to the stock voltages. [1512MHz at 1000mV]

I've reverted back to Build 2 and reenabled thermald. It works fine again. :))

---------- Post added at 05:01 PM ---------- Previous post was at 04:59 PM ----------

I think I'll try synapse. Thanks! ;)
[Xperia Z Original Android Development] BaDKaRmA:
I installed b5....restarted my phone,Phone booted with nfc firmware update but the screen is not responding :( stuck on lockscreen
[Xperia Z Original Android Development] Tommy-Geenexus:
Something is messed up on your side, try a clean install.
[Xperia Z Original Android Development] seijidinzuala:
Noob question, do I need a custom recovery for this? The previous kernel I flashed was a .ftf file so I used Flashtool. I'm new to Sony.
[Xperia Z Original Android Development] Tommy-Geenexus:
Yes. Preferably TWRP.
[Xperia Z Original Android Development] TechKiel:
Installed UKM+Synapse. Works like a charm! :3

Currently running Zombie Kernel B2 with stable -165mV undervolt [Except 1624MHz and 1728MHz which are both using only -50mV undervolt].
[Xperia Z Original Android Development] langeveld024:
Yeah it's a nice script+app.

Didn't u test per frequency? Because u will see u can probably go lower for some freqs. Especially till 1350mhz. At least that's my experience on my device :p

BTW why dont u use latest version? Lol
[Xperia Z Original Android Development] TechKiel:
I don't have time to check the minimum for each frequency yet. :(

I usually check only 1512MHz's minimum voltage and then pattern the others to it.

What is your PVS btw?

Because I get reboot at warm boot. : |

After that reboot, it works fine though. :))

I'm using Stock .292 atm