[T-Mobile HTC One (M9)] cloves:
Hi everyone,

I just jumped over to t-mob and got an HTC M9 (Long time HTC user, mogul, raphael, htc evo etc). Phone came with Lollipop 5.0

So for the past few days I have been using my phone and turning on my wifi hot spot to connect my tablet and laptop. I have hot spot as part of my plan. No issues at all. So before I was able to turn off auto system update, t-mobile pushed the 5.1 update to the phone while I was driving. When I got to my job, I turned on my hot spot and everything was fine, but as soon as the display on the screen turned off, I lost hotspot.

So in the help section I found that you could call HTC and I was frankly surprised, spoke to a rep and they told me they would escalate it to tier 2. Today got a call back. Basically ran through some steps and the support told me you need to leave your display on in order to use hot spot. HTC did this in order to prevent excessive battery drain . At that point I was like how much sense does that make, display on is the most battery consuming task. If I need to keep my display on in order to use hot spot, its going to burn through my battery. I spent over 6 hours before hand with hot spot on and the battery barely budged. Anyways, I was disappointed after the call. Basically HTC just told me we can't fix the problem but keep your display on and turn off the lock screen.

I have a samsung galaxy prime running 5.1.1 on the same plan, and hotspot works with the screen off.

Stupid! Anyways I was hoping the xda community had some insight into this issue. :confused:

Setting:

mobile hotspot>advanced settings>power mode>always on

********* POSSIBLE FIX ************

---------- My Specs -------------------

Just to confirm my specs.

Hotspot is part of my plan, it was turning off when my screen turned off (screen off/data off)

Android 6.0

Build Number 3.39.531.7 CL690290 release-keys

Running ViperOneM9 4.3.0 Rom which includes Root

Installed via TWRP 3.0.0-2

---------- The Fix ----------------------

Turn off mobile hot spot

Goto settings / mobile data / Access point names

You should see 2 locked APNS.

Hit the Plus Symbol and add the following settings:

Name: T-Mobile US LTE

APN: fast.t-mobile.com

MMSC: http://mms.msg.eng.t-mobile.com/mms/wapenc

MCC: 310

MNC: 260

APN type: default,supl,mms,dun <-- that dun is missing from the similar locked APN

APN protocol: IPv4 <-- well will come back to this after reboot!

APN roaming protocol: IPv4

SAVE AND REBOOT

Now open up chrome and you should get a not connected error.

Goto to the APM we just made and change APN protocol: IPv4 to APN protocol: IPv6

Now turn on your mobile hot spot, its working for me. I still have pdanet and foxfi installed but I am not turning these on. I am using the hotspot from the quick menu set. Its showing amazing speed via speedtest and best of all working with screen off!!

********* FIX DID NOT WORK ON NON ROOTED STOCK HTC M9 ************'

Just tried the above procedure on stock htc m9 from t-mobile, its locked, not rooted and running stock marshmallow all done over OTA. Even installed pdanet (which contains foxfi) and nothing, data shuts off when screen goes to sleep.