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

[KERNEL] Origin Kernel [SENSE 5] [Stock HTC 4.18.401.2 src] Linaro 4.7 | S2W

Tip us?
 
Dryize
Old
(Last edited by Dryize; 4th March 2014 at 04:37 PM.) Reason: screenshots of battery usage
#1  
Member - OP
Thanks Meter 53
Posts: 92
Join Date: Nov 2011
Location: Colombo
Post [KERNEL] Origin Kernel [SENSE 5] [Stock HTC 4.18.401.2 src] Linaro 4.7 | S2W

I'm new to kernel development. This is mostly copy paste. And will be adding bit of my stuff in the future hopefully




Introduction
Quote:
This is for those who love close to stock kernel with few added features, and minimum mods. And those who believe linaro toolchain does make a difference
Features
Quote:
Linaro 4.7 O3 Optimized
Sweep2Wake
smarmax governor

Future Plan
Quote:
Add UV and OC

Used Toolchain
Quote:
Cortex-A9 Optimized Linaro 4.7 2014/01 From http://forum.xda-developers.com/show....php?t=2098133
Download
Each version has different it's own set of features, pick what suites you most.
There are two major versions,
  • Origin : Sweep2Wake only
  • OriginD : Sweep2Wake + DoubleTap2Wake

OriginD 05 mediafire
OriginD 04 mediafire
Origin 03 mediafire
Origin 02 mediafire
Origin 01 mediafire



Changelog
[QUOTE]OriginD V05 03/03/2014
[fix] wifi bug fixed

Quote:
Origin V04 27/02/2014
[fix] improved s2w (minor changes)
[new] version with dt2w added (OriginD)

Origin V03 26/02/2014
[new] smartmax governor added (it's the default governor)

Origin V02 26/02/2014
[new] Linaro 4.7 O3 optimization

Origin V01 26/02/2014
[new] Sweep2Wake
[new] Linaro 4.7 with O2 optimization level

Known Issues
Quote:
OriginD V04 : WiFi is not working, (Unless you need DT2W use Origin V03 for the time being)

Kernel Configurations
Quote:
S2W Configs:
Quote:
Turn On/ Off (On=1, Off=0) :
Code:
Select Code
echo "1" > /sys/android_touch/sweep2wake
Button panel locks to s2w after this distance:
Code:
Select Code
/sys/android_touch/s2w_register_threshold
Screen turns on/off after this distance:
Code:
Select Code
/sys/android_touch/s2w_min_distance
Direction independent(Yes=1, No=0):
Code:
Select Code
/sys/android_touch/s2w_allow_stroke
DoubleTap2Wake Configs:
Quote:
Turn on :
Code:
Select Code
/sys/android_touch/s2w_allow_double_tap
Time double taps (ms) :
Code:
Select Code
/sys/android_touch/s2w_double_tap_threshold
Time between double taps :
Code:
Select Code
/sys/android_touch/s2w_double_tap_duration

How to flash:
Quote:
For S-OFF
1. Download ZIP file and put to SD card
2. Flash ZIP from recovery

For S-ON
1. Download ZIP file and extract kernelboot.img to Kernel Flasher fastboot dirrectory on the PC
2. Put ZIP file to SD card and flash from recovery
3. Reboot to bootloader and flash kernel by Kernel Flasher from PC


Thanx goes to
Quote:
@n3ocort3x, @audahadi, @maxwen, @TripNRaVeR ( copied from them ) and all those who does android development
@Christopher83 for optimized linaro toolchain
@Linaro for their cross compiler
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-03-04-21-35-37.png
Views:	525
Size:	65.6 KB
ID:	2613069   Click image for larger version

Name:	Screenshot_2014-03-04-21-36-37.png
Views:	515
Size:	70.4 KB
ID:	2613070   Click image for larger version

Name:	Screenshot_2014-03-04-21-35-58.png
Views:	523
Size:	145.1 KB
ID:	2613071  
The Following 16 Users Say Thank You to Dryize For This Useful Post: [ Click to Expand ]
 
Dryize
Old
(Last edited by Dryize; 4th March 2014 at 04:38 PM.)
#2  
Member - OP
Thanks Meter 53
Posts: 92
Join Date: Nov 2011
Location: Colombo
Default reserved

reserved
 
Bobbi lim
Old
#3  
Bobbi lim's Avatar
Senior Member
Thanks Meter 39
Posts: 413
Join Date: Dec 2012
Is this for sense or aosp?
how's the battery life?

I'm the first
Sent from my Nexus 7 2013 running Android L
 
aleksandar.1
Old
#4  
aleksandar.1's Avatar
Senior Member
Thanks Meter 265
Posts: 820
Join Date: Dec 2011
Location: Bitola
Quote:
Originally Posted by Bobbi lim View Post
Is this for sense or aosp?
how's the battery life?

I'm the first
Have u red the title?

@Dryize Thanks for sharing
limits exist only in your mind...
 
Zinta
Old
#5  
Zinta's Avatar
Senior Member
Thanks Meter 43
Posts: 140
Join Date: Nov 2011
Location: London
Haven't flashed yet but planning to! Is there an option to change s2w like some other kernels other or do we need to go into the plist file? (I think it's that file)
 
3498BoyZ
Old
#6  
3498BoyZ's Avatar
Senior Member
Thanks Meter 124
Posts: 359
Join Date: May 2013
Location: Behind You
Can you post some more information about the kernel ?

Gesendet von meinem HTC One X mit Tapatalk
 
Dryize
Old
#7  
Member - OP
Thanks Meter 53
Posts: 92
Join Date: Nov 2011
Location: Colombo
Quote:
Originally Posted by Zinta View Post
Haven't flashed yet but planning to! Is there an option to change s2w like some other kernels other or do we need to go into the plist file? (I think it's that file)
You can configure s2w the same way you do with almost every kernel. I've also added the details.
The Following User Says Thank You to Dryize For This Useful Post: [ Click to Expand ]
 
Dryize
Old
#8  
Member - OP
Thanks Meter 53
Posts: 92
Join Date: Nov 2011
Location: Colombo
Quote:
Originally Posted by 3498BoyZ View Post
Can you post some more information about the kernel ?

Gesendet von meinem HTC One X mit Tapatalk

There's nothing else to say. It's 99% stock. That's beauty of it. Only additions are s2w and linaro O3 optimizations
The Following User Says Thank You to Dryize For This Useful Post: [ Click to Expand ]
 
Zinta
Old
#9  
Zinta's Avatar
Senior Member
Thanks Meter 43
Posts: 140
Join Date: Nov 2011
Location: London
Quote:
Originally Posted by Dryize View Post
You can configure s2w the same way you do with almost every kernel. I've also added the details.
Ah sweet, thought it would be good to ask instead of assume. Also nice for beginners/novices to know how to change the configurations too so props for that!
 
fgth90
Old
#10  
fgth90's Avatar
Senior Member
Thanks Meter 231
Posts: 842
Join Date: Jan 2007
Location: Belfort, France
It would be really great to add the DT2W option to this one.

Do you think it's possible?

Best regards
Franky
HTC ONE X ROM ViperX 4.1.1 | Android 4.2.2 | Sense 5
HBoot 1.72 - Kernel File Type:
lONELyX #023 LI | Stock HTC 4.18.401.2 src |S2W,DT2W,FC,UMS,UV,GPU_OC,MPDEC...

----------------------------------------------------------------------------------
Don't forget to QUOTE if you don't want I miss your post
Hit THANKS if I helped you


Keskidi?.......

Tags
linaro, sense5, stock, sweep2wake
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes