Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,737,615 Members 46,102 Now Online
XDA Developers Android and Mobile Development Forum
View Poll Results: How many people are using the sleekai kernel?
Have the V510 and are using a sleekai kernel 20 95.24%
Are using a script in conjunction with sleekai 5 23.81%
Are using my app to toggle knock-on and sleep 9 42.86%
Multiple Choice Poll. Voters: 21. You may not vote on this poll

[KERNEL][V510GPE]SleekAI.

Tip us?
 
sleekmason
Old
(Last edited by sleekmason; 9th July 2014 at 07:23 AM.)
#1  
sleekmason's Avatar
Senior Member - OP
Thanks Meter 185
Posts: 385
Join Date: Dec 2013
Location: Fayetteville
Info 2 [KERNEL][V510GPE]SleekAI.

SleekAI kernel for the LG G Pad 8.3 V510 (GPE)

Works with all versions! Latest Update 9 April 14


Features:

Can be flashed through recovery or using adb
Gamma has been corrected for this device
On Demand CPU Governer as default (battery savings)
"Conservative" CPU governer added to possible governers
Knock_on and sweep2Sleep combination for screen control
LCD screen control (using Trickster Mod or other tool)
"Row" IO Scheduler added as default scheduler
Compiled using Google Toolchain EABI 4.7
Compiled using the -o3 optimize flags
init.d support (zip align, etc...)
Faux Sound Control added
USB Fast Charge added
Smaller Kernel Log buffer size
Tethering for bluetooth and usb
ADB root access to system files
Optimize very unlikely/likely branches
Kernel File Cache Manager enabled (for speed)
Removal of different types of logging (for speed)
Shorter Idle time . . . and more!

Full list located at bottom of post




The kernel source used for sleekai can be found here: Sleekmason's Github
Original kernel sources can be downloaded from here:
LG GPad V510 Source


Prerequisites

Unlocked bootloader
Root
Busybox installed for init.d support



If you don't have ADB, and are using a linux computer,

See the guide on installing and usage of ADB here:
HowTo Roll Your Own Kernel

The above link will also show you how to roll your own kernel should you decide you would like to do so.


How does this work?

Start with making a backup of your boot in recovery! See below.

You now have two choices! If you wish to flash the latest version sleekai5.6R in RECOVERY, proceed to the downloads below, download to your tablet, reboot into recovery and install the zip --That simple!

The "R" zips are flashable in recovery, those that don't are for installing through ADB.

However, If you want to use adb to have better control over your flash method, use the following instructions and download sleekai5.6adb.

Download sleekai5.6adb.zip (Current) to a folder on your computer.
navigate to your folder, open a terminal (if using linux)


Code:
Select Code
unzip sleekai5.6adb.zip
When you unzip, you will be presented with the file: "boot.emmc.win"

This is the file to push, If you try pushing the whole zip file it will not work!



Navigate to the folder where you unzipped sleekai.zip and currently have the unzipped boot.emmc.win boot image.

Flash the new boot image onto your device
Code:
Select Code
adb start-server
Code:
Select Code
adb reboot bootloader
Code:
Select Code
fastboot boot boot.emmc.win
At this point if it doesn't work you can simply reboot your device.
Using fastboot boot will only keep the new kernel image on until you reboot

To make your change permanent:
Code:
Select Code
adb reboot bootloader
Code:
Select Code
fastboot flash boot boot.emmc.win
Code:
Select Code
fastboot reboot
Note*
The first boot/reboot will take longer than usual as the kernel needs to repopulate all the files.


To make a backup of your original boot image

Reboot to recovery on your tablet. I'm using TWRP. If you are using something else it should be just as easy.
Code:
Select Code
adb start-server
Code:
Select Code
adb reboot recovery
Only tick the "boot" checkbox option in backup. Apply.

Make the backup to your sd card. I changed the name of my backup to boot.bac to keep it simple.

reboot.

On your computer, pull the file using adb
Navigate to the folder where you placed your backup.
Code:
Select Code
adb pull /storage/sdcard1/TWRP/BACKUPS/LG0000606708987/boot.bac
What we are after is the "boot.emmc.win" file. This is the original stock image to keep for a backup.

*Note
You may also download the stock.zip image from this thread.
It is the same image as the one on your device.


--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Changelog
 
Full list of changes

general setup-perf-changed to sleekai
general setup-kernel log buffer size changed from 17 to 16
general setup-Configure standard kernel features-Enable ELF-core dumps-unchecked
general setup-Optimize very unlikely/likely branches-enabled
Enable the block layer-I0 schedulers-Default I/O scheduler-changed from CFQ to Deadline
system type-LGE Specific Patches-Interface to calibrate LCD color temperature-enabled
file systems-caches-General filesystem local caching manager-enabled
kernel hacking-Show timing information on printks-disabled
kernel hacking-Collect kernel timers statistics-disabled
kernel hacking-Verbose BUG() reporting-disabled
kernel hacking-Compile the kernel with debug info-disabled
kernel hacking-Debug memory initialisation-disabled
kernel hacking-Print additional per-task information for RCU_CPU_STALL_DETECTION-disabled
kernel hacking-Deprecated power event trace API-unchecked
kernel hacking-Enable dynamic printk() support-unchecked
kernel hacking-Tracers-disabled
kernel hacking-Write the current PID to the CONTEXTIDR register-disabled
CPU power management-cpu frequency scaling-'conservative' cpufreq governor-enabled
CPU power management-cpu frequency scaling-Default CPUFreq governor-changed from performance to ondemand


Changelog 15 Feb 14
Added:
*general setup-perf-changed to sleekai2
*general setup-Enable access to .config through /proc/config.gz-enabled
*system type-Minimum idle time before sleep-Changed from 20000000 to 12000000


Changelog 19 Feb 14
Compiled using Google EABI 4.7


Kernel Added -sleekai3 ADB

Changelog 22 Feb 14
general setup-perf-changed to sleekai3
compiled with -o2 for optimization of code/better battery life, maybe.
general setup-kernel log buffer size changed to 14


Kernel Added -sleekai4 -ADB

Changelog 25 Feb 14
general setup-perf-changed to sleekai4
Added init.d support
Access root through adb - "adb root" (debuggable=1)


Kernel Added -sleekai4.1R - Install Through Recovery

Changelog 28 Feb 14
Added kernel support for flashing in recovery

Kernel Added -sleekai5adb and sleekai5R (Install from recovery)

Changelog 17 Mar 14
Added Tethering support (bluetooth)

Kernel Added -sleekai5.1adb and sleekai5.1R (Install from recovery)

Changelog 21 Mar 14
Removed Developer debugging for usb gadget support
And changed background writeout
dirty_expire_centisecs 300 from 200
dirty_background_ratio 10 from 5


Kernel Added -sleekai5.2adb and sleekai5.2R (Install from recovery)

Changelog 28 Mar 14
Minor code fix for usb gadget support and bluetooth
Addition of doubletap2wake (not currently utilized) to kernel source


Kernel Added -sleekai5.3adb and sleekai5.3R (Install from recovery)

Changelog 30 Mar 14
System Type - Idle sleep mode (Power collapse suspend)changed from power collapse
System Type - Preallocate memory for WiFi buffers -enabled
Addition of the Row IO scheduler as a choice
Addition of Doubletap2wake (not working on mine)
Addition of Sweep2wake/sleep ( sleep works...)


Kernel Added -sleekai5.4adb and sleekai5.4R (Install from recovery)

Changelog 2 April 14
Faux Sound Control support added (can also use Trickster Mod)
Changed default scheduler to "Row"
System Type - Preallocate memory for WiFi buffers -reverted to disabled


Kernel Added -sleekai5.5adb and sleekai5.5R (Install from recovery)

Changelog 7 April 14
Compiled using o3 optimizations
System Type - Preallocate memory for WiFi buffers-enabled
System Type - restrict kernel memory permissions as much as possible-disabled


Kernel Added -sleekai5.6adb and sleekai5.6R (Install from recovery)

Changelog 9 April 14
Added Fast Charge

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
For an easy way to turn on knock_on and sweep2sleep see the third post in this thread.

-------------------------------------------------------------------------------------------------------------------------------

For using init.d support on your device, please see the second post! You will need busybox installed on your tablet for this to work!

-------------------------------------------------------------------------------------------------------------------------------
Fast charge enabled for this device. Using Root browser, look in /sys/kernel/fast_charge
Under "fast_charge_level" I recommend using 900. Under "force_fast_charge" you can select 1 for on, or 2 for custom.
You are on your own here! I take NO responsibility for your actions! If your not sure, don't do it!

-------------------------------------------------------------------------------------------------------------------------------

If you wish to return to the stock kernel using adb, use your backup you (hopefully) made earlier, or use the stock kernel I uploaded here. It is the ORIGINAL image from the V510.

If you wish to return to stock from using the flashable zip, you will need to restore your backup from recovery if you don't have adb installed.


DOWNLOAD HERE:
ATTACHED FILES
Attached Files
File Type: zip stock.zip - [Click for QR Code] (7.31 MB, 109 views)
File Type: zip sleekai5.6adb.zip - [Click for QR Code] (6.57 MB, 40 views)
File Type: zip sleekai5.6R.zip - [Click for QR Code] (6.65 MB, 106 views)
The Following 13 Users Say Thank You to sleekmason For This Useful Post: [ Click to Expand ]
 
sleekmason
Old
(Last edited by sleekmason; 23rd March 2014 at 06:04 AM.)
#2  
sleekmason's Avatar
Senior Member - OP
Thanks Meter 185
Posts: 385
Join Date: Dec 2013
Location: Fayetteville
TO USE INIT.D SUPPORT ON YOUR DEVICE


Busybox must be installed for the init.d support file to work! (in the playstore)

SuperSu will need to be enabled at boot under settings-security in SuperSu


I have enabled init.d support for this device. This enables you to use different scripts to enhance your tablet!

To see if you have init.d support on other devices/kernels, you may type the code below in a terminal as root. If you don't see /system/etc/init.d as part of the readout, then you dont have it.
Code:
Select Code
grep busybox /init.rc
You will need to add a folder named init.d to /system/etc/ in order to use this support

One example is to have your apps zip aligned on boot.

Attached is the script to place in your init.d folder to do just that!


Another is to use 88sleektweaks to save battery! adjust as neccesary.


You will need to unzip the file on your computer to reveal the zip align script. Then:

Simply copy the script to your /system/etc/init.d folder and reboot. Thats it!

You can tell you have it right by looking in /data for the zip align db files after you reboot.

You should change your permissions on any file in init.d to rwx r-x r-x (755)

NOTE* For even more battery savings, change the cpufreq settings in the script from 1566000 to 1458000.

If you have a valid init.d tweak you think should be added here, send it to me and I will check it out!
Attached Files
File Type: zip zipalign.zip - [Click for QR Code] (644 Bytes, 59 views)
File Type: zip 88sleektweaks.zip - [Click for QR Code] (451 Bytes, 43 views)
The Following 3 Users Say Thank You to sleekmason For This Useful Post: [ Click to Expand ]
 
sleekmason
Old
(Last edited by sleekmason; 14th May 2014 at 05:11 PM.)
#3  
sleekmason's Avatar
Senior Member - OP
Thanks Meter 185
Posts: 385
Join Date: Dec 2013
Location: Fayetteville
Sleektoggle - For Knock_on and Sweep2Sleep


I made a small application using tasker that will enable Knock-on and Sweep2Sleep on devices using my kernel.

The application works as a toggle, and will need to be "enabled" after every boot to use these features.

This is for your protection, as knock-on will freeze your device if enabled before or during boot.

This keeps you from having to enable these manually by adjusting the files yourself.

The knock-on feature should work on ANY 510 device, as it is native to the device.

To use:

Download and install the apk.

Put the icon from your apps somewhere on your home screen

after boot/reboot, press the icon, allow root privilages, and you are done!

You should only need to enable root the first time.

To use the features:

Simply knock twice in the center of the screen to wake up your device from standby

To put it to sleep, swipe from right to left on the lower portion of your screen.

Pressing the icon a second time does not disable the features. Restarting your device does!
Attached Files
File Type: apk KnockOnly.apk - [Click for QR Code] (1.01 MB, 40 views)
File Type: apk Knock&Sweep.apk - [Click for QR Code] (969.7 KB, 21 views)
The Following User Says Thank You to sleekmason For This Useful Post: [ Click to Expand ]
 
edru
Old
#4  
Senior Member
Thanks Meter 8
Posts: 151
Join Date: Dec 2008
Location: Austin
Glad to see some dev on this device finally. Will flash it tonight and report if i have any issues.

Google: EdwardARubio
Twitter: @edru_

Current:
HTC One [SILVER]
LG GPad 8.3 [GPE]

RETIRED:
Nexus 7 (2012)
Samsung Galaxy Nexus
Barnes & Noble Nook Color
HTC Sensation
MyTouch 4G [PURPLE]
MyTouch 3G 1.2 [BLACK]
HTC Vogue [BLACK]
 
sleekmason
Old
#5  
sleekmason's Avatar
Senior Member - OP
Thanks Meter 185
Posts: 385
Join Date: Dec 2013
Location: Fayetteville
Quote:
Originally Posted by edru View Post
Glad to see some dev on this device finally. Will flash it tonight and report if i have any issues.
Excellent! You can expect the first reboot to be slow, as well as the first opening of some apk's as the kernel repopulates the files. Let me know!
 
cdkg
Old
#6  
cdkg's Avatar
Senior Member
Thanks Meter 32
Posts: 112
Join Date: Sep 2006
A lone V510 dev emerges!!! Thank you!

Sent from my LG-V510 using Tapatalk
 
sleekmason
Old
#7  
sleekmason's Avatar
Senior Member - OP
Thanks Meter 185
Posts: 385
Join Date: Dec 2013
Location: Fayetteville
-Updated kernel for ability to pull the .config from the device, and shorter idle time before sleep.(battery saver). With this comes an updated name change to sleekai2.
The Following User Says Thank You to sleekmason For This Useful Post: [ Click to Expand ]
 
sleekmason
Old
(Last edited by sleekmason; 3rd March 2014 at 05:33 AM.)
#8  
sleekmason's Avatar
Senior Member - OP
Thanks Meter 185
Posts: 385
Join Date: Dec 2013
Location: Fayetteville
--Update--

Kernel recompiled using the latest Google Toolchain eabi4.7

Gamma corrected on the tablet with no further optimization needed

And the latest Antutu benchmark for the 510 out of the box with the sleekai4 kernel: 27474 See attachments.
Attached Thumbnails
Click image for larger version

Name:	antutu22714.png
Views:	324
Size:	200.6 KB
ID:	2604044   Click image for larger version

Name:	Screenshot_2014-02-27-10-04-11.png
Views:	272
Size:	142.7 KB
ID:	2610454  
 
gunnyman
Old
#9  
gunnyman's Avatar
Senior Member
Thanks Meter 2655
Posts: 7,882
Join Date: Apr 2010
Location: Greenville SC

 
DONATE TO ME
going to give this a go right now.

---------- Post added at 01:57 PM ---------- Previous post was at 01:49 PM ----------

Gamma looks GREAT!

nice job sir. Thank you.
Uncle Gunny says, "MAKE A NANDROID"
LG G2 Uncarriered
LG Gpad 8.3 GPE
Rooted and Xposed
Don't be a d*ck -Wil Wheaton
Unlocking and rooting your HTC One with a Mac
Oh BTW I'm fat.
 
evinkay
Old
#10  
evinkay's Avatar
Member
Thanks Meter 10
Posts: 73
Join Date: Jul 2011
Location: Miami
Just flashed on my V510. Thank you so much for your hard work!
-----------------------------------------------------> K <-----------------------------------------------------

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes