[Kernel] StØck Kernel [Sense 5] [Stock HTC 4.18.401.4 source] S2W DT2W Fastcharge topic


kernel

As I got some PMs about kernel I compiled, I decided to create this thread. I will upload kernel for Stock ROM 4.18.401.4 base (only Old Layout), ARHD 33.1 4.18.401.4 base (Old Layout & New Layout), MaximusHD 21.3.0 (Old Layout & New Layout). I compiled kernel from HTC 4.18.401.4 crc source only with a few modifications (sweep2wake, doubletap2wake & fast charge and init.d support) - I used AOSP toolchain 4.6 -O2. It doesn't contain any other mods (like OC, UV etc.)

ALL CREDITS GO TO:
lyapota, maxwen, n3ocort3x, Xmister, faux123, Alex-V for their hard work and kernel sources (I just copy-pasted from them)

Features:

Quote:









used AOSP toolchain 4.6 -O2
sweep2wake
doubletap2wake
fast charge




Kernel Configurations:




Quote:









sweep2wake config:
Enable/Disable (1=enabled, 0=disabled, enabled by default)

Code:


echo "0" > /sys/android_touch/sweep2wake

Button panel locks to s2w after this distance (9 by default)

Code:


echo "VALUE" > /sys/android_touch/s2w_register_threshold

Screen turns on/off after this distance (325 by default)

Code:


echo "VALUE" > /sys/android_touch/s2w_min_distance

Direction independent(1=Yes, 0=No, 1=by default)

Code:


echo "0" > /sys/android_touch/s2w_allow_stroke

Pocket protection (1=Yes, 0=No, 0=by default)

Code:


echo "1" > /sys/android_touch/pocket_detect

DoubleTap2wake config:
Enable/Disable ((1=enabled, 0=disabled, disabled by default)

Code:


echo "1" > /sys/android_touch/s2w_allow_double_tap

Time double taps (ms) (500 by default)

Code:


echo "VALUE_in_ms" > /sys/android_touch/s2w_double_tap_threshold

Time between double taps (150 by default)

Code:


echo "VALUE_in_ms" > /sys/android_touch/s2w_double_tap_duration

Dead area in points from top of screen (0 by default)
put 1780 for dt2w works only on virtual keya area

Code:


echo "VALUE" > /sys/android_touch/s2w_double_tap_dead_area

Fast charge (1=enabled, 0=disabled, disabled by default)

Code:


echo "1" > /sys/devices/platform/htc_battery/fast_charge










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.) Put ZIP file to SD card and flash from recovery
2.) Reboot to bootloader
3.) Extract boot.img from ZIP and flash boot.img in fastboot




Downloads:
For Stock ROMs without init.d support
For Stock ROMs if you want init.d support - you can configure kernel via /system/etc/init.d/22sweepfc script
ARHD 33.1 Old Layout
ARHD 33.1 New Layout
MaximusHD 21.3.0 Old Layout
MaximusHD 21.3.0 New Layout




1 commentaire:

  1. Massage and the sun bath will not only activate your body but also reduce your weight, but care should be taken that the massage over abdomen should be done
    anti-clock wise and massage over the lower portion of the body should be upward
    and massage over the upper portion of the
    body should be downward. Dinner - Rainbow salad with 60% shredded vegetables, 30% chopped fruits
    and 10% dressing (mix virgin coconut oil with flaxseed
    oil as dressing). This will make you slim and fit in just a couple of weeks.

    RépondreSupprimer

Remarque : Seul un membre de ce blog est autorisé à enregistrer un commentaire.