[Kernel][GPL] EMk-03 [N5100/10] - Galaxy Note 8.0 (Tablet) Android Development

Presenting EM Kernel or EMk for short for the Galaxy Note 8.0 (N5100), other variants will face development once this kernel is reported working. Features are pretty basic for now, haven't made any extensive changes, but expect them soon . All of my developments for the Note 8.0 will be faster and better (considering that I won't have to request for testers and files), if I have the device in hand, so if you think of me as worthy, consider making a donation, every single one is highly appreciated
My Github: github.com/emwno
You will my custom recovery i.e CWM to flash this kernel.
Features:
I will only be listing major or noticeable changes. Read commits @ github for details
Overclock Support
Intelligent write-back
Network speed tweaks (crypto)
I/O Schedulers: Sio, Row, Zen
Governers: InteractiveX, Savagedzen, Zzmoove, PegasusQ, Lulzactive, SmartassV3 (only listing which I've added)
ARM specific optimizations
Triangle Away support
Boeffla Sound support
Google Snappy drivers
Sudden Death addressed*
Releases:
EMk-03: N5100 | N5110
Changelog:
03
OC fix
Attempted Wifi fix for N5110
Governers added: Lulzactive, SmartassV3
Some more IO's (dont remember names)
Roll back to stock voltages
Boeflla Sound support
Triangle Away support
Lz4 compression (faster boot)
02
Support for N5110
Various build fixes
Zzmoove governer
Row / Zen IO Schedulers
Fixed up write-back
PegasusQ governer alterations (github)
AIO temp remove
01
Initial release

I am a giant knucklehead - I read "note 8" and didn't pay attention to the model #.
The test was done on a 5110 - I somehow missed the actual model # it was written for.
It does sound like the data reminded emwno about a detail, though.
That said, the restore technique does work (and I didn't softbrick my device.)
Thanks for taking a run at this!
The new boot.img took a really long time to get from initial Galaxy model # screen to the blue and white Samsung logo on first boot.
Wifi not working with the new kernel on first or second boot.
Did in fact boot, though. Antutu thinks cpu metrics are a hair slower than stock, and the UI feels a little slower also.,
A recovery zipfile would be super cool.
I mounted the external sd, then used
dd if=/dev/block/mmcblk0p5 of=/external_sd/bootrecover.img bs=1M
to backup and
dd if=/external_sd/bootrecover.img of=/dev/block/mmcblk0p5 bs=1M
to restore and now have wifi again.

roustabout said:
Thanks for taking a run at this!
The new boot.img took a really long time to get from initial Galaxy model # screen to the blue and white Samsung logo on first boot.
Wifi not working with the new kernel on first or second boot.
Did in fact boot, though. Antutu thinks cpu metrics are a hair slower than stock, and the UI feels a little slower also.,
A recovery zipfile would be super cool.
I mounted the external sd, then used
dd if=/dev/block/mmcblk0p5 of=/external_sd/bootrecover.img bs=1M
to backup and
dd if=/external_sd/bootrecover.img of=/dev/block/mmcblk0p5 bs=1M
to restore and now have wifi again.
Click to expand...
Click to collapse
Man..... i forgot modules....
Anyways it will be slow until all the backports are complete. thanks for the report!

emwno said:
Presenting EM Kernel or EMk for short for the Galaxy Note 8.0 (N5100), other variants will face development once this kernel is reported working. Features are pretty basic for now, haven't made any extensive changes, but expect them soon . All of my developments for the Note 8.0 will be faster and better (considering that I won't have to request for testers and files), if I have the device in hand, so if you think of me as worthy, consider making a donation, every single one is highly appreciated
My Github: github.com/emwno
You will my custom recovery i.e CWM to flash this kernel.
Features:
Overclock Support (upto 1.8Ghz)
Intelligent write-back
Network speed tweaks (crypto)
I/O Schedulers: sio
Governers: InteractiveX, Savagedzen (only listing which I've added)
AIO backported (from linux 3.6 kernel)
ARM specific optimizations
ARM Topology enabled
Modified LMK
Releases:
EMk-01: http://d-h.st/mDP
Changelog:
01
Initial release
(read features)
Click to expand...
Click to collapse
Great Job! Now we need one for the N5110.

An observation on the Samsung kernel and OS: for a good bit of time after a reboot, the cores are all running flat out at 1.6 ghz.
The immediate cause is apparently that the device is scanning the internal memory and sdcard and this is a somewhat processor-intensive task.
What surprised me, though, was that after installing cpu usage monitor, only one of the cores was doing most of the work - but all 4 were running at 1.6 ghz for a lot of the time.
Hopefully I'll be restarting less this evening and can look to see if this is true in more casual usage. If others are noticing this, it seems like better multicore management by the kernel would go a LONG way to ameliorating the relatively poor battery life.
The device uses the pegasusq governor, which does support core hotplugging, but is either just not that good at doing so or isn't configured to release unused cores very quickly.
I haven't had a chance to compare the settings I have with the explanations in this excellent post on the governor and what it's doing:
http://forum.xda-developers.com/showpost.php?p=24233103&postcount=3

I have yet to modify governers for specificds such as battery life and speed. Its scanning because of the intelligent write back, which does the major work faster with all cores at while booting.

I spent some time looking at governor settings last night.
When I finished, I'd used the device for about 5 hours, did 6 reboots and a number of benchmark cycles and had gone from 90% charge to 45% charge.
So if that holds up, I'm getting about 3 hours more per cycle. One thing I noticed: if you run an Antutu benchmark, you may want to reboot your device - Antutu seems to lock all four cores at 1.6 ghz for a long time after it runs.
I landed on two modifications via set CPU:
first mod: set ignore_nice_load =1
"ignore_nice_load - Setting to 1 causes governor to ignore load resulted by nice processes while making scaling decisions. Nice processes are the one i/o scheduler refers to as low priority process.
UNIT: Boolean 1 or 0"
Basically, a process which is nice is one that will get out of the way if I'm doing something else, and I'm not interested in, even for 15-20 minutes, running all four cores at full speed to get it done. It looks to me as if media scanning is a process with the nice flag set.
Second mod: changed freq_step from 37 to 12.
"freq_step - Defines how much as a percentage of maximum frequency, governor should increase CPU frequency each time CPU load reaches up_threshold.
UNIT: Percentage"
As shipped the processors step in giant increments.
Setting that value to a 12% step rate gives me 200 mhz increments, and I see that my processor is spending much more time in the 400-600 mhz range than before,.
I'm probably going to do additional tests with a 6% step rate (100 mhz increments) at some point.
The nice setting emerged from looking to see what was running at boot time and coming across threads on the behavior such as this one:
http://forum.xda-developers.com/showthread.php?t=1994650
I'm happy with the performance I'm seeing in this setup, and happier still with the battery life I'm seeing. Your mileage may vary, of course, but waiting a few milliseconds more for the processor to cycle all the way to 1600 mhz hasn't made the device feel stuttery to me.
Still on my to-do list is getting the cores to up and downshift more independently. The governor tends to let only one core lag the others, so I almost always see three cores at once at the same frequency, even if only one appears to be doing anything.

EMk02 Live.

Just took a run at emk02-5110 - still no wifi.
Bluetooth was fine, boot was speedy.
My tools for looking at CPU reported that the clock speeds available were 50 mhz-1600 mhz.
It seems possible that the high end was truncated at 1600 mhz by chip reporting something inaccurately, and that as a result the low end was also pushed very low?
The kernel seemed just fine aside from no wifi, though!

roustabout said:
Just took a run at emk02-5110 - still no wifi.
Bluetooth was fine, boot was speedy.
My tools for looking at CPU reported that the clock speeds available were 50 mhz-1600 mhz.
It seems possible that the high end was truncated at 1600 mhz by chip reporting something inaccurately, and that as a result the low end was also pushed very low?
The kernel seemed just fine aside from no wifi, though!
Click to expand...
Click to collapse
Only till 1600? I remember adding upto 1800... About the no wifi, flash the attachment and let me know of the result.

Still no wifi.
Clock still tops at 1600 reported.
The attached wifi fix file has scsi_wait_scan.ko in it -- I'd thought that was a filesystem module?
Did it replace anything? I hope not, as it doesn't seem to make a backup of the original?

roustabout said:
Still no wifi.
Clock still tops at 1600 reported.
The attached wifi fix file has scsi_wait_scan.ko in it -- I'd thought that was a filesystem module?
Did it replace anything? I hope not, as it doesn't seem to make a backup of the original?
Click to expand...
Click to collapse
That is the only module that was generated. thats the stock one. taking a look at source again..
EDIT: try flashing this. built kernel again. (all generated modules added)

Hmmmm
OK, I poked around a bit first on my device and then I extracted /system from the firmware blob, used simg2img and mounted the output in a linux system to get a look at what Samsung delivers.
I did not see a scsi_wait_scan in their flashable system. I found a folder called dhd which apparently relates to networking.
The installed system doesn't use these files, though - is that because Samsung integrates them all into the kernel?
At any rate, I know I won't overwrite anything when I get time to flash now, at least
OK, tried flashing in the boot.img and the files in 2.zip. Still no wifi.
Also, the files in 2.zip are *.ko, the other files are *.so, and in the extract of system, there no .ko files -- is that part of what's what?
To make testing simpler down the road, I also made a flashable boot.img restore file, which folks can get a copy of here
http://www.mediafire.com/download.php?w89vgdn4kdds781

emwno said:
That is the only module that was generated. thats the stock one. taking a look at source again..
EDIT: try flashing this. built kernel again. (all generated modules added)
Click to expand...
Click to collapse
fixed 2.zip,still no wifi

Why... did i do something so dumb... the libs are placed elsewhere.... making a new zip.

let us know when you got the wifi working I am really looking forward to flashingthis

Does anyone want sound mods supported? Such as Boeffla Sound snd Wolfson Sound. All kernel based.

emwno said:
Does anyone want sound mods supported? Such as Boeffla Sound snd Wolfson Sound. All kernel based.
Click to expand...
Click to collapse
Yes please!

New change log for kernel. Ignore the one on OP. If you have any requests, present them to me.
03
OC fix
Wifi fix for N5110
Governers added: Lulzactive, SmartassV3
Some more IO's (dont remember names)
Roll back to stock voltages
Faster USB charging
Boeflla Sound support
Triangle Away support
CPU voltage control
Lz4 compression (faster boot)
Some back ports from linux 3.4 mainline (will post which after confirmed working myself) - no more

emwno said:
New change log for kernel. Ignore the one on OP. If you have any requests, present them to me.
03
OC fix
Wifi fix for N5110
Governers added: Lulzactive, SmartassV3
Some more IO's (dont remember names)
Roll back to stock voltages
Faster USB charging
Boeflla Sound support
Triangle Away support
CPU voltage control
Lz4 compression (faster boot)
Some back ports from linux 3.4 mainline (will post which after confirmed working myself)
Click to expand...
Click to collapse
Do we have a download yet?

Related

[Kernel]Unsecured, OverClocked, SmartAssV2, and Voltage Control[New Links 01.27.12]

Okay, I looked at what ziggy and cron247 did over on XDA and tried to make it better.
This kernel is unsecured, meaning adb connects with root.
It OverClock's up to 1.836MHz.
It has the SmartAss V2 governor.
It uses my ramdisk, not the one you have. I cannot forsee this being an issue. If it becomes one, let me know.
Updates:
Version 1.1.3 changes the version of lagfree, the old one was having issues. Also removes forcing the second CPU to be online which was causing choppiness.
Version 1.1.2 adds increased read ahead, writeback tweaks, decreased dirty ratio settings, simple I/O scheduler, and the lagfree governor.
Version 1.0.5 adds mpdecision fix by Mr X, thank you whoever you are, if you removed mpdecision, put it back. Also added voltage control for you UV lovers.
The only control program I have tested to work is AnTuTu CPU Master (Free), I have had issues with SetCPU and a few others. This one does speed, governor, and voltage all very well.
Get it here: AnTuTu CPU Master (Free)
The following problems seem to be fixed at this point: governor and speed settings not sticking, smartass staying at top speed, random reboots or bootloops overnight.
READ THE INSTRUCTIONS, THIS IS A SINGLE FILE
To install this kernel:
Copy the file to the root of your SDcard.
Reboot into recovery (CWR or AmonRa).
Flash the file from the SDcard.
At the end of the flash the phone will reboot to fastboot.
Once fastboot loads, tap PWR to get to HBOOT.
HBOOT will find the update and ask you to install.
Tap Vol Up to begin the install.
When it finishes it will say tap PWR to reboot. Do it.
After the phone boots remove the PH98IMG.zip file from your SDcard.
Use AnTuTu CPU Master (Free) to set min/max/gov/voltage.
Enjoy!
Thanks to ziggy and con247 for getting us started and having stuff out there for me to get ideas from.
Download:
Link: dsb9938 Kernel 1.1.3
MD5: a2558e70f9af572f43e258c9aedb4b40
Source on GitHub.
My favorite Rezound kernel so far. Haven't had one crash, even at max OC. Thanks so much guys at BAMF!
This kernel has been good to me too.
I just wish I could get a handle on thie weird issue. Any of these other than stock kernels seem to have the minimum cpu speed jump up to the max cpu speed, then back down constantly, and I cant figure out the deal.
I can check on mine periodically and my min says 192, than a couple seconds later it says its the same as my max. Ugh.
dccoh said:
This kernel has been good to me too.
I just wish I could get a handle on thie weird issue. Any of these other than stock kernels seem to have the minimum cpu speed jump up to the max cpu speed, then back down constantly, and I cant figure out the deal.
I can check on mine periodically and my min says 192, than a couple seconds later it says its the same as my max. Ugh.
Click to expand...
Click to collapse
I noticed that as well
I also had a problem yesterday morning where my phone locked up when my alarm clock went off - forcing me to pull the battery to turn the sound off - not sure if that's kernel or ROM related (running CleanROM 1.5)
Argent36 said:
I noticed that as well
I also had a problem yesterday morning where my phone locked up when my alarm clock went off - forcing me to pull the battery to turn the sound off - not sure if that's kernel or ROM related (running CleanROM 1.5)
Click to expand...
Click to collapse
It's kernel related; I'm running rezrom and had the same exact issue with my alarm running this kernel.
Do you think ziggys is more stable?.. or do I just need to find the right overclock/underclock settings?
I seem to recall seeing them have that problem on ziggy's - but I never had that problem on earlier versions of dsb's - so maybe it's just something that is fixable for the next release
*wanders off to test it again*
This is no doubt me doing things wrong that led to this, but I downloaded the kernel through the phone browser, then flashed it from the download directory on the internal SD. When I flashed Incredikernel from there it copied the PH98 to the sdcard, but no dice on this kernel until I copied it to the sdcard then flashed it.
I probably should have copied it to the sd card myself first anyway, but I figured I would let you know!
Well this morning - my alarm clock went off - I was able to snooze it - and then a few minutes later the phone went in to boot loops - had been running stable all weekend - once I pulled the battery the phone booted back up just fine.
we'll see if it repeats this behavior tomorrow morning or not...
Call recording support in the kernel?
timp123 said:
Call recording support in the kernel?
Click to expand...
Click to collapse
Nope, only Ziggy's kernel currently supports this.
I only set one alarm at a time usually, but I have one set to go off every morning at 7:30 & it has worked perfectly everyday for a few weeks now.
~John
Curious to see what settings people are using (min/max) as well as voltage control to get best battery life. Downloaded the CPU Master Free and wanted to set it up. Thanks
sandman_nyc_316 said:
Curious to see what settings people are using (min/max) as well as voltage control to get best battery life. Downloaded the CPU Master Free and wanted to set it up. Thanks
Click to expand...
Click to collapse
My default setting is 384 - 1512. I have a charging profile that OC's slightly to 1620. I also have profiles for a hot battery (which I have never had) and power under 20% which UC to 1296 and 1060 respectively. I use sio for scheduler (although that tends not to stick). My minimum UC is 384, nothing lower (I've read of bootloop issues with lower frequencies on the Incredible).
I undervolt everything from 384 to 1404 by -50; and 1512 by 25. Everything else is default.
I have never had a crash or reboot with this kernel on stock ROM.
hgoldner said:
My default setting is 384 - 1512. I have a charging profile that OC's slightly to 1620. I also have profiles for a hot battery (which I have never had) and power under 20% which UC to 1296 and 1060 respectively. I use sio for scheduler (although that tends not to stick). My minimum UC is 384, nothing lower (I've read of bootloop issues with lower frequencies on the Incredible).
I undervolt everything from 384 to 1404 by -50; and 1512 by 25. Everything else is default.
I have never had a crash or reboot with this kernel on stock ROM.
Click to expand...
Click to collapse
Thanks! How's your battery life been with those settings?
sandman_nyc_316 said:
Thanks! How's your battery life been with those settings?
Click to expand...
Click to collapse
Decent. I can get 10 solid hours or more of moderate use when I cannot be near a charger. I can stretch it further by turning off LTE and background data. Heavy data use tends to be the biggest killer. I keep my display at 30%, too, and use smartass v.2 as default.
hgoldner said:
Decent. I can get 10 solid hours or more of moderate use when I cannot be near a charger. I can stretch it further by turning off LTE and background data. Heavy data use tends to be the biggest killer. I keep my display at 30%, too, and use smartass v.2 as default.
Click to expand...
Click to collapse
Appreciate it. Gonna see what happens. Will update with my results. Thanks again!
I wonder what is causing all these boot loops for us all. Do you guys think it's the voltage? Perhaps the software?
zetsumeikuro said:
I wonder what is causing all these boot loops for us all. Do you guys think it's the voltage? Perhaps the software?
Click to expand...
Click to collapse
Good question. I haven't had a single bootloop since flashing this kernel after coming from Ziggy's. Been running this 192min/183max and UV'd -75 across the board and running great.
Hopefully I don't jinx myself.
Guys with bootloops/lockups...are you running any profiles?
Make sure you do a dalvik cache wipe....
Ziggy's would always lock up on me (multiple times per day) so I gave up on it. The only problem I have with this on (and this was a problem with Ziggy's too) is the min jumping to max.
My frequencies bounce on this kernel. It spends about equal time between the highest setting, and lowest setting. It works great other than that. My question is this bad for my CPU? I get great battery life, and performance, just scared the bouncing could be bad for the processor. Any help would be great.....
Sent from my ADR6425LVW using Tapatalk

[Kernel][ICS] Driving Always For User Quality (04/23/2012)

DAFUQ!!!!
This will be a sparse post for now... I'll fill in the documentation later, I'm kinda fried after fighting this stability bug.
Source: https://github.com/Entropy512/kernel_galaxys2_ics/tree/entropy_kernel_main
Initramfs: https://github.com/Entropy512/initramfs_galaxys2_ics/
Features:
CWM 5.5.0.4
Hopefully fixed SetCPU stability issues
fuel_alerted wakelock fix
Voltage control (use SetCPU)
Mali 3-step clock/voltage control (READ THE CHANGELOG - IT IS DIFFERENT FROM SIYAH)
Legacy Gingerbread hotplug code (including all tuning features from the final GB DD release)
Not much else for now, thank Samsung for their broken frequency control code that took a team effort of multiple kernel developers (gokhanmoral, simone201, franciscofranco, and others) to track down the problems in and fix.
Tested base: I9100 XWLP7
Should work: Any I9100 official release
Guaranteed not to work: Any I9100 leak (XXLPJ or older)
Not supported: AT&T leaks. UCLC2 won't boot for the same reason as XXLPJ and older - giving you a sign of how old the codebase is. Any leaks that do boot will have the microphones reversed in calls.
Planned features - short term:
Overclock
CIFS
Planned features - mid-term:
Try to reduce power usage during suspend/resume
Apply the "target down threshold" concept used for GPU clocks to the Conservative governor - a single down_threshold doesn't work well when 200 MHz is less than half of 500 MHz, but 1000 MHz is more than 80% of 1200 MHz.
Known issues:
"Internal" SD card in recovery is actually the external one
04/23/2012:
Some more stability fixes (hopefully)
Legacy Gingerbread hotplug code - More stable, and includes all of the Daily Driver tunables from Gingerbread
Mali 3-step GPU clock/voltage control - NOTE: Down thresholds are different from Siyah. Instead of being percentage of current load, they are desired load at the next frequency step down. So "normal" thresholds will be much higher. For example, if your second frequency is 100 MHz and the third is 200 MHz, a down_threshold of 80 for 200 MHz on this kernel is the same as setting down_threshold to 40 on Siyah. (e.g. siyah_threshold=down_freq*down_threshold/cur_freq)
04/10/2012: - SUCK!!!!!!
Revert a patch that turned out to be useless (see github)
Swap internal/external SD cards in recovery to be consistent with CM9 - this creates a known issue (see known issues)
04/04/2012: - ZOMBIE ASS!!!!!!!
Voltage control
sio and v(r) ioscheds
Hopefully last of the stability issues fixed (a glitch deep in the bowels of cpuidle)
04/02/2012:
Fixed CPU hotplugging
04/01/2012:
Initial release, pulled due to issues.
FAQ
FAQ will go here when I have time.
Reserved for future use.
Nice!!!!!!!!!!!!!!!!!! glad you finally released!!!
Dangerous stuff here?
Posting in a closed thread.
Ill update stuff here too.
Seems to still be issues in exynos4_enter_idle()...
Edit: If you have any issues, disable all SetCPU or similar clock control profiles and run the standard min/max of 200/1200.
hurr hurr I dun broke (and fixed in 4/2) teh hotplug
ZOMBIE ASS!!!!!
New release, last one until after the Easter holiday. Too much cleaning to do and family visiting.
I'll clean up the thread and open it up after the holiday.
Oh, and ERDs shouldn't have their thread titles auto-lowercased if too many caps!
New release - minor changes compared to Zombie Ass, leaving the thread open this time around.
Still a lot to do... But at this point stability issues seem to be gone.
Entropy512 said:
New release - minor changes compared to Zombie Ass, leaving the thread open this time around.
Still a lot to do... But at this point stability issues seem to be gone.
Click to expand...
Click to collapse
Nice thanks for your hard work
Sent from my SGH-I777 using XDA
Awesome, thanks Entropy. Donating some beer money now...
Download size is 554 bytes. That is using a computer. Something may be wrong with that size
xpakage said:
Download size is 554 bytes. That is using a computer. Something may be wrong with that size
Click to expand...
Click to collapse
Same here, PC or Phone. Saw this in ShoStock Rom thread as well, Shoman had to re-upload his files.
****it... XDA uploading seems wonky. Reuploading...
Gave entropy the 5,000 thanks...I win the internet.
Entropy512 said:
****it... XDA uploading seems wonky. Reuploading...
Click to expand...
Click to collapse
Nooooo, SUCK it
Should be fixed.
Thanks entropy
Sent from my SGH-I777 using Tapatalk 2

[Kernel][Apr 26] Perseus

This is a direct port of my kernel on the international I9300 Galaxy S3 and sidekick to the international N7100/5 Note 2 kernels.
Recap of features:
CPU overclocking up to 1.8GHz and undervolting from 600mV to 1400mV.
GPU overclocking and undervolting.
GPU scaling reworked.
Screen sharpness and colour modifications.
Extended Pegasusq and improved Performance governors.
Removed Touch Booster and replaced with custom Flexrate mechanic.
Improved scheduler power management for improved idle residencies on auxiliary CPUs.
USB charging rate limit increased to 900mA.
Application for control of various settings.
This is supposed to be merely a proxy thread. Please refer to the N7100/5 thread for full changelogs, explanations, bug-reports and other issues. Kernel for specific device versions will be posted here.
This kernel is for the North American Verizon variant SCH-I605. Versions for other variants are found in their respective forums.
You obviously need to be unlocked with the "Suck it Verizon" bootloader/IROM unlock method before flashing this. I will not be responsible if you break your device by screwing up anything related to that.
flashing now!
Freaking awesome. Thank you for posting this.
Any known bugs/issues we should be aware of?
DaRkL3AD3R said:
Freaking awesome. Thank you for posting this.
Any known bugs/issues we should be aware of?
Click to expand...
Click to collapse
You let me know if there's something wrong. Now before things go down the same way as the other US variants, I implore everybody please read in the international N2 thread linked above for information about the kernel and the newest additions or if there's something wrong, it will always be more up to date than the proxy threads.
This kernel is absolutely insane! Wow!!
STWEAKS PROFILES! and proper bootloop fix.
Alright! now that Perseus Kernel .28 is out we have a new added feature that lets us implement override profiles!
What does this mean?
Well now this UNCHECK SET ON BOOT zip will actually just update your current default.profile and uncheck the set on boot options.
Which makes it the best fix for a bootloop, because you can then go back in to your old settings that failed and modify them.
I also am going to be generating 5 profiles. (will edit this post)
Each more aggressive overclocking and undervolting.
For people who are unsure of how to do do this properly with Stweaks,
You can just flash any of my profiles.
I recommend you download them all start at 5 and flash, if you bootloop or crash move up a profile until your stable!
Profile 5G is the one I run everyday (and is the lowest values for voltages)
It also is 200-1800 mhz overclocked and gpu 160-640 mhz
My custom governor tweaks (I believe the cpu is too aggressive and also the cores dont respond as much as id like to see them responding, 1 core on idle, 4 cores when needed.)
Profile 5 is the one I run everyday (and is the lowest values for voltages)
It also is 200-1800 mhz overclocked and gpu 160-640 mhz
STOCK governor settings
Profile 4 is slightly less aggressive on the voltages
200-1800 mhz 160-640
Profile 3 is slightly less aggressive on the voltage curve
200-1800mhz 160-533
Profile 2 is slightly less aggressive on the voltage curve
200-1600mhz 160-533
Profile 1 is slightly less aggressive on the voltage curve
200-1600mhz 160-533
Profile 0 is the DEFAULT profile the kernel came with. (it just deletes your profile and rebuilds it so its safe for all versions inlcuding S3-i9000)
EDIT: I have also included a zip with just the governor tweaks, these will not alter your voltages on cpu/gpu and will not change your max cpu
custom governor tweaks detailed below:
here is my logic
defaults parameter mine
30000 sampling rate 20000
82 up threshold 90
5 down diff 10
40% thres for response 81
1200 freq for fast down 1600
95 up thres fast down 98
37 up step 18
6 splice amount 4
13 down diff 8
With the default settings when the load is measured if the cpu load is over 82% off current freq step it will scale up.
New logic added in perseus .27 now gives us 3 up steps instead of just a fixed one.
so your cpu will step up more aggressively based on how much above the threshold it is, not just if its over, this is
great.
Right now, if we are coming in with a
load of 83%-88% we increase freq by 300mHz
if we are 89-94% we increase freq by 400 mHz and
if we are 94-100% then we increase freq by 700 mHz.
This is too fast for me.
For a few reasons the main one being that the amount we jump has gone up because our max cpu is 1800 instead of 1600 (at 1600 the jump ups are 200,300,600mhz)
The logic I use on my N2 is as follows:
Load of 90-94 = 100 mhz jump
load of 95-98 = 200 mhz jump
load of 99-100 = 400 mhz jump
The responsiveness of the phone is not compromised at all, the cpu just steps up less and only when it has really high loads(keep in mind the load is calculated every 20000 microseconds or 50 times in one second.)
It still gets to 1800 and does many operations there, but it comes out of 1800 fast and when it jumps down it jumps down further.
The fastdown has been upped from 1200 to 1600 , meaning it now requires 98% or higher load to jump up when above 1600 mhz not 1200 mhz, I found that the CPU was always in 1800 or like way lower,
never in the 1700 - 1200 range as it used to need 95% load to be in that range.
The cores hotplug has been slightly changed to turn off cores quicker when not in use and takes more samples to turn them on so they only turn on if load exists for longer duration of time.
PLEASE NOTE
Flashing any of these zips OTHER THEN THE UNCHECK SET ON BOOT will REMOVE your STWEAKS settings and replace them with the profile. PLEASE back up your profile if you want to save it.
Where is it?
/data/.perseus/default.profile << back this guy up. rename to default.profile2 works. or copy to sdcard.
Due to the way that these changes are applied (at initial boot) it will take longer then usual before beginning to display the boot animation for the first boot after changing profile.
This also means that you cannot flash 2 of these files in one boot, for example profile 3 and the governor tweaks.
You would need to flash the governor tweaks or the profile first and then reboot, and then flash the other.
Yay
Sent from my unlocked beans rom Galaxy Note 2
Is there a stock kernel?
This is great...wow!!!! so this is fine to flash in twrp...it says cmw...thank you!!
rayhodge02 said:
This is great...wow!!!! so this is fine to flash in twrp...it says cmw...thank you!!
Click to expand...
Click to collapse
Flashed fine for me in twrp
Sent from my unlocked beans rom Galaxy Note 2
So many questions...umm so we can flash governor and a profile at the same time.? What is the tweaks file for?
nnnnr14 said:
Flashed fine for me in twrp
Sent from my unlocked beans rom Galaxy Note 2
Click to expand...
Click to collapse
thanx
Or would you flash the governor and the uncheck boot file then go back and flash a profile? What is the original setrtjng without a profile ?.....okay I think i got it. I just need to flash the kernel (the zip file) and start with profile 5. (Can I flash at the same time)
Then if there's problems I can flash the uncheck at boot file so it'll revert and I can make the changes? That about right.
Dear OP,
Thank you very much for bringing this to us. Is this kernel also compatible with CM10?
kwkw480 said:
Dear OP,
Thank you very much for bringing this to us. Is this kernel also compatible with CM10?
Click to expand...
Click to collapse
no I believe its for touchwiz only.
blackbass595 said:
Or would you flash the governor and the uncheck boot file then go back and flash a profile? What is the original setrtjng without a profile ?.....okay I think i got it. I just need to flash the kernel (the zip file) and start with profile 5. (Can I flash at the same time)
Then if there's problems I can flash the uncheck at boot file so it'll revert and I can make the changes? That about right.
Click to expand...
Click to collapse
You got it bro.
First kernel. Then 5. Have th others in hand. If 5 won't work for you you will be boot looped. The uncheck set on boot will save your ads then reboot. Then flash 4 etc until you are stable. Only one profile per boot flashing more just overrides your last change. The profile is applied at kernel boot
Sent from my SGH-I317 using xda app-developers app
gundal said:
You got it bro.
First kernel. Then 5. Have th others in hand. If 5 won't work for you you will be boot looped. The uncheck set on boot will save your ads then reboot. Then flash 4 etc until you are stable. Only one profile per boot flashing more just overrides your last change. The profile is applied at kernel boot
Sent from my SGH-I317 using xda app-developers app
Click to expand...
Click to collapse
Cool but can I do kernel and profile "x" at the same time?
And I hate to be "captain questions" here but what is the tweaks zip? Is that like an app it installs or a script or what?
I just flashed the kernel only, rebooted, opened up STweaks from app drawer, set min to 300mhz, set max OC to 1800mhz, set gpu to 640mhz, and left the other settings stock for the time being. I gained 2500 points running antutu benchmark. 17200 stock, 19600 with flux kernel. Seems rock solid so far...need a couple days to see how battery life is with that much OC, but its SMOOTH!
blackbass595 said:
Cool but can I do kernel and profile "x" at the same time?
Click to expand...
Click to collapse
Yup jut do kernel first. Then 5g which will do gov tweaks and cpu gpu oc uv to the most aggressive voltage curve. If it Boot loops just flash 4 and continue
Also the set on boot uncheck is only needed if you want to retain your profile that caused a boot loop so you can adjust it
Sent from my SGH-I317 using xda app-developers app
droidstyle said:
I just flashed the kernel only, rebooted, opened up STweaks from app drawer, set OC to 1800mhz, set gpu to 640mhz, and left the other settings stock for the time being. I gained 2500 points running antutu benchmark. 17200 stock, 19600 with flux kernel.
Click to expand...
Click to collapse
What's flux? Or did you mean lux?
Sent from my unlocked, and overclocked Galaxy Note 2 running bean's rom

[4/03/16] CTT mod for marshmallow #1 mod for the g3(new ver. up for faster charging)

It's now in its final version but I'll still update as I see needed
[Donate here]
* IMPORTANT *
Read ENTIRE OP for compatibility and install instructions as I will not respond to a question that is answered in the op
OP has been updated with the new instructions
OK Here's the New CTTMod for marshmallow ROMs​ Working to improve performance eliminate lag along with lowering the core temps allowing your phone to continue to run smoothly after long or heavy periods of use. Now with faster charging times
Any developers feel free to use the mod in your ROMs just please give proper credit thanks ​
Please Read The Entire OP before installing
I Am Not Responsible For Anything You Do To Your Device.
How to determine if your G3 set up is compatible with this mod and INSTRUCTIONS and DOWNLOADS are in the 2ND post
Everyone I need your feedback with certain details which I list below in the 2nd post to be able to create an accurate list of which devices are compatible and which devices I'm currently working to make a compatible version for..
Remember always make a full nandroid backup before doing anything
I've decided to go into a little more detail in this thread to give people a better understanding of how and what this mod does, mostly by detailing how the thermal controls work and what I changed within in them. I also went into detail about governors because they go hand in hand controlling the CPU's frequency in different ways. which I'll go into more detail below in hopes of helping you understand when and how the CTTMod will improve your performance
______________________________________________
Governors and thermal control​ How & why they effect your phones performance
First here are a quick summaries of what a governor does and what the thermals do then I'll get into more detail below
Note I tried to write and explain everything as simple as possible in the hopes of helping even the newcomers to android to be able to understand and gain little knowledge and insight.
Also I hope this helps everyone also understand why and when this mod starts doing it's thing and why sometimes it might feel like it's not working and other times feel like it's working great.
There are a lot of variables and different criteria that has to be met for each process to be enacted.
The kernels governor manages the CPU's frequency mainly by the amount of load the cpu is under and other preset values.
Thermal control which determines the frequency by the temperature of the CPU and is told by preset values set in thermal files when it (cpu),should lower its frequency depending on temperature
Both play big rolls in how well your phone performs but in opposite ways the governor basically start out by trying to keep your phone running smoothly by increasing the clock speed to match the load on the cpu, whereas thermal control does the opposite where it kicks in after the cpu reaches a preset limit and starts lowering the clock speed in an attempt the cool down the CPU to keep the phone running smoothly
Now the governor bases what the clock speed is set to and determines the point the kernel will increase the CPU's frequency by the load value set in the governor which is preset by the OEM or dev. With a rooted phones most of these values can be changed. The load values based on numbers with 0 being the phone just sitting idle not under any load so the governor will have the cpu frequency set to the preset minimum allowed frequency set by the kernel. And as the work load increases the governor raises the frequency in steps also preset by the governor until the CPU reaches a frequency that handles the increase in work load and continues to raise the clockspeed as the load increases. Now once the CPU's load reaches the preset target load value it will be running at the maximum allowed frequency set in the kernel. Different governors have a different numbers of load and other settings some can be changed and some can't depending on the governor and what features were added by the builder
For example the conservative governor sets it's target load values high usually around 95 and a step value of say 14 (step value being the amount of frequencies it will go thru to reach the maximum set frequency. Which helps improve battery life but you sacrafice performance. As say the interactive governor with the target load value set at 70 (Target load value being the highest amount of work load on the CPU before bumping it up to the maximum allowed CPU frequency set in RJ kernel and a step value of 7 will have better performance that the conservative .
All but one governor (performance) which is set to run at the maximum CPU frequency all the time) has parameters that can be tuned to your liking with one of the many CPU/kernel control apps out. But not all kernels and the governors come with the same settings. The builder/OEM/dev. of the kernel can pick and choose what features and governors to put in the kernel and also what settings are allowed to be changed. Also not all particular governors come with the same allowed settings. One developer might only put in the interactive governor and only put a few settings that can be changed whereas a kernel from another developer will add in every setting there is for the interactive governor.
Here's a great page explaining just about everything you should know about governors it's a must read.
http://forum.xda-developers.com/gene...ors-o-t3048957
OK now thermal control works by throttling the CPU down to preset frequencies at preset temperatures and is also done in a preset # of steps. Thermals also monitor and play parts in controlling other components like the GPU, battery and a couple of other things.
First let me be clear about one thing
The CTTMod does not turn off thermal throttling. Now the trick of going into the hidden menu and turning thermal mitigation and thermal control on. That does turn off all thermal monitoring and control and I highly advise against ever doing it. You take a huge risk of frying your phone.
Now let me explain a little what gets changed by installing this mod, and how and when the thermal control do there thing.
What i did is changed the first 3 bump downs (steps). I did this raising the preset frequency in the phones thermal file that tells the CPU to slow it's clockspeed down when the cpu reaches a preset temperture. Now in reality the thermal just sits and monitors the temperature of different components. It doesn't affect the CPU at all until it reaches a preset temperature.
Now there are 6 steps 5 of which throttle your cpu down. The first one being you CPUs max frequency and as long as the cpus actual temperature is below the one predefined in the file the CPU is allowed to scale as high as it needs to in order to complete the task in an efficient and speedy manner. So until it reaches that temperature it's the kernels governor that is deciding what the CPUs frequency needs to be by the load that the CPU is under at any given time. Now each different governor has its own way of how and at what load points it'll tell the cpu it can scale up or down by the values set in parameter settings of the governor and also tells the CPU how many steps ( scaling frequencies) to go thru and how long to stay at each step before moving on. So in short but not the entire story is that the governor controls when to speed up the cpu by the load it's under and the thermal controls tell the cpu when to step down to certain frequencies that corresponds with temperature points that are set in the thermal file in an effort to keep the temperature of the CPU down to try and keep the phone running smoothly and within an efficient operating temperature
Now what I have done is raised the first 3 points at which the thermal tells the cpu to be at. But left the last two and the shut off values at their stock values so it doesn't let the phone get hot enough to burn up. That's why you might notice with this mod after a long period of time using your phone under heavy load and the cpu reaches that forth step down temp. that when you'll notice a dramatic slow down. The thermals also control a what i would consider a fail safe temp setting that will automatically shut your phone down. Which is set at 120°c and won't let you turn your phone back on until the temp lowers to 115°c which I also left at the factory settings.
Now hopefully after reading this you have an understanding of what the mod does and how it affects the performance of your phone. And how the settings in whichever governor you are using also affects the performance of the phone. So if your governor is not tuned to your usage. You will not see a difference after flashing the CTTMod.
Now I'll explain what changes I made to the first bump down to. I changed the first frequency bump down to 2.26 and raised the tempurture it has to reach to 70°c Stock was set to drop the cpu down to 1.5 GHz at 60°c
Now at stock they scale your clockspeed by almost half of the processors actual top speed of 2.45 ghz which is why the g3 has such bad lag when after a short time of moderate to heavy use. So as a result of increasing the first set frequency to 2.26 GHz and raising the temperature limit will allow you turn operate you phone for a much longer period of time before you start to notice the phone slowing down .
Also in the LP versions I was able to tweak some of the battery values to keep the phones temperature down which I had discovered by accident and for most people they say there battery now stays cooler compared to stock. And tweaked the GPU. The second version that is now up implements the cpu throttling and battery improvements and I hope to hand the GPU tweaked and working in the next version.
I Hope this has helped you have a little more insight on what this mod does and how you devices improvement might not be noticeable compared to someone else who show a great improvement in performance. It all depends things we do to our phones to customize them .ie different ROMs kernels, settings and mods we add to them.
Let me know how the mod works for you and what carrier version and ROM and kernel you are on and governor being used
Thanks Rob
Also with the vs985 MM firmware the thermal file in system/etc is thermal-engine-8974.conf
So check to see what thermal file/s you have. If they're different send me a link to your thermal files and I'll take a look and see what I can do modifying them
Instructions and Downloads for G3 Marshmallow
Instructions
#1 - DO A FULL BACK UP BEFORE YOU DO ANYTHING
And since I only have access to the vs985's 46a stock firmware (MM) That is the only variant I can actually test myself . So far haven't found a device that's not compatible
Any g3 variants that have different files the just the one I name below I will need you guys to post me the information and file/s that I have listed at the end of the instructions
First you have to determine if your phone and ROM are compatible.
Check your Roms thread op and see if it's already included in the ROM as many Roms have now included the CTTMod
So before anything, you'll have to see in you have the file named
thermal-engine-8974.conf.
To do so navigate to /system/etc and look to see if you have the file with the same name as I just stated above. If you see that you have only one thermal file and the names match,
Then follow the New Instructions- First still follow the instructions in op to see if your variant or ROM is compatible then proceed
1- reboot into recovery
2- flash mod
3- wipe the cache important no need to wipe dalvic, but you must wipe the cache for the mod to take into affect.
Then in your kernel control app. In thermal make sure it's set to core control.
Now this is optional but under cpu hotplug turn mp decision/intelliplug to off. With hotplug off it will throttle less or on to throttle faster but both ways it'll only throttle to 2.26ghz on the first bump down instead of 1.5 or 1.7. You can read more about mp decision and intelliplug and how they affect the mod HERE
If you decide to leave feedback, good or bad you must include the details about your phone I have listed here
starting with your G3 model # The type of ROM (ie stock, aosp or cm, whether you on a stock or custom kernel, and the governor you are using.. Also please leave any results you have based on one of the two ways below on how to evaluate whether or not the mod works as it's intended too and just how much of an improvement you notice
First and easiest way is your actual user experience. Use your phone like you would on any given day and try to remember things you been doing on you phone that caused your phone to feel slow , laggy , not as responsive, or made your phone get hot to the touch. . Then install the mod and try to repeat what you did before and feel the difference.
If you'd like to take it a step further for some real evidence on if it's working or not. You can do some real testing by
First you'll need an app like CPUtemp to see the CPU frequency, load it's under and the temp of the cpu in real time .
With your phone fully charged use it moderately like going on Facebook and making a call have 2 or 3 apps going at once and doing something on the phone. For around thirty minutes. You want to put the cpu under at least 50%: load logging the temp and frequency every couple minutes for about twenty to thirty minutes. Then do the same again but this time you'll want to put the cpu under a heavy load 100% really work it.(running alot of apps, playing a resource hogging game, running a benchmark or stability test I think you get the idea)
Log the temps and CPU frequency again every couple minutes for 20 to 30 minutes or as long as it takes to reach full load
Then repeat the process after you install the mod.
You should perform the tests once before you install the mod logging the results and then try to duplicate what you did the first time after you install the mod and log the results. It's important to do some testing before you install the mod to give a baseline to compare with. Then you will be able to see what did or didn't gain any improvement compared to stock. And if an something got worse I'll know where to look to fix it.
Thank you as the more people willing to do the testing and share the results will help me greatly on improving, perfecting and to trying to make it compatible with as many variants and ROMs possible.
DOWNLOADS (Alternate download links bottom of this post)
G3-CTTMOD-MM_final:
Yes this is the same mod I had posted in post 52 I've just now made it official after having tested it for a while now.
As stated before I will still be updating as I see fit
CTTMod-MM+FC-v2
Change log: increased the charging voltage by 50mv on the second and third bump downs. Left the first and forth and fifth stock. Goal is to to speed up charging times. I only increased it slightly to start so there might not be much of a noticeable difference. Will increase more once some testing has been done on this one. Please leave feedback thanks
CTTMod-fc-V-2.1 - changes - increased the second and third charge by another 50mv and still left first, forth and fifth stock the same as v-2
CTTMod-MM+gpu-v3-beta
Change log: added slight increase in GPU
CTTMod+fc+gpu-V.3.1- change log- goal better GPU performance along with the faster charging from v2.1
Back to stock zip
( I haven't personally tested this but I don't see any reason why it wouldn't work)
Test versions
I'm going to work on posting all my test versions here as I have many improvements I'm trying to make but can only do and test one at a time to make sure the changes are doing what I want them to do. So please if you decide try a test version please message me with your findings and how you tested
Remember any of the mods posted here are experimental and have not been tested as with anything you flash this at completely your own risk
Here's the first test version for better gaming
CTTMod-fc-gpu-v4
Please lane feedback
Download link doesn't work for me....
D855
RUNNING: N&N 1.9 STOCK MM
+1
cultofluna said:
Download link doesn't work for me....
D855
RUNNING: N&N 1.9 STOCK MM
Click to expand...
Click to collapse
Requires login
cultofluna said:
Download link doesn't work for me....
D855
RUNNING: N&N 1.9 STOCK MM
Click to expand...
Click to collapse
Had to reload should will be up shortly
Can't download because AFH require sign in.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my LG-F400S using Tapatalk
Robshr said:
Had to reload should will be up shortly
Click to expand...
Click to collapse
Thanks for the MOD,but why we have to log in to download?.....
D855
RUNNING: N&N 1.9 STOCK MM
cultofluna said:
Thanks for the MOD,but why we have to log in to download?.....
D855
RUNNING: N&N 1.9 STOCK MM
Click to expand...
Click to collapse
You don't have to register to download
Here's am alternate download link to the new G3 thermal mod for MM- https://mega.nz/#!q1B3wYxS!jfyhwQnXa8c0rYAA2JcDVpiqeEDc4IlbvQ6DfSvZyIs
Robshr said:
I don't know maybe it's something new with android file host just click on the bars in the upper right corner and register is free and they Smit send you a ton of junk it's what all the dev use
Click to expand...
Click to collapse
No thanks.......
D855
RUNNING: N&N 1.9 STOCK MM
cultofluna said:
No thanks.......
D855
RUNNING: N&N 1.9 STOCK MM
Click to expand...
Click to collapse
I just posted an alternate download link in the op
chuyennho184 said:
Can't download because AFH require sign in.
Sent from my LG-F400S using Tapatalk
Click to expand...
Click to collapse
Alternate download link is up
Robshr said:
I just posted an alternate download link in the op
Click to expand...
Click to collapse
Thanks Dev, download it....
D855
RUNNING: N&N 1.9 STOCK MM
Robshr said:
Alternate download link is up
Click to expand...
Click to collapse
check your file/folder permission though, this is what I got even I am logged in
access denied
looks like you don't have permission to access this folder. Make sure you are signed in to an account that has permission, or check with the developer to request access.
PS: Also, the link should be www.androidfilehost.com/?fid=xxxxxxxxx (17 digits ) , but yours is androidfilehost.com/user/?w=settings-dev-files&flid=49846
Robshr said:
Instructions
First thing since I only have access to the vs985's 46a stock firmware (MM) and won't flash an asop MM ROM until I have this just have I want it and it all backed up to my computer.
So before anything go to /system/etc and find any files with thermal or thermald in it. Hope you only have 1. Named thermal-engine-8974.conf if that's the only file you have you can just flash the zip wipe the both caches reboot and give it about a day to settle in before starting to test or give any opinions
Now if you have different files then the one I name above send all the details about what's running on your phone and upload a copy of whatever files you have and send the link along with you phone info
Link to downloads-
https://www.androidfilehost.com/?fid=24415232478675537
Alienate download link: https://mega.nz/#!q1B3wYxS!jfyhwQnXa8c0rYAA2JcDVpiqeEDc4IlbvQ6DfSvZyIs
Please remember this is a WIP so please be patient thanks
If interested here are my interactive governor settings see attachment
Click to expand...
Click to collapse
abced123 said:
check your file/folder permission though, this is what I got even I am logged in
access denied
looks like you don't have permission to access this folder. Make sure you are signed in to an account that has permission, or check with the developer to request access.
PS: Also, the link should be www.androidfilehost.com/?fid=xxxxxxxxx (17 digits ) , but yours is androidfilehost.com/user/?w=settings-dev-files&flid=49846
Click to expand...
Click to collapse
I got it fixed I had copied the link to the folder with contained the file and not the link to the file itself. Anyway it's all good now
I'm on fulmics 3.5 with solid kernel (d850). I don't see any thermal file in my system\etc folder. Can I still flash the mod?
sociojeje said:
I'm on fulmics 3.5 with solid kernel (d850). I don't see any thermal file in my system\etc folder. Can I still flash the mod?
Click to expand...
Click to collapse
EDIT SORRY MISREAD you're right in the /system/etc/ there and definitely a thermal file in there
near the bottom
File is. .config or you might been on a romv with a thermal. XML file or similar
Dump question but you're using a root file browser
Second version on the way
I started on the second version last night in hopes of keeping the phone cooler at high loads compared to stock ) like I did with previous versions). So after my initial real feel testing for the first few hours after flashing the the new mod I was happy to feel that the phone felt cooler and didn't lag at all and just felt very smooth even after am hour of moderate to heavy use. I was happy enough to say f-it and go against my own rule of testing and just waited a few hours to let the phone get back to normal temps and than I started an all it assault on the CPU for about thirty minutes straight I kept the CPU under 100% load or as close as possible for the entire 30 minutes. Well the results were better than I hoped for. The highest temp the CPU reached was right around 80° c and was there for only a few seconds and throttled down the CPU just that time and cooled down enough to throttle back up in less than a minute. Now compared to stock. And doing pretty much the same tests for the same amount of time stock went as high as 100°c and throttled down to 1.2ghz within the first ten minutes then down to 1.19 after 15 minutes and stayed between 996 and 1.2 the rest of the time occasionally dropping lower. By a little over halfway testing it stock without the mod the phone was at a crawl and by the end I thought for sure it was going to shut down.
Now with the mod installed it only throttled down once maybe twice but never lagged and ran smooth as silk the whole time. So I think I'm happy enough to try and release it tomorrow as version 2 experimental just in case I find a bug or something in the next few days if i don't then I'll post it in the op. continue testing it and start on the next version which hopefully I can make it as good as possible and achieving what I wanted to do with this mod, but there's always room for improvement. Well below I posted a screenshot of cputemp which was taken at around the 28 minute mark into the test and it shows the load the CPU is under, the frequency it's running at, and its temperature . now it doesn't really refect the average temp or average clockspeed which was closer to 70°c and 2.26 ghz because it bounces up and down quickly. That's why you need to check the reading alot because of how fast and how much all the different readings change every few seconds. So to get a more accurate average of the readings you need to log them as often as possible with whatever app you're using to see the temps and frequency.. Like in the picture I caught it at a much lower frequency than the average which was around the 2.26 mark and spending almost the same amount of time at the top speed of 2.45 ghz . one other bonus I noticed is how low the battery temp stayed. I don't think it ever went above 36°c and remember I had the on charge the entire time.
And these results should improve over the next few days as the mod has a chance to settle in. Hopefully users will get similar results and post them to confirm my results.
I'll perform the tests again in a few days and post them hopefully they improve
Robshr said:
I started on the second version last night in hopes of keeping the phone cooler at high loads compared to stock ) like I did with previous versions). So after my initial real feel testing for the first few hours after flashing the the new mod I was happy to feel that the phone felt cooler and didn't lag at all and just felt very smooth even after am hour of moderate to heavy use. I was happy enough to say f-it and go against my own rule of testing and just waited a few hours to let the phone get back to normal temps and than I started an all it assault on the CPU for about thirty minutes straight I kept the CPU under 100% load or as close as possible for the entire 30 minutes. Well the results were better than I hoped for. The highest temp the CPU reached was right around 80° c and was there for only a few seconds and throttled down the CPU just that time and cooled down enough to throttle back up in less than a minute. Now compared to stock. And doing pretty much the same tests for the same amount of time stock went as high as 100°c and throttled down to 1.2ghz within the first ten minutes then down to 1.19 after 15 minutes and stayed between 996 and 1.2 the rest of the time occasionally dropping lower. By a little over halfway testing it stock without the mod the phone was at a crawl and by the end I thought for sure it was going to shut down.
Now with the mod installed it only throttled down once maybe twice but never lagged and ran smooth as silk the whole time. So I think I'm happy enough to try and release it tomorrow as version 2 experimental just in case I find a bug or something in the next few days if i don't then I'll post it in the op. continue testing it and start on the next version which hopefully I can make it as good as possible and achieving what I wanted to do with this mod, but there's always room for improvement. Well below I posted a screenshot of cputemp which was taken at around the 28 minute mark into the test and it shows the load the CPU is under, the frequency it's running at, and its temperature . now it doesn't really refect the average temp or average clockspeed which was closer to 70°c and 2.26 ghz because it bounces up and down quickly. That's why you need to check the reading alot because of how fast and how much all the different readings change every few seconds. So to get a more accurate average of the readings you need to log them as often as possible with whatever app you're using to see the temps and frequency.. Like in the picture I caught it at a much lower frequency than the average which was around the 2.26 mark and spending almost the same amount of time at the top speed of 2.45 ghz . one other bonus I noticed is how low the battery temp stayed. I don't think it ever went above 36°c and remember I had the on charge the entire time.
And these results should improve over the next few days as the mod has a chance to settle in. Hopefully users will get similar results and post them to confirm my results.
I'll perform the tests again in a few days and post them hopefully they improve
Click to expand...
Click to collapse
Thank you for your amazing contribution for our G3 community.
All the download links are working fine
No more login prompt?
Uploading v2 now link will be posted later on in the op

(MOD)Improve performance eliminate lag with CTTMod (updated 11/08)

Introducing the CTTMod
(cpu thermal throttling mod)
Most popular mod for the G3 & G4 now here for the Nexus
Remember always make a full nandroid backup before doing anything
I Am Not Responsible For Anything You Do To Your Device.
Please read entire op before asking questions
Rom & kernel developers please feel free to include in your work. Just please give proper credit thanks
Best used in conjunction with an over clocked kernel i.e. elemental x
Working to improve performance eliminate lag along with lowering the core temps allowing your phone to continue to run smoothly after long or heavy periods of use.
Thermal control works by throttling the CPU down to preset frequencies at preset temperatures and is also done in a preset # of steps. Thermals also monitor and play parts in controlling other components like the GPU, battery and a couple of other things.
First let me be clear about one thing
The CTTMod does not turn off thermal throttling. Now the trick of going into the hidden menu and turning thermal mitigation and thermal control on. That does turn off all thermal monitoring and control and I highly advise against ever doing it. You take a huge risk of frying your phone.
What I've done is changed the first frequency bump down of two in the little cluster and left the 2nd stock
And in the big cluster I changed the first and second frequency bump downs of three and left the third stock
I've also increased the temperature at which it resets by 5° in versions 4x
For more info on how thermal works along with how the governor affects performance you can check out my op for the CTTMod for the G3 here
Instructions
1: Do a full nandroid back up
2: Back up your thermal file which is in system/etc ( thermal-engine.conf )
3: Flash mod and wipe cache
4: Reboot
5: In your kernel control app like kernel auditor set your thermal driver to msm thermal or temperature limit SoC temperture limit depending on what you kernel offers
The idea in the above is to make the kernel use the system's stock thermal driver which is the one I modded
I personally also check all cores on
Finally enjoy
One final note this mod and xceed kernel do not work together as xceed has built in it's own thermal control. If you would like to use this mod with xceed kernel you would have to ask the developer of xceed to make a compatible version. Sorry out of my hands.
Please hit the thanks Button and give it a 5 star rating :good:
Downloads
AFH downloads:
CTTMod v-3.1
CTTMod-v4
Change log: increased when the CPU resets after it has reached it's max temp, upped from 55°c to 60°c
CTTMod v-4.1
Changelog: increased the frequency of the first bump down in the big cluster
CTTMod v-5
Changelog: Increased the temperature by 2° at which the CPU and GPU bumps down there frequencies (Left the last bump 2 bump downs stock)
CTTMod v-5.1
Changelog: increased the temps of the CPU and GPU first 2 bump downs. CPU now starts throttling at 48°c and GPU starts at 44°c
CTTMod V-6
Changelog: increased 2nd GPU frequency step down and the goal of the experimental part is to lower overall temps
CTTMod- v6.1 revised
Change log: Fixed smoothness and I also modified the thermal hot plugging
Giving the option to use the stock thermal hot plug and still reap the rewards of this mod (please Google or an xda search on hot plug/ing if you don't know what it is before asking)
CTTMod 6.2: Improved performance
* 6- for MM *
* 7+ for nougat only *
CTTMod-V-7 1 Nougat
Updated for the final version on nougat (plus some added improvements)
Fixed and reuploaded
CTTMod 7.2 Nougat
Improved performance
CTTMod 8 over clocked nougat
Increased both big and little clustered first bump down and the GPUs first bump down to increase performance on kernels that can be overclocked to at least 2ghz on the big cluster and 1.7 on the small cluster
CTTMod 8.1 over clocked nougat Increased first bump down on big and little clusters
CttMod-Oreo-stock kernel-v-1
CttMod-Oreo-over clocked kernel-v-1
Donations are welcome but not required
At least please hit the thanks button to show your appreciation
Thanks Rob
Return to stock, pre-releases & governor settings
Return to stock-
Stock thermal
CTTMod 7.1.1 test version
Original thermals taken from the latest build of nitrogen ROM with there kernel
Go here for my CPU interactive governor settings for the best balance for performance and battery
I recommend elemental x kernel over clocked, I/o schedule to deadline and f sync off
Flashed over RR's stock kernel will update
Added to Nexus 6P index thread:
[INDEX] Huawei Nexus 6P
Yay...never thought I'd see this on the 6p...loved it on my old g3...about to test it on Android N...will report back
BakedTator said:
Yay...never thought I'd see this on the 6p...loved it on my old g3...about to test it on Android N...will report back
Click to expand...
Click to collapse
Thanks let me know what you think just remember this is my first official version more improvements to come
Robshr said:
Thanks let me know what you think just remember this is my first official version more improvements to come
Click to expand...
Click to collapse
Everything flashed fine, what temp should I start to see it throttle now?
BakedTator said:
Everything flashed fine, what temp should I start to see it throttle now?
Click to expand...
Click to collapse
I haven't changed the temps on this version only the CPU frequency it throttles to, I'm in the process of testing the next version with different temps
The Nexus handles things a bit differently then the g3 so I'm still working things out
Robshr said:
I haven't changed the temps on this version only the CPU frequency it throttles to, I'm in the process of testing the next version with different temps
The Nexus handles things a bit differently then the g3 so I'm still working things out
Click to expand...
Click to collapse
Good deal...even an extra 5 degrees would help...this phone throttles at a rather low temp...starts at 50c I think
Great to see Robshr here. Loved your mod on my further g3 and g4. Throttling seems really to be a problem on this phone. So i gonna flash this and report.
Gesendet von meinem Nexus 6P mit Tapatalk
Just flashed on n with stock kernel it booted up lol don't know if it worked tho
flashed this on Android N dp3, with elementalX Kernel.
How to confirm this working?
To check go to system/etc/thermal file
Sent from my Nexus 6P using XDA Labs
lenixroman said:
To check go to system/etc/thermal file
Sent from my Nexus 6P using XDA Labs
Click to expand...
Click to collapse
I've only got this thermal-engine.conf so did it work on n
The thermal file was original there but when you flash the zip replace the original one with the mod one he only change some frequency in the thermal file he didn't touch the temp
Sent from my Nexus 6P using XDA Labs
Just what the 6P needs, the throttling kills performance on this phone so much.
This works with any kernel?
pa.pn2 said:
This works with any kernel?
Click to expand...
Click to collapse
Yes
Robshr said:
Yes
Click to expand...
Click to collapse
In the original OP for G# it says you have to have the thermal-engine-8974.conf file, which the 6P only has thermal-engine.conf, so is that same? Does still work? Not clear on that part. Thanks! Also, I have always kept msm_thermal and core control disabled, I can still do that right? Be disabled still?

Categories

Resources