[HTC Butterfly S] foggydew88:
This is the original HTC kernel for Butterfly s
​

My Butterfly S project stops here.

Today I changed the rear camera (due to the purple issue), and after I closed the phone no way to switch it on, I reopened the shell and after a long search I've found a little flat cutted (the one fron the power on button).

It means to change the mainboard, and I have no intention to make this job.

Just wanna say thanks to anyone who wrote to me along this months.

Now I will move on m9.

Good luck and long life to Butterfly S, still one of the best phones.

Informations :

Stock 5.0.2 HTC Kernel rel. 3.4.10

Giampa's Kernel for Android 5.0.2

Source: GitHub

Compiler Toolbox: Linaro_arm-cortex_a15-linux-gnueabihf 4.7.4.

Kernel Version: 3.4.10

defconfig: dlxp_ul_defconfig

Supported Devices :

Daily use on DLXP_UL

DLXP_U you just try and let me know (got a few positive feedbcaks)

Supported Roms :

Still 100% working (compass too) on stock and modified ROM 5.16.709.4 (thanks to Migascalp)

About others ROMs you just try and let me know.

Features :

Wake gestures support.

GPU Overclock.

CPU Overclock.

USB Fastcharge.

ExFAT support.

Perflock removed.

Changelog :

1.0.0
- Initial release

1.1.0
- Added simple GPU Governor
- Added GPU Overclock

1.2.0
- Added CPU Overclock
- Added more CPU min frequncies

1.2.1
- Added SmartassV2 & Lulzactive CPU Governors

1.2.2
- Removed 2214 Mhz Overclock
- Changed voltage range to allow 2106 Mhz full operative

1.2.3
- Removed Back Button wakes the phone bug (what a fight!)
- Added USB Fastcharge
- Recompiled with Linaro

1.2.4
- Added advanced USB Fastcharge
- RAM optimization
- ExFAT support

1.2.5
- Perflock removed (bye bye, not gonna miss you)
- Wake gestures refined (more sensitive and now is possible to set sweep vibration)

Downloads :

in attachments

zImage_XXX

: if you want to play with your own boot.img repacking

boot1_XXX.img

: just flash it with fastboot: fastboot flash boot bootXXX.img

Don't forget to make a Nandroid backup before installing

Credits :

@xXminiWHOOPERxX - I really learned many things just exploring your kernel source code, 'twas a big inspiration for me.

@flar2 - You made a fantastic job with your Sweep2wake, Doubletap2wake & Wake Gestures.

@show-p1984 - You made a fantastic job with your Sweep2wake project and with your Ville perflock hack.

@Matrix}{ - For your competence.

To anybody who wants to start by himself to add wake gestures to a kernel I sugget to look at this Matri}{ commit:

AddWakeGestures

It's a perfect track for any beginner

Wake gestures support

You can manage them with Sense 6 Toolbox or Wake Gestures, both are Xposed Framework modules and Mr. Google will help you to find them.

GPU Governor & Overclock

At this point init.d support is a must,

stock roms don't have it, I used "Universal init.d Support" from the market and it made its job to add the support.

To set the GPU max clock freq use the following lines in an init.d script (could be /etc/init.d/99bootGPU with 755 permissions)

echo XXXXXXXXX > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk;
chmod 444 /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk;

Values for XXXXXXXX are:

585000000 558000000 531000000 504000000 490500000 477000000 450000000 409500000 320000000 200000000 128000000

To set the governor use the following line:

echo "governortype" > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/pwrscale/trustzone/governor;

Values for "governortype" are:

simple

ondemand

performance

powersave

Let's test and feed back to me.

CPU Overclock & more CPU min. frequencies

Ok, this is a minefield, so I must be clear:

We are playing with Krait 300 CPU frequencies and voltage,

apply these changes only if you have experience on this matter at your own risk and responsibility

, I'm not responsible about any damage at your phone.

I added 2 overfrequencies:

1998 Mhz

2106 Mhz

and 4 minum frequencies:

81 Mhz

135 Mhz

189 Mhz

270 Mhz

You can set these values with SetCPU or 3C CPU Manager

System seem stable, but please test and feed back to me.

>1.2.2 shows a sensible performance improvement

SmartassV2 & Lulzactive CPU governors

You can set these values with SetCPU or 3C CPU Manager

Advanced USB Fast charge

There are two settings to play with in /sys/kernel/fast_charge/

- force_fast_charge:

0 - disabled (default)

1 - substitute AC to USB unconditional

2 - custom

- fast_charge_level

values to set are: 500 700 900 1100 1300 1500 (mA)

use an init.d script, I don't know if there are APKs who can manage these settings.

ExFAT

It's managed as module, so use it only if you need.

1) Copy exfat.ko in /system/lib/modules

2) Change permission in 664

3) add this line in your favourite init.d script: insmod /system/lib/modules/exfat.ko

My Antutu score

​