Jump to content


Photo

[Kernel] Stone custom kernel for PF2 OC/UV/etc

- - - - -

  • Please log in to reply
13 replies to this topic

#1
lflint

lflint

    Newbie

  • Members
  • Pip
  • 12 posts
Presenting the Stone Kernel for Padfone 2, a custom kernel designed to get a little more out of the phone.

DISCLAIMER: As per all custom kernel disclaimers, while I do test this kernel on my own device, I'm not responsible for you voiding your warranty, or any damage/bricking/weirdness that may occur to your Padfone. If you're not comfortable with this, do not proceed.


Latest version can be found at:
http://forum.xda-dev....php?p=40212776


v0.6 available as of 2013/06/05.





v0.3
Main features:
Based on ASUS source code v10.4.15.1, compatible with Android 4.1.1 stock PadFone2 firmwares
Lowest CPU frequency set to 192mhz
CPU frequency locked to 192mhz-1512mhz during boot
Undervolted to save power & reduce heat
Undervolt interface (compatible with System Tuner, Kernel Tuner, etc)
Disabled "Monitor thermal state and limit CPU Frequency"
Additional CPU Governors: Wheatley, InteractiveX v2
Set InteractiveX v2 CPU Governor to default instead of Performance, to lower battery consumption, maintain snappy performance, and improve CPU freq config
GPU normal freq set to 128mhz to lower battery usage (will still scale upto 487mhz when busy)
Simple IO Scheduler (SIO) added, and set as default
Increased min/max read-ahead values from 16/128 to 32/1024
USB FastCharge (enable using Kernel Tuner, sysfs, etc)
Disabled Android Logger to reduce IO</end> and improve performance (temporarily reverted)
OC version: Overclocking upto 1.72ghz for a bit faster performance
OC version: GPU overclock to 487mhz

Currently two versions:
"Dual" = 2 max CPUs (reduced from 4 to save power, and improve overclocking stability)
"Quad" = 4 max CPUs (as per stock, but my tests indicate that the "Dual" version will provide better performance and stability)

"Standard voltage" - Only slightly lowered voltage, for those wanting a only-slightly-lowered voltage, close to stock. Usually more stable.
"Low voltage" - Tweaked voltages that are stable on my PF2. You may need to raise/lower slightly to achieve the best result on your phone.

"OC" = CPU OC to 1.72ghz, GPU OC to 487mhz. Lower CPU voltages.
"STD" = No OC. Only slightly lower CPU voltages than stock.

Minor tweaks:
Replace Wifi modules with AOSP versions (needed due to the way the stock modules were compiled by ASUS)
Disabled swap
Disabled "Compile the kernel with debug info"
Disabled Debug memory initialisation
Disabled Magic SysRq key
NTFS in kernel (instead of module)
FAT support
Disabled "Use MSM_DCVS for CPU/GPU frequency control"


Download:
Stock kernel 10.4.12.24: https://docs.google....dit?usp=sharing
Stock kernel 10.4.15.1: https://docs.google....dit?usp=sharing
Stone kernel v0.3 "OC": https://docs.google....dit?usp=sharing
Stone kernel v0.3 "STD": https://docs.google....dit?usp=sharing

Installation:
1. Copy StoneK_A68_v0.3_OC.zip or StoneK_A68_v0.3_STD.zip to /sdcard/ via USB.
2. Copy StockKern_A68_10.4.15.1.zip to /sdcard/ via USB, in case you have trouble booting, and need to uninstall.
3. Boot into TWRP or CWM Recovery.
4. Perform backup of at least your "Boot" partition.
5. Install zip from step 1.
6. Reboot.

Uninstallation:
1. Copy StockKern_A68_10.4.15.1.zip to /sdcard/ via USB.
2. Boot into TWRP or CWM Recovery.
3. Install zip from step 1.
4. Reboot.

Edited by lflint, 05 June 2013 - 01:49 AM.

  • 1

#2
lflint

lflint

    Newbie

  • Members
  • Pip
  • 12 posts
Changelog

ToDo:
Possibly faster CPU & GPU overclocking, pending successful testing
Lower brightness to save power
Lower voltages for display
GPU undervolt
GPU freq sysfs interface
WiFi undervolt
Enable additional audio codecs: WMA, AAC, etc
BLN?


v0.3 - 2013/05/07
Based on ASUS source code v10.4.15.1
Two versions - OC & Standard
Switched compiler from GCC 4.6 to 4.7
Further voltage tweaking
Fixed CPU throttling
Added InteractiveX v2 Governor - very good for properly setting CPU freqs across all cores
Set default Governor to InteractiveX v2
GPU overclock to 487mhz - working
GPU normal freq set to 128mhz to lower battery usage (will still scale upto 487mhz when busy)
Simple IO Scheduler (SIO) added, and set as default
Increased min/max read-ahead values from 16/128 to 32/1024
USB FastCharge (enable using Kernel Tuner, etc) - working
Removed Sysctl syscall support
Removed software controlled Adaptive Voltage Scaling (AVS)
Removed adaptive voltage scaling (AVS)
Removed Generic Dynamic Voltage and Frequency Scaling (DVFS) support
Removed CPU frequency translation statistics details
Reduced max CPU voltage back to 1.30v
Re-enabled "Monitor thermal state and limit CPU Frequency"

v0.2
Removed dual/quad versions - quad-core is running stably for me with revised voltages
Added standard/low voltage versions, for anyone having trouble booting, please try the standard version
Lowest CPU frequency set to 192mhz
Android Logger re-enabled temporarily, for USB FastCharge troubleshooting
CONFIG_SCHED_MC=n (not needed with HotPlugging CPU)
CONFIG_SCHED_SMT=n (not needed)
Disabled "Monitor thermal state and limit CPU Frequency"
Increased max CPU voltage from 1.30v to 1.45v (always monitor your temperature when increasing the voltage/frequency!!)
Further tuned CPU voltages
Added Wheatley Governor, and set to default
Disabled "Use MSM_DCVS for CPU/GPU frequency control"
GPU overclock to 487mhz - not verified yet - I think some kind of ASUS lock may still be preventing this
USB FastCharge (can be turned on with Kernel Tuner etc) - not verified yet - I think some kind of ASUS lock may still be preventing this

Edited by lflint, 13 May 2013 - 07:44 AM.

  • 1

#3
lflint

lflint

    Newbie

  • Members
  • Pip
  • 12 posts
FAQ

Q. My phone is running hot!
A. This is usually related to the voltage being too high. Try lower voltage, and try to determine which frequencies are running hot for you. You may need to also restrict your max CPU frequency with SetCPU, System Tuner, Kernel Tuner, etc, if the frequency won't run stably on your phone.

Q. CPU-intensive apps (particularly games) terminate abnormally after a bit of use.
A. This usually means the voltage is a little too low for that frequency. Try to raise the voltage (only 12.5mv at a time) until you find a stable voltage, and let the rest of us know what value is best for you.

Q. My phone won't even boot with this kernel.
A. Sounds like the voltages are too low for you. Try the "STD" version, which uses voltages only slightly lesser than stock.

Q. I want GPU overclocking, but I don't want CPU overclocking.
A. Use the "OC" version, and use SetCPU, System Tuner, Kernel Tuner, etc, to set the max CPU freq you want.

Q. Proximity sensor doesn't work during a call
A. Working on it...

Edited by lflint, 13 May 2013 - 07:47 AM.

  • 1

#4
gsep

gsep

    Newbie

  • Members
  • Pip
  • 9 posts
  • Devices:Asus Padfone 2, HTC Desire HD
thanks for your work!!!

  • 1

#5
Hwaide

Hwaide

    Newbie

  • Members
  • Pip
  • 1 posts
Would love to try this out, when following download link, ending up in preview inside the zip... what am I doing wrong??? Trying from my padfone2 and chrome/stock webbrowser...
Thanks for your work!
:-)hplan:-)

  • 1

#6
Ivan12

Ivan12

    Newbie

  • Members
  • Pip
  • 2 posts
  • Gender:Male
The Stock Kernel updated to 10.4.15.1-0 version. If it is alright for you to update the custom kernel. Thanks a lot!

  • 1

#7
Biggreen

Biggreen

    Newbie

  • Members
  • Pip
  • 1 posts
  • Devices:Padfone2
Can you make not OV version of kernel too?
And thx for you work =)

Edited by Biggreen, 25 April 2013 - 12:44 PM.

  • 1

#8
tobi1449

tobi1449

    Newbie

  • Members
  • Pip
  • 1 posts
  • Devices:Padfone 2
Any chance you could look into PDroid-Integration? That would be awsome :)

  • 1

#9
SwiftDropkick

SwiftDropkick

    Newbie

  • Members
  • Pip
  • 4 posts
  • Devices:Asus Padfone 2
Do you think it will be easy to enable USB OTG on the phone side of the Padfone 2? At the moment, only the Padfone Station supports USB OTG, but could this be solved by patching the kernel?

  • 1

#10
lflint

lflint

    Newbie

  • Members
  • Pip
  • 12 posts

Do you think it will be easy to enable USB OTG on the phone side of the Padfone 2? At the moment, only the Padfone Station supports USB OTG, but could this be solved by patching the kernel?


Yep. Put it in today, and tested ok with a USB flash drive. I'll upload the new version on the weekend.

  • 1

#11
lflint

lflint

    Newbie

  • Members
  • Pip
  • 12 posts

Any chance you could look into PDroid-Integration? That would be awsome :)


Not sure exactly what that does. Had a quick look on the web, and it seems to need older versions of Android?

  • 1

#12
VanillaDragon

VanillaDragon

    Newbie

  • Members
  • Pip
  • 2 posts
Thanx for kernel, im testing it now. There have bug with proximity sensor - it not work on this kernel. With stock al OK, but after flash Stonev0.3 "STD" sensor not turn on in call. Can you fix it?

  • 0

#13
lflint

lflint

    Newbie

  • Members
  • Pip
  • 12 posts

Thanx for kernel, im testing it now. There have bug with proximity sensor - it not work on this kernel. With stock al OK, but after flash Stonev0.3 "STD" sensor not turn on in call. Can you fix it?


Was fixed in v0.4. Currently up to v0.6, can be found at:

http://forum.xda-dev....php?p=40212776

  • 0

#14
VanillaDragon

VanillaDragon

    Newbie

  • Members
  • Pip
  • 2 posts
oh, thanx ^_^" on xda bit hard find something, if no forum on device >_>

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users