T-Mobile HotSpot App - Battery hog? - G1 General

I've been reasonably happy with my battery life until I installed this app. After installing it, I noticed that my battery runtime decreased noticeably. This struck me as odd, so I took a look at the system logs using the SDk adb tool.
Sure enough, my phone was waking up *a lot* more often, and also sure enough, it was the T-Mobile HotSpot locator doing the waking. Here's a snippet from the logs:
01-12 22:09:19.461 D/RC_WifiService( 242): SetUptmohs()
01-12 22:09:19.543 I/RC_WifiService( 242): network already present tmohs
01-12 22:09:59.553 D/RC_WifiService( 242): SetUptmohs()
01-12 22:09:59.633 I/RC_WifiService( 242): network already present tmohs
01-12 22:10:39.645 D/RC_WifiService( 242): SetUptmohs()
01-12 22:10:39.723 I/RC_WifiService( 242): network already present tmohs
01-12 22:11:19.735 D/RC_WifiService( 242): SetUptmohs()
01-12 22:11:19.813 I/RC_WifiService( 242): network already present tmohs
01-12 22:11:59.829 D/RC_WifiService( 242): SetUptmohs()
01-12 22:11:59.903 I/RC_WifiService( 242): network already present tmohs
01-12 22:12:39.923 D/RC_WifiService( 242): SetUptmohs()
01-12 22:12:40.003 I/RC_WifiService( 242): network already present tmohs
01-12 22:13:20.033 D/RC_WifiService( 242): SetUptmohs()
01-12 22:13:20.113 I/RC_WifiService( 242): network already present tmohs
As you can see, it is waking the phone every 40 seconds, and doing *something*. What, exactly, it is up to is not clear, but it appears to be simply checking to see if the tmohs Wifi entry is present.
Since I very rarely need to use a tmo HotSpot, I removed the app, and now the phone is much quieter. Whether that translates into noticeably increased battery life, we shall see, but it certainly can't hurt. I can certainly live without T-Mobile hotspots and if I suddenly just must access one, I can install the app again.
Something to consider.

thanks.. good information to know..
By the way, what log file did you look at?

i noticed this and ended up uninstalling the app because of the battery life.
mind you, the battery drains stupidly fast when wifi is turned on normally.
I've just bought a 2200mAh battery so when that arrives i'll let you guys know what the battery life is like then.

Related

weak wi-fi

Compared with my other phone (Nokia E51) Touch 2 has a very weak signal strength (w-fi). When Nokia has a 70% signal strength, my HTC sometimes breaks the connection - weak signal. Why? RADIO ver: 3.53.25.20
hi there
I don't have this problem, my Mega works just fine and preaty good signal for wi-fi
I am looking for application that show wi-fi signal strengh in % value. Then I could test the device further.
WiFiMonster , google it shows the dB of the signal !
you more than likey have powersaving enabled. Turn off powersaving and you'll experience much better (and faster) wireless
my wifi only weaker than pc

[Q] Poor wifi / bad ping

My Note 3 wifi latency seems much worse than my Note 2:
Note 3: average about 80ms
rtt min/avg/max/mdev = 24.399/78.360/146.363/33.336 ms
Note 2: average about 33ms
rtt min/avg/max/mdev = 2.798/33.371/106.814/30.055 ms
(Both tested at 5ghz/150MB on an Asus RT-N66U running Tomato firmware)
Does that look normal?
I have really poor performance on wifi either, as have many that reported here on xda. I haven't come around to check if it's router / firmware dependent so I would suggest searching for earlier topics on the matter.
Poor Wi-Fi signal strength.

slow tether with usb

hi
any one know how to speed up mobile usb tether
speed on computer never get a test past 1mb up
http://www.speedtest.net/result/6499841208.png
on phone i get 7 up 3 down
has the dash cable someting to do with it
I’ve got the same problem. I verified it’s the device by putting the sim in a z5 compact. Upload is fine it’s just download that stalls over usb tether. I have also tried 4 different usb cables
It seems like a problem with the device or software itself.
Finally I have found someone with the same problem. Well kind of. I find the usb tether works fine on windows. However the download is slow on all flavors of linux I have tested. That is Opensuse, Fedora, Mint, and Ubuntu. I'm using a dual boot notebook, so the windows 7 pro operation is on the same hardware.
The problem is framing errors. About a third of the packets need to be sent again. On linux, run ifconfig. Your USB tether should be usb0. You will see errors on the RX line.
usb0 Link encap:Ethernet HWaddr (censored)
inet addr:192.168.42.33 Bcast:192.168.42.255 Mask:255.255.255.0
inet6 addr: 2607:fb90:84fa:32bc:801c:7bff:feea:e2d7/128 Scope:Global
inet6 addr: fe80::801c:7bff:feea:e2d7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2327 errors:438 dropped:0 overruns:0 frame:438
TX packets:2159 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2817625 (2.6 Mb) TX bytes:327971 (320.2 Kb)
Wifi tether is fine.
Yikes, I'm having the same (on Fedora, if this matters). Wifi hotspot is fast, USB, not so much.
I'm getting 90Mbps on 4G+ on the phone itself
Getting 30Mbps on wifi tethering
Getting 110Kbps on USB tethering...
enp0s20u1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.42.190 netmask 255.255.255.0 broadcast 192.168.42.255
RX packets 439 bytes 169395 (165.4 KiB)
RX errors 70 dropped 0 overruns 0 frame 70
TX packets 587 bytes 145175 (141.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Click to expand...
Click to collapse
asc366 said:
Yikes, I'm having the same (on Fedora, if this matters). Wifi hotspot is fast, USB, not so much.
I'm getting 90Mbps on 4G+ on the phone itself
Getting 30Mbps on wifi tethering
Getting 110Kbps on USB tethering...
Click to expand...
Click to collapse
Thanks. It has been like pulling teeth to get anyone to try to duplicate this problem. I mean really, is a linux user tethering a OP5 on USB that much of a unicorn????
I will now reopen my ticket with OnePlus that the problem has been reproduced.
Thanks again.
I got the same issue with mint with USB
Without drivers Windows doesn't Work fine too
It wouldn't hurt to open a ticket with OnePlus. Let them know it isn't an isolated incident. Include the ifconfig output.
gariac said:
I will now reopen my ticket with OnePlus that the problem has been reproduced.
Click to expand...
Click to collapse
Any news on this?
they told me do a factory :silly: reset
havent tried it yet
I have -- did a reset on Saturday. Will test soon and report back to you.
Been through all the available options:
* Unrooted stock Oxygen OS
* Rooted FreedomOS
* Rooted OxygenOS
* Custom ROMS like Resurrection Remix
Always doing a completely clean flash, wiping all partitions and restoring user data with TitaniumBackup.
USB tethering is completely b0rken, period.
This is both with Fedora 26 and OpenSUSE Tumbleweed, can't say about Windows, don't have any version of it up to date.
It's highly annoying since this is my fallback for my sometimes flaky 4G home ISP. WiFi tethering is fine, but especially for high quality streams and ssh/sshfs connections to my own server I'd like to have bandwidth very low latency. Maybe it's a modem firmware problem?
run ifconfig
any thing similar in windows
ipconfg dose not give much
I want to buy one of these OnePlus 5 bad boys but I do not see anyone doing a 6.01 Marshmallow and near as I been able to tell 7 Nuggets screwed over all tethering in all forms.
I used it on my samsung s7 and beyond tethering 7.1.1 was very glitchy messy Experience for me that left a very bad taste in my mouth.
My plan allows tethering and I never got higher than 10 kb with 7.1.1.. Reflashed and it fixed it for hot spot but the usb stopped completely ...
7.1.1 a mess and its not the Device Model but 7 Nugget based Roms...
So any word on a Custom Based 6.01 Rom ?
All I got from OnePlus was acknowledgement that my ticket was open again. Also they wanted to know that I was running the latest OS. Nothing beyond that.
I tried again after factory reset and it's still the same, max 200Kbps
```
[[email protected] ~]$ ifconfig enp0s20u1
enp0s20u1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.42.190 netmask 255.255.255.0 broadcast 192.168.42.255
ether MASKED txqueuelen 1000 (Ethernet)
RX packets 1582 bytes 1234142 (1.1 MiB)
RX errors 558 dropped 0 overruns 0 frame 556
TX packets 1724 bytes 362977 (354.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
```
---------- Post added at 11:12 PM ---------- Previous post was at 10:23 PM ----------
I've created a bugreport on their forum. Please star and reply with additional information if you share my experience.
https://forums.oneplus.net/threads/usb-tethering-is-very-slow-tethering-over-wifi-is-fast.630646/
Hi all,
Got feedback from OnePlus, they've instructed me to downgrade to 4.5.8. Is there anyone running 4.5.8 by any chance?
Also, I've tested Windows as well and it's fast. It's only slow on Linux.
had same problem in 4.5.8
any one get this fixed ??
Not yet. I'll poke the guys at the ticket again
Vielen Dank für das Teilen der ausgezeichneten Informationen Great Job halten die gute Arbeit

wifi signal strength

Hai..
My device cannot detect wifi signal when far from router. If i put my device next to the router, wifi signal strong. I'm currently on Pixel Experience rom, but also happen in other rom that i installed. My RSSI show -127..is it good or bad?
Thanks in advance

How do I assign a permanent static IP address to hotspot in Android 10

I would like to assign a permanent static IP address to hotspot in Android 10 (Unofficial LineageOS 17.1 for Natrium by LuK1337, rooted with Magisk v20.3 and updated to Jan 11, 2020 build).
Now whenever I turn on the hotspot, it assigns a different IP to hotspot, 192.168.43.xxx (this will be the gateway IP to other devices that connects to this hotspot).
Note: For simplicity, instead of connecting other devices to this hotspot, I'm just gonna find hotspot IP by running "ip r" on the phone itself.
On the phone, when I open Termux (have tried other Terminal app with the same results), and run, "ip r" and "ip a", I get:
Code:
:/ $ ip r
192.168.43.0/24 dev wlan0 proto kernel scope link [B]src 192.168.43.100[/B]
:/ $
:/ $ ip a
25: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 3000
link/ether 78:02:f8:f0:4d:87 brd ff:ff:ff:ff:ff:ff
inet 192.168.43.[B]100[/B]/24 brd 192.168.43.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 fe80::7a02:f8ff:fef0:4d87/64 scope link
valid_lft forever preferred_lft forever
:/ $
Now this "src 192.168.43.100" will be different (e.g: 192.168.43.101, 192.169.43.102 etc) everytime I turn hotspot on and off... and I would like to assign a permanent static IP like ".100"
In LineageOS 16 I used the following workaround, which is no longer working in Android 10 (Unofficial LineageOS 17.1):
Code:
In the Termux (have tried other Terminal app with the same results):
(1)
su
mount -o rw,remount /vendor
nano /vendor/etc/init/hostapd.android.rc
and add:
on property:init.svc.hostapd=running
exec - -- /system/bin/sleep 2
exec u:r:magisk:s0 -- /system/bin/ip address add 192.168.43.[B]100[/B]/24 dev wlan0
Save the file.
mount -o ro,remount /vendor
and
(2)
su
mount -o rw,remount /
nano /etc/dnsmasq.conf
and add:
dhcp-host=78:02:f8:f0:4d:87,192.168.43.[B]100[/B]
Save the file.
Then set the permissions:
chown 0.0 /etc/dnsmasq.conf
chmod 0644 /etc/dnsmasq.conf
chcon u:object_r:system_file:s0 /etc/dnsmasq.conf
magiskpolicy "allow dnsmasq system_file file { read getattr open }"
magiskpolicy "allow dnsmasq system_file dir { search }"
mount -o ro,remount /
Any help is greatly appreciated, many thanks in advance.
I've got the same problem with my Pixel 3 running Android 10, also using Termux.
My use case is SSHing into the phone from my iPad to use VIM.
Previously, I used PDANet for its hotspot functionality, but it doesn't work anymore on my Pixel. Depending on your phone, you could give that a shot.
Unfortunately, starting with Android 9, the gateway is always set randomly. You cannot change it without editing the source code and building the firmware, but you can assign an additional static IP address through which you can connect to the phone. I'm not sure that this will help you, but you can see here three methods to solve this problem:
android.stackexchange.com/questions/213514/how-can-i-permanently-change-my-hotspot-tethering-ip-address
Personally, I use the first method and it is enough for my needs.
It got even worse. I'm not sure this is a thing since Android 11, but whenever I turn my Hotspot off and on again, it changes the last two segments of my gateway IP, so it's always 192.168.x.x. This sucks even twice, because now all static IPs of all clients need to be updated to get in the right scope for the subnet mask that is still 255.255.255.0.
Pretty ****ty move by Google. I wish there was a solution to this nonsense. I want a static gateway IP without root ... (I know, impossible)
Cis# said:
It got even worse. I'm not sure this is a thing since Android 11, but whenever I turn my Hotspot off and on again, it changes the last two segments of my gateway IP, so it's always 192.168.x.x. This sucks even twice, because now all static IPs of all clients need to be updated to get in the right scope for the subnet mask that is still 255.255.255.0.
Pretty ****ty move by Google. I wish there was a solution to this nonsense. I want a static gateway IP without root ... (I know, impossible)
Click to expand...
Click to collapse
You said without root it's impossible but can we do something with root so that we don't have to update gateway ip everytime hotspot is restarted?
Cis# said:
It got even worse. I'm not sure this is a thing since Android 11, but whenever I turn my Hotspot off and on again, it changes the last two segments of my gateway IP, so it's always 192.168.x.x. This sucks even twice, because now all static IPs of all clients need to be updated to get in the right scope for the subnet mask that is still 255.255.255.0.
Pretty ****ty move by Google. I wish there was a solution to this nonsense. I want a static gateway IP without root ... (I know, impossible)
Click to expand...
Click to collapse
Faced the same problem after my mobile got an update to Android 11.
Please let me know if you found any solution.
byquip said:
Faced the same problem after my mobile got an update to Android 11.
Please let me know if you found any solution.
Click to expand...
Click to collapse
legendofrj10 said:
You said without root it's impossible but can we do something with root so that we don't have to update gateway ip everytime hotspot is restarted?
Click to expand...
Click to collapse
I got close...used MacroDroid with root (Magisk) and I was able to create a macro that started the hotspot and then used secure settings to set the wlan0 IP to what I wanted using ifconfig. Using both ifconfig and a network scanner I confirmed the hotspot had the ip I wanted, but I was not able to actually use it for a stable connection - clients constantly dropped the connection.
I'm still on Android 8.1 beacause of this random hotspot IP address issue.
Is there any recent phone or ROM with a static IP address for its hotspot?
Not really THE solution, but I've had pretty good results serving data thru the phones hotspot to an old dd wrt router (set up as a "repeater bridge"). The router/repeater handles all traffic on a local network then looks to the hotspot for data. Basically, just like your home wifi, but swap your modem with the phone.
Behind the router, it functions like a "real" connection. All apps function, push notices come thru, smart TVs, and even Chromecast works! You can assign static IP on the virtual network.
Devices don't seem to notice the random IP changes between the hotspot and router. At the most, you may lose data for a second or two while it .. switches stuff? Idk... but other than a quick lag in chat, if that, you won't even notice anything happened.
A couple sidebars:
The old wifi b/g routers with ddwrt are cheap on ebay. Although, router throughput could be a limiting factor on network speeds. Not just the older wifi protocols, but running repeater mode sets router to half duplex.
With a lot of the older routers, a USB-to-5v cable works to power it from any USB port (charger, battery pack, accessory port). Ideal for hotel/dorm, work, rural or mobile living. Wherever you need a private, fully functional wifi connection.
In dd wrt setup, follow tutorials for repeater bridge setup, but leave the gateway and dns ip blank (all zeros).
Naturally, speed and ping depends on the cellphones signal strength.
I don’t have an Android phone any more, but I noticed on my family’s Pixels, PDANet gave gives out a consistent 192.168.1.XXX address. PDANet hotspots work like regular hotspots as far as I know, so it might be worth a shot for when you’re on the go without a router to use.
DMechnikov said:
I don’t have an Android phone any more, but I noticed on my family’s Pixels, PDANet gave gives out a consistent 192.168.1.XXX address. PDANet hotspots work like regular hotspots as far as I know, so it might be worth a shot for when you’re on the go without a router to use.
Click to expand...
Click to collapse
Good to know. I didn't even know pdanet was still around. I'll have to mess with it sometime and see what's up. It would be nice to have a static IP coming from the phone, just cause.
Are you talking about the free or a paid version (if there are still two versions)??
Right now I'm using a rooted Umidigi A7 Pro with a 'hotspot unlock' magisk module, coupled with the VPN Hotspot app. This setup allows me to have unlimited hotspot data, I believe stops reporting of hotspot activity back to the ISP, while tunneling the hotspot data thru my phone's VPN connection.
I live waaay out in the sticks of West Virginia. My only ISP option at this time is Hughesnet satellite, which is just THE worst connection on the face of the planet, not to mention pricey. Speeds is so slow, and ping so high, you can't stream media, play games, or use it for voice or FaceTime chats. Instead, I use the phone setup mentioned above.
Luckily, there is a sprint tower (now T-Mobile) near enough to get a bar or two in the window. I picked up an 850mhz band5 cell booster / repeater (actually on band 26, which is a subsection if band 5). Got it set up, now can use the device in-hand throughout my home and out on the porches. Also helped improve speeds, reduce ping, and stabilize jitter on the LAN.
Call of duty mobile pings around 60-80ms
My Metro by T-Mobile plan is $40 per month, no data caps, but no hotspot allotment either. With the rooted device, I routinely use 200+ gb per month of hotspot data on devices connected via the router/repeater in my home.
I've been running this setup for nearly a year now and not had any problems from my ISP.
OP, you might want to look at this solution.
Still having the same issue in 2023 on LineageOS 18.1 (Android 11).
Can't find out which of these classes in sources is responsible for address allocation.
cilyrik said:
OP, you might want to look at this solution.
Click to expand...
Click to collapse
Hi,
After two days of trouble, (and multiples flahing operations, and many other concerns, I found a compromise with the solutions given in your link. Only the first one worked on my rooted smartphone (magisk + rom stock doogee s86pro). I did not manage to remount in rw my partitions to modify the hostapd.android.rc file. So I decided to use the automation (MacroDroid in my case) of the first solution. It works perfectly with 2 macros :
macro #1
trigger = hospot on
action = ip address add 192.168.43.1/24 dev wlan0
and
macro #2
trigger = hospot off
action = ip address del 192.168.43.1/24 dev wlan0
That's all. ^^
* rooted phone required *

Categories

Resources