Profile: State > Net > Mobile Network > 3G, won't work when screen is off - Bug?

68 views
Skip to first unread message

Waffel

unread,
Jul 31, 2019, 10:21:34 AM7/31/19
to Tasker
Hello,
I'm trying to create a notification on my smartwatch, which shows, to which type of mobile network my smartphone currently connected.

So I created 3 Profiles:

Profile1: state > Net > Mobile Network > 2G
Profile2: state > Net > Mobile Network > 3G + 3G-HSPA
Profile3: state > Net > Mobile Network > 4G

every profile sends a notification to my smartwatch (using Watchmaker or AutoWear) which shows the type of mobile data network.

This works fine until the display on my phone is on - if my phone is in my pocket the profiles won't be triggered - is this a bug?
Is this a limitation of my Huawei Phone with Android Pie and EMUI 9.1? Everything else works great!
Or is this limitation of Tasker?

Is there a workaround for this problem?


it works great, but the intent mentioned there: android.net.conn.CONNECTIVITY_CHANGE 
works only on network connection type change e.g. Wifi <-> Mobile Data <-> or no connection at all, and not on change between 2G, 3G or 4G

So any help welcome

Thank you in advance 

Robert Ryan

unread,
Jul 31, 2019, 11:11:32 AM7/31/19
to tas...@googlegroups.com
Have you followed all of the suggestions for Huawei devices found here and here

--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/bdc919c9-5c39-46d1-a107-d94670f27395%40googlegroups.com.

Waffel

unread,
Jul 31, 2019, 11:39:39 AM7/31/19
to Tasker
Hello,
thank you for your answer!
Yes I disables all power related optimizations, except of disabling com.huawei.powergenie App.
As I wrote all my other Tasker related tasks works fine, also in the background and when screen is off.

In the Preferences of Tasker I found under "Display Off Monitoring" two items:

  - Cell Workaround
  - Net/Cell Wake Screen

which I can activate, but what does they mean? And which one is the right one?

Thanks   

Am Mittwoch, 31. Juli 2019 17:11:32 UTC+2 schrieb Robert Ryan:
Have you followed all of the suggestions for Huawei devices found here and here

On July 31, 2019 8:21:40 AM Waffel <walde...@gmail.com> wrote:

Hello,
I'm trying to create a notification on my smartwatch, which shows, to which type of mobile network my smartphone currently connected.

So I created 3 Profiles:

Profile1: state > Net > Mobile Network > 2G
Profile2: state > Net > Mobile Network > 3G + 3G-HSPA
Profile3: state > Net > Mobile Network > 4G

every profile sends a notification to my smartwatch (using Watchmaker or AutoWear) which shows the type of mobile data network.

This works fine until the display on my phone is on - if my phone is in my pocket the profiles won't be triggered - is this a bug?
Is this a limitation of my Huawei Phone with Android Pie and EMUI 9.1? Everything else works great!
Or is this limitation of Tasker?

Is there a workaround for this problem?


it works great, but the intent mentioned there: android.net.conn.CONNECTIVITY_CHANGE 
works only on network connection type change e.g. Wifi <-> Mobile Data <-> or no connection at all, and not on change between 2G, 3G or 4G

So any help welcome

Thank you in advance 

--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tas...@googlegroups.com.

Robert Ryan

unread,
Jul 31, 2019, 11:51:08 AM7/31/19
to tas...@googlegroups.com
On July 31, 2019 9:39:45 AM Waffel <walde...@gmail.com> wrote:
  - Cell Workaround
  - Net/Cell Wake Screen

which I can activate, but what does they mean?

Click the '?' next to the option for information about that option. 

And which one is the right one?

The right one is the one that works :). Seriously, I don't think either of these will help. Worth a try though. 

By default, Tasker is only checking the condition about once every 10 minutes with the screen off. Maybe that's why it appears not to activate? 

Waffel

unread,
Aug 2, 2019, 12:16:09 PM8/2/19
to Tasker
Hello,
I made some more investigations.

I navigated from a location with 4G to a location with 2G, using Google Maps, so the screen was always on. While I was on the way my mobile connection changed from 4G to 3G and finally to 2G. When I was on my destination,  Tasker shows still the 4G Profile is active (it was green), although the phone shows I'm on 2G.

So I switched the screen off, and on again, unlock the phone with my face (still on lockscreen) nothing happened. And as I left the lock screen and went to the homescreen Tasker triggered the right profile (2G) and I got the right message on my smartwatch.
This behavior coincides with my observations, the right profile would be only triggered on lock screen -> home screen change event. And it does no matter if the screen is on or off and I'm quite sure it has noting to do with some power saving.

Any help still welcome

Thanks 

Marta Hintz

unread,
Aug 2, 2019, 4:49:49 PM8/2/19
to Tasker
seems like it is the polling you need to refine in the tasker config. (like Robert suggeted)

Waffel

unread,
Aug 5, 2019, 3:44:35 AM8/5/19
to Tasker

Hello Marta,
thank you for your reply!
What do you exactly mean with:

Am Freitag, 2. August 2019 22:49:49 UTC+2 schrieb Marta Hintz:
seems like it is the polling you need to refine in the tasker config. (like Robert suggeted)

I tried to enable this two options:

  - Cell Workaround
  - Net/Cell Wake Screen

in the Preferences of Tasker, under "Display Off Monitoring", but had no luck.

Reply all
Reply to author
Forward
0 new messages