Post Reply

[kernel][bln]MoshKernel[GPL]

OP CoolDevelopment

17th January 2014, 11:41 PM   |  #1  
CoolDevelopment's Avatar
OP Senior Member
Flag Cologne
Thanks Meter: 1,590
 
922 posts
Join Date:Joined: Sep 2013
Donate to Me
More
sI don't want to write a big OP.

This is a kernel and liblights modules I compiled to use with the Galaxy s II Plus.

Features

- BLN(Backlight-button-notification)

- compiled with linaro-gcc 4.9.1

- additional cpufreq governors: smartassv2 and scary

- additional I/O scheduler: fiops

- optional overclocking

- performance/battery tweaks(not many yet, more to come)

- linaro arm topology

- frandom

- dynamic fsync control

- init.d support for stock rom

- f2fs support

- linux kernel 3.0.101
Installation

- be sure, that you have a GT-I9105(P) and are on a compatible rom

- flash the .zip file with a custom recovery

- wipe cache

- To change your kernel settings I recommend you Performance Control

- BLN could eat some more battery

- the initial name of this project was custom_kernel
Downloads


custom_kernel 1.5
http://www.androidfilehost.com/?fid=23329332407566919

custom_kernel 1.5.1
http://www.androidfilehost.com/?fid=23329332407566930

custom_kernel 1.5.5
http://www.androidfilehost.com/?fid=23329332407566996

custom_kernel 1.5.6
http://www.androidfilehost.com/?fid=23329332407567173

custom_kernel 1.5.7
http://www.androidfilehost.com/?fid=23329332407567438

custom_kernel 1.5.8
http://www.androidfilehost.com/?fid=23329332407567499

MoshKernel 1.6
http://www.androidfilehost.com/?fid=23329332407567962

MoshKernel 1.7
http://www.androidfilehost.com/?fid=23329332407571177

MoshKernel 1.7 - non-undervolted
http://www.androidfilehost.com/?fid=23329332407571211

MoshKernel 1.7.2
http://www.androidfilehost.com/?fid=23329332407571650

MoshKernel 1.7.2 - non-undervolted
http://www.androidfilehost.com/?fid=23329332407571648

MoshKernel 1.8 - stock 4.2.2
http://www.androidfilehost.com/?fid=23329332407573842

MoshKernel 1.8 - aosp-based
http://www.androidfilehost.com/?fid=23329332407573843

MoshKernel 1.8.5 - stock 4.2.2
http://www.androidfilehost.com/?fid=23329332407576641

MoshKernel 1.8.5 - aosp-based
http://www.androidfilehost.com/?fid=23329332407576648

MoshKernel 1.8.6 - stock
http://www.androidfilehost.com/?fid=23329332407583770

MoshKernel 1.8.6 - aosp-based
http://www.androidfilehost.com/?fid=23329332407583772

MoshKernel 1.9 - aosp-based
http://www.androidfilehost.com/?fid=23329332407589598

MoshKernel 1.9 - stock
http://www.androidfilehost.com/?fid=23329332407589804

MoshKernel 1.9.1 - aosp-based
http://www.androidfilehost.com/?fid=23487008491966527

MoshKernel 1.9.1 - stock
http://www.androidfilehost.com/?fid=23487008491966519

- older versions are attached
Credits

- Samsung for kernel source
- @neldar for BLN control app and biggest part of BLN on i8190
- @pawitp parts of kernel source
- @k2wl for some cool stuff
- @Koush for initial AnyKernel
- Christopher83 for the precompiled linaro toolchain I used
- franciscofranco
- faux123
- googyanas
Configure BLN notifications


You can execute these lines in any terminal as root. If you want the settings to persst after reboot, create an init.d script with your settinǵs.

enable:
Code:
echo 1 > /sys/class/misc/backlightnotification/enabled
disable:
Code:
echo 0 > /sys/class/misc/backlightnotification/enabled
disable blinking:
Code:
echo 0 > /sys/class/misc/backlightnotification/led_blink_duration
change blinking duration (in milliseconds):
Code:
echo <time> /sys/class/misc/backlightnotification/led_blink_duration
Last edited by CoolDevelopment; 22nd May 2014 at 12:06 PM.
The Following 33 Users Say Thank You to CoolDevelopment For This Useful Post: [ View ]
17th January 2014, 11:42 PM   |  #2  
CoolDevelopment's Avatar
OP Senior Member
Flag Cologne
Thanks Meter: 1,590
 
922 posts
Join Date:Joined: Sep 2013
Donate to Me
More
[B]Changelog[B]
1.0

- initial commit
- BLN
- pre-undervolted
- scary and smartassv2 cpu governors
- compilation with linaro crosstool 4.7
1.1

- BLN bug fixed: buttons now always turn off, when turn on the screen
- smartassv2 added(forgot in the older release)
- compilation with linaro crosstool 4.8
1.1.1

- updater-scripts semi-fixed(it fully works, but it flashes a ramdisk, so you need to download the right .zip for your rom)
1.2

- added pegasusq governor
- removed bln wakelock -> better battery life with bln
- some optimization flags for better performance
- tweaked cpufreq table
1.3

- changed a bit in wifi driver for better battery while deepsleep
- enabled, swap, zram, decreased swapiness
- restored volt-table, caused reboots
- restored cpufreq table
1.4

- resolved problems with touchkey leds not turning off
- enable zram completely
- added I/O scheduler: sio, vr and row
1.5

- compatible with stock roms, because your ramdisk will not change while flashing
- higher default swapiness, you can change it in /system/etc/init.d/zramhelper
- you can turn of zram in /system/etc/init.d/zramhelper
- changed something in zram-related defconfig
1.5.1

- fix typos in itnit.d script, zram works now
1.5.5

- fix blinking and flickering of bln notifications EDIT: still flickering, but at least blinking works
1.5.6

- fix random reboots and force-closes
- remove pegasusq, it caused freezes
1.5.7

- fix graphical glitches(not fixed yet)
1.5.8

- compile with arm-eabi-gcc 4.7(there are problems with the memset fix, I am using the normal gcc for now)
- fix graphical glitches
1.6

- removed zRam
- renamed kernel to MoshKernel
- compiled with linaro 4.8.3
- a configurator script was added(run 'mosh-config' as root)
1.7

- pre-undervolted volt table again(it never caused reboots, other things were the reason)
- linaro arm topology
- dynamic fsync control added
- default swappiness changed to 50
- some other mrinor changes
- resolve touchkey backlight issues
1.7.2

- add frandom
- add bfq I/O scheduler
- graphics performance should get a bit better
- other minor patches
1.8

- compatibility with stock rom
- experimental intelliplug(disabled by default)
- init.d support on stock rom
- many minor and internal changes
- compilation with a cortex-a9 optimized toolchain
1.8.5

- remove ramdisk for aosp-based roms
- update stock kernels defconfig to 4.2.2
- remove intelliplug
1.8.6

- support for customizable vibration density for aosp-based roms
- fixed booting up of stock version(tested)
1.9

- f2fs support
- slab/slub/slob backported from 3.3
1.9.1

- stock now completely fixed
- removed all io-schedluers and added fiops
- compiled with linaro 4.9.1
- native bln support(without the app)
- many changes backported from 3.4 /block, a big thanks to k2wl for this
Sources

kernel: https://github.com/CoolDevelopment/MoshKernel

liblights: https://github.com/CoolDevelopment/liblights_s2vep

Reporting Bugs
If you have bugs, please report them like that:
Code:
ROM:
Kernel Version:
Setup(Governor etc.):
Clear description of the problem:
Please attach a kmsg and a logcat, too. You can get a kmsg like that with adb:
Code:
adb shell su -c 'cat /proc/kmsg /sdcard/kmsg.txt'
adb pull /sdcard/kmsg.txt kmsg.txt
adb shell rm /sdcard/kmsg.txt
If you just post feature x not working, it does not help at al and I will ignore the post.
Last edited by CoolDevelopment; 22nd May 2014 at 12:09 PM.
The Following 15 Users Say Thank You to CoolDevelopment For This Useful Post: [ View ]
18th January 2014, 06:33 AM   |  #3  
blurhns's Avatar
Senior Member
Flag Iasi,Romania
Thanks Meter: 25
 
118 posts
Join Date:Joined: Oct 2012
More
First. Downloading...
I have a question... You can set overclock to 1.3-1.4ghz? Because on actually 4.4.2 we can't overclock... Thanks
18th January 2014, 06:37 AM   |  #4  
hasdroid's Avatar
Senior Member
Flag damascus
Thanks Meter: 111
 
476 posts
Join Date:Joined: Jul 2013
Thanks but see this...
Why???

sent from my I9105 cm11
Attached Thumbnails
Click image for larger version

Name:	1390026977502.jpg
Views:	1835
Size:	43.7 KB
ID:	2523280  
18th January 2014, 08:09 AM   |  #5  
Member
Thanks Meter: 9
 
72 posts
Join Date:Joined: Jan 2014
More
Will this kernel work with the vibration fix for your cm11?
Thanks for doing this, by the way
18th January 2014, 08:14 AM   |  #6  
beastaki23's Avatar
Senior Member
Flag Athens
Thanks Meter: 419
 
267 posts
Join Date:Joined: Dec 2010
Quote:
Originally Posted by Anemiq

Will this kernel work with the vibration fix for your cm11?
Thanks for doing this, by the way

Yes.Install this after installed vibration fix and you will have no problem.
The Following User Says Thank You to beastaki23 For This Useful Post: [ View ]
18th January 2014, 08:15 AM   |  #7  
hasdroid's Avatar
Senior Member
Flag damascus
Thanks Meter: 111
 
476 posts
Join Date:Joined: Jul 2013
Quote:
Originally Posted by Anemiq

Will this kernel work with the vibration fix for your cm11?
Thanks for doing this, by the way

Yes...
But bln not working 😕

sent from my I9105 cm11
The Following User Says Thank You to hasdroid For This Useful Post: [ View ]
18th January 2014, 08:27 AM   |  #8  
beastaki23's Avatar
Senior Member
Flag Athens
Thanks Meter: 419
 
267 posts
Join Date:Joined: Dec 2010
Quote:
Originally Posted by hasdroid

Yes...
But bln not working 😕

sent from my I9105 cm11

BLN control from market worked for me. Did you try "Led notification", and turning your screen off?
The Following User Says Thank You to beastaki23 For This Useful Post: [ View ]
18th January 2014, 08:38 AM   |  #9  
hasdroid's Avatar
Senior Member
Flag damascus
Thanks Meter: 111
 
476 posts
Join Date:Joined: Jul 2013
Quote:
Originally Posted by beastaki23

BLN control from market worked for me. Did you try "Led notification", and turning your screen off?

I tested free version and it's worked perfectly but pro version didn't work 😶

sent from my I9105 cm11
18th January 2014, 08:38 AM   |  #10  
Member
Thanks Meter: 9
 
72 posts
Join Date:Joined: Jan 2014
More
Quote:
Originally Posted by beastaki23

Yes.Install this after installed vibration fix and you will have no problem.

Quote:
Originally Posted by hasdroid

Yes...
But bln not working 😕

sent from my I9105 cm11

Thanks. Should I wipe cache and dalvik after I have installed this kernel?

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Galaxy S II Plus Original Android Development by ThreadRank