yashsingh1/xdaforums huggingface dataset:
[Xperia Z Original Android Development] CosmicDan:
Of course, it won't be a requirement. I'm not sure it's worth the trouble though, main goal would be for improved battery management but it seems things like Cpu freq limiting have little effect - it's the screen that causes significant drain regardless of Kernel.

Half works. The Number appears but the app is broken and can't be configured.

In normal use, no - in fact stock kernel has higher temps for me.

Sent from Xperia Z via Tapatalk
[Xperia Z Original Android Development] CosmicDan:
Ok so despite Sony app saying my battery is Ok, I just ordered a 2600mAh Polarcell battery from Germany. While not genuine, I've read nothing but good things about them and I prefer to take my chances with a known aftermarket brand than a potential ripoff of a genuine one.

Will take about a week to get here, but we'll see how it goes with capacity and such. I am also looking forward to examining the cooling inside the Z, I might be able to hardmod the device with a copper shim and silver paste [emoji14] or even just some alfoil under the cage, it doesn't seem to have any special heatsink whatsoever judging from pics (but maybe it's not a removable cage).

If I have success with a cooling mod, I'll share it in a new thread for anybody who is experienced with using a heatgun/hairdryer and ripping devices apart :p

[/offtopic]

Sent from Xperia Z via Tapatalk
[Xperia Z Original Android Development] CosmicDan:
Ooof, sorry for the *triple* post... but here are the interesting sysfs tunables I've found that aren't covered by Adiutor currently. Did I miss anything?

/sys/devices/i2c-0/0-0036/bl_hack

- INTBOOL

- Backlight hack, default 1

- Note to self: need to see about how to get the stock rom "adaptive brightness" to also take this into consideration. Maybe will have to do it in the optional Xposed module

/sys/devices/virtual/input/input1/wg_vib_enable

- INTBOOL

- Vibrate on DT2W option, default 0

/sys/kernel/apq_hotplug/apq_hotplug_version

- STRING

- APQ-Hotplug driver version (read-only obviously)

- Hopefully we can get some extra tunables in this node (see my question below)

/sys/devices/virtual/timed_output/vibrator/level

- INT

- Vibrator strength

- 20 appears to be the lowest, anything lower is indistinguishable from off

- 29 appears to be the highest (and default), anything higher has no difference

- So, in Adiutor I could make a slider of 0 to 10 where 0 is off and 10 is stock/max

/sys/kernel/sound_control_3/gpl_sound_control_locked

/sys/kernel/sound_control_3/gpl_sound_control_rec_locked

- INTBOOL

- Lock sound control. May help with Poweramp or other apps resetting these values at random

- Defaults are 0 obviously. Note to self: If locked, would need to disable the sliders in Adiutor UI; and act accordingly when set to boot for this section is enabled

Two questions:

- I hope this is easy, it would be very nice if you added a sysfs node for setting the maximum cores that are allowed to be online. After waking the device, apq-hotplug appears to be re-enabling all cores, regardless of what was previously set offline. Which makes sense really, as there's no place for apq-hotplug to remember which cores you previously set offline. I personally prefer to turn off one core permanently to save battery, and sometimes two cores to keep temps low (which, coincedently, improves overall performance in some medium-load-for-extended-periods situations).

- You say Zombie supports S2W, but I see no sysfs node for it. Did I miss it or did you decide to not bother? I don't personally care, just wondering as the OP says you have it in there.
[Xperia Z Original Android Development] kingvortex:
S2W is enabled in the same way as DT2W (/sys/devices/virtual/input/clearpad/wakeup_gesture enables both).
[Xperia Z Original Android Development] langeveld024:
Sounds interesting.. If so, can u make some nice pic's? Will follow/read it!
[Xperia Z Original Android Development] Tommy-Geenexus:
Thanks for your efforts.

I will see what i can do, i'll work on it now as i'm currently free.

Just one note: use the /sys/class/leds/lm3533-lcd-bl/device/bl_hack sysfs path for the bl hack.

EDIT: max_online_cpus is done and working.
[Xperia Z Original Android Development] CosmicDan:
Sorry, should have mentioned I tried it but I couldn't get it to wake. Do we have to swipe a certain way or something? I dont use it myself so I don't mind, just wondering if it's a bug. If it works for others then fair enough :) I'll just update the string in Adiutor to make that clear.

Of course! I just ordered a couple squares of thin copper and aluminium along with silver paste, will go into great detail heh.

Ah I didn't notice, cheers. And thanks that's perfect :D

Sent from Xperia Z via Tapatalk
[Xperia Z Original Android Development] Tommy-Geenexus:
Yes, 2-finger-swipe from right to left.

But the wake gestures work unreliable on stock roms, and noone could ever find the cause.

Btw, sysfs for max_online_cpus is in sys/kernel/apq_hotplug/max_online_cpus then.
[Xperia Z Original Android Development] codfx:
Hi Tommy,

Can we implement "S2W/DT2W Timeout" like in elementalx kernel?
[Xperia Z Original Android Development] Tommy-Geenexus:
We have that already. Our dt2w is native and more efficient than on the N5.
[Xperia Z Original Android Development] codfx:
WOW! I didn't know that before! btw I was just curious about dt2w's timeout period, as an optional feature.
[Xperia Z Original Android Development] CosmicDan:
Yeah I didn't know either. DT2W needs to constantly keep the digitiser powered on, right? But this devices digitiser is significantly more power efficient? Considering using it now, but I'm at odds with anything that can hurt battery life... Still, standby time is great already.

Sent from Xperia Z via Tapatalk
[Xperia Z Original Android Development] shoey63:
Actually, it's not native on stock kernel. It needs championswimmer's commit;)
[Xperia Z Original Android Development] Tommy-Geenexus:
Of course. But it is native, it reserves a register in the touch driver, the commit only enables the detection ;)
[Xperia Z Original Android Development] Tommy-Geenexus:
On most phones yes, but not sure on the Z. I don't think it does, as previously said it is native, the drain is too low to make me believe it is permanently on.
[Xperia Z Original Android Development] CosmicDan:
Well I just tried since last posting and I found that I accidentally power on the screen when trying to skip music tracks in my pocket lol so no matter, off it goes.

Sent from Xperia Z via Tapatalk
[Xperia Z Original Android Development] shoey63:
Yep, that's how it goes with dt2w, some users love it, others hate it. (I love it) :beer:
[Xperia Z Original Android Development] dave_id:
hello!

just installed your kernel, so far so good...

thing is I had synapse and faux clock installed (with gamma tuning and custom governor settings)

what do i have to do to have your kernel default settings?

what if i install them again, will they override your settings again?

(i bet on uninstalling but just want to be sure)

thanks a lot!
[Xperia Z Original Android Development] Tommy-Geenexus:
Clear apps data and reboot.
[Xperia Z Original Android Development] langeveld024:
In settings> apps> stop app, wipe data, reboot. Uninstalling is not necessarily. But since u use two overclock apps at the same time, I suggest you to uninstall one. (They could interfere.)

Also, you might want to take a look at kernel auditor (in playstore).

But remember, only install one at a time.

Edit: just saw [MENTION=5243932]Tommy-Geenexus[/MENTION] post, we were typing at the same time lol xD
[Xperia Z Original Android Development] dave_id:
ok, got it

thanks guys
[Xperia Z Original Android Development] Tommy-Geenexus:
New build up!

Changelog:

* Lowered thermal polling rate for high temperatures

* Added max_online_cpus for apq_hotplug (To 'save' changes the screen needs to be turned off and on - wait 2 seconds before turning the screen back on as it needs time till all CPUs are shutdown (2s))

* Updated Prima-Wlan to the latest CAF driver matching our Kernel Base (Stability seems improved to me)
[Xperia Z Original Android Development] beespoison:
Great :good:, thank you so much i really like this kernel :D i'm downloading now
[Xperia Z Original Android Development] CosmicDan:
Will the polling rate change help to relax throttling once CPU cools down? Its not as bad as stock but can still get stuck for a few minutes of idling after heavy load I've noticed.

Sent from Xperia Z via Tapatalk
[Xperia Z Original Android Development] Tommy-Geenexus:
Yes, it will help the CPU to cool down faster.

Thermal is and will always remain an issue on this phone though.
[Xperia Z Original Android Development] CosmicDan:
Indeed. I'm looking forward to my homemade heatsink project though ;) have had great success in the past with other devices!

Sent from Xperia Z via Tapatalk
[Xperia Z Original Android Development] kingvortex:
I'd be very careful. This device already has trouble dissipating heat because it's a sealed unit for the water resistance. Take care that you're not just trapping a piece of metal that's going to get very hot inside your device.
[Xperia Z Original Android Development] comax70:
With b5 backup restore on twrp my internal sd is missed..

Inviato dal mio C6603 utilizzando Tapatalk
[Xperia Z Original Android Development] kingvortex:
Did you see this?

It appears the custom rom you're using has issues regarding the internal sdcard.
[Xperia Z Original Android Development] codfx:
My device took more than 3hrs to charge from 19% to 100% today. That was the longest charging period I have ever faced. I'm on b6. Anyone here to confirm this? :/
[Xperia Z Original Android Development] kingvortex:
Charging in Lollipop is a little slower for me in general, even on stock kernel. It takes around 2 hours to charge from 40%.

As for the pm8921_eoc wakelock, see here for an explanation.
[Xperia Z Original Android Development] shoey63:
Did you enable fastcharge in Kernel Adiutor under /battery?
[Xperia Z Original Android Development] kingvortex:
Doesn't fastcharge only affect USB charging (not via mains adapter)? Or am I misunderstanding it (entirely possible :D)?
[Xperia Z Original Android Development] shoey63:
Well if it takes 3 hours, may as well use usb on pc:p

Edit, but yes it is USB fastcharge
[Xperia Z Original Android Development] CosmicDan:
Three hours for a full charge is not normal? That's news to me. Are you using a 2A charger? Fastcharge is an option in kernel, I think you need that as well as the customized USB cable (not sure). I disabled it but as it made device too hot for me.

Sent from Xperia Z via Tapatalk
[Xperia Z Original Android Development] codfx:
I felt a bit strange after seeing charging status after 3hrs. And it suddenly jumped to 100% from 94% withing 2 or 3 minutes. I read it. Seems it is not an abnormal wakelock.

I always charge my device through AC charger which came along the box.

1.5A( EP880 ) I guess. Well I plugged the charger after a full system restore. Anyway I am going to reflash the device as my phone is a mess right now.

Thank you guys for the quick support! :good:
[Xperia Z Original Android Development] CosmicDan:
That sudden jump from 100 to 94 suggests a damaged battery. Give the Sony battery test APK a try (Google it, its here on XDA somewhere).

Sent from Xperia Z via Tapatalk
[Xperia Z Original Android Development] codfx:
Nothing is wrong with the battery. I thought it's a kernel related bug. But it is not. I will have a reflash.
[Xperia Z Original Android Development] CosmicDan:
Fair enough. I'm not sure how good that app is but it seems legit.

I've noticed I get much better battery life after switching to interactive and tuning some of the parameters, if it's not a rogue wakelock on your device though then who knows. I've seen stranger things that were solved with a reflash :)

Sent from Xperia Z via Tapatalk
[Xperia Z Original Android Development] TechKiel:
Such Battery

Probably the best Screen On Time that I was able to achieve on a single charge with my Xperia Z.

4 hours 31 minutes 46 seconds @ 10% remaining

Zombie Kernel B5

Frequency: 384MHz-1350MHz

CPU Governor: ondemand

IO Scheduler: noop

CPU Boost: OFF

Activities:

1. Ran a couple of Benchmarks

2. Browsed some websites on LTE

3. Took some pictures

4. Sent some SMS

5. Watched a couple of Anime episodes with MX Player
[Xperia Z Original Android Development] beespoison:
My phone can't be able to unlock after a long time deep sleep (dt2w didn't work after that, only work with power button i can power on the screen), i'm using PIN screen lock, swipe to unlock didn't work and even though if it work the screen pin cannot be tap i don't know why (its work after so many times i try), when i successful unlock the phone, the navbar also cannot can be tap, only swipe the notification bar and volume button is works, i'm using the latest kernel, ..

i enter to the recovery and copy the log it was successful, but i can't find it in the file manager ? where is the log placed ?
[Xperia Z Original Android Development] v7:
You'll find the log either in /tmp/recovery.log or in /cache/recovery/log.

Tapped from my furious dogo ;)
[Xperia Z Original Android Development] kingvortex:
The recovery log won't contain any useful information.

As far as I'm aware, DT2W can cause intermittent issues such as the ones you described.
[Xperia Z Original Android Development] Tommy-Geenexus:
Of course it will not work. There is a timeout configured to lessen battery drain.
[Xperia Z Original Android Development] BaDKaRmA:
How Can i turn cpuboost off?
[Xperia Z Original Android Development] v7:
Kernel Adiutor has an option to turn it off.

Tapped from my furious dogo ;)
[Xperia Z Original Android Development] beespoison:
Oh thank you kingvortex & tommy for the explanation, i thought it was caused by the kernel
[Xperia Z Original Android Development] Tommy-Geenexus:
Ok guys, i am asking for your opinion.

Would you like the choice of 2 different Hotplug drivers (and 2 different Kernel builds each / for those who prefer actual hotplugging)?
[Xperia Z Original Android Development] Borias:
Yes, this would allow everyone to choose what suits him/her best. I definitely support a bigger variety. It leaves more room for experimentation.
[Xperia Z Original Android Development] agha_jo0n:
Hi

How much is the timeout??
[Xperia Z Original Android Development] CosmicDan:
Not too fussed on the diff. hotplug driver, whatever you feel like doing :) suppose its not difficult. Could make it in a module to ease deployment? Or is there overhead with modules and/or not possible with such a low-level driver?

Parameters for d2tw would be nice to some - wake length, and two more to disable either dt2w or s2w (obviously only works when "legacy" dt2w is enabled, which works as a master switch in this case - for compatibility reasons the values of the two new ones should respect changes to the master/legacy switch).

Sent from Xperia Z via Tapatalk
[Xperia Z Original Android Development] Tommy-Geenexus:
I'd like to keep only 1 Hotplug per build, as it is suboptimal to add some on/off switches.

But you'll like, it is from a dev i highly admire, with my enhancements.

Dt2w won't be touched, i'll leave it as it is, though i'll see what can be done about the timeout.
[Xperia Z Original Android Development] langeveld024:
Finally found some time to install stock lollipop ftf and your kernel.

First impressions are good, runs smoothly, nice and lean. Did not use stock kernel for a moment so can't really compare but I don't mind *why waste time*:cool:

About the hotplugging, I really like the idea of adding another hotplug policy in a separate version (just to support wider variety and testing) but I wouldn't complain either if u didn't :)

BTW, what's ur PayPal? :beer:
[Xperia Z Original Android Development] Tommy-Geenexus:
Thanks. Hotplugging is already done, i'm testing battery life atm.

I just made a Donate button. If you'd like to donate to me feel free to do so, it's very generous from you, and i really appreciate that you'd like to send me some of your hard earned money :)
[Xperia Z Original Android Development] langeveld024:
Transaction ID: 55F4766612047623T

Yeah just a few beers for ur great support Bro :thumbup::beer:
[Xperia Z Original Android Development] Tommy-Geenexus:
Thanks, i think i'll rather get some coffee though, too much beer and 42°C outside won't play nicely ;)
[Xperia Z Original Android Development] langeveld024:
Sure! But coffee and this weather won't play nicely either :p anyway, it's yours mate!

Lol xD that's early! Well, enjoy the coffee as I enjoy ur kernels (it will be delicious coffee then lolzz)
[Xperia Z Original Android Development] Tommy-Geenexus:
I'll surely need some Coffee when going to work at 4am on Monday to not fall asleep :D
[Xperia Z Original Android Development] langeveld024:
BTW, how to know what's the value of this path?

/sys/class/leds/lm3533-lcd-bl/device/bl_hack

As I can only get till here from in rom :

/sys/class/leds/lm3533-lcd-bl

And I can't open the file (e.g. 0 bytes/empty)

Or is it enabled out of the box?
[Xperia Z Original Android Development] Tommy-Geenexus:
Its enabled by default.
[Xperia Z Original Android Development] agha_jo0n:
Nobody knows my answer?! :(
[Xperia Z Original Android Development] Tommy-Geenexus:
New build up!

Changelog:

* Cleaned up some Ramdisk stuff

* Simplified zip installer

* Switched to Linaro GCC 4.9

* Added auto_hotplug build

Initial testing showed that auto_hotplug offers better battery life.
[Xperia Z Original Android Development] Tommy-Geenexus:
It is dynamically calculated: basically 2000 jiffies (20s) + the time it took till a wake gesture was called (in jiffies).
[Xperia Z Original Android Development] zirado:
Great work, thanks
[Xperia Z Original Android Development] kingvortex:
Looks good, but I won't get to test it. :(

I just setup my new device (One M9), so my Z has been sadly retired. I'm sorry to leave it behind, but it was time for a new toy!

Good luck for your future work on this great kernel. :)
[Xperia Z Original Android Development] Tommy-Geenexus:
It sad to see you gone (not fully, but you know what i mean).

I have thought about 'upgrading' my Phone, but no single device released has met my expectations.

I think i'll stick to Sony, as i really like their dev-friendly attitude.

Good luck to you, and let me know if it's possible to cook eggs with the M9 just like with the Z ;).
[Xperia Z Original Android Development] kingvortex:
Yeah, I'll still be around here. I might even use my Z to test things after I've finished playing with my new toy. I'll certainly put 5.1 on it when it drops to see what Sony did with it.

I love Sony devices and have been eyeing the Z3 and Z3+, but they're just more of the same with more powerful internals, so it was time for a change. The M9 has an external SD slot and an unlockable bootloader along with amazing build quality and a beastly SoC. My carrier offered me an unbeatable deal to upgrade (free handset, £25/month for unlimited calls/texts and 10GB of 4G data allowance) so I couldn't turn it down.

It actually runs pretty cool so far for me, so my eggs will have to continue to be cooked on my Z lol.

Anyway, I've taken up enough of your thread here!

Cheers. :)
[Xperia Z Original Android Development] Tommy-Geenexus:
You were (and still are) a pleasure for the community, i wish you the best for your future, have fun with the M9.
[Xperia Z Original Android Development] gcgspain:
It seems like i lost SYSTEMUI altogether flashing this last update: no notification bar, softkeys or wallpaper. I flashed b6 back but still no SYSTEMUI. Any ideas how to fix this? Or what could have caused it?
[Xperia Z Original Android Development] Tommy-Geenexus:
What rom are you on!
[Xperia Z Original Android Development] gcgspain:
Stock rooted with your kernel
[Xperia Z Original Android Development] Tommy-Geenexus:
Just checked, no issues here.

Are you using mods/etc..?
[Xperia Z Original Android Development] gcgspain:
I am running a couple of xposed modules but thats just about it; no problems on the other 7 releases with the same setup though.

Anyhow, I just wanted to make sure no one else was having issues with this last update. I am currently restarting the phone after flashtooling my way back to stock .454 .

Thanks for the info.
[Xperia Z Original Android Development] langeveld024:
On stock.454 also here, had no problems at all using last update (auto-hotplug).

Did you wipe cache and dalvik? I believe it is not necessary since lollipop and it can even cause problems!

I was on aosp 5.1 a while ago and after I wiped cache and dalvik (and I didn't do anything else) I had the same error.

Since then never wiped cache and dalvik in LP and everything is fine!

Even debloated this stock rom and wipe dalvik or cache isn't necessary.

Ps [MENTION=5243932]Tommy-Geenexus[/MENTION], finally my phone feels as snappy as it did when it came out of the box running 4.1.2.

I thought it wouldn't get that good anymore, but now it's even better!

(on both hotplug variants)
[Xperia Z Original Android Development] gcgspain:
I actually did a cache and dalvik wipe, don´t ask me why, probably out of custom. It took forever to restart building up apps cache. That will be one thing not to be done in the future!! Thanks for clearing that out!!
[Xperia Z Original Android Development] gcgspain:
No issues on the second try, same setup, no wipes!
[Xperia Z Original Android Development] codfx:
Take another sharp look at the topic, date need to be changed. :D

Can we merge those two hotplugs into one kernel? or may be we can switch to auto hotplug forever! If it performs better than APQ. :D

Didn't you check Intelliplug? I did notice a bit of improved battery life when I was using an unofficial build.
[Xperia Z Original Android Development] Tommy-Geenexus:
Thanks :D.

If auto_hotplug is better (i need your opinion), i will ditch apq-hotplug.
[Xperia Z Original Android Development] langeveld024:
In my opinion apq-hotplug is a bit snappier, but didn't compare battery life as I flashed the apq-hotplug back after one day :p

(though, device seemed a little bit cooler when running auto-hotplug)
[Xperia Z Original Android Development] Tommy-Geenexus:
I'll most likely ditch apq-hotplug and add min_online_cpus / max_online_cpus to auto_hotplug, so users can configure their preferences.
[Xperia Z Original Android Development] codfx:
Here's my quick test with default kernel settings!

Done with WhatsApp. :D

Screen On Time: 5h 11m

All time WhatsApp-ing(Touching the screen almost every time) on 2G.

Recorded 2mins video.( 1% discharge per minute)

Less heat.

No tweaks.Just the stock rom.

**So far so good. I recommend auto-hotplug for now. Need some more testing. I will report you guys back.

I like ":D" emoji BTW. Cheers!
[Xperia Z Original Android Development] afeeq:
How did you get 5H SOT?? I never get that much. My max SOT is jus 2.5H. *Kernel is awesome BTW.
[Xperia Z Original Android Development] langeveld024:
On default settings he said
[Xperia Z Original Android Development] afeeq:
I tried as said but did not get even 4H SOT.
[Xperia Z Original Android Development] langeveld024:
Replace battery and test again.

Besides, every device is a little different, think about the month / year / week it was produced etc etc so no one will get same results ever.
[Xperia Z Original Android Development] gedhe:
Is it possible to use it with pabxs` AOSP 5.1.1??
[Xperia Z Original Android Development] kingvortex:
No. From the OP:

AOSP isn't a stock rom.
[Xperia Z Original Android Development] Tommy-Geenexus:
New build is up!

Changelog:

* Switched to auto_hotplug

* Added min_online_cpus / max_online_cpus tunables for auto_hotplug

* Some minor fixes to hotplug

I have decided to ditch apq_hotplug, as we can now achieve the same with auto_hotplug and the new sysfs parameters.
[Xperia Z Original Android Development] codfx:
I wish my phone could speak. ;)