Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,737,266 Members 40,676 Now Online
XDA Developers Android and Mobile Development Forum

[KERNEL] iodak kernel v10 [10.07.2014]

Tip us?
 
iodak
Old
(Last edited by iodak; 26th July 2014 at 12:17 PM.)
#1  
Senior Member - OP
Thanks Meter 2165
Posts: 1,070
Join Date: Jan 2011

 
DONATE TO ME
This is kernel for stock JB based firmwares and unlocked bootloaders
From version 3 there is support for CM based ROMs.
It is based on LG sources
This is flashable zip, flash via CWM or any other recovery.


Features:
init.d support
unsecure
ROW, SIO
Cpuquiet Framework
Fsync control added (by Ezekeel)
Voltage control (cpu, core)
GPU overclocking to 600MHz
OC up to 1.7
Fast Charge
DDTW VIP
input boost
USB HOST
F2FS
lot of updates
.
.
.


How to:

Change cpuquiet governor:
/sys/devices/system/cpu/cpuquiet/current_governor

How to dissable/enable fsync:
/sys/dyn_fsync/Dyn_fsync_active
enable = 0, disable = 1

Voltage control cpu_g:
/sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table

Voltage control cpu_lp:
/sys/devices/system/cpu/cpu0/cpufreq/lp_UV_mV_table

Current GPU speed
/sys/devices/system/cpu/cpu0/cpufreq/gpu_cur_freq
Get it from adb while runing game:
adb shell
cat /sys/devices/system/cpu/cpu0/cpufreq/gpu_cur_freq

Tegra cpu variant
/sys/devices/system/cpu/cpu0/cpufreq/tegra_cpu_variant

Max & Min CPUs online
/sys/kernel/debug/tegra_hotplug/max_cpus
/sys/kernel/debug/tegra_hotplug/min_cpus

1-4
to return to normal mode set to 0

fast charge option
/sys/kernel/fast_charge/force_fast_charge
1 enabled
0 dissabled
It will trick device thinking you pluged charger. Remeber to turn it on before you plug in.

Smartdimmer
/sys/devices/tegradc.0/smartdimmer/enable
1 enabled
0 dissabled

GPU Overclock interface
/sys/devices/system/cpu/cpu0/cpufreq/gpu_overclock
to see curent freqs:
cat /sys/devices/system/cpu/cpu0/cpufreq/gpu_overclock
to set new freqs example:
echo 600 > /sys/devices/system/cpu/cpu0/cpufreq/gpu_oc

or you can also just edit values with Rootexplorer

Pissible freq to set are: 416,484,520,564,600

Stock freqs:
200, 228, 275, 332, 380, 416

echo 416 > /sys/devices/system/cpu/cpu0/cpufreq/gpu_oc

Vibrator control

echo 70 > /sys/bus/platform/tspdrv/nforce_timed (CM only)

Values can be set from 0 to 100

0 weakest
100 strongest

Screen off max freq
/sys/devices/system/cpu/cpu0/cpufreq/screen_off_max_freq

in kHz like: 475000


DEVFREQ

/sys/class/devfreq/gr3d/*

To turn on OTG:

1) echo 1 > /sys/kernel/otg_mode/otg_enable
2) connect phone to power (charger or USB)
3) unplug charger, connect OTG cable and then connect device to it (like USB mouse)
4) plug OTG male cable to power (USB or charger)

after device (mouse) is working you can disconect OTG male from power it will still work

Turn off OTG

1) remove cable from phone
2) echo 0 > /sys/kernel/otg_mode/otg_enable


F2FS

Kernel from version 10 support F2FS.

Kernel Installation will detect what file system you are on and change fstab as needed
Kernel installation script will tell you how are the partitions formated so check if that is correct
if not try to reboot recovery and install kernel again

Supported:
All partitions F2FS, all EXT4, only data F2FS and data and cache F2FS.

You will need recovery with F2FS support. There are few in the forums.

How to init.d scripts:

Use Root Explorer or similar app

open folder /system/etc/init.d

if it is not there create it and set permissions to rwxr-xr-x

Create new file in init.d folder and name it for example 99gpuoverclock

then add comands in it like this:
Code:
Select Code
#!/system/bin/sh
echo 520 > /sys/devices/system/cpu/cpu0/cpufreq/gpu_oc
and for last set permissions to 99gpuoverclock rwxr-xr-x and owner to root group to shell

That is it!


You can use these nice app for some settings: https://play.google.com/store/apps/d...0.trickstermod



Thanks to: CM team, Acree(Ricardo Cerqueira), coolbho3k, Faux123, Ezekeel, franciscofranco, Arararagi, LG.

If i left someone please PM me.

source

If you like it press the Thanks!


I am not resposible for any damage to your phone!

Downloads:
There are latest two versions for download

CyanogenMod is named: iodakx3_vXXCM.zip
Stock is named iodakx3_vXX.zip

Since i don't have p880 anymore. I will not continue to update this.

Work will be continued by:

http://www.modaco.com/topic/373059-c...xcellent-work/

After v9 anykernel installer
Attached Files
File Type: zip iodakX3_v08CM10.2.zip - [Click for QR Code] (4.39 MB, 3960 views)
File Type: zip iodakX3_v08CM10.1.zip - [Click for QR Code] (4.34 MB, 3244 views)
File Type: zip iodakX3_v08.zip - [Click for QR Code] (9.13 MB, 4702 views)
File Type: zip iodakX3_v9.zip - [Click for QR Code] (3.96 MB, 2588 views)
File Type: zip iodakX3_v9.5.zip - [Click for QR Code] (3.96 MB, 8365 views)
File Type: zip iodakX3_v10_CM.zip - [Click for QR Code] (4.02 MB, 1744 views)
File Type: zip iodakX3_v10_stock.zip - [Click for QR Code] (4.02 MB, 776 views)
The Following 262 Users Say Thank You to iodak For This Useful Post: [ Click to Expand ]
 
iodak
Old
(Last edited by iodak; 10th July 2014 at 02:40 PM.)
#2  
Senior Member - OP
Thanks Meter 2165
Posts: 1,070
Join Date: Jan 2011

 
DONATE TO ME
Changelog:

v1
disable lot of logging
removed gator driver
removed Lg core pluggging power saving
rised max freq while recording FHD to 1400Mhz
added ROW iosched
added CPUQUIET framework
added runnable_threads CPUQUIET governor
added voltage control
fixed temperature reports in apps
added fsync control

v2
added sysfs interface to see tegra variant (from 0 to 3)
added sysfs interface to see gpu running speed
made runnable_threads litle more agressive
GPU overclocked to 520MHz

v3
Added max_cpus and min_cpus interface from cpu-tegra3.c to cpuquiet.c
Make source compatabile with CM, marged all changes made from Acree to source tree
so it is now up to date with CM.

v4
reverted core pluging power saving
Fastcharge option (original idea by Chad Froebel)
OC
variant c1 c2 c3 c4
0 1600 1500 1500 1500
1 1600 1600 1600 1600
2 1700 1600 1600 1600
3 1700 1600 1600 1600

- added ability to dissable influence of some drivers to clock and core plugging.

v5
removed ability to dissable influence of some drivers to clock and core plugging.
fix OC for variant 0 (hope so)
cpuquiet updates
tegra video drivers updates
GPU overclock interface
interactive governor backported from 3.4 kernel google
input boost driver from tegra
added Sio iosched
added lp core undervolt interface

v6
Added proper interactive (tegra)
Added ARM topology definition by linaro
Added tegra AHB bus driver
ext4 --> optimized mount options
rised temp limits
some addons to GPU OC code
fixed not working init.d on stock

v7

Some updates from 3.2
-ext4 lower cpu consuption
- Proportional Rate Reduction for TCP
-net: wireless: bcmdhd: Fix PEAP with dynamic WEP
-mm: pass readahead info down to the i/o scheduler
-fat: simplify writeback_inode function
replaced fsync with dynamic fsync from Faux
OC all to 1.7GHz
Set on boot freq to 1.5
Reverted GPU clocks to stock (OC by user)
Merged Arararagi changes so it is now compatible with his rom (CM version)
Added vibrator control (sys/vibrator/pwm_val)


V8
No more min/max cpus interface (it was giving me issues)
tegra drivers updated
cpuquiet updated to almost (3.4 kernel) more to come
you can now set max freq when screen is off
totaly reworked 3D scaling driver
now uses samsungs devfreq driver for scaling (3.4 kernel)
Check github for more info.

V9
alowed it to go to 51Mhz even on screen on
more GPU driver updates
usb driver updates
baseband driver is updated to latest from tegra 3.4 kernel
DTTW (WIP) not working as it should, i am not able to wakeup device from deep sleep.
if it is even possible.
you can still use it while on charger or while still not in deep sleep
added back min/max cpus debugfs and it is working (finally) as it should
disabled fiq debugger
raw_ip_net is now built-in
anykernel installer

V9.5
fixed kernel panic
sound gain rised should be louder now
TCP Westwood enabled
No more need to edit cpu_user_cap to Overclock,
just rise freq with SetCpu or Trickersmod or similar app
It is set on boot to 1500MHz
// edit still needed i uploaded wrong build

V10

new GPU OC code
proximity fix (Rudjgaard)
mfd/ USB updates (nvidia)
vmscan/shed writeback updated to 3.2
lowmemorykiller/binder updated to 3.4
EXT4 updates
ROW ioshed updated
USB OTG
F2FS
removed Dt2W
update with CM kernel tree




.
.

.
.
.
The Following 89 Users Say Thank You to iodak For This Useful Post: [ Click to Expand ]
 
dfreake
Old
#3  
dfreake's Avatar
Senior Member
Thanks Meter 42
Posts: 551
Join Date: Mar 2012
does this work on 4 cores running while playing games ?

Sent from my LG-P880 using xda app-developers app
ROOTED SO FAR:
Galaxy note
Galaxy SII
Galaxy ace(owned)
Galaxy S plus
HTC Chacha
Sony Xperia neo
LG optimus 4X HD(OWNED )(help unlocking the bootloader )http://www.change.org/petitions/lg-e...-in-lg-phones#
Galaxy TAB 7.2
Galaxy Note 10.1(owned)
 
babymatteo
Old
#4  
babymatteo's Avatar
Senior Member
Thanks Meter 720
Posts: 2,732
Join Date: Aug 2011
Location: SoCal
Looks promising. Any CM support in the future?

Sent from my LG-P880 using Tapatalk 2
Nexus 5

Stock Rooted 4.4.3

Baseband 2.0.50.1.13
 
iodak
Old
(Last edited by iodak; 9th May 2013 at 09:05 AM.)
#5  
Senior Member - OP
Thanks Meter 2165
Posts: 1,070
Join Date: Jan 2011

 
DONATE TO ME
Quote:
Originally Posted by dfreake View Post
does this work on 4 cores running while playing games ?
Sent from my LG-P880 using xda app-developers app
Depending on load, but it isnt stuck on only one core if that is your question. Leave cpuquiet governor on runnable (stock).
The Following User Says Thank You to iodak For This Useful Post: [ Click to Expand ]
 
Bogeyof
Old
(Last edited by Bogeyof; 9th May 2013 at 08:09 AM.)
#6  
Bogeyof's Avatar
Senior Member
Thanks Meter 67
Posts: 316
Join Date: Nov 2011
Location: Augsburg
Many Thanks, testing...
Installed and booted ok, loaded Trickster Mod and set ROW Scheduler as standard...
Searched with Root-Explorer for the directories with governor and voltage settings, but could not find them:
/sys/kernel/system/ does not exist ?!

Trickster Mod doesnt seem to work. If I set row scheduler, SetCpu shows it as not changed (noop). If I set other settings, CPU frequency stuck on 1000 MHz, no more up and down scaling...
Rebooted and restored stock kernel for now...
__________________________________________________ _____________________________
Galaxy Note 3 LTE N9005 4.4.2 Stock, LG 4X P880 Vanir 4.3.1, Galaxy Note 8.0 (3G) 4.2.2 Stock
 
iodak
Old
#7  
Senior Member - OP
Thanks Meter 2165
Posts: 1,070
Join Date: Jan 2011

 
DONATE TO ME
It is /sys/devices/system/ sorry typo

With trickster you have to set min freq to what you want or it will aply 1500 as min and run on 1500.

Sent from my LG-P880 using xda app-developers app
The Following 2 Users Say Thank You to iodak For This Useful Post: [ Click to Expand ]
 
Bogeyof
Old
#8  
Bogeyof's Avatar
Senior Member
Thanks Meter 67
Posts: 316
Join Date: Nov 2011
Location: Augsburg
Quote:
Originally Posted by iodak View Post
It is /sys/devices/system/ sorry typo

With trickster you have to set min freq to what you want or it will aply 1500 as min and run on 1500.

Sent from my LG-P880 using xda app-developers app
Aha Ok, i didnt set the frequencies, but I saved other changes and it saved 1500/1500 Mhz (min/max) without changing these values by me. My phone was to hot (did AnTuTu Benchmark before) and so it stuck on 1000 Mhz (thermal throttle)...
Will try later again, now I have to play a golf tournament...
__________________________________________________ _____________________________
Galaxy Note 3 LTE N9005 4.4.2 Stock, LG 4X P880 Vanir 4.3.1, Galaxy Note 8.0 (3G) 4.2.2 Stock
 
Afro
Old
#9  
Afro's Avatar
Senior Member
Thanks Meter 727
Posts: 370
Join Date: Nov 2012
Quote:
Originally Posted by Bogeyof View Post
Aha Ok, i didnt set the frequencies, but I saved other changes and it saved 1500/1500 Mhz (min/max) without changing these values by me. My phone was to hot (did AnTuTu Benchmark before) and so it stuck on 1000 Mhz (thermal throttle)...
Will try later again, now I have to play a golf tournament...

Good luck bro

Kernel looks nice, will it support CM in some time maybe?
'Cause I don't want to go back to stock
Member of Team M4gkBeatz!



LG Optimus 4X HD | Android 4.3 | Vanir Nightlies | Pre-Rooted | CWM 6.0.3.1
 
iodak
Old
#10  
Senior Member - OP
Thanks Meter 2165
Posts: 1,070
Join Date: Jan 2011

 
DONATE TO ME
Will see.

Sent from my LG-P880 using Tapatalk 2

The Following User Says Thank You to iodak For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes