yashsingh1/xdaforums huggingface dataset:
[One (M8) Original Android Development] BrandonPrice31:
Weird, I never had this issue until now.

Mine was ticked off, turned that setting off.
[One (M8) Original Android Development] Johnny424:
I'm sure most of us can respect that flar. In the end whatever your judgement is on what will make our devices run and function the best..I trust your work/judgement
[One (M8) Original Android Development] -viperboy-:
Would you want to support the sprint variant or would you rather not? I have one, I'm happy to help bring your kernel to it if you'd like to. If not, no problem at all :)
[One (M8) Original Android Development] SeanHacker:
Should work just fine on all carriers.
[One (M8) Original Android Development] -viperboy-:
It says right in the OP that it's not for Sprint or Verizon...
[One (M8) Original Android Development] SeanHacker:
Oh weird. I'm the wrong thread. Lol. Scratch that. This definitely isn't for all carriers. :D
[One (M8) Original Android Development] Savant:
If we get users who say the phone can't boot we will send them your way lol.
[One (M8) Original Android Development] SeanHacker:
They might as well throw their phone in the garbage. I can't stand sprint. lol :)
[One (M8) Original Android Development] Savant:
Yeah they are a little rude and not worth it.
[One (M8) Original Android Development] DREWHAMM974:
Try Francos Per App Mode app on play store. Set it as more as it will go an still run well

---------- Post added at 11:28 PM ---------- Previous post was at 11:16 PM ----------

Send me the same and I'll help. You're so close. And I can't stand having to pick my phone up to see. If you must we all trust your judgement. But still I'm enjoying it while I'm on sense and not running Pac. Although I switch back and forth constant.
[One (M8) Original Android Development] aamitabh28:
Proximity sensor is flaky here too..sometimes works perfectly..sometimes doesnt.

On viper Rom.

Sorry for the trouble..
[One (M8) Original Android Development] The_Blue_Bomber:
So hypothetically if I were on CM11 I would use GPE kernel? Sorry if that was a dumb question.
[One (M8) Original Android Development] aamitabh28:
Nope.Gpe works on Gpe Roms
[One (M8) Original Android Development] Shebee:
I'd like to report that the gestures have been working almost perfectly on 0.15.

Only sometimes pocket detection gets stuck and the while the proximity sensor doesn't work during calls pretty often the kernel has improved a lot since 0.10!

I'm on viper 1.6btw
[One (M8) Original Android Development] flar2:
It's not that I don't want to support Sprint, I'm just stretched too thin. I can't even keep the OPs up to date in my threads.

That means it's not working. If it's working, it won't get stuck and it will work during phone calls. This sounds like the same behaviour I had on earlier versions. For me it was rectified by adding the boot time delay in 0.15 and 0.16. I can't figure out why it doesn't work for everyone.

Could you do a test for me?

With pocket detection enabled, turn the screen off, cover the proximity sensor and make a gesture. It should not vibrate or turn on the screen.

Do this a few times and let me know what happens. I expect that it will still turn on the screen unless you wait about 5 to 10 seconds after the screen is off.

I will take another crack at this, the next release will have a bunch of debugging messages and I will ask for logs so we can figure out what's going on.

It would also be useful to find out what firmware everyone has and see if there is a correlation.

Remember, the gestures themselves will work fine for everyone (barring configuration issues, careful with TricksterMod and VenomTweaks for example) it's only the proximity sensor that still has issues.
[One (M8) Original Android Development] grega_slo:
Hi Flar2!

I did the test as I`m on Viper 1.6.0 too and have the same problem.

This is what I did and what happened:

1. Closed Proximity sensor no gestore work, screen is off --> OK

2. Opened P sensor gestures work

3. Closed Proximity sensor no gestore work, screen is off --> OK

4. Opened P sensor gestures work

5. Closed Proximity sensor no gestore work, screen is off --> OK

6. Opened P sensor gestures still don`t work --> NOT OK

7. Waited 30 seconds tried gestures again, no go had to press power button

8. Closed P sensor gestures work --> NOT OK

I`m latest firmware for WWE version...

In addition, when making phone calls display is ON. I mad 4 calls, on 3 of them screen was ON and on 1 was OFF.

I don`t know, it is totally random.

Will gladly test it with debug version and send logs.

Regards,

M

UPDATE:

Found pattern:

1. Screen is ON

2. I turn it off, close P sensor and try gesture --> It does NOT work, screen is off

3. While screen still off, I remove my finger from P sensor and try it, it does not work

4. I have to wake it with power button.

?

:)
[One (M8) Original Android Development] flar2:
Thanks, that's good info. This seems to be a situation which I can't replicate. It sounds like what [MENTION=2676284]tiho5[/MENTION] is describing.

The only way forward from here is for me to add some debugging messages to the kernel and get some logs. I might not have time to do this until tomorrow night.

I assume the proximity sensor works fine with the stock gestures?
[One (M8) Original Android Development] grega_slo:
I *think* so.

Will reflash kernel and try it out.

UPDATE:

Stock is working just fine :)
[One (M8) Original Android Development] flar2:
I also forgot to ask if you guys are s-off or not.

Mine is s-off and I have whatever firmware came with a Telus phone.
[One (M8) Original Android Development] grega_slo:
yup, soff luckiky :)
[One (M8) Original Android Development] tiho5:
Yes, S-Off. FW: 1.54.401.5. Viper 160

Never checked stock gestures. Only mode 2 and 3, but I guess they are OK anyway.

Thank you for your continuous work!

I really have very limited time, but when the debug version comes I'll make sure I try to help.

Cheers!
[One (M8) Original Android Development] The_Blue_Bomber:
So this kernel won't work on CM11?
[One (M8) Original Android Development] Prod1702:
This kernel does not work on CM. If it did it would say that in the OP.
[One (M8) Original Android Development] Shebee:
You are correct. Works just like you said. I also have to wait for the gestures to work again, does it poll the proximity every x seconds?

How about replacing or adding another condition for the pocket detection, since it proves to be so problematic?
[One (M8) Original Android Development] ihateusernames:
Stock gestures work fine for me.

Viper 1.6

Elemental 16

Not soft

If you are still interested.
[One (M8) Original Android Development] :
[MENTION=4684315]flar2[/MENTION] I just received my second m8 and i notice it has a yellowish screen compared to the one running Stock rom with elementalx . Is it the variation in display panel or is it the kernel (Cooler color ?)

---------- Post added at 01:28 PM ---------- Previous post was at 01:25 PM ----------

[/COLOR [MENTION=4684315]flar2[/MENTION] I just received my second m8 and i notice it has a yellowish screen compared to the one running Stock rom with elementalx . Is it the variation in display panel or is it the kernel (Cooler color ?)
[One (M8) Original Android Development] p50kombi:
There are two different display manufacturers that HTC used for the M8.

There's a thread I think in the general section, and yes, they are different and if I recall correct one did have a more yellowish tint.

I'll hunt for the thread and I'll post it if I can find it...

Here it is:

http://xdaforums.com/showthread.php?t=2705983
[One (M8) Original Android Development] lukes91:
Thanx [MENTION=4684315]flar2[/MENTION], just updated to .16 and gestures seem to work fine with the dot view cover :good:

Sent from my Venomed Mate
[One (M8) Original Android Development] aamitabh28:
Any ideas what ges_wake_lock wakelock is caused by?
[One (M8) Original Android Development] ALiENr0x:
with 0.16 sense i get random reboot
[One (M8) Original Android Development] elsworth1983:
Anymore details than just a reboot, stock rom etc anymods installed as 16 is running sweet for me :rolleyes:;)
[One (M8) Original Android Development] ALiENr0x:
ViperOne -15 uV and tweak for unlock with gestures without move the device
[One (M8) Original Android Development] flar2:
That's the wake_gestures. You can get rid of it by using stock gestures, however, I'd be surprised if it was more than a couple minutes per day.

The other thing, in 90% of cases, the ges wakelock is held as the device is waking up, so it's not preventing sleep.

In all likelihood it has absolutely no impact on battery life.

If you have thin material in your pocket and the gestures are being activated constantly in your pocket, the wakelock might add up to a few minutes. Pocket detection will prevent the screen from turning on, but the phone will be held awake for up to 50 milliseconds each time a gesture is executed.

But if you think about it, how much impact is that on your battery? Even if the wakelock was 10 minutes per day, that's probably going to amount to something like 0.2% extra battery drain.

TLDR: don't worry about it.

Don't undervolt. But you should send me /proc/last_kmsg

However, I'm 99.9% sure it's not kernel related. This kernel is very close to stock, with no unstable changes. No other users are reporting reboots.
[One (M8) Original Android Development] ALiENr0x:
strange thing is that with 0.15 i dont have any problems ( just sometimes a little delay when i unlock )
[One (M8) Original Android Development] lukes91:
hi E!

+ 1, everything is running as smooth as silk :cool:
[One (M8) Original Android Development] flar2:
Could you please send me /proc/last_kmsg after it reboots?

That is the only way I can tell if anything kernel related caused the reboot.

There is a possibility that Linaro 4.9.1. introduced instability, but I don't think so because a lot of kernel devs are using it now without issues.
[One (M8) Original Android Development] ALiENr0x:
for sure , thank you for support, ill post kmsg when ill get a reboot
[One (M8) Original Android Development] GSLEON3:
Yay! Linaro!!!

Now all I need is for you to make a module that will take care of my dishes & laundry!
[One (M8) Original Android Development] ahm.elghazaly:
Does anybody else complain about the "checkin service" wake lock? I never experience it on the m7 but it gets massive ( 1h and more) when I flash the kernel on my M8 on ARHD 5.5.

I understand the kernel is almost like stock but I'm pretty it just happens when I flash the kernel.

It happens on 0.10, 0.13 and 0.15. I do appreciate your great work.
[One (M8) Original Android Development] p50kombi:
It's related to google services and has nothing to do with the kernel.

You should disable google location services, which is causing the checkin service wakelock and maybe make a task killing google services after 5 mins when screen off or something similar.
[One (M8) Original Android Development] ahm.elghazaly:
Location services are off completely and I've been testing by using the rom with stock kernel for a week now.

Now I decided to flash EX 0.16 to see if the problem persists specially after updating Google services to the latest and the problem still exists. 30 mins after flashing the "checkin services" wake lock starts.

So I flashed the rom again just to double check and the wakelock disappeared. I even waited a whole day to make sure and it shows up just for 5 mins.

I get the data by using betterbatterystats
[One (M8) Original Android Development] flar2:
Try wiping your caches

There is really no connection between the kernel and Google Services.
[One (M8) Original Android Development] p50kombi:
That's interesting..

I got rid of that wakelock by making a tasker profile that kills play services 5 mins after screen off.

With me it was related to google services, definitely...

It was also totally hit and miss, I could go days without it rearing it's ugly head and then all of a sudden without any warning my battery would start draining like crazy....

So running stock for a day to me does not rule out the option it's not something different...

Interesting t find out if there is anything on the kernel side though
[One (M8) Original Android Development] grgsiocl:
The latest Google play services is battery drainer and Google is aware of it and they will be releasing a fix soon..till then you can revert back to 4.4.51 version
[One (M8) Original Android Development] LittleH79:
How can you change back to .51?

In apps it's blocked out, no option to delete updates and can't find it in the market either..
[One (M8) Original Android Development] grgsiocl:
Uninstall as you do with other apk and then install this one http://d-h.st/6BG

Edit: if the play services is system application, then delete it using any file explorer by mounting the system to rw
[One (M8) Original Android Development] LittleH79:
Sorry to bother you again but can't find the play services apk in either system/app or in priv-app.

Where is it stored and under what filename?
[One (M8) Original Android Development] grgsiocl:
It should be gmscore.apk
[One (M8) Original Android Development] Shebee:
Use titanium backup.

---------- Post added at 08:08 PM ---------- Previous post was at 07:51 PM ----------

How much battery does undervolting/underclocking really save?
[One (M8) Original Android Development] boywithabeard:
if i were looking to increase the system wide vibration duration from 20ms to 30ms, where would I find this value?
[One (M8) Original Android Development] My Beer Belly:
sys>android_touch>vib_strength
[One (M8) Original Android Development] boywithabeard:
I appreciate the quick answer but I believe that is related to the wake gesture vibe strength only. I would like to increase the overall touch event vibe strength/duration to match the wake gesture strength.
[One (M8) Original Android Development] My Beer Belly:
Well if that's the case then I would like to know as well. My previous device had a more significant vibe strength on screen touches that I would like to emulate. The M8's default vibration strength is a little lackluster, yet it sounds like a bomb going off if I receive a call while my phone is on vibrate and is on my desk at work.
[One (M8) Original Android Development] maxrdlf95:
GPE 0.16 it's stuck on splash screen weird :S
[One (M8) Original Android Development] killcreek:
Support for SPRINT Variant???

Sorry for the Noob question. Is the Kernel still not compatible with Sprint Variant.??/

I am currently using ARHD ROM 6.1 on my Sprint Variant HTC ONE M8
[One (M8) Original Android Development] steve1996:
I've set up .16 to be 1.7 ghz max undervolt -120 mv, when I was on .15 I've set it 2.5 ghz undervolt -84mv. And I'm getting the same battery life on both setups, 5-6 hours screen on, which is quite disappointing to me to compromise performance to get nothing.
[One (M8) Original Android Development] GSLEON3:
Nope. Nothing Kernel related. In fact it isn't GMS related either, strictly speaking. Google Hangouts is the culprit, which of course relies on GMS, but Google is indeed aware of the problem & supposedly working on a fix. Hopefully it doesn't take as long as adding dialer support to hangouts on Android, something Google already integrated to iOS & desktop Hangouts 6 months ago. :confused:
[One (M8) Original Android Development] p50kombi:
Hehe.. I have never had hangouts installed, but still had those wakelocks

**********

Sent from a tin of baked beans using some chewing gum, tinfoil, a piece of string and a manual written by MacGyver
[One (M8) Original Android Development] c5satellite2:
Don't know if it is of any value, but new kernel source for 1.57 is up. It is significantly larger. 160 MB. 1.56 for Asia was also added.
[One (M8) Original Android Development] farru503:
Can anyone pm me the latest sense

version of this kernel please ... AFH is not working for me and can't download it
[One (M8) Original Android Development] Mikee4fun:
Yeah it has been taken down or there or simply no mirrors?
[One (M8) Original Android Development] Ravenmtx:
Here's the latest sense version 0.16

https://www.dropbox.com/s/w0455iwl3r5kklg/ElementalX-m8-0.16-Sense.zip

At least till AFH decides to start to work again.
[One (M8) Original Android Development] Mikee4fun:
Thank you!
[One (M8) Original Android Development] vegetaleb:
I dunno if it's Viperrom or this kernel but the I lose WIFI connection if I don't use my phone for 5 mins :(

When I wake up the screen it needs 200 secs to find the connection (which is at 2 meters)!!

No battery saving is used nor sleep mode
[One (M8) Original Android Development] jlevy73:
Has to be the Rom or something else since this kernel uses stock wifi stacks. Try dirty flashing Viper rom and see if the problem persists.
[One (M8) Original Android Development] vegetaleb:
I am gonna download and try the new ARHD or IC tonight, it seems Viperom is still not stable on the M8
[One (M8) Original Android Development] kuailan:
I have slight issue here, having flash the kernel, i cant use the htc voice dial when sliding down? Tried all options but no luck? Maybe im doing something wrong here?
[One (M8) Original Android Development] Mikee4fun:
Works fine for me when the screen is turned off. A swipe down enables voice dial. Are you trying to do it with the screen on?
[One (M8) Original Android Development] lukes91:
No issues here... The only thing i might think about is that you have a security setting to unlock the screen: if i disable security pattern everything is fine, if i enable it again i have to draw the pattern and the voice dialer works fine... Bit this is not an issue, it's a security system and i don't think it's kernel related... Anyway it should be quite easy to disable this security system...

Sent from my Venomed Mate
[One (M8) Original Android Development] DeeZZ_NuuZZ:
Haha lol viperonem8 Rom is the most stable Rom available for m8 :D it works perfectly nice, really fast with this kernel and good battery life...so it might be some apps or so ...

Gesendet von meinem HTC One_M8 mit Tapatalk
[One (M8) Original Android Development] kuailan:
Screen off with the dot view case.

---------- Post added at 08:48 PM ---------- Previous post was at 08:47 PM ----------

I have already set to no lock screen...

---------- Post added at 08:51 PM ---------- Previous post was at 08:48 PM ----------

Flash back to .10 version and it work fine...including the htc speak. The only thing i find though the new kernel seem to be much smoother and slick.
[One (M8) Original Android Development] Shebee:
In on 1.6 with Viper rom works almost perfectly.
[One (M8) Original Android Development] David Balfour:
Same here. After having problems with the motion gestures I finally got round to wiping it. Now works fine apart from 1 reboot but am undervolting but 45 so meh.

Thanks flar.

Sent from my HTC One_M8
[One (M8) Original Android Development] farru503:
What app you guys use to configure cpu , governor or voltage.?

---------- Post added at 02:50 PM ---------- Previous post was at 02:45 PM ----------

What app did u used to undervolt and set it to 1.7ghz
[One (M8) Original Android Development] aamitabh28:
Trickstermod
[One (M8) Original Android Development] steve1996:
For undervolt use trickster, but don't use it for underclock, set the clock speed when you're installing the kernel in the aroma installer
[One (M8) Original Android Development] Snah001:
Google yesterday finally officially acknowledged the problem that hangouts is draining the battery quite a lot as we already know for some time. They are working on a solution and will come with an update soon. Hangouts forum is full with all similar complains.

That took them some time:-/

Sent from my Asus Infinity TF700 with Dock
[One (M8) Original Android Development] killcreek:
BUMP... Could anyone please confirm.?? can i use ElementalX kernel on my Sprint Variant HTC ONE M8 Running ARHD 7 ROM??
[One (M8) Original Android Development] elsworth1983:
BUMP 1. Could always search the thread 2. Could make a nandroid and flash it and give it a try :confused::thumbup:

Sent from space
[One (M8) Original Android Development] SeanHacker:
You could try reading one of the very first lines of this OP? :)

No need to confirm...
[One (M8) Original Android Development] G1_enthusiast:
lol u just save his life hahaha
[One (M8) Original Android Development] SeanHacker:
That's why I come to XDA. ;):victory::p
[One (M8) Original Android Development] flar2:
UPDATE!!

I totally forgot to enable -O3 optimization up till now. Thanks [MENTION=1211160]HolyAngel[/MENTION] for reminding me.

I also added some debugging messages for the proximity sensor and made adjustments to the gestures.

Download:

ElementalX-m8-0.17-Sense

ElementalX-m8-0.17-GPE

Changes:

-O3 optimization

-allow more time for sensor initialization

-adjust gesture algorithm to better prevent accidental sweeps

-added some debugging messages for proximity detector (Sense version only)
[One (M8) Original Android Development] flar2:
I just posted the GPE version. I didn't try it out!!!! Can someone confirm that it's working?
[One (M8) Original Android Development] grega_slo:
Hi Flar2!

Is this the version we talked about?

With logging?

Can we have some instructions how to obtain log when reproduced?

Thanks!
[One (M8) Original Android Development] yblaze8:
It's preliminary but it's working so far for me on GPE.
[One (M8) Original Android Development] flar2:
Yes.

For now, let's look at the kernel logs from around the time the proximity sensor is not working

This can be done easily with adb shell

dmesg > /sdcard/dmesg.txt

Then send me dmesg.txt

Later, I might ask for logcats as well, and possibly /proc/last_kmsg
[One (M8) Original Android Development] jlevy73:
I've spent a good hour or so testing every variation of 0.17 and thus far cannot find any issues. Made a few calls, proximity sensor works well as does pocket detection. Both custom gestures and stock gestures working fine. Only thing I haven't tested is with the Dot View Case. I'm currently running IC 3.0.0 with the latest firmware from 1.54.401.10
[One (M8) Original Android Development] tiho5:
Thanks for the new version, Flar!

I tested it.

Used mode 3 and selected swipe up and double tap as active gestures.

Installed kernel, rebooted, waited for about 2 min and used one of the gesture to unlock. When proximity on call wasn't working I used the ADB command and saved a dmesg file. Then waited till proximity on call was working again after some time and then locked, used the other gesture to unlock and again saved a dmesg file after I saw that proximity on call wasn't working.

Then rebooted and repeated the same procedure again for 2 more dmesg files like the first ones for extra guarantee that I've got a proper info.

So here are the 4 files in a zip:

https://www.dropbox.com/s/pbxl2gzzrkrk5fc/dmesg files.zip
[One (M8) Original Android Development] mindfever91:
+1, I've been running 0.17 GPE on graffixsync's stock ROM without any issues as well.
[One (M8) Original Android Development] aamitabh28:
Flar I can't wait till you optimise the governor on the lines of elemantalx and the amount of improvement that will make!!
[One (M8) Original Android Development] jlevy73:
You've probably posted this before but what Rom and firmware are you on currently?
[One (M8) Original Android Development] kuailan:
Flar, I dont know why....even with this latest version....I can still get the slide down to activate the HTC speak??? I have also noticed when screen is off, sliding up also not working?? I am running the latest Venom ROM 1.6.0....I do not run any lock screen or turn any security screen...So far I have to go back to version .10 to get everything to work perfect.
[One (M8) Original Android Development] grega_slo:
Hi flar2!

Attached dmesg.txt.

I woke up the phone then made call and close the proximity sensor.

Screen remained ON, which is not good.
[One (M8) Original Android Development] anomalos:
+1 same for me
[One (M8) Original Android Development] tiho5:
Yes, S-Off. FW: 1.54.401.5. Viper 160

But it must be the HW being different on the different devices, not so much the software, I reckon.