yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] zacharias.maladroit:
well, the issue with our "highly optimized" phone (or Android, etc.) is that everything below 1248 MHz (even 1.3 GHz) or 960 MHz without longer duration (60-150 ms ?) is pretty much "laggy"

the problem is that it's not throughout the phone / OS or apps,

but each app can behave differently,

e.g. Pyrope browser is most of the time smooth, but when heavy pages with java-script, videos and other "multi-crap" come into play it's laggy as it can get (very much so),

then there's Kernel Adiutor / Mod (the old UI) which is pretty much all of the time laggy,

the launchers, etc.

[MENTION=5033594]korom42[/MENTION]

do you really want to keep the filesystem barrier-handling disabled and commit interval at 60 seconds ?

that's 1 full minute in which data can get lost (!),

also the delalloc and disabled da_alloc handling (noauto_da_alloc) screams for data corruption - sooner or later

Been there, done that, not sure why the same "old" tweaks are being propagated over and over again throughout XDA :/

(e.g. ro.* tweaks supposedly have no effect since a ro [read only (sic!)] setting by definition can NOT be changed)

Then: what's up with those attempted chmod permission changes ?

The have NO effect whatsoever and if anyone took the time to actually look through terminal output it would have been long been removed until now ...

We have the wcd9330 ASoC / codec btw :)

Do those SYSVIPC related changes even have an effect with non-stock kernels when SYSVIPC is NOT compiled into the kernel ? (haven't taken a look if those knobs still exist)

In any case: those tweaks are highly interesting !

I'm for now staying with the governor part only,

our scheduler also might need heavy tweaking since it seems to behave irrationally / illogically compared to e.g. the M4 Aqua (also big.LITTLE but with both Cortex A53 and the power consumption is worlds, significantly lower),

also the power consumption during music playback is unnaturally high (probably better with these governor tweaks, but still - the default should be really working nicely ...)

[MENTION=7835385]TheVan28[/MENTION]

take a look if the following changes work better for you:

https://xdaforums.com/showpost.php?p=64279960&postcount=2
[Xperia Z5 Android Development] korom42:
Did actually try it or just judge it it's slow because it's on 384 most of the time ?

On stock 7.1.1 here with stock kernel having no slowdown or lag at all

Hey man,

Thanks for helping will take action right now and release a corrected version

- For permission changes, well at least it's worth a try I found many modders using them changes before applying the new settings so did I

- For governor profile it's excellent .. on stock saves a ton of battery juice with no lag or so whatever (edit : please check new version 1.5 I corrected some stuff)

Also you might a very interesting profiles from Project Zhana OP3 Port by@deani77can be found here

well-known to give great smothness and very battery friendly I'm going to give them a try for next few days and compare .
[Xperia Z5 Android Development] :
Nope, i tried it for at least 1 hour and everything is lagging...

Also it's not 384 most of the time... it's always... even if i open a benchmark it stays at that clock speed
[Xperia Z5 Android Development] korom42:
Alright just revised governor tweaks corrected some errors .. now any lag issue should be fixed

try v1.5 and let me know how it goes .

EDIT done a quick geekbench test with fsc+ 2.2 thermal engine ..even faster than stock and still saving battery

Other tests for untouched stock rom can be found here
[Xperia Z5 Android Development] :
Ok thanks

Also... are you using the stock kernel? i tried it on Zach's but now i reverted back to the old AndroPlus because for some reason the battery and performance is worse with zach's

maybe that could be the problem?
[Xperia Z5 Android Development] korom42:
For me I am using latest stock firmware E6653_32.4.A.0.160 (android nougat 7.1.1)

There's no zach's/androplus kernel for that rom so I am still using stock kernel rooted

I guess you're on still MM or older nougat rom .. even tough this mod sould work on any rom/kernel :)
[Xperia Z5 Android Development] crisout:
I have the same problem, I already has installed Magisk's module and Kernel adiutor and I can't get the log file, suggestions? :confused:
[Xperia Z5 Android Development] korom42:
New version is up v2.2 please update.. click here
[Xperia Z5 Android Development] nreuge:
[MENTION=5033594]korom42[/MENTION]

In your gov script:

echo 50000 > /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time

Actually, the value in HEIMDALL v5 is 80000.
[Xperia Z5 Android Development] crisout:
Great! Looks like is working, I have the log haha, thanks!

My question is, do I have to install something to make this works? I already installed Lxt and thermal engine :P

I have null knowlege about programming but I can follow instruccions :p
[Xperia Z5 Android Development] korom42:
Nice catch .. will correct in next ver

Alright all good ! and NO you don't need to install anything else.. just flash and enjoy and always refer to the thread for any updates/news :o
[Xperia Z5 Android Development] crisout:
Deleted.
[Xperia Z5 Android Development] tge101:
Verified that init.d is working on Carbon. I don't see any lag but I'm pretty sure my battery is draining faster than it did without this.

The Gap in the screenshot is when I flashed this.
[Xperia Z5 Android Development] korom42:
Like said in main thread notes .. these tweaks are made for stock rom .. on non-stock rom results can be better or worse

[B][COLOR="Red"]• Some users on non-stock roms using custom kernels are reporting incompatibility issues ..
please note that this mod was created for stock ROM so use it on other roms at your own risk ..
results can be better or worse !
[/COLOR][/B]
[Xperia Z5 Android Development] Der-WU:
Hello there.

Do anyone know a way to use init.d without root?

I want to use this patch. But with root my Banking app stop working. No way to get it running . ( Tryed root hoder & Magisk way to hide root, but the Banking app get restarted on opening every time )

so i searching for a way to use it without rooting my phone....

thX
[Xperia Z5 Android Development] Mondor1979:
Your banking app will keep on working perfectly with magisk and drm fix stock kernel. You should use magisk hide properly configured to work. I have banking app as well and it is working.
[Xperia Z5 Android Development] dennis2wewwew:
FALSE

thanks! already flash the init and the file, but after i reboot my device and check for safetynet status on magisk manager the safetynet becomes FALSE. Also at this point my playstore status is certified yet after clearing the data in settings and checking the status in playstore in became UNCERTIFIED. try to uninstall the init then reboot all comes back to normal.

any solution enabling init without losing safetynet? ty in adv.
[Xperia Z5 Android Development] colorado48:
If you're currently using AOSP roms, it's a no go for the current method, unless the OP comes up with another way of enabling init.d (aosp roms tend to be more delicate with the SafetyNet tripping I guess, somebody please educate me on this)

However, with stock 7.1.1 you can use the mod just fine (SafetyNet is still intact for me on 32.4.a.0.160 with Magisk 14 after using OP's init enabler).
[Xperia Z5 Android Development] Mondor1979:
A kind of disaster here after applying this mod on stock. 160 ROM. 1 hour of SoT and 8 hours of standby drains batt from 100 to 20%. On stock I had 4 hours of SoT and 48 hours of standby. ((
[Xperia Z5 Android Development] nreuge:
[MENTION=5033594]korom42[/MENTION]

HEIMDALL v5 is great, it's the best gov profile I've tested on Z5 so far, perfect balance beetween battery and performance :)

I don't use the other tweaks except some of your build.prop tweaks that I used a few days:

setprop power.saving.mode 1

setprop ro.config.hw_power_saving 1

setprop ro.ril.disable.power.collapse 0

setprop ro.ril.power_collapse 1

setprop power_supply.wakeup enable

setprop ro.com.google.locationfeatures 0

setprop ro.com.google.networklocation 0

setprop pm.sleep_mode 1

One of these props forced reboot my devive randomly (typically once a day). Any idea ?

Note: rom HaoZeke's crDroid version HZ4
[Xperia Z5 Android Development] korom42:
New version is up 1.6 with bug fixes hopefully fixes drain on some roms

Very strange you must be using something else aside this mod .. please do not combine mods as said in the notes and a fresh rom install is recommended

Not sure ... no reboots on stock rom and kernel though maybe you want try switching to your rom stock kernel if you are using zach kernel and see if that helps :good:

Currently my init.d enabler is breaking safetyNet on some devices .. I am aware of that and looking forward fixing it
[Xperia Z5 Android Development] crisout:
Thanks, I'll be waiting! :D
[Xperia Z5 Android Development] Mondor1979:
Not a single mode more, fresh .160 installation. Now upgrading to the latest .54 ROM.

Unfortunantely I can't stand the phone working 7 hours at standby mode, so I will use more common methods (greenify etc) ... Sorry for that.

As for safety net, there is the very easy way to fix it. Just reinstall busybox version 27.2 after each reboot that will return safetynet back to pass state. I use meefik and that helps.
[Xperia Z5 Android Development] korom42:
Hey, thanks for feedback you said you having extreme idle battery drain

I do not recommend using Greenify or other stuff with this mod for compatibility reasons.. the only thing that works and I can recommend is only naptime

If that's not the case it I am suspecting mobile cellular drain since fast dormancy doesn't work well for some regions

If you decide to go use my mode again .. try to include screenshots of battery stats that would help :fingers-crossed:

and I'll check that busybox method
[Xperia Z5 Android Development] parydia:
Hello, Is it working on 7.0 ?
[Xperia Z5 Android Development] sarp41:
[MENTION=5033594]korom42[/MENTION] Greetings,

Should I flash your FSC Thermal Fix first then flash this LXT or the opposite way? Does it matter?

Thanks.
[Xperia Z5 Android Development] sirdoha:
It doesn't matter. The 2 mods are independent
[Xperia Z5 Android Development] xcongc:
Many thanks for awsome tweaks from you.

LXT + FSC tweak for battery and still smooth.

FSC only if you prior performance.

Both are better than stock.

What bother me is that i always get about 1200 single/ 2400 multi core in Geekbench4 at best (Stock 7.1.1/ .160 + stock kernel + FSC 2.2), never get 1300/3500 like your test results.

And when battery about 30% only get 900/2200 score.

Is there something wrong?

FSC set 4 big cores on. FSC+ set only 2 big cores on?
[Xperia Z5 Android Development] gorbzzz:
Is this ok with the latest version .54? Coz i want to update then flash this if its fine. And if not i wud stick to my current version .160. Thanks!
[Xperia Z5 Android Development] korom42:
Just close backgrounds apps and let device cool down for 10 minutes before starting benchmark stress tests

Sure you can update then reflash the mod it will always work ;)
[Xperia Z5 Android Development] WookieLance:
I take it that this won't play nicely with LSpeed or Greenify Apps.

What exactly do these scripts touch? as I imagine Lspeed would have some hand stuff still. Which should not conflict.

Am quite interested in this as I'm tired of loosing 10 percent battery whole doing light gaming for 20mins.

Anyone tested this on Sumire Rom?
[Xperia Z5 Android Development] korom42:
New version is up 1.7 with bug fixes and improvements :)

You can give it a try and compare, uninstall any other mod/tweaks before flashing .. if it doesn't work well you or something goes wrong just use the remover zip :good:
[Xperia Z5 Android Development] xcongc:
Performance improve noticeably in v1.7.
[Xperia Z5 Android Development] Mondor1979:
Will try this mod once again. Just installed it on the last stock 1.54 7.1.1 Android. Will test and report results.

1) Busybox still needs to be installed after each reboot in order to pass safety net.
[Xperia Z5 Android Development] Rony1414:
Z5 Dual

Please. help me with flashing those zips.I can't understand that .I have stock rom and No custom recovery .Is custom recovery needed.If it is then bootloader is to be unlocked then I warranty will be voided.I would be very thankful if anyone guide me the whole.Just steps.
[Xperia Z5 Android Development] Mondor1979:
Recovery is not needed, but root is needed. And init.d support. No way to get root on Android 7 with bootloader locked. So you need to unlock bootloader any way. Which Z5 do you have?
[Xperia Z5 Android Development] Rony1414:
I have Z5 dual E6683 with N 7.1.1.. Help me with init.d support.
[Xperia Z5 Android Development] Mondor1979:
Are you ready to open bootloader and get your device rooted?
[Xperia Z5 Android Development] seccenar:
Hi. E6603 Android 7.1.1 32.4.A.1.54 TR

LXT v1.7 with FSC v2.2 can we build together? Is it a problem?
[Xperia Z5 Android Development] parydia:
It work fine
[Xperia Z5 Android Development] Tan Jun Hong:
sorry, im new here. Do you flash it through custom recovery or magisk?
[Xperia Z5 Android Development] serenize:
Recovery.
[Xperia Z5 Android Development] Tan Jun Hong:
alright thanks, now another problem, anyone have an unrooted kernel? i cant get snapchat to work with magisk hide. Profile mismatch. Dk why.
[Xperia Z5 Android Development] WookieLance:
Na, sorry. Easiest way to so that is by using a computer, install BlueStacks3 then download Snapchat from playstore. Log into Snapchat inside BlueStacks3 then follow any of the easy to Google root methods for bluestack3 use TitanumBackup to export the "data" portion of the app then copy the backup too mobile and use TitaniumBackup to install the data overwrite existing app data. Keep the backup though as you'll need it to login on any rooted device.

Of course you can do it via mobile too same way as above, you just can't login too Snapchat with root you can however use Snapchat for as long as you don't log out after root.
[Xperia Z5 Android Development] Mondor1979:
Just read several messages and find the solution. In order to pass safety net and make magisk hide work you only need to install meefik busybox from Google play. Exactly this busybox version. And you should do it everytime you reboot the phone. That action fixes safety net and makes magisk hide work.
[Xperia Z5 Android Development] Mondor1979:
As for my test of this mod, plz find screenshots attached. This new versions seems to be much better then previously tested 1.5 version, but it is something wrong with system. I can not identify what is draining battery so fast as it is covered by system standby consumption. As you can see, everything was good enough for several hours, but after that power consumption sky rocketed... SoT is less than 3 hours.

PS Used to have more than 50 hours if standby with 3,5 hours of SOT on the stock rom without mods and with only two applications for battery testing and saving (GSan battery stats and Greenify). Once again, I'm not using it with this mod., but it seems that I should get back to stock kernel without any mods with my long tested methods of battery saving. I suppose this mod is not for me in any way.
[Xperia Z5 Android Development] arul20be:
I have been tried both the ways, (kernel adiutor and flashing init.d test file)

But no luck, the test file is not created in /data

I'm using v1.7 and a freshly installed .54 fw. Rooted using SuperSu and official xposed Framework.

Z5, e6683. Any help are appreciated. Thanks in advance!!
[Xperia Z5 Android Development] WookieLance:
I'd check for wake locks before testing mods like this. Apps which keep cpu time active are pretty good at rapidly sapping batteries.
[Xperia Z5 Android Development] Mondor1979:
Use normal root method instead of supersu. I mean magisk.

I don't use this mod any more, but magisk work fine. Systemless root works just fine. But don't try to use it after supersu, even if unsu clean performed. reflash boot.img and use magisksu.
[Xperia Z5 Android Development] WookieLance:
I have to say Magisk is a life saver easiest the best root method we have ever had to date for Android and its completely flexible works across almost any device. With virtually zero chance to hard brick just to unlock root.
[Xperia Z5 Android Development] arul20be:
OK dude!! Will try magisk. Actually, I don't like magisk. I felt some complexity in that.

No worries, will try magisk and report back..
[Xperia Z5 Android Development] WookieLance:
Magisk is actually easier than the older supersu methods, at least I was for me.

You want Magisk v14 or higher flash the zip in recovery, reboot. Then install the Magisk Manager APK (make sure to enable "unknown sources" in your devices 'Security' settings tab) from then on too update Magisk you just run the app like any other app on your device (actually it will notify you if there are app updates) you can browse for modules after this and use the hide apps setting Magisk Manager too hide your banking apps and other such things so they don't pester you about detection of root.

You can also browse modules in the manager which can be installed and activated or deactivated or removed later. Such include: Systemless Apps (this allows you to convert any app into your ROM), IOS10+ Emoji font replacement (admit it IOS Emoji are prettier) however there are also other Emoji font replacements, Sony Apps Enabler (this will make things like Sony Album visible in Gplay and update for any ROM)
[Xperia Z5 Android Development] arul20be:
Yeah thanks for the brief dude. I flashed magisk 14.3 and the latest magisk manager is included with the zip. Then, I flashed the init.d test zip and still I don't find that file in /data.

Confused a lot..

I have bad luck..
[Xperia Z5 Android Development] WookieLance:
There is an extra step you need to do to enable init.d
[Xperia Z5 Android Development] arul20be:
What's that dude?
[Xperia Z5 Android Development] WookieLance:
It's on the second post https://xdaforums.com/showthread.php?p=73869285

Under notes, you'll need busybox installed and either flash the Magisk init.d module or use the Kernel Auditor app to emulate the functionality.

You can test if it works by flashing the test script in recovery then look for hr data log file at the mentioned location in the post. Sorry I haven't flashed this myself as I have custom kernel but was thinking about testing it.
[Xperia Z5 Android Development] arul20be:
Wow!! It works.. Thanks for your time and patience dude.. Great!!
[Xperia Z5 Android Development] WookieLance:
No worries, glad that sorted things out for you :)
[Xperia Z5 Android Development] Dajce777:
Can it be used on carbon rom?

Flash the zip and wipe cache?
[Xperia Z5 Android Development] sarp41:
[MENTION=5033594]korom42[/MENTION] Greetings,

I'm using LXT v1.8 with Kernel Aduitor init.d emulator it seems everything works flawlessly except one thing that I noticed lately. Kernel Aduitor says "Deep Sleep" is not being used by cores. In Kernel Aduitor's "unused frequencies" part, I can see "Deep Sleep" expression which I have never seen in previous versions of your work.

I wonder if it is because something like faulty/missing code or just me?

Thanks, Sarp
[Xperia Z5 Android Development] Muhammad amine:
The device has never been in deep sleep even at night :(
[Xperia Z5 Android Development] plusminus_:
Hi! First of all, thanks a lot for these tweaks :laugh:

Since I updated to 1.8 my phone had also been unable to deep sleep. At first I thought it was either because of an update to Google Play Services, or because I had been playing with the target_loads in lxt_gov (trying to get rid of some crackle while listening to music with the screen off), but after returning to the default lxt_gov I was still having problems.

(I should probably mention here that I'm using a Z5C on 32.4.A.1.54 with Magisk + init.d link module + Kernel Adiutor)

After this I suspected that Kernel Adiutor was the problem, because some of the governor tunables/speeds were not updated after rebooting, and the minfree values were incorrect, which was rather confusing! Or perhaps one of the scripts is still trying to run when the phone is supposed to be sleeping? :confused:

But anyway. I believe I have fixed the deep sleep problem by tweaking lxt_misc - I am using a heavily cut down version (removed the build.prop changes, GPU tweaks, low power modes, fstrim, among other things), with a couple of minor changes too:

Ignore this lol

I changed the double quotation marks here to single ones, just to be consistent with the other RAM tweak values (I have no idea if it makes any difference lol). I also removed the semicolon after page-cluster - maybe this was the problem?

echo "60" > /proc/sys/vm/swappiness
echo "8" > /proc/sys/vm/page-cluster;

to

echo '60' > /proc/sys/vm/swappiness
echo '8' > /proc/sys/vm/page-cluster

I also removed everything related to ZRAM apart from the max_comp_streams line, because the code here didn't seem to change anything (the disk size remained at 510MB, for example)

Very late edit: It seems trying to change the ZRAM size is what keeps the phone awake, at least on stock kernel? I tried turning on the 'apply on boot' for VM settings in Kernel Adiutor and after rebooting the phone refused to deep sleep (ZRAM size is the only ZRAM setting available in that part of Kernel Adiutor for me). 'cat /proc/swaps' also failed to return a value, it was just hanging there...

Finally, I replaced the code related to disabling BCL with a single line, after looking for the correct folder :p

if [ -e "/sys/devices/soc/soc:qcom,bcl/mode" ]; then
echo -n disable > /sys/devices/soc/soc:qcom,bcl/mode
fi

to

echo -n disable > /sys/devices/soc.0/qcom,bcl.61/mode

which works now

Oh! I also changed the number at the beginning of the file name (so it's called 01lxt_misc_edit) just to make it different from 00lxt_gov, just in case that was causing an issue, but again, I have no idea if that makes a difference! All I can say is that my phone is deep sleeping again.

+-

---------- Post added at 05:51 PM ---------- Previous post was at 05:45 PM ----------

Oh, btw, I spotted a typo in the blocking wakelocks section!

if [ -e "[COLOR="Red"]/ys/[/COLOR]module/wakeup/parameters/enable_si_ws" ]; then
chmod 644 /sys/module/wakeup/parameters/enable_si_ws
echo 0 > /sys/module/wakeup/parameters/enable_si_ws
chmod 444 /sys/module/wakeup/parameters/enable_si_ws
fi
[Xperia Z5 Android Development] Raven84:
Hello Korom i have send you a PM about this topic, can u help me? Thanks!
[Xperia Z5 Android Development] korom42:
qlright guys thanks for replies .. i just upload new refined version v2 .. please check if all is working fine and [MENTION=8705151]plusminus_[/MENTION] thank you for the feedback and help :)
[Xperia Z5 Android Development] sarp41:
[MENTION=5033594]korom42[/MENTION] [MENTION=8705151]plusminus_[/MENTION] Greetings,

Deep sleep issue still exists for me. Also I noticed few typos in lxt_misc like

and

Thanks, Sarp.
[Xperia Z5 Android Development] korom42:
thanks for feedback I just re-uploaded a fixed version named v2_fixed removed a lot of stuff I suspected to cause issue .. hopefully fixes current problems, if it doesn't I'm probably dropping the dev for z5 since I don't have access to this device anymore
[Xperia Z5 Android Development] sarp41:
Greetings,

Sadly, LXT v1.7 is the most stable version of this mod in my opinion. I mean is the problem remains on v2_fixed. Maybe you can spot the problem if you check both v1.7 and v2 versions. It's up to you ofc if you don't have access to Z5 anymore. Thank you for your work and time.

Sarp.
[Xperia Z5 Android Development] flaxx187:
how many battery can i save ?

do have any tests ?