yashsingh1/xdaforums huggingface dataset:
[HTC 10 Guides, News, & Discussion] devsk:
Do we even have a place where we can submit reports to HTC and talk with an engineer/support person at a technical level? I am sure if I call HTC, they are going to say "factory reset", "pull battery out" (oh wait, forget that one), "change router settings", "change wifi password" and mariad of other silly things that don't make any sense...:) And as soon as the person learns that I am rooted, they will start finding the exit door....:D

So, in nutshell, we will have to solve this on our own. We need more developers looking at this. Unfortunately, time is not on my side at this time...:( Otherwise, this is a good riddle to solve!
[HTC 10 Guides, News, & Discussion] Elfmirth:
I would love to see a fix on this, im on Stock EU 1.30.401.1 and I can't even stream or airplay etc without getting drops in my connection. if there is anything I can do to help ill give it a try :)
[HTC 10 Guides, News, & Discussion] tonnytech:
i dont think this will ever be fixed , this seems to be one of those issues that will be swept under rug. I hope im wrong but dont belive i am , i cannot understand how no review picked up on this.

Thing is most users probably wont realise they have this issue.
[HTC 10 Guides, News, & Discussion] Eluder79:
Can someone put this in some document and be ultra clear. I can reach out to my old team at HTC to see if they can help; can't promise anything since I don't work there anymore, but it's worth a shot!
[HTC 10 Guides, News, & Discussion] Genetic517:
This is a long shot but we could try getting in contact with this guy. He seems fairly active on Twitter. it may be worth a shot?

https://twitter.com/urbanstrata?s=09
[HTC 10 Guides, News, & Discussion] Eluder79:
He wouldn't be the right person. I'm going to try the guys in Taiwan directly. But as I said I need this described succinctly and in a document so I can share the info easily. Can't tell the team to go read a message forum.
[HTC 10 Guides, News, & Discussion] EtherealRemnant:
[MENTION=1416236]devsk[/MENTION] has the most knowledge compiled on the issue. I'm sure he can come up with something.

In the meantime, I'm just going to stick to WiFi off when the screen is off. I only lost 5% from a full charge when I went to sleep this way. I'm not even Greenfied.
[HTC 10 Guides, News, & Discussion] cvsolidx17:
I emailed this guy from the Verge who I got to write an article about Sony not updating the Z3.

Hopefully he writes an article about this issue and we get some traction lol
[HTC 10 Guides, News, & Discussion] meatlocker:
That's honestly the only way this is going to be addressed. If it starts being written about in the mainstream media/tech blogs, generating negative publicity, it will get their attention.
[HTC 10 Guides, News, & Discussion] cvsolidx17:
I agree. The HTC 10 unfortunately has not been meeting sales expectations so far. The last thing they need is bad PR for what shouldn't have been broken in the first place
[HTC 10 Guides, News, & Discussion] dvsk69:
I shared the forum links and briefed HTC about this issue on Twitter. They asked me all the details about the issue in the DM and finally suggested to contact HTC support. What jokers.

Hope they realise this is much bigger issue than it seems to be. Wondering no reviewer picked it!
[HTC 10 Guides, News, & Discussion] Urban Strata:
Hi, I work for HTC. (This is me: https://twitter.com/urbanstrata and https://www.linkedin.com/in/urbanstrata.) OP devsk has been in touch via Twitter about this and I'm sending an email now to the product management team to look into it. Devsk let me know he/she is on US unlocked SKU software 1.80; if you think you might be experiencing the issue on any other SKU or software number, please let me know. Fastest way to get in touch with me is via Twitter [MENTION=501059]urbanst[/MENTION]rata. Thanks for your patience while we investigate.
[HTC 10 Guides, News, & Discussion] Genetic517:
I had this wifi issue on the previous 1.53 and still having it after the upgrade to 1.80. I believe there's a poster or 2 in here who had the issue on 1.55 too. Thank you for looking into this (and to [MENTION=1416236]devsk[/MENTION] for getting your attention)
[HTC 10 Guides, News, & Discussion] Haldi4803:
Nice, so HTC does have some Public Relations people :)

Btt: have we found anyone who is NOT affected by this? I think most people just don't realize it.
[HTC 10 Guides, News, & Discussion] devsk:
That's exactly the problem. Most people don't realize it. They are happy to get 12-14 hours out of the phone with 4-5 hrs SOT on wifi. This phone is capable of much more.

One other issue I see is the amount of debug HTC has enabled by default. Its amazing how much CPU is being spent on just writing the logs. On my Moto MXP running 6.0.1 code with CM13, I can be assured of more than half a day of worth of logs in the logcat with 64kb log size. HTC 10 running almost the same 6.0.1 code, the log gets rotated in 13 mins!! 13 MINUTES!! HTC 10 is logging at a rate which is 50-60 times faster than MXP (same set of apps). That is insane amount of CPU and battery being burned through for no reason.

Note that we do need logging for diagnosing issues but not at the debug level. This is just sloppy programming. Some devs at HTC have left debugging enabled in key components at developer's DEBUG level. wpa_supplicant is one of those components. Its almost spewing 1000 messages in a minute.
[HTC 10 Guides, News, & Discussion] grega_slo:
[MENTION=1792279]ivicask[/MENTION] has fixed it for his phone.

Btw do you guys with problems have by any chance ipv6 active?

I have...
[HTC 10 Guides, News, & Discussion] devsk:
How did he fix it?

Yes, IPv6 is active and I have tried deactivating the IPv6 for wlan0 interface in the kernel and it does not make any difference.
[HTC 10 Guides, News, & Discussion] ivicask:
I did not need fixing, i have no problems since day one, i had the same issue on m9, actualy on m8 also, and i fixed with those 3 options which i already mentioned..

And i had this problems so far only with DLINK routers, and wasnt able to fix it for them, only with MIKROTIK.

Which routers you got?
[HTC 10 Guides, News, & Discussion] grega_slo:
Mikrotik, WRT160NL with OpenWRT and Tplink Archer C5.

Tried stock, tried openwrt even loaded dd-wrt same problem.

M8 has NO problem with all of them HTC 10 with all of them.
[HTC 10 Guides, News, & Discussion] ivicask:
Which OS version you tried and did you use wireless-cm2 or new wireless-rep package?Because this latest works wonderful, and contains lots of WIFI improvements and new features.

Im currently on 6.36rc27 in combination with wireless-rep just for your reference.
[HTC 10 Guides, News, & Discussion] grega_slo:
Mikrotik is out of my control :(

I only know that it is Mikrotik, don`t know model or anything.

Other 2 are mine.
[HTC 10 Guides, News, & Discussion] dvsk69:
[MENTION=266012]Urban Strata[/MENTION] Please refer to the above two posts. They give you a lot of information how the battery and cpu are being misused because of buggy software.
[HTC 10 Guides, News, & Discussion] devsk:
I am not at all convinced that its a router/AP issue for one fundamental reason: all other devices work fine with them. I have TP-LINK Archer C9 at home and I connect to may be 10 different APs in my office. All of them can not be bad. If they are, I can't change at least the office ones. So, this phone needs to be fixed for me to be able to use wifi at work.

At home, I have played with router settings as per ivicask's suggestions and they don't make any difference. I played with many other settings on the router and nothing helps.
[HTC 10 Guides, News, & Discussion] Genetic517:
If I may add to this. I've tried 2 different routers at home (friendly neighbor) and 2 at work. That's 2 linksys, 1 netgear, and my Asus router running merlin. All 4 have showed the same amount of battery drain.
[HTC 10 Guides, News, & Discussion] SamueleBrancaccio:
I hate this phone. I'm italian (sorry for my bad english).... I have HTC 10 with 1.30.401.1 software.... Every day and every night only if connect with my router (netgear) the wifi battery drain start... I change all the setting but never change the situation... With 4g the devices make 4/4.30 hours display in 13hours totally... With wifi 2.30/3.00 display...

---------- Post added at 05:26 PM ---------- Previous post was at 05:23 PM ----------

https://www.dropbox.com/s/4d971sun1klb3lq/Screenshot_20160620-191121.png?dl=0

https://www.dropbox.com/s/0x5el6li3u6yhm5/Screenshot_20160620-191125.png?dl=0

https://www.dropbox.com/s/i2peuxd0pa7bjlc/Screenshot_20160620-191135.png?dl=0

https://www.dropbox.com/s/k6xlsld2tkn7zlv/Screenshot_20160620-191128.png?dl=0
[HTC 10 Guides, News, & Discussion] Urban Strata:
Small update: confirmed now HTC product management is investigating. Thanks.
[HTC 10 Guides, News, & Discussion] Genetic517:
Great news! Thank you for your help. [emoji2]
[HTC 10 Guides, News, & Discussion] SamueleBrancaccio:
HTC 10 software version 1.30.401.1 with wifi battery drain.. Every night -20% only if the wifi is connect... If the wifi turn off i lost only 1/2%

Every night and every day...i've make 5/6 factory reset but nothing change...
[HTC 10 Guides, News, & Discussion] Eluder79:
Tell Mr. Versi thanks! ?
[HTC 10 Guides, News, & Discussion] DoctorB0NG:
Present for me still on stock Verizon .22. Was on Viper before and had the issue as well.
[HTC 10 Guides, News, & Discussion] Urban Strata:
Further update: HTC HQ engineering has been unable to reproduce the issue with an unrooted, unmodified, clean stock device. Everything is operating as expected. I'll keep you posted if any new information comes up. Thanks.
[HTC 10 Guides, News, & Discussion] EtherealRemnant:
Really? Because my friend just sold his week old 10 that was completely stock unmodified because with WiFi on, he was getting 4 hours of SoT over the course of 16 hours but he got over 2 days and 5 hours of SoT with WiFi disabled. This is a real issue and if HTC won't do anything about it, we can start taking matters into our own hands and passing off all the information to tech sites and absolutely kill the sales of a device that is already not meeting expectations. Its always the same thing with HTC. HTC rushes to release a product and skips corners. For example all the defective LCDs that have been shipped and this is nothing new either. I had to exchange my Evo 4G THREE times because of the display having yellow tint and light bleed. But hey if HTC doesn't want to fix this issue which is quite obviously a kernel problem that your engineering department wants to blame on people who buy their devices and choose to root (which of course is the only way to expose their shoddy coding) then HTC can just continue to sink. The fact the kernel drops so much information into logcat in the first place exposes a major problem, one that will eventually wear out the eMMC from the constant writes and purges. I've never seen such verbose debugging enabled on an android kernel and I have had android devices since the HTC Hero. I guess as usual the community will have to figure out what HTC broke but I also called my local T-Mobile store and they're getting returns for the WiFi drain too so it's definitely a real problem.

It's also rather curious that it was investigated so quickly considering that it requires at least two days testing on the same device to see the difference in battery life because it's killing the standby time, not just the SoT.
[HTC 10 Guides, News, & Discussion] devsk:
There are a lot of people here who have seen this issue with stock phones. I started out like that. The part of the reason for rooting for me is to be able to look at the internals of the phone and diagnose issues. If I did not have root, I wouldn't be able to debug it as far as I could.

Besides the fact that the problem happens for sure with stock phone, as an engineer, who understands kernel and software engineering a little bit, I can assure you just rooting the device does not create the kind of suspend/resume action we are seeing on the wifi driver.
[HTC 10 Guides, News, & Discussion] DoctorB0NG:
Out of curiosity, how are you ready the dmesg without root access? Do you have some sort of dev kit dealio?
[HTC 10 Guides, News, & Discussion] Haldi4803:
The Question is more like: why does it NOT happen to some people while it's happening to all of us? And Root is probably not the answer.
[HTC 10 Guides, News, & Discussion] DoctorB0NG:
Part of the issue too is that without root, there's no way to determine with certainty if the problem is happening so most users will have no idea.
[HTC 10 Guides, News, & Discussion] devsk:
It happens on a stock unrooted freshly reset phone with no apps installed. I can do this any number of times and results are same.

You don't need 'root' to run 'dmesg' from 'adb shell'. So, if people are game, you can try: factory reset, do not change or setup anything but the wifi, enable USB debugging, run 'adb shell' and then cut&paste 'dmesg' commands from first post. It will show suspend/resume action as soon as you start browsing websites. Give it some time and run those commands multiple times while browsing websites. Note the beauty of this bug: your websites, although a tad slow, will show fine...:)

Now, while you are running those commands periodically, also ping the LAN IP that wifi got from your laptop. You can see it in 'ifconfig wlan0' output in 'adb shell'.

shell@htc_pmewl:/ $ ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr <blah>
inet addr:192.168.0.16 Bcast:192.168.0.255 Mask:255.255.255.0

You will start seeing dropped pkts and large ping times compared to normal LAN ping times.

If you are game still, login into your gmail account and enable sync. Suddenly, you will see the suspend/resume action become worse and ping times/pkt drops worse. Add half a dozen other accounts to sync and your wifi chip keeps on doing this dance of suspending/resuming constantly, with increasingly more pkt drops and with worse ping times.

If people on both side of the fence (who see the issue and who don't) do it, I am willing to bet that everyone will see the suspend/resume action. Some less frequently and some more. Folks who see less suspend/resume action, will have less of an issue and will be happy because they got 5 hours SOT and a decent website experience over a day's worth of use. While people who see more severe suspend/resume action will see 3 hours SOT. They will still be happy and problem does not exist, when the truth is that this phone is capable of 7 hours SOT over 1.5-2 days of light to medium use.

Just a disclaimer: I am not saying that some people are not affected at all. Its possible. Its possible that this is actually a hardware issue and only way to fix it is to replace the phone. Possible but very unlikely.
[HTC 10 Guides, News, & Discussion] live-evil:
Someone has made a cyanogen build it doesn't have ph working but does have wifi. I wonder if its still there using that.
[HTC 10 Guides, News, & Discussion] Urban Strata:
(Quote truncated for brevity.)

I'm sorry you're upset. I'm not sure what else I can say -- and I'm not denying you're experiencing what you claim -- but our engineers haven't been able to replicate it in the lab. I didn't say it was a closed matter, however we can't fix an issue we can't see ourselves. I'm not an engineer and I'm not on the team that investigated this, but if you have any more information about it that I can pass along, it would be very helpful. Also, the engineering team is aware of this thread. Thanks.
[HTC 10 Guides, News, & Discussion] devsk:
If they are, hopefully, they look at the post #135 above and reproduce the issue, and try to look at the logs and not try to look for battery drain.
[HTC 10 Guides, News, & Discussion] Urban Strata:
I'll make sure they see it. Thank you.
[HTC 10 Guides, News, & Discussion] DoctorB0NG:
[MENTION=1416236]devsk[/MENTION] is definitely right about the high ping times to the device on the LAN.

Here's me pinging my MacBook from my desktop:

Pinging 192.168.1.4 with 32 bytes of data:
Reply from 192.168.1.4: bytes=32 time=1ms TTL=64
Reply from 192.168.1.4: bytes=32 time=1ms TTL=64
Reply from 192.168.1.4: bytes=32 time=1ms TTL=64
Reply from 192.168.1.4: bytes=32 time=1ms TTL=64
Reply from 192.168.1.4: bytes=32 time=1ms TTL=64
Reply from 192.168.1.4: bytes=32 time=1ms TTL=64
Reply from 192.168.1.4: bytes=32 time=1ms TTL=64

And here's me pinging my 10 from my desktop:

Pinging 192.168.1.42 with 32 bytes of data:
Reply from 192.168.1.42: bytes=32 time=398ms TTL=64
Reply from 192.168.1.42: bytes=32 time=562ms TTL=64
Reply from 192.168.1.42: bytes=32 time=165ms TTL=64
Reply from 192.168.1.42: bytes=32 time=387ms TTL=64
Reply from 192.168.1.42: bytes=32 time=660ms TTL=64
Reply from 192.168.1.42: bytes=32 time=218ms TTL=64
Reply from 192.168.1.42: bytes=32 time=495ms TTL=64
Reply from 192.168.1.42: bytes=32 time=2ms TTL=64
Reply from 192.168.1.42: bytes=32 time=330ms TTL=64
Reply from 192.168.1.42: bytes=32 time=1163ms TTL=64
Reply from 192.168.1.42: bytes=32 time=3ms TTL=64
Reply from 192.168.1.42: bytes=32 time=159ms TTL=64
Reply from 192.168.1.42: bytes=32 time=429ms TTL=64

Conversely though, here's me pinging my router from the 10 through ADB:

shell@htc_pmewl:/ $ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=2.18 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=4.19 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=3.97 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=2.11 ms
64 bytes from 192.168.1.1: icmp_seq=5 ttl=64 time=3.74 ms
64 bytes from 192.168.1.1: icmp_seq=6 ttl=64 time=3.71 ms
64 bytes from 192.168.1.1: icmp_seq=7 ttl=64 time=3.80 ms
64 bytes from 192.168.1.1: icmp_seq=8 ttl=64 time=3.91 ms
64 bytes from 192.168.1.1: icmp_seq=9 ttl=64 time=3.86 ms
64 bytes from 192.168.1.1: icmp_seq=10 ttl=64 time=3.86 ms
64 bytes from 192.168.1.1: icmp_seq=11 ttl=64 time=4.86 ms
64 bytes from 192.168.1.1: icmp_seq=12 ttl=64 time=3.72 ms

Those ping times look very reasonable for a WLAN device. Not sure why it's bad one way and fine the other.
[HTC 10 Guides, News, & Discussion] Haldi4803:
In short:

Upload from Phone is fine, but if you try to reach the phone from the Outside you're gonna have Problems.

Edit:

I dont have a WiFi here so i activated Mobile Hotspot and connected my Tablet.

Ping in Shell from phone doesn work. But CMD on windows works.

C:\Users\Haldi>ping 192.168.1.1 -n 10

Ping wird ausgeführt für 192.168.1.1 mit 32 Bytes Daten:
Antwort von 192.168.1.1: Bytes=32 Zeit=147ms TTL=64
Antwort von 192.168.1.1: Bytes=32 Zeit=3ms TTL=64
Antwort von 192.168.1.1: Bytes=32 Zeit=4ms TTL=64
Antwort von 192.168.1.1: Bytes=32 Zeit=181ms TTL=64
Antwort von 192.168.1.1: Bytes=32 Zeit=147ms TTL=64
Antwort von 192.168.1.1: Bytes=32 Zeit=4ms TTL=64
Antwort von 192.168.1.1: Bytes=32 Zeit=181ms TTL=64
Antwort von 192.168.1.1: Bytes=32 Zeit=149ms TTL=64
Antwort von 192.168.1.1: Bytes=32 Zeit=4ms TTL=64
Antwort von 192.168.1.1: Bytes=32 Zeit=184ms TTL=64

Ping-Statistik für 192.168.1.1:
Pakete: Gesendet = 10, Empfangen = 10, Verloren = 0
(0% Verlust),
Ca. Zeitangaben in Millisek.:
Minimum = 3ms, Maximum = 184ms, Mittelwert = 100ms

The Tab was 20cm away from the Phone.
[HTC 10 Guides, News, & Discussion] devsk:
There is a very simple explanation for this. When you ping from the phone, the ping does not let the wifi driver to go to sleep, the code decides to not suspend, hence stopping the suspend/resume cycle...:) Checkout the following grep:

[64313.138563] c1 461 msm_pcie_pm_suspend: RC0: PM_Enter_L23 is received
[64316.717594] c0 461 msm_pcie_pm_suspend: RC0: PM_Enter_L23 is received
[64319.188485] c0 461 msm_pcie_pm_suspend: RC0: PM_Enter_L23 is received
[64321.756783] c1 461 msm_pcie_pm_suspend: RC0: PM_Enter_L23 is received
[64325.418580] c1 461 msm_pcie_pm_suspend: RC0: PM_Enter_L23 is received
[64326.786746] c0 461 msm_pcie_pm_suspend: RC0: PM_Enter_L23 is received
[64355.427551] c0 461 msm_pcie_pm_suspend: RC0: PM_Enter_L23 is received
[64358.388476] c0 461 msm_pcie_pm_suspend: RC0: PM_Enter_L23 is received
[64361.696824] c0 461 msm_pcie_pm_suspend: RC0: PM_Enter_L23 is received
[64521.449039] c1 461 msm_pcie_pm_suspend: RC0: PM_Enter_L23 is received

Guess when the ping from phone to the router started? At 64361.696824. Before this there is consistent suspend/resume action. I stopped ping at 64521.449039 and restarted it. 0% pkt loss.

Note that some suspend/resume cycles will still get in between the pings...its just a race in the kernel. A packet arrives to be sent and deposited to the driver. If it has pkt to send, it will not suspend. Otherwise it will (although it has no reason to, we said "Always keep wifi ON during sleep").
[HTC 10 Guides, News, & Discussion] live-evil:
I have 2 different wifi ap. 1 gives me stable under 10ms other doesn't
[HTC 10 Guides, News, & Discussion] devsk:
One way to keep wifi from running wild with suspend/resume cycle is to ping with faster than 1 second ping interval. The wifi driver will never sleep. The downside is that your phone won't either...:) But it might still come out ahead in terms of battery life because 1 pkt in 1 second may be still better than suspend/resume cycles, logging CPU and disk IO.

Even 1 millisecond more than 1 second won't allow to break the suspend/resume cycle, telling me that there is a sleep in kernel driver somewhere which is waking up every 1 second and just blindly trying to suspend the device.