yashsingh1/xdaforums huggingface dataset:
[One (M7) Android Development] saturday_night:
I have three different charger incl the usb from pc what sure is the slowest, then there is a 1000mA charger which is a little bit faster (i dont think it really gives 1000mA) and a 1800mA charger and if i use a kernel with the fast charge option in kernel adiutor, it charges much faster and you will notice the difference a lot. Without that option, it is on my 1800mA charger, well feels like usb connection to pc xD
[One (M7) Android Development] __BJ__:
Ok, I haven't got any special chargers. Will include this in an extra version tomorrow. Its your part to test it.
[One (M7) Android Development] saturday_night:
Sure i will love to test it, fast charge is a reason to change the kernel for me.

Now i found the fast charge commit from xenonHD https://github.com/TeamHorizon/andr...mmit/e43cad62f711f0508b97cfe6bc976cc5f7503e92
[One (M7) Android Development] __BJ__:
Ok here is the build, please test the force fast charge feature. Not enabled by default!

EDIT: Added to main post
[One (M7) Android Development] saturday_night:
Thank you for that nice Kernel, works great. And charging is now much faster even with my 1800mA charger.
[One (M7) Android Development] hedeon76:
Thank you for your work.

I use this RR andt i have a smal issue. With your Kernel my Ambient Display will not work. If i flash back the Stock Kernel it work again.

i have no idea why this happen:confused:
[One (M7) Android Development] __BJ__:
EDIT: Sorry I was confused. I'm not using ambient display and can't find an option to enable it in latest official lineage os nightly. So its a feature of RR I think and its author has to support this.
[One (M7) Android Development] hedeon76:
I was also confused and test latest lineage and can't find the ambient display option.

EDIT: I have test some Kernels. It worked with Tesla Kernel and all RR Kernel from R1ghtC i extrakt from roms

but it wont work with Lineage, Xenon and your Kernel
[One (M7) Android Development] Wmapa:
Any way you could add cifs support to this kernel please?
[One (M7) Android Development] __BJ__:
CIFS is enabled...

[MENTION=4980180]hedeon76[/MENTION] : R1ghtC forked the lineage kernel for RR so please report this to him, I will not add support for a feature which is not available in the lineage Roms.
[One (M7) Android Development] hedeon76:
ok, thank you
[One (M7) Android Development] saturday_night:
This would be needed for ambient display but i never used this feature dont know how much battery drain it will cause.
[One (M7) Android Development] __BJ__:
This looks like a feature of the rom and not the kernel.
[One (M7) Android Development] hedeon76:
Yes, you are right.

These are only the changes in the ROM.
[One (M7) Android Development] apknl:
Here you go:

https://github.com/tathanhlam66/android_kernel_htc_msm8960/blob/rr7.1/drivers/usb/otg/msm_otg.c
[One (M7) Android Development] __BJ__:
Its already included, but thanks.
[One (M7) Android Development] alial04:
Hi and thanks for the features i was wondering if it was okey if i add this source to my manifest (i am the aicp maintainer :) ) and i will surely give a special thank :good:
[One (M7) Android Development] __BJ__:
yeah of course, do it :)
[One (M7) Android Development] gehess:
Just installed and works a treat! :)

Just wondering, what's the difference between the "Half" and "Full" options in DoubleTap2Wake?

Thanks!
[One (M7) Android Development] saturday_night:
With half you can just use the bottom half to double tap and wake the device, with full, you can use the whole screen.
[One (M7) Android Development] gehess:
Just wondering, do you know if using half the screen will save battery?

Also, is it possible for fast charge to reduce the lifespan of a battery compared to normal charging?
[One (M7) Android Development] __BJ__:
The touchscreen is on or off, its just checking if you touched it at the bottom half. So its not really saving battery except through unwanted wake ups.

Fast Charging doesn't force your battery to use more power than it can take. Its just an Information to the charger to provide up to 1000 mA of current. Its up to your device to take this much current. So no it will not reduce lifespan its just an optimization to force chargers providing more power. Important: you need a charger which supports quick charging! If you do not have one this force fast charge feature won't do anything.
[One (M7) Android Development] icxj1:
Works good on the VZW build. ?
[One (M7) Android Development] hedeon76:
I have test a little bit more and i found out that with the latest XenonHD and your Kernel Ambient Display work great. With RR not. :confused:

Anyway...
[One (M7) Android Development] 12reza12:
is this work on vipers one ?

thanx
[One (M7) Android Development] ★Michaelo★:
Nope
[One (M7) Android Development] @Nexxus:
Working? And whats with HTC Logo AS softkey?

Ty
[One (M7) Android Development] __BJ__:
Please read before asking. The Kernel is working, everyone in this thread wrote it. The logo is not intended to be a soft button but it can be used to wake up the device and as menu button. The thread title reads L2W (Logo2Wake) and L2M (Logo2Menu).
[One (M7) Android Development] @Nexxus:
Sry:crying:

---------- Post added at 09:03 PM ---------- Previous post was at 08:46 PM ----------

Basically thats my first time flashing a custom kernel on my first phone so i apologize for being stupid, but i cant find L2M, L2W in the kernel adiutor what i have to do to bring it to work?
[One (M7) Android Development] __BJ__:
Kernel Adiutor doesn't support L2M and L2W try this app. Otherwise you could enable it through a custom init.d script:

/sys/android_touch/logo2menu

0 - Off

1 - On

/sys/android_touch/logo2wake

0 - Off

1 - On

/sys/android_touch/doubletap2wake

0 - Off

1 - Full Display

2 - Half Display

/sys/android_touch/pocket_detect

0 - Off

1 - On

/sys/android_touch/sweep2wake

0 - Off

1 - Sweep2Wake & Sweep2Sleep

2 - Sweep2Sleep

/sys/kernel/fast_charge/force_fast_charge

0 - Off

1 - On

Init.d script to activate DT2W, L2M, L2W with pocket detection:

echo 1 > /sys/android_touch/logo2menu
echo 1 > /sys/android_touch/logo2wake
echo 1 > /sys/android_touch/doubletap2wake
echo 1 > /sys/android_touch/pocket_detect

You can add and apply init.d script on startup through Kernel Adiutor.
[One (M7) Android Development] @Nexxus:
thx i will try

---------- Post added at 11:15 PM ---------- Previous post was at 10:22 PM ----------

Thx it works but the Logo Key is a bit tricky.
[One (M7) Android Development] __BJ__:
Because its not really a key ;) Its more the display above.
[One (M7) Android Development] n0j0e:
better using su.d for scripts, not init.d I think!

[size=-1]Send with much love & Android.[/size]
[One (M7) Android Development] icxj1:
Also works good on Mokee m7vzw. Awesome! Must donate to your excellent work.
[One (M7) Android Development] __BJ__:
Not familiar with this. I'm more into the embedded linux kernel development and touching android sometimes.

[MENTION=7327102]icxj1[/MENTION] thanks for this honor but it was not that hard work. I took the sources from flar2 and merged it into the current Lineage OS sources. I'm happy to help everyone but I only shared what I needed for my phone :)
[One (M7) Android Development] todogamer:
A question, is the first time I install a custom kernel, my doubt comes with the fast charge, this would not cause some strange alteration in my mobile?, It will not crash or something?, I can use the Fast Charge normally?

Excuse my ignorance is that it is my first time to change kernel and I always like to inform myself .. Sorry for my bad english...

thanks
[One (M7) Android Development] __BJ__:
As I said before, force fast charge doesn't change anything to the phone or charging circuit. Its only a forced information to the charger to provide more power. The charger must have quick charging functionality for this.
[One (M7) Android Development] aminov:
flar2's app's not working for me, is it just me, saying wake gestures not supported
[One (M7) Android Development] Marusaia:
Same here. Flar's app not working. Using kernel audiutor do the job.
[One (M7) Android Development] aminov:
But kernel adiuotor doesnt have s2w!
[One (M7) Android Development] alial04:
look here
[One (M7) Android Development] d3nni:
Possible to get it working with the latest 7.1.2 Unofficiall LOS build? :)

Link to latest 7.1.2 build.... https://www.androidfilehost.com/?fid=745425885120724255
[One (M7) Android Development] lucyr03:
I think it's already working, you tried and faced problems like bootloop?
[One (M7) Android Development] d3nni:
Yea, I just got bootloop... but gonna try again. :)
[One (M7) Android Development] lucyr03:
On AICP 7.1.2 working fine.
[One (M7) Android Development] icxj1:
Kernel still working on aicp 7.1.2 but doesn't stick on ota update.
[One (M7) Android Development] RoachPapa:
i can confirm this too.

BTW: thanks for this kernel, working sweet here:)
[One (M7) Android Development] icxj1:
Aduitor settings stick though, soon as reflash it's ready to rock.
[One (M7) Android Development] ad2003:
Works great! Thanks for taking the time to make it!
[One (M7) Android Development] zukers:
I have created 91kernel file in /system/stc/init.d with 777 permissions:

#!/system/bin/sh

echo 1 > /sys/android_touch/doubletap2wake

echo 1 > /sys/android_touch/pocket_detect

echo 1 > /sys/kernel/fast_charge/force_fast_charge

but after restart, these options still not working - why?
[One (M7) Android Development] n0j0e:
flashed RR-N-v5.8.3-20170420-m7-Unofficial & 20170308-htc-one-m7

In Kernel Adiutor the max GPU Frequence doesn't stick to 400Mhz, only 320Mhz.

Update: Ok after 2 reboots all ok now!

Send with much love & Android.
[One (M7) Android Development] ckpv5:
This is how it looks on mine

#!/system/bin/sh

echo "2" > /sys/android_touch/doubletap2wake

echo "1" > /sys/android_touch/pocket_detect

echo "0" > /sys/android_touch/sweep2wake

echo "1" > /sys/kernel/fast_charge/force_fast_charge

but I put it in system/su.d and the file is with extension .sh
[One (M7) Android Development] n0j0e:
[MENTION=4597969]__BJ__[/MENTION]

Possible to make a new dt2w Kernel based on the new RR 5.8.3 m7 release? There many kernel changes in.

Send with much love & Android.
[One (M7) Android Development] zukers:
thanks, but still nothing, created su.d folder in /system and created file like yours there, but after reboot still no doble tap to wake
[One (M7) Android Development] n0j0e:
su.d works for me only with SuperSu. On Magisk SU etc/init.d is working.

Send with much love & Android.
[One (M7) Android Development] ckpv5:
You put correct permission 0775 (rwxr-xr-x) on both su.d and the file.sh ?

I actually meant to show your previous script is missing "" on echo

You can edit your file to include "" after echo e.g.

echo "1" not echo 1 and put it in init.d

and permission 0755

---------- Post added at 11:22 PM ---------- Previous post was at 10:55 PM ----------

Correct.

SuperSU --> su.d

Magisk --> init.d
[One (M7) Android Development] __BJ__:
Please provide link to Rom thread, and Github Sources (kernel). Is there anything which got updated (kernel, not rom)?
[One (M7) Android Development] n0j0e:
don't know where the exact place for the m7 rr5.8.3 sources..[emoji57]

https://xdaforums.com/showthread.php?p=69850212

Maybe [MENTION=7186186]R1ghtC[/MENTION] can help.

Send with much love & Android.
[One (M7) Android Development] R1ghtC:
[MENTION=1759876]n0j0e[/MENTION], RR kernel must support dt2w.
[One (M7) Android Development] zukers:
folder /system/etc/init.d with 755, inside file 99kernel also with 755 permissions:

#!/system/bin/sh

echo "2" > /sys/android_touch/doubletap2wake

echo "1" > /sys/android_touch/pocket_detect

echo "1" > /sys/kernel/fast_charge/force_fast_charge

but still no success hmmm maybe I have to enable somewhere in ROM (resurrection remix) init.d support?
[One (M7) Android Development] __BJ__:
Kernel Adiutor has init.d emulation which executes init.d scripts on startup.
[One (M7) Android Development] __BJ__:
There are the Rom Sources, Kernel is something different. Changelog says that its using the Tesla Kernel. My Kernel is a little bit newer than the Tesla Kernel and uses the exact same sources for gestures.

And like R1ghtC is telling you the kernel should support dt2w because Tesla is supporting it.

As far as I can tell you, the kernel is up to date. There aren't any updates to it. Keep in mind Kernel != ROM !

Greetings
[One (M7) Android Development] n0j0e:
do you mean rr v2.8.3_m7 supports dt2w out of the box?

Edit: Ahh, yes. Flashed back the rr5.8.3 kernel and dt2w is there! [emoji106]

but when i look in the changelog from phone (04/20/2017)

..and there is much more when scrolling down. I will only understand this. [emoji6]

Send with much love & Android.
[One (M7) Android Development] icxj1:
Can you or [MENTION=4597969]__BJ__[/MENTION] confirm kernel support FM radio? Has not worked in a long time, nor the $7 spirit 2 by [MENTION=711091]MikeReid[/MENTION]s? Gives error saying kernel may not have FM driver. On Los & AICP.
[One (M7) Android Development] alial04:
The free spirit 2 is working for me
[One (M7) Android Development] icxj1:
Ok, I get it start sometimes but not play.
[One (M7) Android Development] __BJ__:
I can confirm Spirit 2 is working with BT off. Looked inside the the Kernel Config and everything for the FM Chip is enabled, as far as I can say.
[One (M7) Android Development] icxj1:
Weird, can only get it to work with BT on with shim on m7 & m7vzw. No reception though. Thanks! Reached my daily limit on the thanks button. :good:
[One (M7) Android Development] apknl:
I flashed your kernel in latest RR 7.1.2 for M7 built but then there were many random reboots . I do not know why but then I switched to stock kernel where D2TW is shown in Kernel Adituor but not working in RR. But features wise D2TW and USB fast charge in your kernel was working but then there were many random reboots. This is just FYI...
[One (M7) Android Development] gehess:
I'm using this kernel in AICP 7.1.2 for M7 (19 Apr build) and have no problems. :good:
[One (M7) Android Development] apknl:
Great ..:good: BTW I was talking about the effects of this kernel on RR. 7.1.2 build:) ..So the problem is with the RR builds then...
[One (M7) Android Development] __BJ__:
I will try to care about problems which are directly connected to this kernel. I'm not supporting any roms. If you have a bug where you think its related to this kernel please report with log files (kernel messages and maybe logcat).
[One (M7) Android Development] juanantofb:
Hi, can you add support to increase headset gain?

In the ElementalsX for stock rom, has implemented this funtion.

Thanks.
[One (M7) Android Development] ochomdnl:
Can this work on the sprint version or verizon?
[One (M7) Android Development] icxj1:
If you are m7 with Los or AICP rom then yes. Install kernel auditor to enable.
[One (M7) Android Development] FeelThePoveR:
[MENTION=4597969]__BJ__[/MENTION]

Our kernel is getting patched up (for the official revive I hope), so I guess it's time to start building it again.
[One (M7) Android Development] n0j0e:
my log get spammed with:

05-29 22:38:08.742 E/MP-Decision(6141): Error(-19) changing core 2 status to offline 05-29 22:38:08.793 E/MP-Decision(6141): Error 13 setting online status to 0 forcpu2 05-29 22:38:08.793 E/MP-Decision(6141): Error(-19) changing core 2 status to offline 05-29 22:38:08.844 E/MP-Decision(6141): Error 13 setting online status to 0 forcpu2

Any hint to solve this?

Send with much love & Android.
[One (M7) Android Development] 93zx7:
Is this kernel compatible with m7wlv variant?
[One (M7) Android Development] tathanhlam66:
Yes, this kernel can install m7 variant
[One (M7) Android Development] 93zx7:
I was asking about the Verizon Wireless Variant. I despise bootlooping
[One (M7) Android Development] Siphoné:
Who doesn't, lol! But the kernel is independent from the variant, that's what tathanhlam66 tried to say : you can flash it on any m7 variant, including the Verizon one.
[One (M7) Android Development] camambeou:
Sometime the pocket mode does not work as expected, my phone wakes accidently. Maybe the setting of sensors is not correct.
[One (M7) Android Development] saturday_night:
Same here, but with non of the kernels for android N with wake features is pocket protection working correct
[One (M7) Android Development] JustElisha:
Can I flash this if I have M7 normal variant with AICP custom rom 20170621?
[One (M7) Android Development] ★Michaelo★:
Yes you can
[One (M7) Android Development] titosmaximos:
SORY MY ENGLISH. NOT OPEN THE PHOTOGRAPHIC MACHINE AFTER KERNEL INSTALLATION.

Does anyone know?

MAY HELP?

ROM IS:https://xdaforums.com/showthread.php?t=2772755

AND

Fastboot getvar all

(Bootloader) version: 0.5

(Bootloader) version-bootloader: 1.54.0000

(Bootloader) version-baseband: 4T.35.3218.16

(Bootloader) version-cpld: None

(Bootloader) version-microp: None

(Bootloader) version-main: 5.11.401.10

(Bootloader) version-misc: PVT SHIP S-OFF

(Bootloader) serialno: SH351W903746

(Bootloader) imei:

(Bootloader) meid: 00000000000000

(Bootloader) product: m7_ul

(Bootloader) platform: HBOOT-8064

(Bootloader) modelid: PN0710000

(Bootloader) cidnum: VODAP102

(Bootloader) battery-status: good

(Bootloader) battery-voltage: 3839mV

(Bootloader) partition-layout: Generic

(Bootloader) security: off

(Bootloader) build-mode: SHIP

(Bootloader) boot-mode: FASTBOOT

(Bootloader) commitno-bootloader: dirty-b296905a

(Bootloader) hbootpreupdate: 11

(Bootloader) gencheckpt: 0

All: Done!
[One (M7) Android Development] tathanhlam66:
this kernel only work on android 6.0 and 7.0, try re-install rom, it will come back stock kernel.
[One (M7) Android Development] n0j0e:
And never post your imei, serial!!!!

Send with much love & Android.
[One (M7) Android Development] titosmaximos:
I know it, but in my rush I forgot to turn it off.

Thank you all!

---------- Post added at 09:42 PM ---------- Previous post was at 09:26 PM ----------

But I have a bizarre one.

While it's only for 6.0 and 7.0, because it works well all over the kit κατ and other than the camera;

It's just a little kernel that I'm working on. I've tried Bulletproof, ElementaX, but nothing.

Since I like the logo2menu there is someone here to suggest me?
[One (M7) Android Development] titosmaximos:
Please edit and delete IMEI.....thanks!
[One (M7) Android Development] BARMANIA:
Hi guys, so I installed the kernel with TWRP en wiped the dalvik cache afterwards. I also installed a root explorer so can edit the /sys/android_touch files like doubletap2wake, but after a reboot it defaults back to 0.

Wake Gestures 1.4 reports that the wake gestures aren't supported. I have lineageos 14.1 installed, do i have to wipe my phone in order to get this to work or am i missing something here?
[One (M7) Android Development] ★Michaelo★:
Try Kernel Adiutor to turn on dt2w
[One (M7) Android Development] BARMANIA:
Should have read that in the opening post, but that did the trick, thanks.
[One (M7) Android Development] gruntparty:
Logo2Menu is not being enabled for some reason. I set up an init.d script to enable it and confirmed it by checking the file in /sys/android_touch/logo2menu

echo 1 > /sys/android_touch/logo2menu
echo 0 > /sys/android_touch/logo2wake
echo 2 > /sys/android_touch/doubletap2wake
echo 1 > /sys/android_touch/pocket_detect
echo 0 > /sys/android_touch/sweep2wake
echo 1 > /sys/kernel/fast_charge/force_fast_charge

Has anybody been successful in enabling logo2menu?
[One (M7) Android Development] tathanhlam66:
go to /system/usr/keylayout/synaptics-rmi-touchscreen.kl

add line

key 139 MENU VIRTUAL
[One (M7) Android Development] Roméo16:
Hi,

Is this kernel' selinux permissive ?

thanks.
[One (M7) Android Development] saturday_night:
I´m missing the Button light notification feature so much in N Roms. Maybe its possible to add it? Here is the git entry for that https://github.com/flar2/m7-GPE-5.0.1/commit/159d2476705d390ee9b5e5f82e08065a92c0a29c

Additional to that, here are the newest updates for LOS Kernel (they are not official by now because the speaker call bug prevents the official status of the rom+kernel but its up to date with a lot of patches+security updates and working great) https://github.com/mchowdhury/android_kernel_htc_msm8960
[One (M7) Android Development] n0j0e:
And where is Kernel for end-users? ??

Gesendet von meinem One mit Tapatalk
[One (M7) Android Development] gruntparty:
It can be set to permissive if desired.
[One (M7) Android Development] Spring80's:
Hi guys! Can I use it with CM 13?
[One (M7) Android Development] elgreco29:
Hi, works this with the actual resurrection remix rom?
[One (M7) Android Development] n0j0e:
I prefer to stay on the stock rr 2.5.4 kernel for security reasons (has some fixes included)! dt2w is also possible via Kernel Adiutor.

Send with much love & Android.
[One (M7) Android Development] erfanoabdi:
Hi guys

i built new kernel with DT2W, Fast charge, ... features on latest lineage kernel source

tested only on latest AICP

https://github.com/erfanoabdi/android_kernel_htc_msm8960

ENJOY
[One (M7) Android Development] occtec:
Thanks mate, but only after about 15min my lockscreen was unresponsive the only way to get back in was to force recovery and restore backup. Any ideas? I'm also on the latest AICP

Edit: wake gestures by flar2 didn't work at all got the message 'this device does not support wake gestures'. So i used EXKM and enabled DT2W
[One (M7) Android Development] erfanoabdi:
ah, if you are using kernel auditor or any other app to enable double tap 2 wake

you need to enable it while screen is on

for example after complete boot keep your phone screen on until kernel auditor set dt2w

then you can turn off screen

otherwize your touchscreen will stop working till next restart
[One (M7) Android Development] occtec:
Thanks I'll give it a shot

---------- Post added at 10:41 PM ---------- Previous post was at 10:02 PM ----------

So i did as you suggested, all was good until i rebooted then the screen was unresponsive again after that.

Edit: using EXKM i set the option to start on boot.
[One (M7) Android Development] erfanoabdi:
told you

after reboot keep screen on until you see "kernel auditor is setting up..." notification complete and clear
[One (M7) Android Development] occtec:
I don't have kernel auditor and after first reboot i did keep screen awake. I proceed to download EXKM and enabled DT2W and set on boot. Once all configured i then screen off, i then used DT2W with no problem. So i decided to test it by restarting device but screen was unresponsive after reboot??
[One (M7) Android Development] occtec:
DELETED.
[One (M7) Android Development] occtec:
Forget It!
[One (M7) Android Development] occtec:
All good i finally worked it out ;):good: quick question. Does this support latest AICP ROM with Nov Security? Thanks mate
[One (M7) Android Development] mva113:
Thank you! DT2B still works. I use aicp_m7_n-12.1-NIGHTLY-20171126.:)
[One (M7) Android Development] mva113:
dt2w работает! но стабильно после полной зарядки через 6 часов самостоятельная перезагрузка!
[One (M7) Android Development] mva113:
Someone help! Installed the kernel from the header, and still once a day, the phone itself is reloaded. I use AISP 12.1 HTC One M7
[One (M7) Android Development] mvorosh:
the same ....;(

last_kmsg and version of kernel and rom here:

4mi4.ru/m7/
[One (M7) Android Development] gehess:
I'm running latest AICP (on last GPE firmware), SuperSU, Nanomod microG & patcher, and no problems with the kernel here.

Then again I reboot to recovery every day or so. Maybe that way I'm restarting my phone before my phone can surprise me by restarting itself... ¯\_(ツ)_/¯
[One (M7) Android Development] kAzGuRu:
Could you tell me the "Flash-Order" you flashed it to succession?

Since every time I try to flash the latest stable AICP (Latest Stable Release Version 13.1), followed by the Kernel, I get into a bootloop..
[One (M7) Android Development] gehess:
Pretty sure this kernel isn't compatible with AICP 13.1

I'm currently using the most recent XenonHD and don't bother flashing this kernel anymore.