[KERNEL] [test] [MM 6.0 Stock ROM] Frankenlenok (AW2 test kernels on post #86)

dirtyhank

Senior Member
Mar 2, 2010
551
924
0
Introduction

This is a kernel for LG Watch R built from stock sources (android-msm-lenok-3.10-marshmallow-mr1-wear-release branch) with some minor tuning and modifications for now. I'll probably add more features and optimizations but for the time being is pretty much stock on steroids.

This kernel is for stock ROM MEC23G

Disclaimer

Although I try to test it and keep it as stable as possible some of the changes can be considered experimental stuff, so don't blame me if it acts weird or goes up in flames.


Features
  • Multicore enabled
  • Bricked Hotplug (cores are plugged/unplugged based on load, when screen is off only 1 core is active. Read this post)
  • Power efficient workqueues
  • CPU Touch Boost
  • /dev/frandom support
  • Optimization flags
  • UBER Toolchain 4.9


Installation instructions

Download the boot image, reboot into bootloader and flash with fastboot:
Code:
fastboot flash boot boot.img
Alternatively you can test drive it without flashing:
Code:
fastboot boot boot.img

Download

Latest version is v0.4.1

Full and updated source code available on github.


Donations

I don't deserve that much credit for this kernel, I just try different combinations and make minor modifications to see which one appears to work better. However, I spend many hours working on this and doing extensive testing, if you feel like helping me out I'd appreciate some tiny donations to cover some minor expenses. Thank you!




Thanks To/Credits
flar2
franciscofranco
showp1984
intersectRaven
AudioGod


XDA:DevDB Information
Frankenlenok, Kernel for the LG G Watch R

Contributors
dirtyhank
Source Code: https://github.com/dirty-hank/frankenlenok

Kernel Special Features:

Version Information
Status: Testing

Created 2016-03-21
Last Updated 2017-04-09
 

dirtyhank

Senior Member
Mar 2, 2010
551
924
0
Changelog


v0.4.1 (2016-03-31)

  • Fix wrong kernel image


v0.4 (2016-03-31)

  • CPU max frequency cap to 1GHz
  • Touchboost frequency decrease to 787MHz
  • Hotplug thresholds tuning
  • CPU frequency set to 300MHz when screen off


v0.3 (2016-03-26)

  • Switch to interactive governor by default
  • Switch to noop scheduler by default
  • Remove CPU max frequency cap
  • CPU Boost


v0.2 (2016-03-23)

  • Bug fixes
  • Power efficient workqueues
  • /dev/frandom support
  • Minor optimizations


v0.1 (2016-03-21)

  • Optimization flags
  • Bricked Hotplug
 
Last edited:

dirtyhank

Senior Member
Mar 2, 2010
551
924
0
I've flashed you kernel and testing it now. For now it's running smooth. Is there a way to see if all cores are active ?
I do via adb shell. Here's how:

  1. Enable Developer Options: Go to Settings->About and click 7 times on the build number
  2. Enable ADB debugging: Go Settings->Developer options
  3. Connect Watch to computer and run"adb shell"
  4. Check Watch and allow adb access to the computer
  5. Run this command from the adb shell:
Code:
while sleep 1; do cat /sys/devices/system/cpu/cpu[0-3]/online | xargs echo; done
This command will show you the 4 cores online status every second. Here's an example of my watch turning on, launching Google Maps (one of the most demanding apps) and then settling in and going back to sleep:
Code:
1 0 0 0
1 0 0 0
1 0 0 0
1 1 1 0
1 1 1 0
1 1 1 0
1 1 1 0
1 1 0 0
1 1 0 0
1 0 0 0
1 0 0 0
1 1 0 0
1 1 0 0
1 1 0 0
1 0 0 0
1 0 0 0
1 1 0 0
1 1 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 1 0 0
1 1 0 0
1 1 0 0
1 1 0 0
1 0 0 0
1 0 0 0
1 1 0 0
1 1 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 1 0 0
1 1 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
1 0 0 0
As you can see up to 3 cores are used when Google Maps is launching, then alternates between 1 and 2. In my experience 4 cores are rarely online and since only 1 core is online when the screen is off I haven't noticed a big battery drain, actually my battery life is slightly better than stock kernel and the device is way smoother with multicore.
 
Last edited:
  • Like
Reactions: igni.selvaraj

dirtyhank

Senior Member
Mar 2, 2010
551
924
0
Sorry, but i cant get root with your kernel.
i followed this steps, but doesnt rooted .
-flash boot vía adb
-flash supersu 2.65 vía twrp
When i open kernel auditor, i havent root?
Can you send me the recovery.log after you install SuperSU? Usually /tmp/recovery.log
 

igni.selvaraj

Senior Member
Oct 12, 2012
150
34
0
Sorry, but i cant get root with your kernel.
i followed this steps, but doesnt rooted .
-flash boot vía adb
-flash supersu 2.65 vía twrp
When i open kernel auditor, i havent root
I did this and it worked for me,
use the tool from

http://forum.xda-developers.com/g-w...l-windroid-universal-android-toolkit-t3048122

and unlock the bootloader and then follow the fastboot flash. Remember this will reset your watch.

Regarding the batter usage: approximately less than 1% when idle. and around 2 % during the day.
There is little bit of time lag in showing the notification i am not sure if its related to kernel.
@dirtyhank will let you know after testing a bit more
 
Last edited:
  • Like
Reactions: jordirpz

dirtyhank

Senior Member
Mar 2, 2010
551
924
0
New version:

v0.3

  • Switch to interactive governor by default
  • Switch to noop scheduler by default
  • Remove CPU max frequency cap
  • CPU Boost

After some testing I've decided to go with interactive governor, CPU boost and no cap for max CPU frequency. I haven't noticed a negative effect on battery life and the smoothness is unbelievable. Give it a try and let me know how it works for you.
 

dirtyhank

Senior Member
Mar 2, 2010
551
924
0
Been having a problem with the watch since switching to Franken kernel where the watch will freeze with screen off and hard reset (holding the button down) to restart the watch is the only way to resolve. Anybody else experiencing this?

Cheers,
B.D.
I'd wipe cache.