yashsingh1/xdaforums huggingface dataset:
[G3 Android Development] mostafaz:
Intelli Thermal 2 Parameters Descriptions

some of these parameters only available with V 1.6 and later

* Debug Mask

Writes Everything about Temperature Controlling to Kernel Log , eg: temp, cpu freq cut off, ...

* Frequency Throttle Temperature

Set the Max Allowed CPU Temperature before throttling down in order to cool down the device

* Core Throttle Temperature

Set the Maximum Core Temperature. When temperature reaches defined value, it turns cores OFF in order to cool down the device. It can't be higher than CPU Max HEAT Control.

* Frequency Step

Set the number of Frequency Steps when throttling down performs

* Poll

Set the Temp Pull Timer intervals. The lower value, the more often kernel will check up the CPU temp

* Temperature Hysteresis

Set the Temperature Hysteresis for driver. It calculates temp differences for adjusting the best CPU frequency, when CPU is in stress too often. Do NOT reduce below 10°C!

* Core Temperature Hysteresis

Adjust the Core Temperature Hysteresis Driver by calculating temperature differences and switching cores ON/OFF.

* Thermal Limit Low

Set the Lowest Thermal CPU Frequency Limit, 7 stands for 1.19 GHz, 8 stands for 1.26 GHz and so on

* Immediately Limit Stop

Use The Immediately Freq Limit Stop. It allows to set the Max frequency, when temperature is not rising. It's stressing the driver, but provides higher performance by adding extra 3°C to the global limit. Use it with caution!

#####

If you want see how Your settings are working go forward with this instruction with CAUTION of over heating !!

A Simple Setup is :

set "Performance" CPU Governor

set "Mako" Hotplug with "Load Threshold" 0%

and Copy a Large file (your TWRP backup or some Movie files)

your cpu frequency and Temperature goes up and you can set and test the Temperature parameters.

If you want get better control over it set the

Debug Mask

ON and get the Kernel Log with adb (cat /proc/kmsg) while you set the parameters it will show you the results

* If you set Intelli Thermal OFF, the Built-in driver will take care of Thermal with 72 & 75 degC and Hysteresis 5 degC Limitation as defined since V 1.2 (Also will apply during the boot and control the Heat for Safety in case of I don't set intelli thermal Enable at early boot, see the release Logs)

Thanks Dorimanx, Alucard_24, Faux123
[G3 Android Development] karasumert98:
Thanks for a really great work mostafa and Bullet.Appreciate for efforts.Im looking forward for d855 :o
[G3 Android Development] KittySparkles:
Hopefully the systemless root problems is still getting worked on
[G3 Android Development] nkirk:
What i meant was to if possible to have all tuning parameters at stock values when freshly flashed and share the preffered performance profiles so that the users can apply via synapse?
[G3 Android Development] mostafaz:
Oh

Bullet will release his profile

I'll check to all be at stock

Thanks
[G3 Android Development] mostafaz:
I'm still working on it [emoji106]
[G3 Android Development] bl0odmo0n:
I Hate Battery Life In my G3 :( :@ one Core with zzmove or other governor but i cant get good battery life :( I use telegram and other messanger many time and my battery with 0% brightness only 2h Stay:| sorry for my bad English
[G3 Android Development] Hamada DZ:
hi mostafaz first thank you for the great kernel

when i try to install the U5 and L5 version in my d850 i got an error said :

assert failed: run_program("/tmp/install.sh") == 0

error installing zip file

and the U7 version installs normally

thank you again
[G3 Android Development] mostafaz:
My bad.image size is over

I'll fix that

Uploading v 1.7 (over-clock cpu 2.8 & gpu 657) in a hour.this one will be ok
[G3 Android Development] dcop7:
I had a reboot... Here are the log.

Here are the macro settings

CPU governor Ondemand_sem

Hotplug Mako hotplug

Io scheduler deadline
[G3 Android Development] mostafaz:
Wait for bullet's config n his advices about it.he has social apps too.

I think if you have social apps thus you have wakelock.you can decrease them by some apps and xposed.

We have a powerfull device and FHD display.

Sometimes you need to feed your device if it's hungry to prevent battery drainage. (Psychology) [emoji16]
[G3 Android Development] mostafaz:
hey

thank you so much for providing the log

log is clear and seems not kernel bug or not

please turn thermal debug on to write freq change to the log

seems mako struggled with temperature

[ 839.892583 / 07-09 21:27:46.547] mako_hotplug: all cpus were onlined
[ 840.701172 / 07-09 21:27:47.357] mako_hotplug: all cpus were offlined

that may occur coz of intelli thermal ! (new update)

also let's check the logcat
[G3 Android Development] dcop7:
The phone was hot... I will activate the debug and see...
[G3 Android Development] BuLLeT_93:
Profile was ready, i have to do some little adjustment in UKM and then will release.

Monday for sure this time.

54c during second benchmark run :D
[G3 Android Development] dcop7:
I just had another reboot. With smartmax doesn't appear to happen, or doesn't happen as often. But with Ondemand_sem it happens...
[G3 Android Development] mostafaz:
there is no debug option for ondemand, smartmax have it.

we will get ride of that during the time.

some governor not compatible with our device, but we will check that out

my temp log when enabled is like this

<3>[ 2459.124222 / 07-10 02:46:45.294] pre-check do_freq_control temp[47],	limit_idx[17], limit_idx_low[7],	limited_idx_high[17]
<3>[ 2459.374233 / 07-10 02:46:45.544] pre-check do_freq_control temp[47],	limit_idx[17], limit_idx_low[7],	limited_idx_high[17]
[G3 Android Development] dcop7:
The log I've provided is not good? When I have free time I will try to replicate the reboot again
[G3 Android Development] mostafaz:
It's good but no data about temp control but have mako log about core on off

If you have just with one gov seems thats not stable for us
[G3 Android Development] Simone98RC:
My apologies for my previous post.

UKM v3.8.1/1.3 is working much good (when I wrote the post, I was using v3.8.1/1.0).

The only issue is regarding the maximum frequency, that sometimes switch (probably due to throttling).

It's the first time I'm tweaking all settings without messing up the stability, so it means that [MENTION=5175597]mostafaz[/MENTION] made a great job :)

Ps, enable default OC is too crazy for LG G3, a device that perform almost like Snapdragon 810, with much overheating even in stock conditions.

So please, consider to make OC optional and never enable it by default.

Then, I can't see any comparison between Linaro and other toolchains. Can you explain pro/cons in comparison with U5 and U7?

Thanks much
[G3 Android Development] mostafaz:
It's ok man.credits to bullet for ukm [emoji106]

I can build one ver with oc & one without. No option to select by user instead of setting max freq.it's on the 2.4 at the boot process.(I'll check more to be sure).

Just curious to know the feedbacks [emoji16]

If there is no good impact on benchmarks & specially ui responce there is no need to have that. [emoji6]

Feel free to comment on the kernel.i appreciate [emoji6]

We had good impact with uber & stability with linaro.we seeking for better condition [emoji16]
[G3 Android Development] nkirk:
Dear dev, would it be possible for you to lower the stock throttle temp to around 60c, currently its set above 80c and it does reach 85c+ at the boot process untill my custom settings are loaded. Im slightly concerned because it can sometimes have adverse effects on the screen.
[G3 Android Development] mostafaz:
depends on your usage and what i did with kernel source.

my usage pattern is instagram ,call, text, photography with manual brightness 51%

stock kernel : 4h sot

gabriel : alucard cpu/hotplug : 4:30 sot

gabriel : alucard hotplug & slim cpu : can get more than 5h sot ( smooth profile in first page )

* more performance is not mean poor battery life,it can end up tasks faster, depends on usage ;)

* optimization can eat your battery faster, and can bring more power

you can found good configs in my LP forum

and if you want use zzmoove turn off all hotplugs, it has enabled inner hotplug driver

we can found best config toghether ;)
[G3 Android Development] mostafaz:
sure.

have you seen my config in op ? you can tune thermal driver to get what you want (60 degC).

if you say it is separated from what i say, then i will go for it and fix this :)

see this link, defaul LGe parameters

edit: ok, i'll lower down for stock parameters, thank you
[G3 Android Development] nkirk:
Thanks for the rapid response, really appreciate it.[emoji106]

I currently use kernel auditor mod to manipulate the settings, my concern was the slight window between the boot up and the config loading process. Thanks again for fixing it. Awaiting for the next version.
[G3 Android Development] BracesForImpact:
Any chance of a D850 version?
[G3 Android Development] mostafaz:
exfat implemented ( for next version )

FulmicsROM:/ # blkid /dev/block/mmcblk1p1
/dev/block/mmcblk1p1: UUID="6FAA-764C" TYPE="exfat"

yup, see you soon, god willing ;)
[G3 Android Development] rcherif38:
i have an issue and need help

once i flash the kernel (UBERTC 7 - elementalx - opt )

i get bootloops even when phone connected to charger ( to exclude battery issues)

and when i reflash the kernel i was using before every thing return normal

i am using d855

fulmics 5.3
[G3 Android Development] p_a_r_s_a7:
Hi, i have g3 32 and rom n&n 7.1

Which kernel is good for me u5 or u7
[G3 Android Development] mostafaz:
hey :)

gcc 7 in experimental, if you face any problem you should (can) use stable gcc5 version,please.

this kernel has no patch to exclude 16 & 32 GiB versions like multiboot, thus you can use any version you feel can get better results,and n&n rom ! i should test it. be my guest ;)
[G3 Android Development] p_a_r_s_a7:
Only batteri is importen for me
[G3 Android Development] mostafaz:
Sure. Your rom features also can eat energy like launcher. Try use stock one. Back in days we had better battery rezults with cloudy 2.2 which has stock ui. But i dont think it's much important to deny beautiful ui for some battery. We will get better results.be patient

For start use uber-5 that have no optimization
[G3 Android Development] Simone98RC:
[MENTION=5175597]mostafaz[/MENTION] happy to see you're returning :)

I'm very proud of your work... but I'm referring to Lollipop releases.

Hope to try the new MM kernel asap

MOD EDIT: Please do not compare others' work in other threads.
[G3 Android Development] Emu:
Mother of god... Alucard on a stock kernel... Are you a wizard? :D

Can't wait for the D851 version.
[G3 Android Development] niko626:
Amazing Kernel! I've been following you since the LP days. I hope you remember me senpai (my batter broke back then upon testing).

Isn't it that Slim is more performance based than Alucard. But ElementalX is more conservative than the two. What config are you currently using now? The smoothness or the simple?
[G3 Android Development] Marcovanbasten:
Hi mostafa, thanks for your.

Like many, I am mostly interested by a better SOT.

Regards.

Envoyé de mon Nexus 7 en utilisant Tapatalk
[G3 Android Development] Fragin 11:
[MENTION=5175597]mostafaz[/MENTION]

Will your teammates - [MENTION=1698538]BuLLeT_93[/MENTION] and [MENTION=4124985]horsetastic[/MENTION] return too?

LG G3 D855

ROM: RR 5.7.0

Kernel: aCC Kernel v1.6

Recovery: TWRP 3.0.2-0
[G3 Android Development] horsetastic:
I don't have a G3 any more. Well I do, but the screen is so destroyed that the touch doesn't work on it any more :(
[G3 Android Development] :
What is your phone now?
[G3 Android Development] horsetastic:
I am using a Lenovo K3 Note until I can get something better again.
[G3 Android Development] BuLLeT_93:
Time to refresh my G3 after some time :) Welcome back my friend ?
[G3 Android Development] dcop7:
I must say that with settings from previous versions I used but now with linaro... It is really smooth. I really like it! Congratulations for a great work :)
[G3 Android Development] Emu:
Flashed the linaro version of 1.6. Works beautifully on Fulmics 5.3 D851 using Kernel Adiutor Mod. THANK YOU. :)
[G3 Android Development] Simone98RC:
@mostafaz sorry for my second post, it may be a bit OT.

When my phone boot up, music player (Poweramp in my case) automatically starts opening the notification.wav file, but return the error "folder is missing/unreadable: /res/misc".

I checked in Settings: the notification sound is properly working, the ringtone sound too.

Then I tried to find something in logcat, but there is no reference at all.

I modded enough before encountering the error, tell me if some of my operations may be the cause (your kernel could be involved):

1) I flashed Linaro v1.6;

2) I tried to make SuperSU v2.76 a system app, but after automatic reboot it's still an user app;

3) Always in SuperSU app I accidently checked the option "Authorize system user", but unchecked it after some second (as in default condition).

LAST NEW: a Fulmics user is confirming that same issue with your kernel updated to v1.6.
[G3 Android Development] darisito:
any upload mirror for the latest linaro d855? my download is always 40kb big
[G3 Android Development] mostafaz:
Hmmm [emoji16]

Am not good at apps

That problem coz of i planned to play a sound when boot completed.seems not working anymore & running at root mode.

I hope fix & update links tomorrow

Thanks & sorry [emoji16]

Edit:i didn't do anything to get or check root or anything but setting kernel parametrs to cpu & hotplug & thermal
[G3 Android Development] manchucka:
Oh, dear. Flashed 1.7 L on vs895 and now i have the dreaded green screen "DemiGod Crash Handler : HW Reset !"

Any way out of this? I can get back into TWRP and flash another kernel but the same error occurs on boot. Gulp.
[G3 Android Development] mostafaz:
Sorry for that

Here is no problem.maybe depends on your pvs

I think you should flash kdz if no hope to get back.

Also there is stock kernels in fulmics zip package in case of restore the stock .just replace in my zip files

http://cloud.tapatalk.com/s/578185d8c7995/Screenshot_2016-07-10-03-44-23.png?
[G3 Android Development] Emu:
Wow 1.7 already!?! Ok. Perfect timing I just formatted the partitions to f2fs one by one. But, I got conflicts with Open Gapps and Fulmics when I tried to flash them to f2fs so I formatted /system back to ext4. Now it works. :D

It seems that some packages and ROMs are designed to run on ext4?
[G3 Android Development] mostafaz:
I just heard that rom should support & aosp have commit on rom thus it'sttrue [emoji6]

Someone may test it with stock rom !

Also kernel should support it

I dunno for apps !!
[G3 Android Development] mostafaz:
[MENTION=2899301]manchucka[/MENTION] hows it going bro ?
[G3 Android Development] manchucka:
Bit tired, really. Oh, with the phone? I dirty flashed 47a stock rom with inbuilt systemless root and all now seems fine. FYI, 1.6 kernel broke systemless root, but that was easily fixed by flashing this systemless SuperSu, extracted from the vs895 rom:
[G3 Android Development] Emu:
Btw I had the green screen too. Disconnect from charger and reboot has helped me. I have not seen the issue since.
[G3 Android Development] KittySparkles:
You mean you can just reflash the systemless root file you posted and it'll bring back root?

Edited -

Confirmed that it works. Praise be. Going back to stock.
[G3 Android Development] mostafaz:
What happens if you flash it over other roms? I mean may include this in vs985 package to flash over all roms ?

Thanks bro
[G3 Android Development] mostafaz:
1.6 or 1.7 ? Which toolchain l5 & u5 & u7 ?
[G3 Android Development] manchucka:
Feel free to use it. It's not my work. I hope including in the vs895 package solves the singles systemless root problem.
[G3 Android Development] KittySparkles:
It does.
[G3 Android Development] matze779:
I have a random Reboot with v1.6 U5. Here is the logcat:

https://drive.google.com/file/d/0Bwlw4WqQAtn2SS14dEtBUTl1eVE/view?usp=drivesdk
[G3 Android Development] Emu:
1.7 L5 for D851. But I have never seen the issue since. It was only while optimizing apps. I think it happened because the phone got too hot.
[G3 Android Development] mostafaz:
after reboot post las_kmsg here,please

thank you
[G3 Android Development] cultofluna:
Green screen issue after flashing 1.7 L7

Had to remove battery to boot again....

And then tried ondemand sem and i get reboot...and again green screen....

Will try later and post last kmsg if is possible....

Running now on slim governor ...very smooth

Hope few issues fixed on next update...thanks

D855

LIMITLESS V10
[G3 Android Development] mostafaz:
Thanks bro

Do you have this issue just with 1.7 L5 ? Does same happena with 1.7 U5 ?

Or with 1.6 ?
[G3 Android Development] cultofluna:
I didn't try 1.7 U5 and on 1.6 had no issues....

D855

LIMITLESS V10
[G3 Android Development] cela_elis:
I just tried 1.7 L5 and got the same green screen, d850.

Went back to 1.6 U7 and everything is flawless again
[G3 Android Development] mostafaz:
Thanks guys

I'll remove 1.7 till next update.I'm on 1.7 L5 . seems needs more code update [emoji6] [emoji106]

Thanks
[G3 Android Development] cela_elis:
Thanks for the hard work, appreciated
[G3 Android Development] d9ny:
Would you share your profile setting please....thanks anyway
[G3 Android Development] dcop7:
Just had another reboot with ondemand_sem... Maybe is not compatible. The phone wasn't hot..
[G3 Android Development] mostafaz:
ya,maybe

let's try it with more update on cpu & scheduler at later release

thank you
[G3 Android Development] Brady Lin:
Problem

After flash mod and v1.6 L5, synapse looks strange. It seem kenrel is LP not MM. Can someone help me? Thanks.
[G3 Android Development] Yonatanl2:
1.7 works great for me, lets hope I don't experience the green screen :)
[G3 Android Development] BuLLeT_93:
Go to TOOLS section and Restart Synapse, i have this reply pinned in Cliptray :sly:
[G3 Android Development] GUZGUN:
Where is 1.7? I only found 1.6

Στάλθηκε από το LG-D855 μου χρησιμοποιώντας Tapatalk
[G3 Android Development] theoverfiend:
[MENTION=4794809]GUZGUN[/MENTION]

Removed by Dev
[G3 Android Development] Brady Lin:
[MENTION=1698538]BuLLeT_93[/MENTION] Thank you very much. :)
[G3 Android Development] nkirk:
Clear data and hit restart synapse from the app itself

Edit: Already answered.
[G3 Android Development] tamalanrea:
can someone share setting for synapse? iam really dont know anything how to make good setting on synapse, i just want better battery life on my LG G3 D855 with stock MM and Gabriel Kernel 1.6. thx
[G3 Android Development] Suigintou:
[MENTION=6473850]tamalanrea[/MENTION] Mostafaz joined his settings in the OP ;)

[MENTION=1698538]BuLLeT_93[/MENTION] Do your LP mods work with MM?
[G3 Android Development] BuLLeT_93:
Some users reported that works fine :)
[G3 Android Development] Suigintou:
You don't use them? Any reasons? If I'm not too curious ^^'
[G3 Android Development] BuLLeT_93:
Because cause some ui lag to save more battery, and now i prefer smoothness :)
[G3 Android Development] Suigintou:
I can't wait to see your released profil(s) :)

Gonna have smothness with the most battery you can juice out of it :D Or sort of :)

Thx for your good work
[G3 Android Development] karasumert98:
im really exiced.When u will share ur profile :o ? with new version ?
[G3 Android Development] Suigintou:
:) cross your fingers
[G3 Android Development] BuLLeT_93:
UKM V1.4 and Profile Uploaded!

UKM v1.4 Uploaded

Changelog:

- Re-writed and updated code to THERMAL section

- Splitted Internal & External Read-Ahead Size

- Added Live Entropy Value under I/O section

- Added READ\WRITE-WAKEUP THRESHOLD tunables for Entropy under I/O section

- Updated BACKLIGHT CONTROL to DISPLAY Section

- Added ZRAM size control under MEMORY section (slower the apply of Synapse settings at boot, don't open Synapse until "Synapse Boot Completed" popup appear)

- Added OVERCOMMIT RATIO, PAGE CLUSTER, MIN_FREE_KBYTES and OOM_KILL_TASKS under MEMORY section

- Replaced RAM BOOST FREQUENCY with RAM BANDWIDTH OPTIMIZATION under MISC section (More read/write RAM speed)

- Added hidden boot code to mount partition with noatime & noadirtime flags to increase performance

- Cleaned unused code

- Reduced a lot the UKM size

Install all the 3 ZIP files with numeric order!

After UKM installation, open Synapse, go to TOOLS section and Restart Synapse.

Personal Profile Released

U can find the screenshot's settings for Synapse under a folder, unfortunately i can't release a profile ready to install because some new settings don't apply correctly using profile :(

TIPS:

- Disable all the Hotplug and leave enabled only Alucard Hotplug

DOWNLOAD

Enjoy!

​
[G3 Android Development] shaki_zto:
L5 , U5 , U7 What is different ???
[G3 Android Development] dcop7:
Check here:
[G3 Android Development] Suigintou:
[MENTION=1698538]BuLLeT_93[/MENTION] you're my hero :D (even though Mostafaz is my favorite :o )

@ shaki_zto It is about synapse, more options, and he released his own profil.

Edit: Misunterstood
[G3 Android Development] ariesfung11:
Thank you for the update and profile sharing!!!!!
[G3 Android Development] Suigintou:
[MENTION=1698538]BuLLeT_93[/MENTION] Any preference for U5, U7 or L5?
[G3 Android Development] BuLLeT_93:
Linaro 5, real smoothness ;)
[G3 Android Development] sharp3r:
Thanks [MENTION=5175597]mostafaz[/MENTION] for this kernel.

The issues i had with v1.6 are:

Apps and system audio files show a window to select a media player (usually played by the system).

The double tap to unlock sometimes doesn't work (I'm not using knock code)

D855 32Gb
[G3 Android Development] Mercz23:
Ok with bullet profile phone is different :D

---------- Post added at 04:46 PM ---------- Previous post was at 04:45 PM ----------

One offtopic how to remove 3dmint battery mod or how to disable ot :(
[G3 Android Development] sachs:
Normal here....D851.
[G3 Android Development] Simone98RC:
[MENTION=1698538]BuLLeT_93[/MENTION] , since you're the "Synapse employee" :)

I'm encountering that very annoying shut off when device going to high temperature for a long time.

It may happens after many hours of overheating or some days, it depends. I need to pull out battery since power button become useless (same experience also with Galaxy S3).

By modding the kernel, can I prevent shut off by unchecking something?

For example, what's the Temperature Safety checkbox?

Thanks in advance
[G3 Android Development] BuLLeT_93:
I think u need to reflash ur rom over, without wipe :)

Feel smoother? :D

Hi man, u need to go to THERMAL section, activate Intelli-Thermal Optimized, activate both core control, set frequency and core throttle to 68/70 (or 66/68 ) respectively and enable Temperature Safety :)
[G3 Android Development] Simone98RC:
When I keep the default core throttle, it lag frequenty.

In "Deep South" Italy, with 30 °C and higher temperature, device often overcome the 68/72 °C after minimal usage.

So I'm using 75/80 °C, that wouldn't be risky.

But... my real question is: what setting is putting off my device in heating conditions?

Can I disable some safety check at my own risk and prevent that behaviour?
[G3 Android Development] BuLLeT_93:
Vivo a Frosinone e stiamo tutti i giorni a 35/37c, ho il G3 da quando uscito e posso dirti con certezza che l unica soluzione per stare tranquillo é mettere un pad termico all interno del telefono sotto la cpu, guadagni 10/15c di media.

Sorry to all 4 the language!
[G3 Android Development] Simone98RC:
Quindi gli spegnimenti improvvisi del dispositivo vengono gestiti lato hardware, tramite software è impossibile aggirare la protezione (a mio rischio e pericolo)?

Smontare il dispositivo? Mai fatto sinora e sono impaurito dagli scaricamenti di responsabilità delle case produttrici (LG e compagnia bella) :rolleyes:

So the shut off events are managed by hardware, so I'm unable to workaround via software that protection (at my own risk)?

I've never teardowned a mobile phone, I'm afraid for the warranty refusing of trademarks (LG and any other one).