yashsingh1/xdaforums huggingface dataset:
[Essential Phone Questions & Answers] dhorgas:
That’s really good detail. It very well could be a kernel bug. I am still going after the Google Play Services angle so I installed the latest beta version of Google Play Services to see if it makes a difference. I will report back once I have given the phone a few hours to idle.
[Essential Phone Questions & Answers] dhorgas:
Another update. I installed Google Play Services 12.2.13 (940-185232307) beta earlier today and have left the phone with Wi-Fi, Bluetooth, and Location enabled. This was approximately 8 hours ago. So far, with the new Google Play Services, deep sleep is working and I'm not seeing any excessive drain. I lost a very respectable 3% in about 8 hours, and that's with me at least waking the screen 3-4 times. For those that care to try as well, I first ”uninstalled" all updates to the default Google Play Services that came with 8.1 beta 1 and then installed the new Google Play Services, followed by a single reboot.

Here is what GSam Pro is reporting now...
[Essential Phone Questions & Answers] avd:
Could this be a magisk thing. I had the same exact performance with the 14.5 bug. Now I'm on 15.4
[Essential Phone Questions & Answers] hoppermi:
Only lost 3% on mine last night. 8.1 beta unaltered.
[Essential Phone Questions & Answers] Caltinpla:
No issues here. My phone sleeps like a baby!!! ;)
[Essential Phone Questions & Answers] tech_head:
No issues with mine either.
[Essential Phone Questions & Answers] dhorgas:
Another update now that it's been about 24 hours. The solution with beta Google Play Services seems to be holding. I'm getting deep sleep and idle battery consumption seems normal for Android. More usage today, though still intentionally letting the phone idle for extended periods to validate deep sleep fix.
[Essential Phone Questions & Answers] herwarth:
lost 15% during the night. play services beta and greenify do not work. this is crap
[Essential Phone Questions & Answers] dhorgas:
You are correct sir. I checked this morning and I lost 13% overnight. Phone refused to go into deep sleep despite my earlier report of beta Play Services appearing to fix the issue. Unfortunately the “fix” wasn’t a fix and it doesn’t work. This one is going to have to wait for Essential to fix. Everyone should do big reports. This is a serious problem, though obviously somewhat intermittent.
[Essential Phone Questions & Answers] herwarth:
i think it is wifi related. in oreo 8.1 google removed the setting to change wifi always on. it is now default always on. you can change it by using adb.

i changed it from always on to only when connected to power.

list the actual values:

adb shell settings list global

the wifi_sleep_policy variable can be (0,1 or 2)

Keep WiFi on during sleep: Always = 2

Keep WiFi on during sleep: Only When Plugged In = 1

Keep WiFi on during sleep: Never = 0

so i changed the value to 1 and let's see what happens

adb shell settings put global wifi_sleep_policy 1
[Essential Phone Questions & Answers] runderekrun:
Please let us know if this fixes the issue!

I ran the battery historian on my full day yesterday and it was much of the same. I took it off the charger at 10:30AM with a full charge. It went into deep sleep fine until about 2:30PM when whatever happens, happened. From 2:30PM to 11:30PM it didn't deep sleep even a second. Kernel keeping the device awake with out knowing why. I am still leaning toward a kernel bug but I just don't know enough to fully commit to that.

I installed the beta Google Play services because why not. My phone has been deep sleeping just fine since. But I know this is intermittent and will probably eventually happen again.
[Essential Phone Questions & Answers] LNJ:
WiFi Always On has never been a issue. I leave it that way and always had deep sleep.

Somerhalder is the problem. The new Google Play Services fixed the issue for a bit but it's not sleeping again.

On the plus side, I still have ample battery life in the end of the day so it's not really that bad.

However I don't want my phone not to go into deep sleep as well!
[Essential Phone Questions & Answers] herwarth:
does not work. perhaps it is magisk related..
[Essential Phone Questions & Answers] syckman:
I was having deep sleep issues as well, and installing google services beta, and the Magisk zip for it did not help. What did help was installing the Experimental X kernal @ https://xdaforums.com/essential-phone/development/kernel-elementalx-ph1-1-00-android-7-1-1-t3736061

This allowed my phone to deep sleep again! Its been about 24 hours since install and its looking pretty promising that this helped fixed my issues.
[Essential Phone Questions & Answers] avd:
Basically you rolled back the kernel to 8.0b
[Essential Phone Questions & Answers] runderekrun:
Give it a second. I've enjoyed 36 hours of deep sleep before getting hit with this bug again.
[Essential Phone Questions & Answers] coolmaster121:
Deep sleep is borked!
[Essential Phone Questions & Answers] avd:
Hmmmm....
[Essential Phone Questions & Answers] Jank4AU:
I think he means ElementalX 2.0 kernel which is for 8.1 Beta. I was wondering if that would fix the deep sleep. I've tried the updating Google Play Services apk to the beta and it helped a little but only after a reboot. Going to try Elemental once I get a chance to unlock my bootloader again. Don't have time right now to totally set everything up while at work and before I go to my 2nd job. Anyone else running ElementalX 2.0 who's on beta 8.1 care to chime in on whether or not that truly fixes the standby drain, no deep sleep?
[Essential Phone Questions & Answers] avd:
But since the 8.1 source hasn't been released kernel makers are using 8.0 as a base for their ph1 8.1 Kendall's.
[Essential Phone Questions & Answers] runderekrun:
I'm unlocked. I'll try the kernel and report back. If it is indeed based on 8.0b3 it would all but confirm an kernel error in 8.1 if the wakelock disappears.
[Essential Phone Questions & Answers] syckman:
Now past 48 hours since I've been on Elemental X 8.1 kernal and phone is still going in deep sleep so am satisfied this fixed MY battery issue. Would be interesting to see if others get same result.
[Essential Phone Questions & Answers] LNJ:
Like most of you, I suspect that it has to do with the radio.

I changed network type to Global and it seems to have fixed my Deep Sleep temporarily!

Hopefully it sticks...
[Essential Phone Questions & Answers] stevo_125:
Tried this, seemed to have worked at first but the issue came back within a couple hours. :(
[Essential Phone Questions & Answers] runderekrun:
I've seen speculation that it is Google Play services, kernel bug, or wifi issue but haven't seen anything about it being a radio bug?

---------- Post added at 11:08 AM ---------- Previous post was at 11:08 AM ----------

Guys please upvote this if you have a reddit account: https://www.reddit.com/r/essential/comments/7z0kpq/android_81_feedback/dulmhee/

I am about 6 hours into using the Elemental X kernel with no deep sleep issues yet. Will update again later on tonight.
[Essential Phone Questions & Answers] coolmaster121:
These are my battery times from yesterday, not having deep sleep working. I don't know what to think anymore.

I'm on stock 8.1 beta
[Essential Phone Questions & Answers] Jank4AU:
Yeah, the phone does a great job powering the screen without crushing battery. My pixel was the opposite. I still get good screen on time with 8.1 beta but the standby drain is the problem. Kernel just will not sleep.

Update: After finally rooting and flashing ElementalX 2.0 kernel, battery life is better than ever and device finally sleeps like a baby. My vote is that the kernel not entering deep sleep is all kernel related. I tried all sorts of other fixes and they either didn't work outright or didn't work for more than 15 minutes. [MENTION=4684315]flar2[/MENTION] has done a fantastic job on this kernel. Love it so far. Everything is much smoother, too.
[Essential Phone Questions & Answers] runderekrun:
Confirmed. 24 hours in with the elemental kernel and haven't seen the issue. Deep sleeping is working just fine. Kernel bug it is.
[Essential Phone Questions & Answers] bmaz121:
Besides the normal data collecting that Google does, you have to consider that if you just flashed an Android there is going to be a lot of activity with Google trying to sync whatever was backed up before. I'm not sure how Google does this and the criteria but it seems logical. After a few days it should be normal again. Which CPU SPY are you using? I see several. I know that I just used Mega to back up and it killed my battery for three days. At one point I had to power down after hitting 13% to get a positive charge going at 2 amp. The phone was using more than was being charged doing backups. I also noticed on my OnePlus One the battery charge would just shut off by itself. Not sure whats going on there. I haven't changed batteries in about a year or more so I might try that after I let it die and then recharge. I just did a face lock Zipfix also and wondering if face lock is eating battery, this would be good to test. It is not unlocking anyway. It seems that 8.1 is good right after the install about 3 to 4 days after. Then when adding Magisk and backup up Apps, things like Substratum, Xposed, and mail programs may be causing some of it too. It's a complicated issue and we need better tools to tell us what is going on with the phone. I find better battery stats to be fairly good but I don't have a good bench mark to judge it well so soon after a flash. Any body know of a good mail program that is not web, backs up setting and can be set not to poll servers unless asked to. Turning on WIFI has all the programs competing for Internet service and I would like to cut that down to only what I need at the turn on time.

---------- Post added at 07:25 PM ---------- Previous post was at 07:23 PM ----------

What tells you the Kernel is not sleeping?
[Essential Phone Questions & Answers] runderekrun:
Like not to be rude but how do you come into a thread like this and not read anything before the latest page? It's been documented it's not just normal collecting data from Google that is going on here. There is a switch or a bug that happens where 8.1 will

completely

quit deep sleeping until a reboot (if you are effected). Not just Google Play services going ham, like 0% deep sleep. I've been rooted on Android since the OG (HTC Dream). I am well aware of the wakelocks that is caused by Google Play services. If you download Cpu Spy Reloaded from play store you will see no deep sleep at all. It stays in 300mhz state until intervention.

The reason I think it's a kernel bug is this post on the 2nd page: https://xdaforums.com/showpost.php?p=75605501&postcount=15

AND the fact that I have switched kernels (to one based on 8.0B3) and the bug has disappeared for 26+ hours (hopefully permanently).
[Essential Phone Questions & Answers] Jank4AU:
EX Kernel Manager was showing 0% deep sleep on the stock 8.1 beta kernel for days of use. I've been on the beta since minutes after it's release and only saw minutes worth of deep sleep after a reboot.

My test was I just unlocked the bootloader so the phone completely factory reset. Then I rooted and installed ElementalX 2.0. So, with both environments being the same, kernel having to deal with me setting up all my apps and syncing everything again, I'm getting plenty of deep sleep and crazy good battery life with Elemental. Stock kernel is the problem. Plus, everything is just plain ol smoother.

I restored the same Google backup for each instance so am running the exact same setup and apps.
[Essential Phone Questions & Answers] runderekrun:
To expand on this: I did not not wipe when I was running 8.1 to running elementalx kernel (already unlocked) and the issue has disappeared.
[Essential Phone Questions & Answers] dhorgas:
Just a reminder to keep reporting this issue to Essential. They can’t release 8.1 with a borked kernel.
[Essential Phone Questions & Answers] vjyrdy:
2/21/18 AMA

Essential is now aware of this issue.
[Essential Phone Questions & Answers] vjyrdy:
I have rooted 8.1beta with Ex Kernel flashed. But still my phone sometimes go in sleep and some times doesn't.
[Essential Phone Questions & Answers] runderekrun:
Welcome to Android. I mean that's just normal behavior. The problem we fix by flashing the Elemental kernel is absolutely no deep sleep.
[Essential Phone Questions & Answers] avd:
Stock 81B rebooted plugged in and forgot to unlock
[Essential Phone Questions & Answers] vjyrdy:
New issue, when Bluetooth is connected it doesn't go deep sleep.
[Essential Phone Questions & Answers] LNJ:
There was a Google Play Services update today. Hopefully it fixes something!
[Essential Phone Questions & Answers] geoff5093:
I've had good luck using App Ops and denying access to most apps from waking the phone and preventing it from sleeping, my idle battery life is great.
[Essential Phone Questions & Answers] vjyrdy:
Could we pinpoint culprit app using App Ops?
[Essential Phone Questions & Answers] andreipaval:
Does App Ops work without root ?
[Essential Phone Questions & Answers] avd:
Only got worse with the last gps beta
[Essential Phone Questions & Answers] sroy:
Waking this thread ... I'm on Oreo 8.1.0 (Build OPM1.180104.166) with Kernel version 4.4.128-perf+ that I got OTA.

I'm having battery drain issues and get a max of 12 hrs after a full charge. I thought the kernel issue affected the 8.1 beta releases. Need help to fix this issue
[Essential Phone Questions & Answers] garywojdan81:
How do you know it's kernel related?
[Essential Phone Questions & Answers] Caltinpla:
No problems here. My phone sleeps like a rock!
[Essential Phone Questions & Answers] rashaunny:
Ooh yeah it's horse**** I'm going back to 7.1 tomorrow then returning the phone. Mine never going into deep sleep and even while the phone is off it drains!! In fact in the fine months I've had it I've lost I believe 8% of the total life. If I don't charger it it sits completely dead. Granted it's an extra phone but this is why.
[Essential Phone Questions & Answers] sroy:
I'm not sure if it's kernel related or not but I was hoping to get some help. So far, this is the only dealbreaker for me.

But I've tried factory reset, clearing the app cache (Oreo 8.1 recovery doesn't seem to have wipe cache option) and also turning wifi-off and restarting and I still get just 12 hours on a full charge. Will appreciate some help to fix the battery drain issue.
[Essential Phone Questions & Answers] rashaunny:
I'd suggest using one of the full flash images that wipe partition a&b. These are the ones that have the flashall batch file in them.
[General Questions and Answers] Sjwtr_7:
Hi guys, I'm new here so I don't know if I'm opening this thread in the right section. Please tell me if it's not.

There's someone who knows how to create bins for sites like Netflix? Possibly using ABI or CAB code.

Thanks to all :D
[Android One (First-Generation) Cross-Device Origin] rushiranpise:
Based on ThunderZap

Features:

[LIST]
[*]Upstremed to latest Linux Kernel 3.10.108
[*]Oreo support added
[*]ThunderCharge Fast Charge Driver (enabled by default)(AC and USB current increased to 1000mA)
[*]Optimized SLUB
[*]Added exFAT support
[*]char: Add Frandom
[*]Asynchronous Fsync: initial extraction of Async Fsync from
[*]Enabled L2TP VPN Protocol and SLIP TCP/IP Protocol
[*]Added exFat Filesystem support
[*]Added advance TCP congestion algos like westwood, highspeed etc
[*]Added WireGuard VPN support
[*]Switched to Linaro 7.2.x toolchain
[*]Wakelock blocker added
[*]Cortex A7 optimisations
[*]Added power suspend driver
[*]Reduced vfs cache pressure to 20 from 100 for better battery
[*]tick: don't update idle time if cpu offline
[*]writeback: increase bdi_min_ratio to 5 in light of the latest writeback commit
[*]Increased Swappiness From 60 to 90
[*]Kernel Compressed with XZ
[*]power: wakeup: add wakelock toggles
[*]ThunderSonic Sound Control Engine
[*]WiFi Power management control
[*]Full GPU control
[*]DoubleTap2Wake and Sweep2Wake
[*]Dynamic Fsync Control
[*]Improved filesystem mounting flags - NOATIME and NODIRATIME
[*]ThunderQuake Engine 1.0 - Vibration Intensity Controller for MTK vibrators
[*]Huge update to kernel.org mainline 3.10.89
[*]ThunderPlug CPU Hotplug replacement
[*]init.d support
[*]Automatic busybox installation
[*]Disabled Gentle fair sleepers
[*]Enabled arch power
[*]Optimizations to SLUB memory allocator
[*]Patches to block and mm to significantly improve ssd IO performance.
[*]Dynamic entropy setting based on usage
[*]Dynamic management of dirty page writebacks
[*]block: Added SIO IOScheduler
[*]block: Add BFQ IOScheduler
[*]block: Add fiops scheduler
[*]cpufreq: ThunderX power saving CPU governor
[*]fs: added Samsung's F2FS support
[*]Reduce logger device RAM allocation to 128K
[*]Set MM Linux read ahead size to 256K
[*]Patches from upstream to optimize memory writeback
[*]Disabled CRC check in MMC for 30% extra performance with IO
[*]Reduced VFS cache pressure for better battery
[*]Optimized square root algorithm
[*]Governors enabled: ondemand, interactive
[*]Speedup /proc/net/unix interface access
[*]Mali GPU cache Optimizations
[*]Mali: Increase L2 cache max read size
[*]Mali: Disable state tracking
[*]Mali: Reduce GPU utilization timeout
[*]Mali: increase kernel memory buffer size
[*]Aggressive multicore power savings
[*]ARM: Cortex A7 compiler optimizations
[*]MTK: removed HUGE HUGE trail of stupid MTK kernel logging
[*]ARM: Removed various debug traces
[*]Added more features
[/LIST]

Requirements:

Must be on LP/MM/N/O based ROM (any ROM)

A custom recovery (TWRP, CWM, CTR) should be installed.

Instruction:

Download the zip file of kernel.

Boot your device into recovery mode

Select Kernel zip file

Flash the zip

Reboot.

Downloads:

FUSE Kernel

Sources:

Kernel Source

Contributors

[MENTION=8136601]SamarV-121[/MENTION]

[MENTION=4309448]varun.chitre15[/MENTION]

Created 2018-02-16

Last Updated 2018-02-16
​
[Android One (First-Generation) Cross-Device Origin] rushiranpise:
Wanna save battery? Use ThunderX CPU Governer & ThunderPlug with following settings for Max power savings. This will slightly affect the UI smoothness.

Hotplug Threshold:

85%

Touch Boost:

Off

Laziness:

750ms

Endurance Mode:

Dual Core
[Android One (First-Generation) Cross-Device Origin] Bhanusaiakhil:
Please diasable position independent executables for this kernal

Plz remove position independent executables(PIE) security in this kernel. plzz do it.thanks in advance
[Honor 7X  Questions & Answers] nsical:
Hi,

There is a setting in do not disturb mode to allow alarms only, but alarm does not work even so. Alarm icon appears on the top tray, if I touch it, it comes to foreground and rings. I have to leave do not disturb mode to use alarm. Has anyone noticed this?

US version BND-L24, build B130.
[P3400 General] bryangopan:
:( hi mithun, mUNS , ABEBRAKER , very sad man..! i was trying to update to WM6.1 now the phone is stuck in boot logger screen...! nothing else happeninig ..! any idea whT TO O....?:mad::mad:
[P3400 General] bryangopan:
Gene stuck on boot logger , pics & video attached

:o:o:oThis is how scary it becomes....
[P3400 General] bryangopan:
gene stuck

now it shows the colour screen after i press and hold power and camera keys...!but flashing gets interupted in 2 % saying image is corrupted ... i dont have the original rom....
[P3400 General] Ameet:
do some search before you open up a new thread brother. anyways, here's a possible solution (you may have to try it out coz i never found myself in this situation)

this thread (http://xdaforums.com/showthread.php?t=366505) has one solution (http://xdaforums.com/showpost.php?p=1915254&postcount=5) from orefkov which may help or this thread (http://xdaforums.com/showthread.php?t=351234) from nirvana might help too

hope this helps in recovering your gene. also i suggest going further, you should get into flashing or cooking only if you know what you doing
[P3400 General] bryangopan:
gene boot issue

Man as you know i am already running wm6 by muns ...! so that means i have done it before... this is really strange ..! i was worried. I am stilll worried...let me go through ure links...i'll let you know..!

Thank you
[P3400 General] bryangopan:
Stuck from boot loader resolved

:)Man i called htc service centre here in bangalore , they gave me a simple solution for my problem...

We can hard reset the device just by pressing and holding both the " -" keys right above the answer and end keys and pressing the power button . It will run the ghost image and recover the device ...

note :

1) make sure your battery is more than 50 % charged .

2)you must do a power cycle in your device ( take out the battery , then press and hold the power button ) before you do a hard reset ...

My device is back to normal...

video is here

there you go http://www.youtube.com/watch?v=R53104JTgNI
[P3400 General] rex4u:
Wow ! Now this is what i call "life saving medicine". Thanks for giving it !

I am referring to Ghost image.What exactly it is and is it safe even after flashing ? Finally what is power cycle(Is it complete discharge of backup battery).

Thanks again buddy :-)

P.S. Can u give HTC Bangalore number. Thanks.
[P3400 General] bryangopan:
refer to my you tube video buddy , all info is given there ...

:)

http://www.youtube.com/watch?v=R53104JTgNI
[P3400 General] rex4u:
Thanks a lot buddy to take up so much of pain and posting this video.

Can I ask a little favour - plz post this video here so that I can download it and keep it.Embarassingly my net is extremely slow so I could not watch it smoothly.

Plz if u can.

Thanks once again bro'.
[P3400 General] bryangopan:
will do that soon:)
[P3400 General] navjot2785:
Tnx

TNX buddy for sharing this information ..I also face this problem today but as I already read ur post ..I knw wat to do ..tnx man :)
[P3400 General] snggwt:
i faced error INVALID VENDER ID when flashing at 2%

:mad:

i don't know how to upgrade please help me
[P3400 General] risoamr:
i have the same err
[P3400 General] bryangopan:
I guess your spl is giving you the trouble. search for olipro"s CID unlock file , you should be ok after this .
[P3400 General] sunnyjob85:
How can one make sure that the battery is more than 50% charged when the phone is showing the bootloader screen... If I keep it for charging in that state, does it get charged?

Please help
[P3400 General] krazy_about_technology:
Start the phone in bootloader without connecting the cable. NOw press the powerbutton for a while to shutdown the phone completely. Then plugin the cable or charger, it will start charging without getting started. Charge it for sometime, or to be on the saferside, untill the light turns into gree from amber.
[P3400 General] haree:
@bryabgopan just a road down memory lane for u

hi

i dont know if u remember long time when i sent a PM to u asking help to upgrade my 3400i u gave me a very rude reply and said its not rocket science and to look around but i see u asking for help

so its different when u need help and some one else asks u for the same im saying this because ur words then really hurt me its happened around 3-4 months back

so my humble request to u is if u cant or dont want to help just say it in a nice manner and not in a rude manner see u wanted help and u can see people trying to help u here
[P3400 General] Addicted2xda:
LOL you are even answering to pple posting in the wrong Section :D
[P3400 General] manisharma31:
Hard Reset not working HTC P3400

I have Hard Reset my HTC P3400,but it hangs on the boot screen.

It show on the screen as,

ONBL 1.07.0000

SPL 1.07.Oref

GSM 02.79.90

OS 1.9.1.1

I kept the mobile on battery for at leats 5 minutes but no success.

What do i do now ?
[P3400 General] haree:
hi

try this

if ur phone comes on connect the USB cable to phone and see if u get the USB words on the phone if so good try flashing any other rom from ur PC to ur phone

goodluck:D
[P3400 General] sam1212121:
HETE GOT STUCK IN BOOT MODE..pls hlp

now it shows the colour screen after i press and hold power and camera keys...!but flashing gets interupted in 2 % saying image is corrupted ... i dont have the original rom....i tried each and possible way.... pls help