yashsingh1/xdaforums huggingface dataset:
[Xperia Z Original Android Development] DooMLoRD:
How to control Intelli_plug!

by default the kernel will always have mpdecision active (same as stock)

you can control this manually via scripts/commands...

[ how to do this manually/script ]

the intelli_plug interface is at:

/sys/module/intelli_plug/parameters

to enable intelli_plug use:

echo 1 > /sys/module/intelli_plug/parameters/intelli_plug_active

to disable intelli_plug use:

echo 0 > /sys/module/intelli_plug/parameters/intelli_plug_active

eco-mode makes the device act as a dual-core device! hence giving better battery life when performance is not required!

to enable eco-mode use:

echo 1 > /sys/module/intelli_plug/parameters/eco_mode_active

to disable eco-mode use:

echo 0 > /sys/module/intelli_plug/parameters/eco_mode_active

TWEAKS THESE PARAMETERS CAREFULLY ELSE DEVICE MIGHT HEAT UP A LOT AND GET BRICKED!

happy play!

regards,

DooMLoRD
[Xperia Z Original Android Development] Dev Jaskirat:
Re: [KERNEL][Z] DooMKernel {JB}(v01)[20130303]

Great bro! But according to sony Z would be available from 12th march in the shops! How did u got yours? Online?

Sent from my »Sony Xperia Neo V«
[Xperia Z Original Android Development] DooMLoRD:
How to control native DoubleTap2Wake

thanks to [MENTION=4308696]championswimmer[/MENTION] to port this to other devices than the Xperia Z Tablet!

It will be enabled by default.

interface is at:

/sys/devices/virtual/input/input1/wakeup_gesture

to enable:

echo 1 > /sys/devices/virtual/input/input1/wakeup_gesture

to dis-enable:

echo 0 > /sys/devices/virtual/input/input1/wakeup_gesture

or just edit the init.d script supplied /system/etc/init.d/01dt2wake_native

OLD

How to control DoubleTap2Wake & Sweep2Wake

DoubleTap2Wake uses the taps on SAME location on touchscreen to wakeup device. Its like pressing the power button to wake device from sleep/screen off.

This is enabled by default!

incase u dont use a case and the touchscreen keeps getting pressed by mistake, the device will keep waking up regularly and this is affect battery life!

to disable this feature:

echo 0 > /sys/android_touch/doubletap2wake

to re-enable this feature:

echo 1 > /sys/android_touch/doubletap2wake

Sweep2Wake uses two finger drag on touchscreen to wakeup device. Its like pressing the power button to wake device from sleep/screen off.

This is enabled by default!

incase u dont use a case and the touchscreen keeps getting pressed by mistake, the device will keep waking up regularly and this is affect battery life!

to disable this feature:

echo 0 > /sys/android_touch/sweep2wake

to re-enable this feature:

echo 1 > /sys/android_touch/sweep2wake

you can create a init.d script if you wish to disable this feature every time!
[Xperia Z Original Android Development] randomuseresato:
Doom, can you do something to fix the gamma settings in your kernel ? Similar to what's been done for Nexus 4? :)

BTW Congratulations on getting Z, It's great news for the Xperia Z community.
[Xperia Z Original Android Development] DooMLoRD:
How to use Multi-Recoveries (CWM + TWRP + Philz):

Since many users have their own preference of recoveries, I have included CWM, TWRP & Philz recoveries into my kernel!!

The kernel has inbuilt triggers to enter any recovery. When the kernel is ready during bootup it will indicate by:

showing my bootlogo

the LED will light up

there is a small vibration

Following are the triggers:

CWM recovery: Keep tapping VOLUME UP button

TWRP recovery: Keep tapping VOLUME DOWN button

Philz recovery: Keep tapping POWER button

Alternatively you can now also reboot into any of these selected recoveries using my Xperia Reboot app!

I have updated my Xperia Reboot app to supports multirecovery solution implemented in latest DooMKernel (Feb 1, 2014 onwards) on supported devices!
[Xperia Z Original Android Development] DooMLoRD:
DooMKernel (v02) Released!

DooMKernel (v02) Released!

Changelog:

added CPU Voltage Control interface (VDD) {here is how to use it} - this will enable user to control/define the voltages of each CPU frequency and allow undervolting to reduce power consumption of overvolting to improve stability at high frequencies

removed CPU auto throttling restrictions by disabling MSM_DVSC - this was one of the kernel level thermal throttling parts, with this removed i think only android OS level thermal throttling apps/binaries remain (thermal throttling - this reduces CPU frequencies when device starts heating up, its kind of a fail-safe to ensure that the CPU doesnt overheat)

smooth scaling along CPU frequency table - the transition along the CPU frequency table will be smoother

startup script (init.d) support! {here is how to use it} - allows users to have scripts executed at startup/bootup

the "here is how to use it" links are currently not active.. i am adding the necessary information.. hold on..

Please do consider sending me donation if you like my work!

download links at first post!

Cheers!
[Xperia Z Original Android Development] m0b:
Once I had a problem, the face control front camera was not working until reboot.

But it was before undervolting. And now i'm on extreme undervolt, using CPU clock 384-1728, and camera (including face control) works fine!

192: 700
384: 700
432: 725
486: 725
540: 750
594: 750
648: 775
702: 775
756: 800
810: 800
864: 825
918: 825
972: 850
1026: 850
1080: 925
1134: 925
1188: 925
1242: 925
1296: 950
1350: 950
1404: 975
1458: 975
1512: 987,5
1620: 1050
1728: 1100
1836: 1150
1890: 1200
1944: 1225
[Xperia Z Original Android Development] Juzman:
I used "extreme under volt" as above. Battery stats seem to be draining fast.
[Xperia Z Original Android Development] tanoxxx:
I'm worried about the CPU temperature, with no OC and with UV when i little browsing in 3G i get 65°C and a little more..

DooM i risk something or is it normal? the phone is really hot :(

untill wich temperature is normal and wich temperature is not normal but is dangerous?

Thanks
[Xperia Z Original Android Development] 23Six:
I used to hit 65-68°c only when charging+browsing+humid environment. Based on your previous post, your undervolt is of course too extreme IMO. So if your hitting 65 degrees while the device is off charge, step up voltage.

987 - 1.5Ghz is never gonna be stable.
[Xperia Z Original Android Development] tanoxxx:
What does this have to do the UV with the high temperature? no mention of OC but UV.. in my opinion has nothing to do the UV with the high temperature...

my XZ has always been hot when I browsing in 3G, but I never paid attention to the temperature .. while now, I'm doing case
[Xperia Z Original Android Development] 23Six:
Sigh.
[Xperia Z Original Android Development] sea2605:
Getting usually screen on times of 4,5 to 5,5 h...seldomly 6h...undervolting/-clocking have reached limits ... I also use: Greenify, stamina on, battery save mode on (starting at 100% ;) ), wifi location on, debloated, titanium backup (froze many unnecessary things like throw, google now, ...), fast dormancy deinstalled, 1% backlight most of the time, data off when connected with wifi (tasker), data off most of the time anyway, gps off, nfc off, lte off, bluetooth off, governor: wheatly, ...

Is there any way to get some more juice to get more screen on time (at normal usage)? :D

Maybe new governors? Will doomkernel v7 come with some battery saving tweaks?
[Xperia Z Original Android Development] tanoxxx:
I wanna share my last extreme UV:

M/GHz - mV

192 - 700

384 - 700

432 - 700

486 - 700

540 - 700

594 - 700

648 - 700

702 - 700

756 - 725

810 - 725

864 - 750

918 - 750

972 - 787,5

1.02 - 787,5

1.08 - 925

1.13 - 925

1.18 - 925

1.24 - 925

1.29 - 937,5

1.35 - 937,5

1.40 - 962,5

1.45 - 962,5

1.51 - 987,5

Tested for 2/3 days, no problem and no reboot :good::)

@ DooM

I'm worried about the CPU temperature, with no OC and with UV when i little browsing in 3G i get 65°C and a little more..

I risk something or is it normal? the phone is really hot :(

untill wich temperature is normal and wich temperature is not normal but is dangerous?

Thanks
[Xperia Z Original Android Development] DooMLoRD:
if u dont mess around with thermal throttling then u dont need to worry abt anything ;)

..ALL..

is there a 9.1.A.1.141 firmware available for the Xperia T?
[Xperia Z Original Android Development] tanoxxx:
I dont konw about thermal throttling , what is it?

How i can change it?

Sorry for the questions, but i wanna know if i not changed nothing accidentally.

Thanks

i dont know, I'm sorry :(
[Xperia Z Original Android Development] G1_enthusiast:
thermal throttling is when the CPU get too hot it will automatically throttle down your CPU MHZ to save it from massive explosion...sometime if it get TOO hot it will shut down the phone.
[Xperia Z Original Android Development] tanoxxx:
Thanks for the Explanation, I imagined that..

How i can change it? I wanna know it only for to be sure I haven't changed nothing accidentally..

Thanks
[Xperia Z Original Android Development] Devries:
maybe a problem？

mpdecision is default enable in xz,but in system/bin I see it is not suitable for the new governor wheatly.

so if we use wheatly the decision of cores open and close will be out of control？
[Xperia Z Original Android Development] G1_enthusiast:
I dint think you could...atleast on my s3 you couldnt change it, something hardwire into the cpu
[Xperia Z Original Android Development] gm007:
The throttle activity can be changed in the kernel and in the rom.

I don't think you know how to change it so don't worry.

One question,

How much battery improvement do you have ? Does it worth the heating?
[Xperia Z Original Android Development] tanoxxx:
Thanks

i dont know exactly How much battery improvement i get, i think you speak about the uv, because i make so many test changed everytime so many parameters, but worth it make UV..

for the the heating is high, about 65° C :(

I hope i understood your question... if not sorry, my bad english:p
[Xperia Z Original Android Development] gm007:
Yes about undervolting,but if you didn't gain any improvement in battery so better not using this very low uv.

The heat is not good for the cpu in long term.
[Xperia Z Original Android Development] tanoxxx:
:confused: sorry but im confused..

do you say the greater UV (with low values of mV for each fequence) involves a greater overheating? I thought the opposite :confused:
[Xperia Z Original Android Development] gm007:
Yes undervolting too much is same as high voltage,that's what i know,maybe someone can explain better than me.

Very low voltage will consume more battery,cause each hardware is getting lower than what it need,that's why the heating.
[Xperia Z Original Android Development] tanoxxx:
ok, thanks, with the UV im not get so much increase of battery..

tomorrow i will make others test without UV, i will see the result,,,
[Xperia Z Original Android Development] G1_enthusiast:
jeez 65 is not normal you might want to exchange it...I thought 45 is scorching already.
[Xperia Z Original Android Development] viper001:
I normally hit the high 60s to thermal throttle in both stock and DL's kernel before UV. Usually, during web browsing or online gaming.

Interestingly, the temps are much lower when playing offline games in UV and Not.

The heat is from the upper half portion of the phones back.

UV really makes it worthwhile to unlock the BL.

Battery life is better. Especially when the device is idle, sleeping. I can't say otherwise if it's in use. IMHO, It's the screen that dictates how long the battery will last.
[Xperia Z Original Android Development] tanoxxx:
I maked so many test this morning, maked wiht all in the same condition, same brightness, same network, same use...

this is my results/considerations:

1. UV is useless, i get a little bit increase of battery life without UV..

2. The best governor for battery life between Wheatley, Ondemand and Interactive is Ondemand..

3. I get also with not using UV high temperarture of CPU when browsing in 3G :confused:

@ DooM

Can you put please another governor in this great kernel? one governor best of all for battery life?

Thanks
[Xperia Z Original Android Development] DooMLoRD:
we have been testing undervolting on a variety of devices since Snapdragon S1 processors... we are confident that it indeed works...

high temperature will be depending on the CPU/GPU activity...

I will add other governors later...
[Xperia Z Original Android Development] tanoxxx:
I thought so too, but my test today I have not had benefited, indeed I had a small increase of battery life without it..

ok, wich temeperature of CPU can be dangerous,about wich value we need to worry?

Really Thanks :good:
[Xperia Z Original Android Development] viper001:
Dangerous Temperatures

Browsing through the Thermald files, you'll find that thermal throttling will start at ~70 deg C. Autoshutdown will occur at +90 degC.

That's why i really love this UV feature. I use it not for battery life, but for controlling the Temps. Having your phone at cooler temperatures lets it perform better.

I had a previous post with pics on which i made consecutive runs with antutu. the results varied from 20000 down to 8000. this was due to throttling. using UV, i get consistent results.

For longer battery life, i just set my brightness to 40% and set auto. it works well enough that i could still read it even under the noon desert sun.

...and, i've got a 6000mah portable battery charger. that's good for 2 full charges and change, Just in case :D
[Xperia Z Original Android Development] Devries:
Here is a page of CPU Governors Compared shows the smartassV2 save more battery.

https://docs.google.com/spreadsheet/ccc?key=0AntDDKv-lS6IdGVGUnRLdnk3b1NKSjNrY2VsSmtfN2c#gid=0

And some kernels make a kernel based mpdecision for better performance and battery life?
[Xperia Z Original Android Development] G1_enthusiast:
honestly dont think your phone is working right. you should exchange it. 65 is way past melting point.
[Xperia Z Original Android Development] gm007:
If i remember correctly,undervolting below some level will increase heating and consume more battery.

I willl try to find the documents.
[Xperia Z Original Android Development] tanoxxx:
tomorrow i will make the last test with UV, is also this test do not give me increase of battery i will abandon altogether the UV..

i will report the result..
[Xperia Z Original Android Development] tanoxxx:
Nothing, my last test confirmation that UV is useless, i got a little bit of increase of battery life without it..

i hope in another way to get better battery life, like governor or other tweak... trust in you DooM :good:
[Xperia Z Original Android Development] gm007:
You cannot say that undervolting is useless,maybe wrong configuration.

I couldn't find the documents i was searching for,maybe i am wrong.
[Xperia Z Original Android Development] tanoxxx:
I do not know what to say, I also think it was useful and worked, but with my test, maked wiht all in the same condition, same brightness, same network, same use... with and without it, i got a little bit of increase of battery life without UV.. and i got also increase of battery life using ondemand governor..
[Xperia Z Original Android Development] Haldi4803:
Would be awesome if you could find some documentation on that! Testing it out myself i sometimes got this feeling. But thinking logically i cant find a reason why it should do this! Except CPU starts calculating everything wrong and has to do it 2-3 times before it gets it right.

65°C CPU Temp is no problem, 65°C Battery Temp would be!
[Xperia Z Original Android Development] viper001:
I have had 2 XZ's (C6602 variant), both are PV4, both JD screens, one came in the small box and the other came bundled with charging dock and 2 NFC dongles. Both have the same behavior when it comes to throttling and heat as stock. Driving down the voltage seems to be the only way to help. Mind that i don't go the extreme UV route, just 100mv across the board did wonders to improve thermal performance.

Thanks for the concern though.:good:

BTW, i did mention that i live in a normally hot environment with temperature fluctuations. (makes me concerned about removing the shatter-proofing which is now full of scratches:crying:

sampling 5000

[pa_therm0]
sampling 100000
thresholds 65 70 75 80 85 90
thresholds_clr 60 65 70 75 80 85
actions none none none none none none
action_info 0 0 0 0 0 0

[tsens_tz_sensor0]
sampling 1000
thresholds 65 90 93 96 99 102 105
thresholds_clr 62 87 90 93 96 99 102
actions cpu cpu cpu cpu cpu cpu shutdown
action_info 1512000 1296000 1188000 918000 756000 648000 5000

[tsens_tz_sensor1]
sampling 1000
thresholds 75
thresholds_clr 72
actions none
action_info 0

[tsens_tz_sensor2]
sampling 1000
thresholds 75
thresholds_clr 72
actions none
action_info 0

[tsens_tz_sensor3]
sampling 1000
thresholds 75 78 81 84 87 90
thresholds_clr 72 75 78 81 84 87
actions cpu cpu cpu cpu cpu shutdown
action_info 1296000 1188000 918000 756000 648000 5000

[tsens_tz_sensor4]
sampling 1000
thresholds 75
thresholds_clr 72
actions none
action_info 0
[Xperia Z Original Android Development] sea2605:
I can also confirm that uv helped a lot in terms of temperatures and battery life...as expected. There must be something wrong with his settings or some app acting weired...or a sdcard thats faulty (happened to me; it ejected itself several times a day and mediascan was triggered -> hugh battery drain)
[Xperia Z Original Android Development] Delacor:
My Lord, cm is very stable now but I really miss UV and your Tweaks...

Do you see any Chance for cm? :beer:

Sent from my Xperia Z
[Xperia Z Original Android Development] flipz0r:
Do you really need an unlocked bootloader to flash a new kernel like this? Isnt it enough to just have root and CWM recovery?
[Xperia Z Original Android Development] gm007:
Only for unlocked bootloader.
[Xperia Z Original Android Development] tanoxxx:
@ DooM

there is this app work so good with this kernel, is this https://play.google.com/store/apps/details?id=aperture.ezekeel.experiencepro&hl=it

with this app you can:

1) Touch Wake Up,

2) Music Control

3) Cpu Control

4) Cpu Freq Control

5) Volume Control (Heaphone, Speaker, Cmcorder Mic, Handset Mic)

All of this feature work except Volume Control..

i ask at developer of the app how solve it, and him suggested to ask you to add in the kernel this: CONFIG_KALLSYMS_ALL=y

Can you do it Please?

Thanks
[Xperia Z Original Android Development] G1_enthusiast:
I will definitely test my phone when it arrive from HK, I will conduct test on my S3 tonight to see, but I dont ever recall it being that hot.

p.s if it any indication my ALIENWARE M17x will throttle at 65 celcius for cpu.
[Xperia Z Original Android Development] dhruvzz:
So m on da latest romaur rom on unlocked boot...why dovi flash dis kernel onli da zip flash or den da fastboot method as well?? M lil confused as on da htc one x which I was using previously everytym I had to fastboot flashboot a kernel...:confused:
[Xperia Z Original Android Development] gm007:
If you have cwm recovery just use the zip to install the kernel no need to fastboot.

You need fastboot only if you don't have a recovery and there is a recovery included inside this kernel.
[Xperia Z Original Android Development] DooMLoRD:
Not anytime soon.... i am busy working on port of 3.0.8 kernel to arc & play... i also have to update the xperia t, v, tx kernels
[Xperia Z Original Android Development] gm007:
He already read your first post no need to post it again ;)
[Xperia Z Original Android Development] tanoxxx:
How can you sure of that? I get no answer.. Maybe him don't read.. It can happen..

This is the reason I post it again..

Anyway sorry for that..
[Xperia Z Original Android Development] Windows X:
Great kernel. There're few things I'd like to report with this kernel below.

1. WiFi doesn't work with DoCoMo ROM. Maybe it's driver related

2. init.d script won't run as root so I can't change CPU governor and some other important tweaks. I did set scripts permission to 777 and some of them are working.

3. Adding row scheduler would be nice. Works great with wheatley.
[Xperia Z Original Android Development] anirudhks:
[MENTION=2784807]DooMLoRD[/MENTION] , first of all thank you for the wonderful work you are contributing to the Xperia family... I read in a couple of N4 forums and also few HTC ones as well , they are including tools at kernel level which can calibrate screen colors ( RGB ) since the drivers for display are at the kernel , any plans of implementing it to our xperia ? so that we can slightly tweak our contrasts to eliminate the washed out colors :)
[Xperia Z Original Android Development] gm007:
Instead of reading N4 and htc forums read this thread and you will find your answer :p
[Xperia Z Original Android Development] anirudhks:
Darn! should have done that first :P :D:D .. can you help me with the page or post please ,

2 things I am a bit lazy and 2nd loads of post :P

edit : dont bother read it :D and yeay!!!!!!
[Xperia Z Original Android Development] Hellscythe:
hmm that does sound a bit strange.

i have a bit of experience with cpu overclocking in pcs

from what i understand a very low voltage will result in not enough juice to power the cpu, thus being not stable and random reboots/shutdowns

however i havent heard of the cpu consuming more power and getting hotter due to that...

i could be wrong lol, im trying not to be ignorant here
[Xperia Z Original Android Development] Devries:
[MENTION=2784807]DooMLoRD[/MENTION] ;)
[Xperia Z Original Android Development] G1_enthusiast:
Doom please release a version for lock booter, it would help most of us that want to keep BE2..I'll gladly donate to make that happen. ;)
[Xperia Z Original Android Development] sea2605:
Well I found some issues with kernel tuner (or the kernel itself?).

1. Init.d script isn't working, so all changes only stick after switching to the "set changes after full reboot"-setting.

2. If I set the voltages, then cpus clocking and governors(wheatly) then immediately exit kernel tuner the settings stick. BUT non of the cpus will ever go to sleep/offline (checked with system monitor several times). I do not have activated the htc one workaround-setting in kernel tuner (which keeps the cpus always online and might be some mpdecision thing)... I think cpus which are always on will drain more, even though they are underclocked and undervolted... Any solutions?!

For testing purposes I opened kernel tuner (after undervolting and underclocking then exiting it) and manually switched cpu3 offline (see screenshot). Thats working...but it wont turn on until I manually switch it on again...

So right now I only have only bad options...

Either cpu0 to 3 always on, or switch cpus off completely...

Ps: And I was wondering why I didn't get alot more battery life, although I underclocked and undervolted alot...must have been the always-on-cpus

Edit: Sorry, uploads not working
[Xperia Z Original Android Development] sea2605:
Heres the screenshot
[Xperia Z Original Android Development] Dsteppa:
I don't hope that it was a serious question. If it was, then you'd be better off asking Sony devs and not Doomlord.
[Xperia Z Original Android Development] [NUT]:
The official Sony kernels are signed with the same drm keys that get wiped when unlocking your bootloader... It's ok to run a Sony kernel on a unlocked device but it's impossible to run a 'signed' custom kernel as the key for verification doesn't exist anymore!
[Xperia Z Original Android Development] Dsteppa:
Why was I quoted?:p

If anything like that could be done then I guess it could be done by the Sony devs. Wouldn't it just be a matter of signing the drm keys to a kernel? For example signing the drm keys to Doom's kernel. That way the phone would see Doom's kernel as stock, but still have these extra features.
[Xperia Z Original Android Development] nielneal:
srsly it wud be osm to use the doomkernel on locked bootloader......as when i was on Xperia X10...the doomkernel was the only kernel which i alwys used on locked bootloader...

hope so he will make one for locked bootloader....but maybe in future i would unlock the bootloader when the TA.img concept is cleared and can retain drm keys at unlock level;)

and thank you so much doomlord for developing...hats of to you;)