yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 General] Haldi4803:
QuickCharge 2.0 + Detailed Stats

After a whole lot of Soldering i finaly managed to attach the Bluetooth Module to my YZX Powermonitor (also bough on Ebay from 99centHobbies aka Franky)

This module connected via Bluetooth to the Smartphone recieved the Data in a Bluetooth Terminal app and saved it as a .log file.

I set the poll rate to 1 seconds. tought that would be enough.

Damn that phone is charging fast! 2300mA says Ampere.

Well here we go... graphs :D

(Stats from the Phones internal Log)

(Stats from the YZX PowerMonitor)
[Xperia Z2 General] Haldi4803:
Stock Charging Speed 5.1.1 .580 with EP880 Charger

Due to reasons i've flashed pure Stock ROM and made a Test on how long charging takes.

Started at 4% up to 99% a whooping 204 Minutes

Even tough the EP880 is rated 1.5A the current .580 ROM (Three Carrier Branding) does not take more than 1A

Edit:

Part 2: Stock Charging Speed with Aukey PA-U28 Charger

So, here we go, same, phone no changes at all, different Charger, QuickCharge 2.0 Zertificated Aukey PA-U28, and the phone suddenly draws 1.5A and the Voltage increases from 5.02V to 5.27V charging with an effective 7.9 Watt instead of 5 Watt.

This time we can see the Voltage and Current slightly dropping on Minute 85 way before the battery reaches maximum Voltage on Minute 97.

After 166 Minutes the battery is fully charged and we see the current dropping to 0,1A to not damage the battery.

Overall the Battery is about 8-10°C hotter than with the EP880 charger.
[Xperia Z2 General] Haldi4803:
Charging Speed 5.1.1 .580 for Locked Bootloader with Jackos rev5 Hack

For all the People who can't unlock their Bootloader and Flash Androplus kernel.

QuickCharge 2.0 Hack also works on stock kernel, if you have recovery simply flash Jackos rev5 Hack and this is the result:

Funny thing, you see at Minute 158, when the phone reached 100% Battery the Voltage drops from 9V to 5V :) QuickCharge disables itself.

Conclusion:

Different Charging Speeds for different methods :)
[Xperia Z2 General] Haldi4803:
Charging Limited to 12W

So because Entropy mentioned these Spikes in the current at the beginning i've tried to reduce them.

They do not happen on "non" QuickCharge 2.0 limited to 5V.

Jackos rev5 script increases the Max Power for charging in Sysmon.cfg to 15W, i've edited that down to 12W, making the ROM throttle charging and not the Kernels 2150mA.

This results in a longer Charging time (137 Minutes instead of 117 Minutes) but also reduces the spikes in the current. Still gets freakin hot.

on another Note....

Charging over Night: Keeping the phone connected

One funny thing of QuickCharge 2.0 is that it drops Voltage from 9V to 5V after the battery reaches 100% i do not know if it keeps jumping back to 9V when it continues charging, because the rumour about "Modern electrics to not charge when the battery is on 99% but only when it reaches 95% to safe the battery" is somewhat hard to proof.

Why?

Because when you keep your phone connected for a long long time it does not drain the battery, it drains directly from the USB power source.

Even after roughly 8 hours i still was on 100% and BatteryLog app never mentioned a single drop under 100% Batterylevel.

The only longtime spike in current you see is at 329-336 Minutes to 0.3A, but the batteryLog app did not record any drop in Batterylevel.

to fully proof this statement we'd need to dismantle a Sony Xperia Z2 and plug a Powermonitor directly between the Battery and the Phone :(

But as it looks right now the constant 0.1A are used to power the phone and not to charge the Battery.
[Xperia Z2 General] gamer649:
An extra 20 mins charging time is a good payoff to keep a more stable charge (please correct me if I'm wrong, I don't have knowledge in charging currents etc, and that's how I'm understanding it).

So if I'm understanding this correctly, it is POTENTIALLY safe to keep the battery charging overnight? If the phone reaches 100% charge and then stops charging the battery to use USB/mains power then it should be safe in theory?

We are still in early stages so we don't fully know the long term effects (could be 100% safe to do so, or it could be 1% safe to do so).

Some good progress has been made, cheers for all the graphs and research you've put in (and also risking the life of your Z2).
[Xperia Z2 General] pec0ra:
The good old smartphones with removable batteries worked when you removed the battery and the usb cable was plugged in. I don't think Sony would change the "powering directly from the cable" that the manufacturers used just because they have now non removable batteries.

Since the batteries also have a protection and stop charging after a certain level, I deduce that the phone is always and only powered by the cable when it is plugged in and if a battery needs to be charged, it will be powered too.
[Xperia Z2 General] Haldi4803:
Right, i used to use my old X10i sometimes without Battery.

That's actually a pretty good idea to test out if the Ampere and Trepn Profiler Powerdrain / Wattage is accurate. Charge it till full, use Benchmark Tool to burn the phone, check if the Powerdrain is accurate via Hardware PowerMonitor and Software Tools and then wait until the battery starts dropping from 100%.

The problem is that the phone can draw up to 6W. Sony's EP880 should deliver 7.5W but only charges with 1A aka 5W, so with the Aukey PA-U28 which allows up to 15W this might work out. Gonna try that soon.

Btw, Guest Appearance: Unrelated to the Xperia Z2

First one: Samsung Tablet Note 10.1" (2014 the old one) With the Official 2A charger and CM12.1 Android 5.1.1

And the second: Nokia Lumia 925

(There is only the PowerMonitor Graph because i do not know an app for Windows Phone which does the Same as BatteryLog does for Android)

But yeah, the Phone was Shut down and had to boot first ^^ unplugged it when it said 100% even tough you can still see 0.25A being drawn, if you compare to the Samsung Graph where it drops rapidly when it's full this one here is not really full.

I might get my Handy on a Z3c this Weekend, and a Xperia Z :) so more guest appearances incoming.
[Xperia Z2 General] Haldi4803:
Another Guest Appearance: Xperia Z3c

Here we have an Sony Xperia Z3c, unrooted, fully Stock ROM officially supports QuickCharge 2.0 !

Sadly only to 97% and not 100% but needs roughly 120 Minutes to charge 2600mAh

At 51 Minutes we see the 60% reached which limits the current to 0.8A instead of 1A, this also results in a strange drop in BatteryVoltage.

At 77 Minutes the BatteryVoltage has reached Maximum 4350mV and we see the current falling.
[Xperia Z2 General] Haldi4803:
QuickCharge 2.0 the safe way?

Thx to [MENTION=4754591]TheFerhatKing[/MENTION] i got a AndroPlus Kernel v66 with VoltageStep on 60% and Charging Current limited to 2000mA

Nowe we have the same behaviour on our Z2 as on the Z3c which officially supports QuickCharge 2.0!

Same as on the Z3c the Voltage drop (reaching 60% Battery Level, stepping down from 2000mA to 1600mA maximum charging current in Kernel) happens early before 4.35V are reached.

The only thing still bothering me a little bit is the current-spikes in the first 50 Minutes, but this always happens on QuickCharge 2.0 9V even on the Z3c, just in a way smaller scale. Maybe i can get Qualcomm's opinion on this topic :)

If you think now "Wow 136 Minutes to 100% thats a long time" yeah... it reached 98% in 124 Minutes! The last few percent take way longer ~.~

But yeah... i've update the Overall View :)

In fact it charges nearly as fast as the non 60% Step and 2150mA version.

But this one here might be better for the battery :)
[Xperia Z2 General] TheFerhatKing:
It charges with about 160 mAh in the end, if you want I can change it too 300 or something similar. To get a bit faster charging at the end.

Sony Xperia Z2
[Xperia Z2 General] Haldi4803:
Who cares if the phone has 95% or 97% battery when you unplug it? ^^

If it reaches 90% nearly as fast but is better for battery health that's totally okay. Imho
[Xperia Z2 General] Haldi4803:
Another Guest Appearance: Xperia Z

My old Sony Xperia Z is still being used by other family members.

So i took the chance when it was empty and charged it full :) Using the Aukey PA-U28 QuickCharge2.0 Charge i use for my Z2.

The Old 2330mAh battery in the Z only goes from 3.8 to 4.2Volts and already reaches at 65% Charged the maximum Voltage. This happens after 70 Minutes, it takes another 80 Minutes to fully charge to 100%
[Xperia Z2 General] TheFerhatKing:
So [MENTION=3056043]Haldi4803[/MENTION], we're getting closer to a really safe QC2.0, what do you think we can improve more? Or is the 2000 mAh kernel safe enaugh?

Sony Xperia Z2
[Xperia Z2 General] Haldi4803:
Off Topic:

Insides of the Z2

So... yeah... i've managed to break the back glass of my Z2.

After dozens of crashes on the floor one unlucky day my back glass shattered.

Well, Shít Happens, not that much of a problem. Bought an 8$ replacement back cover from Witrigs, while at it i've also bought a new Headphone Jack (my old was having problem getting a stable connection) and a Tempered Glass Screen Protector (well, if it protects the front it will also work on the back, paid 25$ express shipping so another 11$ for the Screen Protector aren't that expensive^^)

Replacing a broken back cover is quite a hassle. It shatters more and more ^^

if only replacing the Back cover i'd be finish at this point, but yeah, the headphone jack.... hidden under the mainboard. yay.

Here you can see the Mainboard and the heatpipe for the SoC (jep the SoC is also covered by a heatspreader :( lame can't see stuff )

Headphone jack is gone :) (that stuff is waterproof and glued on... damn... realy good glue there)

so yeah, i've put everything back together and cleaned the borders for the new back cover.

Phone is back and everything is working, no problems with overheating and stuff, everything like always.

There are just two little but very important points to know when doing this.

A: You cannot unmount the mainboard when a microSD card inserted, it's physically not possible the card is to big and blocks.

B: When using a heater to melt the glue on the back cover, make so to unplug the microSD card before, these damn suckers don't like heat.

Oh yeah, and the Backside foil from the Nillkin Tempered Glass Screen Protector is a simple plastic foil and not the same 0.2mm tempered glass like on the Frontside -.-
[Xperia Z2 General] Haldi4803:
Powerdrain per Mhz

Is overclocking worth it? How much will you save by underclocking?

If you have taken an interest in this thread you most likely will have read some Smartphone Reviews on Anandtech. I really like them because they know what they're talking about, imho they're the most knowledgeable website out there for in dept reviews of how a SoC really works.

Seeing this chart (review S6)which shows Power Consumption per Mhz Frequency i was impressed and tought we could use something similar for our Z2.

So one day i had to much free time and used Qualcomm Trepn Profiler, StabilityTest v2.7 and Kernel Adiutor to start benching our Z2.

Because the "User" Hotplug does not exist, or not work with Kernel Adiutor, i used Alucard Hotplug and set the minimum and maximum active Cores.

To aquire similar conditions for all benchmarks the phone was put in Flightmode without WiFi, Manual Brightness at Minimum.

Benchmarking for 30 seconds each frequency gave an average Power usage.

The Result is this horrible looking table.

Cores/ mhz 268	300	422	652	729	883	960	1'036	1'190	1'267	1'497	1'574	1'728	1'958	2'265	2'457	2'572	2'726
4	1'592	1'653	1'885	2'089	2'259	2'401	2'661	2'701	2'893	3'089	3'445	3'669	3'940	4'454	5'091	5'486	6'492	6'621
3	1'384	1'426	1'670	1'833	1'945	2'036	2'238	2'332	2'500	2'633	2'884	3'069	3'150	3'812	4'297	4'812	5'046	5'433
2	1'142	1'238	1'391	1'559	1'636	1'745	1'869	1'929	2'030	2'182	2'401	2'501	2'682	3'023	3'257	3'540	3'787	4'110
1	903	905	1'007	1'123	1'233	1'250	1'474	1'550	1'544	1'679	1'740	1'846	2'048	2'046	2'320	2'368	2'571	2'536

And this beautiful Graph :)

Now it's your choice to underclock to 1728mhz instead of 1958mhz because the gain is worth it :)

But be aware that all this benchmarks are made with full CPU load, don't forget the "race to idle" principle when underclocking to much.
[Xperia Z2 General] Haldi4803:
Another Guest Appearance: Samsuns Galaxy S6 Edge

So, i got my Hands on a Samsung Galaxy S6 Edge with 2600mAh battery.

Installed the required apps and charged it from 2% to 100% :) only 80 Minutes, extremly fast, i'm impressed.
[Xperia Z2 General] Mokiwipeout:
Do you think that underclocking all the way down to 1.19 GHz is actually worth the gain(given that the phone spends most of screen on time in this frequency) or that 1.7 GHz is a better option given the fact that consumption increases by only 25% or something
[Xperia Z2 General] Haldi4803:
To accurately answer this question we need to take a closer look at the performance on this frequency.

If your phone takes longer to solve your task the powerdrain per Task might not be as great on the low frequencies.

Theoretically it would be possible to get the performance in MIPS for a certain frequency and then take the powerdrain from the graph to find the perfect efficiency.

Sadly that's purely theoretical performance and does not necessarily reflect real world usage.

Might be possible to find out by a real-world Task like picture editing or other stuff that has a 30-90second duration and shows a clear start&end point and use Trepn profiler to measure powerdrain for all different frequencies.

I don't know of any task that would be doing that. Anyone has some ideas?
[Xperia Z2 General] connta:
i have one question, in the list of tests theres a test named "Undervolting a big hoax" and another one named "Undervolting, it does help"

yes, i have read both and in the second the clear conclusion was that undervolting will bring 17% battery increase so that cannot be a hoax (also the temp was a lot lower which is great)... so what am i missing here, is it that undervolting when scaling on the processor is enabled will not net any significant gain as opposed to static processor speed? i guess this could be the case since there are a lot of different factors at play whit processor scaling... any clarification would be welcome
[Xperia Z2 General] Haldi4803:
No,

The difference lies in the usage.

The first Benchmark is made with the "normal usage" like any sane person would use a Smartphone, browse Web, read emails stuff like that.

You see 25% of the time the CPU clock is on 1190mhz, and never higher.

The second Benchmark is while running a Benchmark tool. CPU is used to 99% and always busy working on 1500mhz.

So yeah undervolting is more effective on higher voltages. But that's not the reason here.

While undervolting certainly does help, you just won't profit from it in everyday usage. Only when doing some really heavy usage. Most games probably won't even use that much CPU power.
[Xperia Z2 General] connta:
i see, well thank you for the replay and an awesome thread
[Xperia Z2 General] Dragoss91:
good thread , thanks to the OP

by the way , I love the Z2 battery efficiency , and it also undervolts a lot (around -100mv) without stability issues

here's my voltages table :

frequency(mhz) : voltage(mV)

268 : 625

300 : 640

422 : 650

652 : 665

729 : 675

883 : 690

960 : 700

1036 : 710

1267 : 740

1497 : 770

1574 : 780

1728 : 800

1958 : 840

2150 : 885

2265 : 900

all test performed with stability test
[Xperia Z2 General] Haldi4803:
Stability Test is nice for testing, but sometimes it stays stable but UV still causes some crashes during daily usage. If you haven't had any crashes in the last 3 days with normal usage, congrats it's stable.

Oh and also Undervolting varies extremely depending on Kernel and ROM.
[Xperia Z2 General] Tyno Mario:
Sorry but how do i root the sony xperia z3
[Xperia Z2 General] Dragoss91:
True , well , I actually posted really stable UV , because the lowest I got was 600mv for 268mhz , 620mv for 300mhz and 640mv for 422mhz ... everything was stable in Stability test but over night the phone rebooted and I woke up with a froze phone :D then I raised a bit voltages on last 3 frequencies . :)
[Xperia Z2 General] Haldi4803:
Waterdamage :(

The display was going black for a short time and then back to normal. Back and forth.

Turned the device off, turn back on. It works for a short time (booting, sony logo, sony animation with the waves) and then some color problems and black screen.

I can boot into recovery that works.

Brought it to a repair shop. Told him i think its the display, he says its the mainboard..... we'll see.

2800thb Repair fee.

I just hope replacing mainboard wont let me end up with a locked bootloader....

I still have a full twrp backup from a few days ago, lucky me, the only thing lost is the number from the girl last night :\
[Xperia Z2 General] Haldi4803:
Now that's to bad.

New displa, still same problem :( the Touchscreen does work. I Can enter recovery and touch stuff. It vibrates.

But it doesn't show any pictures. The guy said it needs a Main board replacement.

A Z2 or Z3 still costs about 8000-10000 THB here. That's a fortune.

So I've got a Wiko Lenny 2 for now as replacement. Sadly this crap doesn't accept my 128gb SD card in exFat.

But hey. I got a Windows Tablet here which does. I'll use the 64GB card from there and format it.

But yeah. Looks like my time with the Z2 came to an end earlier than expected :( if I find a cheap way to replace the MB I might come back.

Gesendet von meinem LENNY2 mit Tapatalk
[Xperia Z2 General] Dragoss91:
that's so sad :(

but how did it get water ? isn't supposed to be waterproof ?
[Xperia Z2 General] Haldi4803:
Ich change the back plate.

Most likely the exchange glue didn't like the heat here... 35C during the day all the time.

Gesendet von meinem LENNY2 mit Tapatalk
[Xperia Z2 General] Mokiwipeout:
Well that definitely sucks...

What is weird though is that many have their z2's broken in a similar way...

Maybe Sony hates xda after all ???
[Xperia Z2 General] Dragoss91:
I can confirm that glue that seals the back cover to the chasis brokes over time , mine sometimes feels like getting out in one side and I push it back inside , there's is clearly a hole .
[Xperia Z2 General] :
[MENTION=3056043]Haldi4803[/MENTION]

Why don't you try performing a reflow on the mainboard?

You don't have much to lose at this point, right?
[Xperia Z2 General] Haldi4803:
[MENTION=5204328]D395267[/MENTION]

Rewhat? You mean like Baking? In the oven at 90C for 3h like they do with Graphics Cards?

Gesendet von meinem LENNY2 mit Tapatalk
[Xperia Z2 General] Dragoss91:
I don't think this would change anything since he watered his phone , means he did a shortcircuit and a component or more of them died . :-/
[Xperia Z2 General] :
Yep. Exactly that, but at much higher temperatures.

But it won't work because of the water damage. Oh well :(

Oh right. I forgot it suffered from blooming water damage :rolleyes:

Yeah, then a reflow would not do much to help in that regard. A shorted component is down for the count, unfortunately :(
[Xperia Z2 General] Haldi4803:
Should have turned it off instantly when I saw the flickering on the screen, and let it dry in a bowl of rice ~.~

Gesendet von meinem LENNY2 mit Tapatalk
[Xperia Z2 General] Haldi4803:
I've bought a HTC 10 now.

Not sure if I'm gonna keep it or sell it after a while. But it looks fun ;)

Gesendet von meinem HTC_M10h mit Tapatalk
[Xperia Z2 General] RyTekk:
Your benchmark is so details and helpful, keep it be :D. Hope you would do a benchmark for Xperia Z5.
[Xperia Z2 General] Haldi4803:
Absolutely no Chance.

The z5 is a sd810 device. Imho the A57 cores are a huge mistake. Sadly sony won't sell the Xperia Performance X Premium in Swiss. So i think I will Stick to the HTC 10 for a year or more. Let's see what Sony has to offer in their new X Lineup next year.
[Xperia Z2 General] RyTekk:
Then you do benchmark for M10, I will wait for your thread :)
[Xperia Z2 General] Haldi4803:
guess what?

My Screen is NOT broken! The Screen itself and Touchscreen both work fine.

It's the Backlight that's gone. So you don't see anything on the screen, except you use a Flashlight as light source ^^

[YOUTUBE]PglOEFVLET4[/YOUTUBE]
[Xperia Z2 General] Haldi4803:
What to do with a broken phone?

How to use my almost useless phone

So, my Touchscreen still works. i simply can't see anything on the screen.

Using the Mobizen App i can see and control my phone over WiFi.... but what to do with it?

Use it as an IP Cam:

Thanks to the app "IP Cam" you can transform you phone into a IP Cam.

Place it somewhere connected to Power and use it as a Surveilance camera. 720p MJPEG for integration into Synology Surveillance station? no problemo, all under /video

The only thing is the phone will get about 55-65°C warm in a room with 23°C ^^

Continuous streaming and video recording takes its toll.

Use it as a HTPC:

You still have a working 3.5mm jack for Audio Output, and the Kodi Android App is pretty neat.

So why not use that to connect an old HiFi in your home? (yeah yeah yeah i know, for some people it's really hard to find a HiFi that's not already fully connected, especially with RaspberryPi 3 that has included WiFi and Bluetooth for 35$) If you have a Local NAS you can stream all the Music and don't need a local Database on your phone.

There is one little Problem though. Because my screen is broken i cannot start Kodi when the phone boots.

How did i solve this? a simple script at boot :)

monkey -p org.xbmc.kodi 1

the 1 starts the launcher activity of kodi, using Script Manager I set start at boot rights, and done, no more problems with rebooting.

So.... What about Batterylife?

Continuously connecting your phone to the charger and keeping it at 98-100% is bad for the battery right?

After hours of googling i finally found a solution for this issue :) (yep.... most time was spent on figuring out how to write bash..... )

How to Start/Stop Charging your phone while being connected to USB/Wallcharger

OR How to stop Charging an always connected phone

(And it also works on the magnetic dock if the Xperia Z2)

It's actually pretty easy.

cat /sys/class/power_supply/battery/charging_enabled

Should return a 1, use a echo > 0 and it stops charging

Using the command

cat /sys/class/power_supply/battery/capacity

shows at what Percentage your battery is right now.

Putting this all together in one script we get:

#!/system/bin/sh
while true
do
Battery_Level="$(cat /sys/class/power_supply/battery/capacity)"
if [ "$Battery_Level" -ge 75 ]; then
echo 0 > /sys/class/power_supply/battery/charging_enabled
else [ "$Battery_Level" -le 30 ]
echo 1 > /sys/class/power_supply/battery/charging_enabled
fi
sleep 600
done

So the phone will charge between 30% and 75%, Stops if it goes over 74%, starts if it falls under 31%.

This script is run every 10 Minutes aka 600 seconds.

Set as root, and set at boot. Voilà

Don't forget to completly drain an load your phone from 0% to 100% every 3-6 months. :)
[Xperia Z2 General] Mokiwipeout:
I guess you can also plug an MHL cable and use a Bluetooth controller and turn the phone into a pretty powerful console...

For example, I downloaded GTA San Andreas along with DraStic so that I can play my favorite Nintendo DS games on a big TV...

Additionally, you might want to try pairing a Bluetooth mouse and if it works, then I guess you can use an mhl cable and turn your TV into a snappy smart TV.

However, the thing is that MHL 3 cables are quite a bit expensive in my country at least.

Finally, the latest MM release also brings soft charging which stops charging at about 80% (you may be able to choose at which percentage you want the phone to stop charging) which might mean that the scripts you used aren't necessary.
[Windows Mobile Development and Hacking General] mohgdeisat:
hi,

I want to make my app realy exit when user taps on the x button in the upper-right area of the screen, so what msg should I handle to do this?

I am using MFC eVC++ 4.0

Thanks

Mohammad