Disable Wifi when display is turned off - LineageOS Questions & Answers

I installed LineageOS 16 on my Lenovo Tab4 Plus, before i used the Oreo Stock-Rom. On Oreo i could set up that wifi is disabled when i turn off the display. This doesn't work anymore one Pie. Has Google removed this function? Is there a way to realize it? An adb command?

Install WiFi Automatic (Turn off WiFi automatically) - https://f-droid.org/app/de.j4velin.wifiAutoOff

Works, thanks

Related

[Q] WiFi won't connect automatically (while screen is on)

Have searched the forum without luck. I'm running latest purenexus/elementalx w/afwall+ and xprivacy (basically same setup as I had on 5.1.1), but ever since marshmallow android reports that wlan isn't connected (although it is after I made a connection manually). So if I toggle wifi it won't connect automatically (it will only when I turn off the screen). Any ideas are appreciated, thanks!
SOLVED
(Had to grant internet access to the system in afwall+ once)

no mobile data after reboot - have to enable/disable flight mode

Hi everybody,
Since I upgraded my phone to Android 9.0 Pie, I have a strange problem after every reboot: Mobile data is enabled but doesn't work (no network indicator arrows visible) - it will only work after I enable/disable flight mode.
Can anybody confirm this issue or has a solution? Is it a Pie bug?
My idea was to use Tasker to enable/disable flight mode after reboot...
Thanks in advance for your help!
I have this problem even i use oreo 8.1 and now on android pie i have same problem.

Xiaomi Mi A2 lite Wifi HOTSPOT Tethering issues on OSX - WRONG PASSWORD

Hi all, I have a brand new Xiaomi Mi A2 Lite phone with Stock ANDROID one firmware.
Android Version: 9 pie
Security patch: 5 February 2019
I have just Unlocked bootloader, flashed TWRP and Magisk, but I'm running on stock firmware.
I have the following ISSUES:
ISSUE 1 - When tethering a wifi signal, all my mobiles devices can connect and navigate, except for my working device, a Mac running OSX 10.9.5.
When I try to connect the signal, I type the password and the system gives back INVALID PASSWORD, even if the password is correct.
I found HERE ( https://discussions.apple.com/thread/4580644 ) and here ( https://apple.stackexchange.com/que...ection-has-password-issue-with-my-macbook-pro ) that the problem is due to the fact that OSX misunderstand a 2.4 GHz signal with the 5 GHz.
I've double checked and the HotSpot Wifi is a 2.4 GHz signal.
Switching to 5GHz and than back on 2.4 GHz does not work
Rename the hotspot does not work
Changing the password does not work
Rebooting does not work
Adding manually the WiFi SSiD and password in OSX Network preference does not work.
I'm out of ideas, and the Macbook with OSX is my working device, so I need tethering on the go.
Didn't try with Bluetooth or USB tethering.
ISSUE 2 - I have 2 sims, when tethering from SIM 1, the devices that works with my hotspots are able to navigate witouth problems.
when moving the data from SIM 1 to SIM 2, the tethering does not send data, and i'm unable to navigate.
Any help and suggestion is really appreciated, i don't want to switch to LINEAGE due to the fact that I have just set up the stock rom with my personal apps
Any news or suggestion on how to solve those issues?
I was able to make it work with MAC OSX without WPA2 Personal password, leaving WiFi open.
The problem is that I work in a School, so there is an high risk of students to connect to my personal hotspot, how can I force to only be 1 device to be connected? It was possible with AOSP Kitkat, why is not possible with Pie?
Any Magisk or Xposed module?
I have the same issue with OS X 10.13.6.
No problem with paranoid android pie beta but can't use tethering with stock firmware.

Realme X2 & Tasker

Hi All,
Anybody using Tasker on Redmi X2 - Recently migrated from MIUI and facing lot of iffuce in the is color OS 6..1- Want to check for similar mind people
bino_mat said:
Hi All,
Anybody using Tasker on Redmi X2 - Recently migrated from MIUI and facing lot of iffuce in the is color OS 6..1- Want to check for similar mind people
Click to expand...
Click to collapse
Tasker is running fine on my X2 EU version. No problems up to now
Note4Addict said:
Tasker is running fine on my X2 EU version. No problems up to now
Click to expand...
Click to collapse
That is is interesting !! - 2 problems I encountered are
1.Tasker toasts are working only with in Tasker context - I mean if open the tasker and a do a flash message ,it flashes the message- But when on a normal working (Tasker is in background) - no toast message appears.
2.Even if I enable all of the permission,when Tasker tries to switch on the WIfi with in Tasker context as window popes out asking Tasker want to switch on Wifi - Allow or Prohibit -
If Tasker is in background,this window can't appear and nothing happens.
Finally ,I went to Developer options,Disabled the permission monitoring(last option) s- that this started working
Can you please confirm on these 2 points?
Confirm that! I had exactly the same problem with wifi on/wifi off and had to disable permission monitoring to get it working. It was the same for the initial adb permission command you need to get Tasker up and running. Unfortunately, at the moment I haven't got the chance to look into it but from version 5.9.2 Tasker has the new adb wifi commands which give it almost root like power. Perhaps one of these would be able to overcome the permission monitoring problem so that we can keep it active. Try it if you can, I would be very interested to hear if you managed to get that working.
Note4Addict said:
Confirm that! I had exactly the same problem with wifi on/wifi off and had to disable permission monitoring to get it working. It was the same for the initial adb permission command you need to get Tasker up and running. Unfortunately, at the moment I haven't got the chance to look into it but from version 5.9.2 Tasker has the new adb wifi commands which give it almost root like power. Perhaps one of these would be able to overcome the permission monitoring problem so that we can keep it active. Try it if you can, I would be very interested to hear if you managed to get that working.
Click to expand...
Click to collapse
Sorry I didn't get some part of your message _"It was the same for the initial adb permission command you need to get Tasker up and running" - Can you pl elaborate?
" Try it if you can..." - it means the ADB wifi commands ?I couldn't locate any permission disabling commands with adb wifi.
One good news is that I tried out Tasker in Android 10- COlor OS 7 and I see that Toast functionality is working in that
bino_mat said:
Sorry I didn't get some part of your message _"It was the same for the initial adb permission command you need to get Tasker up and running" - Can you pl elaborate?
" Try it if you can..." - it means the ADB wifi commands ?I couldn't locate any permission disabling commands with adb wifi.
One good news is that I tried out Tasker in Android 10- COlor OS 7 and I see that Toast functionality is working in that
Click to expand...
Click to collapse
Good news that Tasker works well in Color OS 7 which will get around March it seems. Regarding the initial ADB permission, I meant the message you get when you first install Tasker on a non-rooted device. In that case you need to execute a specific permission command via ADB to get Tasker up and running correctly.
What I meant with "Try if you can..." is that If you have the opportunity you may want to check if perhaps one of the new ADB wifi commands would be capable of setting wifi on and off despite permission monitor being active instead of disabled as we're doing now. Hope that will work so we can keep permission monitor active.
Guess ,it is more of Color OS issue , with the battery saved enabled,Tasker is missing the Alarm - I did a simple experiment of logging of BAttery level to a file in every 10 minutes.
If I look at the file now ,either the logging is not continuous or stopped after sleeping for one or hour or so !!! -- But this is not the case with MIUI - It's sharp on time with battery saver or not.
More importantly one thing I noticed is that when battery saver is on ,you can't lock the application in memory - Flip side , with battery saver on ,if I invoke recents and clear the memory ,evrything will be wiped and even when battery saver is off,the applications which you want to be in memory in normal condition will not be there!!!
Bluetooth problems with Android 10:
With my Realme X2 and Realme Ui 1.0 (Android 10) i can not start Bluetooth because my smartphone always asks with an popup for an permission ("Tasker needs the following permission: set Bluetooth on/off"). My desktop links give me the error code "action bluetooth failed".
How can i disable this popup asking for an permission? Or can i made tasker to click on yes itself?

Question No Lockdown Mode Option in lockscreen

I'm using Google smart lock to keep my device unlocked when certain trusted devices are close-by. But I can't find the option to enable Lockdown mode in lockscreen or settings so that I can lock the device without turning of my trusted device. This option was available in OOS 11. Im not sure if it was present in OOS 12. But I couldn't find it in OOS 13 or OOS 13.1 .
Is there a way to trigger it using termux or any other solution? F.Y.I I have root access. So any solutions work.

Categories

Resources