yashsingh1/xdaforums huggingface dataset:
[Xperia Z Original Android Development] DooMLoRD:
Known issue with overclocking

It has been observed that the overclocking sometimes reverts back automatically to stock settings especially after heavy CPU load and if the device heats up.

I think have found why this happens:

Android OS level

there is a binary called: /system/bin/thermald which writes lower CPU freq values to the CPU sysfs interface if the device starts heating

there is also an app "Overheat Control" which i suspect is doing something similar

Kernel level

there seems to be some sort of fail-safe in place "msm_dcvs" which resets the CPU to 918Mhz or 1026Mhz or 1512Mhz

could also be some other things i am still searching

now there are ways to circumvent these issues but given the risk of the damage associated with overclock for long time i think its in our best interest to not screw with these fail-safes...

To Do List:

Merge all features from my Xperia S (LT26) kernel:

http://xdaforums.com/showthread.php?t=1557452

detailed list:

main kernel

add VDD interface (DONE)

remove CPU auto throttling restrictions (DONE)

disable CIFS (DONE)

add GPU O/C (DONE)

add GPU governor (DONE)

add CPU governors (DONE)

AVS

I/O schedulers (DONE)

unlock 192MHz frequency (DONE)

screen gamma control

increase USB OTG voltage (?)

slide2wake

exFAT support (DONE)

ZRAM (DONE)

cleancache, frontswap (DONE)

XZ other compression support (DONE)

msm_hsic_host wakelock fix (?)

mpdecision (?)

ramdisk

add dual recovery CWM + TWRP (DONE)

add init.d support (DONE)

add my own UC Tocuh CWM Recovery

import customizable init.something.rc from /system/etc
[Xperia Z Original Android Development] ZN6:
Re: [KERNEL][Z] DooMKernel {JB}(v01)[NEED TESTERS!!]

Reserved this post also. Just in case:p

via Tapatalk.
[Xperia Z Original Android Development] fesar:
Very good. But can we also get the LCD color control support on the kernel. The LCD Display of Xperia Z is washed out. Need Gamma settings like the Nexus 4.
[Xperia Z Original Android Development] DooMLoRD:
Re: [KERNEL][Z] DooMKernel {JB}(v01)[NEED TESTERS!!]

How to use CPU Voltage Control interface

All credits for this interface go to Faux123!

device will always bootup at stock voltage table...

WARNING!

DO NOT USE TOO HIGH OR TOO LOW VOLTAGES

SLOWLY increase the voltage one notch at a time for a particular frequency and do stability/testing for few hours

once you have verified that you CPU chip can handle that voltage ONLY then "Set at boot"/Use init.d script

if you dont follow above instruction your device might bootloop

You can either use an APP (like IncrediControl) or use an init.d script to do the work...

the interface to control voltages is at:

/sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

to see current voltage table use:

[B]cat /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels[/B]

to set voltage for a particular frequency:

[B]echo 1512000 1150000 > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels[/B]

will set 1512Mhz freq voltage at 1150mV

to reduce voltages for ALL frequencies:

[B]echo -25000 > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels[/B]

to increase voltages for ALL frequencies:

[B]echo +25000 > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels[/B]

example init.d script to reduce voltages by 75mV for ALL frequencies:

[B]#!/system/bin/sh
echo -75000 > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels[/B]

can be saved as /system/etc/init.d/99vdd
[Xperia Z Original Android Development] DooMLoRD:
DooMKernel (v01) Released!

DooMKernel (v01) Released!

Changelog:

added standard CWM Recovery 6.0.2.8 (which recognizes internal sdcard!)

added DooMKernel bootlogo

CPU overclock upto

1944Mhz!

(almost 2GHz!!!)

kernel patch to restrict CPU bootup at 384Mhz to 1458Mhz

ramdisk tweaks

kernel is insecure (ro.secure=0)

adb server is persistent

usb debugging enabled

rootfs and /system mounted as rw

Known issue with overclocking

Download Links at first post!

cheers!
[Xperia Z Original Android Development] testnumero:
Re: [KERNEL][Z] DooMKernel {JB}(v01)[20130303]

Can you add undervolting ? Thank you.
[Xperia Z Original Android Development] Haldi4803:
Meh.... Still not fully sure if i should buy the Xperia Z ..... my X10 is really getting old... but there was this announcement of HTC One with Snapdragon S600... Sure HTC one, no thx! But either a Phone with a S600 or an Xperia Z with DoomLord support... damn, thats a hard decission.

EDIT:

FTS! I just got an Xperia Z ! If i don't like it in 2 weeks i can bring it back! If i'm not sure i'm just gonna sell it somewhere else!
[Xperia Z Original Android Development] Kallb123:
Re: [KERNEL][Z] DooMKernel {JB}(v01)[20130303]

I'm coming from am X10 too. I feel like the Z will easily be good enough to make me happy :) especially with the excellent support of DoomLord and everyone at FXP. Sony seems to have really changed since I got my X10, with bootloader unlock and root before the phone is generally out, I look forward to seeing what the devs manage to do :)
[Xperia Z Original Android Development] GSeeker:
thanks Lord!

I flash the kernel and it works well.

then i try 1620MHz Max Freq, stress test OK and then it goes back to 1512MHz automatically, can't stay.:confused:
[Xperia Z Original Android Development] DooMLoRD:
Kernel level Sound Control

This feature has been ported from Faux123's MAKO kernel sources. The sources for this feature are covered under GPL and are released along with my kernel sources at my GITHUB repo.

[ WARNING ]

high volume can damage hearing!

DooMLoRD or faux123 are not to be held responsible if this damages ur headphones/speakers/etc

USE THIS AT YOUR OWN RISK!

There are two ways to use this interface.

manual control through sysfs interface

paid app (FauxSound Audio/Sound Control)

How to use the app FauxSound Audio/Sound Control is pretty self explanatory so I will write on how to control using the sysfs interface...

BEFORE DOING ANY ADJUSTMENTS EXIT THE APPS LIKE MUSIC PLAYER/etc!!

The interface to control the sound output is located at:

[B]/sys/kernel/sound_control[/B]

it has 4 control interfaces:

Camera MIC

/sys/kernel/sound_control/gpl_cam_mic_gain

Headphone

/sys/kernel/sound_control/gpl_headphone_gain

MIC

/sys/kernel/sound_control/gpl_mic_gain

Internal Speaker

/sys/kernel/sound_control/gpl_speaker_gain

each supports gain levels from 20 (-20) to 50 (+10), base is 40 (0)

(the number in the brackets correspond to the numbers displayed in the app)

say if u want to boost headphone output (both left and right channels) then use the following command:

echo "44 44" > /sys/kernel/sound_control/gpl_headphone_gain

u can also individually increase/decrease the gain for each right and left channel

similarly other interfaces can be controlled

TIP:

do not jump to maximum values as sometimes the headphones/speakers might start distorting the audio... slowly increase and do testing for the levels which suit you!

not all accessories will work well with boosted audio output

e.g.: on my Sony MDR-XB300 headphones i start getting distorted audio beyond 46 (+6)

regards,

DooMLoRD
[Xperia Z Original Android Development] GSeeker:
thanks! And 1728MHz is also stable so far:good::D
[Xperia Z Original Android Development] kazuni:
Hey doom,

long time no see buddy, and yes the kernel is working fine @ 1.9Ghz performance/cfq ;)
[Xperia Z Original Android Development] PeZoII:
The device already heats up pretty much with the stock kernel...aren't you guys afraid to burn the device with over clocking???
[Xperia Z Original Android Development] doki81:
actually i feel more like uv or down clock the xz and see if it can have achieve cooler operation...
[Xperia Z Original Android Development] BoneMo:
+1 for UV for less heat :fingers-crossed:
[Xperia Z Original Android Development] Dev Jaskirat:
Re: [KERNEL][Z] DooMKernel {JB}(v01)[20130303]

Its being released on 6th march in India bro!

I think I will b getting one myself! It will be fun to work with u on the XZ! :)

Sent from my »Sony Xperia Neo V«
[Xperia Z Original Android Development] Haldi4803:
Hell yeah! Bought a Z now :cyclops: meassured with a Laser Thermometer on the back! 43°C max ! after Antutu Benchmark!(Video inc. soon) Well, it's 5°C Outside atm so a hot Phone is cool stuff xD But when it's summer and phone gets that hot... no thx!

So..... how about Undervolting ? Will that be possible? No reason why not ? Helped a great deal with my X10i

P.S X10i was like the Root for all Sony Android users ^^
[Xperia Z Original Android Development] Klaus N.:
At first thank you for your new kernel; it works already fine :)

Do you think it'd be possible to implement fluxi's slide2wake for conserving the hardware power button? How do you think about it?

CU

Klaus
[Xperia Z Original Android Development] DooMLoRD:
How to control GPU Clock!

by default the kernel will always boot with GPU max clock as 400MHz (same as stock)

OVERCLOCKING GPU WILL REDUCE BATTERY LIFE!

you can overclock/underclock GPU manually via scripts/commands...

[ how to do this manually/script ]

the GPU max-clock interface is at:

/sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk

to check current max clock of GPU clock use:

cat /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk

to set GPU to particular frequency (overclock) use:

echo 533333000 > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk

to underclock GPU use:

echo 325000000 > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk

available scaling frequencies are:

[LIST]
[*]533333000 - 533 MHz
[*]487500000 - 487 MHz
[*]400000000 - 400 MHz (DEFAULT)
[*]325000000 - 320 MHz
[*]200000000 - 200 MHz
[*]128000000 - 128 MHz
[/LIST]

BONUS!

now u can check the current GPU clocks using my APP!

Don't forget to close the small app after you finish, to save on battery!

I am working on an app to control GPU O/C... may be in a few days time i will release it :)

happy play!

regards,

DooMLoRD
[Xperia Z Original Android Development] DooMLoRD:
is this during normal usage or specifically during gaming?
[Xperia Z Original Android Development] exmatproton:
it is hot all the time. No charging, no gaming, no use. Normal use, with gaming, with benchmarking. So ... euhhh, not sure!
[Xperia Z Original Android Development] DooMLoRD:
can u please check if u can control GPU frequencies now using Faux123's app?

thanks will look into it....

anyone else facing similar issues?
[Xperia Z Original Android Development] Beukhof1:
Re: [KERNEL][Z] DooMKernel {JB}(v03)[20130330]

Wow nice work doom! Any chance on a flashable zip any time soon?
[Xperia Z Original Android Development] gm007:
Re: [KERNEL][Z] DooMKernel {JB}(v03)[20130330]

Here is one.
[Xperia Z Original Android Development] gm007:
Re: [KERNEL][Z] DooMKernel {JB}(v03)[20130330]
[Xperia Z Original Android Development] exmatproton:
Wow, that's almost the same as mine. On v03 i am getting 8200 (arround that) WITH OC!!! WTF?!?!?!?
[Xperia Z Original Android Development] BoneMo:
not till now, phone is not even warm :good:,, didnt try playing games
[Xperia Z Original Android Development] Thraxzzz:
Phone's not heating up unless i played games ;)
[Xperia Z Original Android Development] amerikian:
Re: [KERNEL][Z] DooMKernel {JB}(v03)[20130330]

Here's one with v3 kernel. I ran it about 5 times and this was the highest I could get. You'll see it shows max cpu of 1200 but I oc 'd to 1800. Seems like the setting didn't stick. Got very hot.

No heat issues during normal use or on charger.

Sent from my White C6602
[Xperia Z Original Android Development] viper001:
Thats the reason for the low score. the device heated up and autothrottled to a lower freq to protect your phone. (that's a good thing.) :good::good:

Try a combination of undervolt and a gradual freq increase.

@DoomLord. Downloading now. i'll give my report after a round of Dangerous.., er .... testing... :angel:
[Xperia Z Original Android Development] tanoxxx:
Hi DoomLord.

Thanks for the update :good::)

No OC and With the normal use for me the phone dont becomes very hot, is yes hot, but normal..

now i must to stress it with heavy use.. i will report back the situation :good:

there is any way to increase the battery life? i dont know with some tweak or lower limit of the minimum frequency to down of 384 MHz?

thanks
[Xperia Z Original Android Development] prie07:
i think is more hotter while in standby / lock screen (CPU 46 Celc using tempmonitor) compare to v2 on standby below 30, and the antutu result not higher compare to not overclocking, i try success with 1728, 1836 crach on quadrant standard, using v2 with RomAur 2 without oc i got antutu 20.527 with v3 can't get over 20.000

1 question, how to overclock GPU?

regards
[Xperia Z Original Android Development] Delacor:
I thougt there will be a flashable zip File for V3? :)
[Xperia Z Original Android Development] doki81:
Hi DL,

i just flash your new v3 kernel. i wanted to do some uv but i cant seem to find the VDD interface thru the path you mentioned...

/sys/devices/system/cpu/cpu0/cpufreq/vdd_levels

anyone can confirm they can find this on their V3?

edit: realize i posted in XT section instead of XZ :o
[Xperia Z Original Android Development] spida_singh:
It's:

/cpu/cpufreq/vdd_table/vdd_levels

This is in the OP.

I have the following running as an init.d script....

echo -50000 > /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels

Been running great so far! :D
[Xperia Z Original Android Development] viper001:
it's in /sys/devices/system/cpu/cpufreq/vdd_table/vdd_levels
[Xperia Z Original Android Development] DooMLoRD:
Re: [KERNEL][Z] DooMKernel {JB}(v03)[20130330]

The links are getting messed up...

This is for the Xperia Z:

http://xdaforums.com/showthread.php?p=38705459#post38705459

Corrected links in OP

In few hours..

are those from stock kernel?

Under volt, reduce max clock, disable unnecessary Services, use 2G mostly...

that's too warm... Shouldn't be that much...

I have contacted faux123 on how to control GPU...

In few hours...
[Xperia Z Original Android Development] gm007:
Re: [KERNEL][Z] DooMKernel {JB}(v03)[20130330]

Yes from stock kernel cause i relocked my bootloader to update my firmware with pcc.
[Xperia Z Original Android Development] jerdog:
To all those using this kernel, know that the Z already has issues with the GPU never going below 325 in the standard UI and pretty much spending all of its time at 400 - which is why there is battery drain doing the most basic of things. And it already runs hot enough to fry eggs, so if you want to fry bacon as well you might as well OC the GPU to 487.5 (ffs why such a random number) and see your device always run hot and have WORSE performance than if you stayed with stock values.

I guess it's a good thing the Z is waterproof so you can cool it down WHILE using it. Or help boil water... Probably work for both
[Xperia Z Original Android Development] ankabo:
Reading before flashing would help so many people ;)

Gesendet von meinem C6603 mit Tapatalk
[Xperia Z Original Android Development] Destroyedbeauty:
+1
[Xperia Z Original Android Development] bariz143:
Haha I swear I looked twice and couldn't find any information about that. :)
[Xperia Z Original Android Development] crazymister:
I just triple checked it, and I can't find that answer anywhere in the OP

.
[Xperia Z Original Android Development] rer3:
It's already there, read the requirement section, and tell me if you still couldn't find it.. lol haha
[Xperia Z Original Android Development] crazymister:
You are so right, and I am so blind!
[Xperia Z Original Android Development] rer3:
I have a question. :confused:

When I do reboot to recovery it goes to CWM instead of TWRP,

Could I change the default to TWRP instead of CWM ?

and if I could, how ?

Thanks :highfive:
[Xperia Z Original Android Development] HellRoot:
Any of you guys experiencing screen.flickering on v19?
[Xperia Z Original Android Development] sea2605:
Yes, especially when underclocking the gpu to 200 or 325 mhz and watching a hd-youtube-video (framerate seems to be constant and sufficient but screen flickers often). With standard 400 mhz it still happens but less frequently.

So maybe this is a sony issue, not a doomkernel related problem

//////////////////////////////////

My thread about optimizing the battery life of Sony's Xperia Z: http://xdaforums.com/showthread.php?t=2382712
[Xperia Z Original Android Development] mnzel:
Does this work with existenz rom v3 ? :confused:
[Xperia Z Original Android Development] mhairy:
Of course..
[Xperia Z Original Android Development] HellRoot:
i did not have any problems using the stock kernel... that is why i asked here.... :)
[Xperia Z Original Android Development] rohit25:
Hi all,

A query I did overclock my gout to 533mhz using trickster mod and enabled intelliplug and eco-mode.... Now I see that the gpu overclock but it doesn't stick as soon as I turn off my screen it reverts back to normal....

Anything I am missing

---------- Post added at 04:43 PM ---------- Previous post was at 04:20 PM ----------

Well it seems that the gpu overclock doesnt stick while playing subway surfers it reverted back to 400mhz.... Any help please
[Xperia Z Original Android Development] xXWeresXx:
I write my AROMA Installer with my MODS.

I'm new in The Xperia Wolrd. I Need a Kernel they works my Aroma.

Now i use the Kernel from MonxDEFIED ROM TWRP but when i start my AROMA is it Green and buggy...
[Xperia Z Original Android Development] [NUT]:
The kernel used is actually irrelevant, you need the 2.7 beta version of AROMA to get it working ok.

Also, when using 2.7, you might still need to set the color space to rgb in the AROMA config.

-EDIT-

SOMEONE PLEASE FIX THE G*D D*MN XDA APP! :mad:
[Xperia Z Original Android Development] Haldi4803:
that! is called throttling. And it happens when your phone gets to hot!

what was the SoC temperature and the outside temperature?
[Xperia Z Original Android Development] rohit25:
hi

thanks for the reply... didnt check the temp... but did notice that once i changed the freq to 533mhz and put the phone on sleep... after 15-20mins woke it up and found the freq back to 400mhz...

also i was using intelli-thermal had disabled the qualcomm drivers using trickster...

P.S i was in a room with AC running guess it was not that HOT
[Xperia Z Original Android Development] Destroyedbeauty:
Doom is working on GPU UC / OC Not Sticking-issue, it will be patched and fixed in later releases!
[Xperia Z Original Android Development] Haldi4803:
Oh ? IntelliThermal also works for GPU ?

put your phone in the fridge, at -20°C had mine in for like 20 minutes and did 3-4 benchmarks, stayed on 533mhz all the time!
[Xperia Z Original Android Development] rohit25:
hi all,

alnikki25k figured out the way to keep the GPU clock stable... he did overclock till 627Mhz(i think overkill and of little use) but still is awesome news i guess...

doom would be able to get this applied to his code soon then...
[Xperia Z Original Android Development] Destroyedbeauty:
Underclocking the GPU should be better than overclocking, I mean, the Adreno 320 is powerful enough to handle heavy 3D gaming with stock 400 Mhz clock, but not everyone is extreme gamers and would rather take some extra minutes / hour(s) of battery life by UC the GPU to 320 Mhz or another additional step below that 320 Mhz freq..:good:
[Xperia Z Original Android Development] SleemLDJ:
Does this kernel work with CM10.2
[Xperia Z Original Android Development] rer3:
You don't you read the OP, do you ?

It says "only for stock or stock based ROM".

So, Figure it out yourself, LOL :angel:
[Xperia Z Original Android Development] Haldi4803:
ohoo ?

Rom Kernel thread ?

And Benchmarks ? i had on 533 worse performance than on 480 tested via Benchmarks !
[Xperia Z Original Android Development] rohit25:
Just check xz gaming kernel on the original development section..... He would be pushing the update soon by the looks of it
[Xperia Z Original Android Development] Slash75:
I do not understand when I'm in stock kernel everything works, and as soon as I put the doom kernel wifi does not work anymore, or it can come from?
[Xperia Z Original Android Development] Destroyedbeauty:
1) Extract Doomkernel v19 (boot.img) from ZIP file, and flash it in Fastboot mode (turn off phone, hold VOL-UP key and connect USB cable) through Flashtool.

2) Get into recovery by pushing VOL-UP (for CWM) or VOL-DOWN (for TWRP) and wipe cache and Dalvik. Flash Doomkernel v19 ZIP and wipe cache and Dalvik again just for being on the safe side.

3) Reboot and see if Wifi is working!
[Xperia Z Original Android Development] henry chip:
Please port Xperia ZL V19
[Xperia Z Original Android Development] Destroyedbeauty:
Any chance that you're going to add more battery focused CPU governors in the next releases, [MENTION=2784807]DooMLoRD[/MENTION]? :)
[Xperia Z Original Android Development] jeroenqui:
Examples?
[Xperia Z Original Android Development] Destroyedbeauty:
Here:

1) SmartassV2

2) Lagfree

3) Scary

4) SavagedZen

All of them are focused toward battery saving and still keeping decent performance.
[Xperia Z Original Android Development] DooMLoRD:
Most of the ones mentioned above are very old ones which were developed for single core devices...

Adding all governors is of no use... Few optimized governors to handle multi-core devices correctly are all that's required...
[Xperia Z Original Android Development] Destroyedbeauty:
Aha, I did not know that. Sorry..

EDIT: What about Hotplug Governor? Seems to be quad / multi-core friendly governor..
[Xperia Z Original Android Development] Trehjulingsleffe:
Does v19 work on firmware. 74?

Skickat från min C6603 med Tapatalk now Free
[Xperia Z Original Android Development] Destroyedbeauty:
Yes.
[Xperia Z Original Android Development] schlei:
hi, i know i shouldn't give much about the bench scores

but i think around 4000 points lower in antutu, compared to stock kernel is something to think about, :confused::confused:

every time i run antutu with stock kernel i get around 20000 pinots, with doom v19 very unstable sometimes 18k sometimes 16k

any suggestions about that ?
[Xperia Z Original Android Development] Destroyedbeauty:
Benchmark scores doesn't tell anything about the overall, total performance..
[Xperia Z Original Android Development] lodger:
Tried this a few times without luck, I am not that worried about it can put up with it till the next build ,, But if there are other ideas let us know..
[Xperia Z Original Android Development] rohit25:
hey doom!

any plans of adding the changes by [MENTION=4645070]alnikki25k[/MENTION] for the GPU overclock sticking...

thanks in advance mate...
[Xperia Z Original Android Development] showlyshah:
Hey dev does this kernel contains latest commits on msm_hsic_host wakelock and qcom_rx_wakelock ? I heard that these are fixed, if it is so it will be a great asset for battery conservation.
[Xperia Z Original Android Development] establown:
thanks

i test it two weeks.

it is helpful, this issue is rare but only two times.

i think this issue is not solved thoroughly.
[Xperia Z Original Android Development] Destroyedbeauty:
That is better than nothing.

Good that screen issue was minimized, though! *Cheers*

:highfive:
[Xperia Z Original Android Development] jianyongng:
anyone can share the best setting for voltages for power saving? ;)
[Xperia Z Original Android Development] Destroyedbeauty:
There is non-best setting when it comes to undervolting! Something that may work for one, will softbrick (or in worst case - HARDBRICK) the phone for one another. For getting best result, try out and play with the voltages and see the UV-limit for your phone. Start with -50 and go down that route..

I can be kind enough though and share my customized undervolt table that delivers kickass battery life:

1) First half of UV table-192/756Mhz

2) Second half of UV table-810/1296Mhz

3) Third and last half of UV table-1350/1512Mhz

OBS!!! Notice that I am using the 192-1512 CPU frequency range, on Doomkernel v19 and Interactive governor and SIO I/O = Battery combo beast!.
[Xperia Z Original Android Development] jianyongng:
experiencing your setting now! Thankyou very much!! :laugh:
[Xperia Z Original Android Development] Destroyedbeauty:
What governor are u on?