How to use the mortscript to get the backlight status or sleep mode?
I had wrote a alarm script to announce the time with file.wav
I used the ToggleDisplay(ON) to wake up the phone to Start the program and ToggleDisplay(OFF) to end the program.
If the phone is at sleep mode, it work fine. but if the user is using the phone, my script also turn off the screen after alarm announce.. i wanna... to keep the original staus of phone while my alarm is running,, any idea to catch the status of backlight or sleep mode?
Here is some hint...courtesy xda_uc
Code:
# ReadBacklight TimeOut values and Disable Backlight TimeOut
############################################################
BattSuspendTimeout = RegRead ("HKLM", "System\CurrentControlSet\Control\Power\Timeouts","BattSuspendTimeout")
ACSuspendTimeout = RegRead ("HKLM", "System\CurrentControlSet\Control\Power\Timeouts","ACSuspendTimeout")
BatteryTimeout = RegRead ("HKCU", "ControlPanel\Backlight", "BatteryTimeout")
ACTimeout = RegRead ("HKCU", "ControlPanel\Backlight", "ACTimeout")
Brightness = RegRead ("HKCU", "ControlPanel\Backlight", "Brightness")
ACBrightness = RegRead ("HKCU", "ControlPanel\Backlight", "ACBrightness")
RegWriteDword ("HKLM", "System\CurrentControlSet\Control\Power\Timeouts","BattSuspendTimeout",0)
RegWriteDword ("HKLM", "System\CurrentControlSet\Control\Power\Timeouts","ACSuspendTimeout",0)
RegWriteDword ("HKCU", "ControlPanel\Backlight", "BatteryTimeout", 0)
RegWriteDword ("HKCU", "ControlPanel\Backlight", "ACTimeout", 0)
RegWriteDword ("HKCU", "ControlPanel\Backlight", "Brightness", 10)
RegWriteDword ("HKCU", "ControlPanel\Backlight", "ACBrightness", 10)
I don't want to Disable Backlight TimeOut , ijust want to get the status of screen on or off.
Thank Your Reply , I still have no idea about the registry which you point out.... Is it the value will be change at screen on or off status...
edwinho said:
I don't want to Disable Backlight TimeOut , ijust want to get the status of screen on or off.
Thank Your Reply , I still have no idea about the registry which you point out.... Is it the value will be change at screen on or off status...
Click to expand...
Click to collapse
Do you want to keep the script running all the time?
did you consider to use notifications?
it was long time I touched mort but you might get some ideas about reading backlight status and do notifications from "paplight" there is kaiser and rhodium versions.
as I remember it they didnt even turn light on, but not always get triggered too.
well thats all the trouble about different standby modes in winmo.
try it and come back with results.
Thank your suggestion!!!
Yes I want to keep the voice announcer at every 15 or 30 or 60 min something like that "Now is 11:30. AM" , My porgram is work through all the status of Phone, Sleeping or Using Status ... ..But have some bugs on phone screen on...I found no way or command can detect the screen on status with mortscript. I don't want to install another program to act as part of my script..... so i will try your suggestion... and find the way through notifications..
Thank!!
You first need to understand what registry does to your backlight...the answer you are looking for is in the code that i gave you. Good luck.
edwinho said:
How to use the mortscript to get the backlight status or sleep mode?
Click to expand...
Click to collapse
Simply impossible!
But you always can ask the MortScript professionals:
http://forum.xda-developers.com/showthread.php?t=289197
ok, with another thought I may have a solution. read below.
in an answer to:
ai6908 said:
You first need to understand what registry does to your backlight...the answer you are looking for is in the code that i gave you. Good luck.
Click to expand...
Click to collapse
i see you want to be helpfull, but actually those reg values you posted will not help him at all with what he need.
they read timeout values, not status. there might, and probably is a value in registry which can be used to detect standby thought.
I guess you can't avoid using notifications as you can't have the code running all the time. I would freeze uppon standby, or keep pda awake. but winmo standby is behaving strengly, it depends if you have flight mode, wifi, gprs on in standby...
safe way is to use notifications. even they sometimes didn't trigger on one of my winmo in flight mode.
first try if the light goes ON when running your script with notif. it might be that light would stay off.
if not... this is the trick..
make another script, which run nonstop and get started on system startup. just simple few lines:
while 1=1 {
- check the entry - "yourapp/lasttick" If lasttick older then one minute (60 sec) then write reg. "yourapp/standby=1" else "yourapp/standby=0"
- write reg. entry "yourapp/tick= actual time in unix format"
- sleep 60 ( or whatever, but this is needed otherwise you freeze your phone)
}
we assume this script will freeze on standby and will not "tick"
your main announce script then will check on your reg value you using in the first script.
you cant read standby value of it of course as it always would be 0 on start of main script until another tick of secondary script. you need to do both:
if time minus 60 > "yourapp/tick" OR "yourapp/standby = 0"
the second part would cover us in case tick would come right after start of notification and main script.
remember this would not cover all situations.. its just to show you what I meant to do.
runaway situation: user will press power to use the phone and notification will come during first 60 secs following it.
edwinho said:
ijust want to get the status of screen on or off.
Click to expand...
Click to collapse
This is an excerpt of a script I am using to turn off the screen, might help you to get an idea how to determine whether screen is off and/or on.
Code:
#
# adjust to your needs
Set STEP_WIDTH, "20"
Set SCREEN_OFF_EXE, "ScreenOff.exe"
Set FULLFILEPATHNAME_SCREEN_OFF_EXE, "\My Flash Disk\SystemProgs\" & SCREEN_OFF_EXE
Sleep 300
#
# initially set to false
turnOff = 0
#
black = RGB ( 0, 0, 0 )
# get screen dimensions
wdth = ScreenWidth()
hght = ScreenHeight()
#
# test each xth pixel per row and column
For w = 1 To (wdth - %STEP_WIDTH%) Step %STEP_WIDTH%
For h = 1 To (hght - %STEP_WIDTH%) Step %STEP_WIDTH%
#
# get pixel's color
clr = ColorAt( w, h )
#
# if pixel's color isn't black,
# set to true
If (clr <> black)
turnOff = 1
EndIf
Sleep 50
#
Next
Sleep 50
Next
#
#
check screen on/off status
Hi all,
i'm also interested in checking whether the screen is on or off and I had the same idea to check the color of pixels and "deduce" the screen status that way.
What I'm experiencing that ColorAt() function always returns the wallpaper color even if the phone is in stand by... and therefore that method seems not to work.
Don't know whether I do something wrong or if someone has experienced the same.
Waiting for news.
Thanks in advance
Post your EPIC TASKER PROFILES here! They need not be specific to the Nexus 7 but that's your audience so please don't post ones that are only useful on phones! If you can't be bothered to go into detail on how you did it, at least post what it is you did that was so uber, so that we can figure it out for ourselves!
Landara said:
Post your EPIC TASKER PROFILES here! They need not be specific to the Nexus 7 but that's your audience so please don't post ones that are only useful on phones! If you can't be bothered to go into detail on how you did it, at least post what it is you did that was so uber, so that we can figure it out for ourselves!
Click to expand...
Click to collapse
No Nexus 7 and a tasker noob but if i figure something neat out, i'll put it up and also export the profile to .xml (i believe?) and upload it for people to download
I basically made a profile to turn on Airplane Mode if idle for 10 minutes and not on charger.
Typically my usage on it is consistent so if I haven't used my Nexus in that long, I don't want it wasting battery looking for WiFi or syncing twitter. If I don't have the Nexus I have my phone.
Also have a display unlocked to go out of airplane mode when I unlock it.
Here's what I have so far. Just bought it yesterday.
Profile: Night Mode (3)
Time: From 01:00 Till 07:00
Enter: Night Conserve On (4)
A1: WiFi [ Set: Off ]
A2: Alarm Volume [ Level:7 Display: Off Sound: Off ]
A3: Notification Volume [ Level:0 Display: Off Sound: Off ]
A4: Media Volume [ Level:0 Display: Off Sound: Off ]
A5: Ringer Volume [ Level:0 Display: Off Sound: Off ]
A6: Night Mode [ Mode: On ]
A7: CPU [ CPU:0 Governor: powersave Min. Frequency:340000 Max. Frequency:860000 ]
A8: Set Wallpaper [ Image: xda_download/tapatalk_1342804122588.jpg ]
Exit: Night Conserve Off (5)
A1: WiFi [ Set: On ]
A2: Alarm Volume [ Level:6 Display: Off Sound: Off ]
A3: Notification Volume [ Level:3 Display: Off Sound: Off ]
A4: Media Volume [ Level:5 Display: Off Sound: Off ]
A5: Night Mode [ Mode: Off ]
A6: CPU [ CPU:0 Governor: interactive Min. Frequency:340000 Max. Frequency:1300000 ]
A7: Ringer Volume [ Level: 3 Display: Off Sound: Off ]
A8: Go Home [ Page:0 ]
A9: Button [ Button:Menu ]
A10: Dpad [ Button: Down Repeat Times:1 ]
A11: Dpad [ Button: Press Repeat Times:1 ]
A12: Dpad [ Button: Down Repeat Times:1 ]
A13: Dpad [ Button: Press Repeat Times:1 ]
A14: Dpad [ Button: Down Repeat Times:3 ]
A15: Dpad [ Button: Press Repeat Times:1 ]
A16: Dpad [ Button:Right Repeat Times:1 ]
A17: Dpad [ Button: Press Repeat Times:1 ]
That last bit with all the button presses is the only way I have found to reset a live wallpaper from a static one.
Sent from my Nexus 7 using xda app-developers app
Bump... I currently have an auto airplane mode one set up when the display is off.. Anyone else using Tasker with their Nexus 7?
There are people who DON'T use Tasker?
Ones in blue are ones I use on the N7, rest are ones on the Phone
Profiles:
Location based Home/Work Profiles
Calendar event based "Quiet" profile
Time based "Night" profile w/ "manual" trigger (AC + flipped on face for those early nights)
Context based "Car" profile (AC + Some Car related program... Waze is the normal trigger), goes back to previous when AC disconnects
Tracking Related:
Uploads my location to my web server every 10 minutes
Can upload my location as often as every 5 seconds in another "mode"
Recovery:
If I receive an SMS or EMail with a certain phrase in it, it'll act on a command in the email/SMS
----- Example: One command sends back location, current phone number, last call in, last call out, last sms # in, last sms # out, battery level, some other misc stuff responded to the email or sms it came from
If the phone number on the phone changes (ie: SIM changes), it'll kick off the above example and send it every 5 minutes to a predefined SMS
Utilities:
Download some geocaching data from my server every night and unzip it ready to be imported
Based on location, dings me if I'm still at the house at 7:25 to remind me to get moving to drop off daughter at school
Based on location, dings me if I'm still at work to pick up at 5pm
Dings every 2 minutes if I've missed a phone call, sms, or voice mail
Tells sleepbot I'm going to sleep and triggers my Night profile if it's after a set time and it's on AC and flipped face-down
If Car Home is running, launch Waze for navigation
----- and when we've stopped Waze and AC is unplugged, stop Car Home and turn off
Widget that when ran, turns off GPS, waits a second, then runs a News app
----- Because the news app is f'ing braindead and stalls until it gets a GPS lock
----- And when we exit the news app, kill it, turn on GPS again.
Widget that when ran counts down a predefined time, lowering volume, and eventually doing a MEDIA stop. ie: Music fade
Screen off on my tablet turns off wifi and bluetooth; and when opened up again, it turns them back on if they were previously on
If I turn on my tablet and it can't find a wifi connection in 10 seconds, it asks if I want to enable bluetooth. I have bluetooth tethering enabled on my phone, so this way it tethers to the phone easily if I'm not near wifi.
Puts phone into suspend mode if upside down. This way if it turns on in my pocket, it goes back to sleep immediately
----- Unless the phone is ringing or I'm on a call
Run a script which backs up my SD card to my Linux workstation nightly
----- Uses Secure Settings, sh script, rsync, enables wifi if it's off before starting
NFC:
Work tag, set a NFC_WORK variable, that if set, never changes from my Work profile
------ Until I get in the car and the tag in my cradle is scanned, or it's after 5:30
Car tag, enable Bluetooth GPS Provider which connects to my bluetooth GPS, starts Car Home
Sleep tag, same as flipping the phone on its face mentioned earlier, but really don't use this one much
I'm having trouble with this airplane mode one. Sometimes it won't turn off the WiFi when the screen is off and ends up doing it when I have the screen turned back on. Or it will wait the 5 minutes after i have the screen on then turn wifi off and aiplane radios on. I'm a newb when it comes to tasked so any help would be awesome. Does this look right?
Profile: Anon (14)
State: Display State [ Isff ]
State: Not Power [ Source:AC ]
Enter: Airplane Mode (4)
Abort Existing Task
A1: Wait [ MS:0 Seconds:0 Minutes:5 Hours:0 Days:0 ]
A2: Airplane Radios [ Bluetoothn Cellff NFCn Wififf Wimaxff ]
A3: WiFi [ Setff ]
Exit: Airplane Mode Off (9)
A1: Airplane Radios [ Bluetoothff Cellff NFCff Wififf Wimaxff ]
A2: WiFi [ Setn ]
Sent from my Nexus 7 using Tapatalk 2
I wrote a tasks for both my phone and my tablet that text my boss who always hides in the back room when I need help. Initially I accidentally texted him at like 2am, so I created tasks that modify a variable so I can turn the function on and off. Sort of a safety feature that prevents me from angering him. So long story short, when I need help on the floor, I just click a home screen widget that asks him to the come out via sms.
Sent from my Nexus 7 using XDA Premium HD app
khaytsus said:
There are people who DON'T use Tasker?
Ones in blue are ones I use on the N7, rest are ones on the Phone
Profiles:
Location based Home/Work Profiles
Calendar event based "Quiet" profile
Time based "Night" profile w/ "manual" trigger (AC + flipped on face for those early nights)
Context based "Car" profile (AC + Some Car related program... Waze is the normal trigger), goes back to previous when AC disconnects
Tracking Related:
Uploads my location to my web server every 10 minutes
Can upload my location as often as every 5 seconds in another "mode"
Recovery:
If I receive an SMS or EMail with a certain phrase in it, it'll act on a command in the email/SMS
----- Example: One command sends back location, current phone number, last call in, last call out, last sms # in, last sms # out, battery level, some other misc stuff responded to the email or sms it came from
If the phone number on the phone changes (ie: SIM changes), it'll kick off the above example and send it every 5 minutes to a predefined SMS
Utilities:
Download some geocaching data from my server every night and unzip it ready to be imported
Based on location, dings me if I'm still at the house at 7:25 to remind me to get moving to drop off daughter at school
Based on location, dings me if I'm still at work to pick up at 5pm
Dings every 2 minutes if I've missed a phone call, sms, or voice mail
Tells sleepbot I'm going to sleep and triggers my Night profile if it's after a set time and it's on AC and flipped face-down
If Car Home is running, launch Waze for navigation
----- and when we've stopped Waze and AC is unplugged, stop Car Home and turn off
Widget that when ran, turns off GPS, waits a second, then runs a News app
----- Because the news app is f'ing braindead and stalls until it gets a GPS lock
----- And when we exit the news app, kill it, turn on GPS again.
Widget that when ran counts down a predefined time, lowering volume, and eventually doing a MEDIA stop. ie: Music fade
Screen off on my tablet turns off wifi and bluetooth; and when opened up again, it turns them back on if they were previously on
If I turn on my tablet and it can't find a wifi connection in 10 seconds, it asks if I want to enable bluetooth. I have bluetooth tethering enabled on my phone, so this way it tethers to the phone easily if I'm not near wifi.
Puts phone into suspend mode if upside down. This way if it turns on in my pocket, it goes back to sleep immediately
----- Unless the phone is ringing or I'm on a call
Run a script which backs up my SD card to my Linux workstation nightly
----- Uses Secure Settings, sh script, rsync, enables wifi if it's off before starting
NFC:
Work tag, set a NFC_WORK variable, that if set, never changes from my Work profile
------ Until I get in the car and the tag in my cradle is scanned, or it's after 5:30
Car tag, enable Bluetooth GPS Provider which connects to my bluetooth GPS, starts Car Home
Sleep tag, same as flipping the phone on its face mentioned earlier, but really don't use this one much
Click to expand...
Click to collapse
Wow. Would it be too much to ask for you to make a ti backup of this, take out all of the emails, IPs, phone numbers, names, and other personal info, make a ti backup of that, post the data only here, then restore the previous backup?
khaytsus said:
[*]Screen off on my tablet turns off wifi and bluetooth; and when opened up again, it turns them back on if they were previously on
[*]]If I turn on my tablet and it can't find a wifi connection in 10 seconds, it asks if I want to enable bluetooth. I have bluetooth tethering enabled on my phone, so this way it tethers to the phone easily if I'm not near wifi.
Click to expand...
Click to collapse
Whoa if there was a way for it to also make my phone turn on bluetooth tethering, I'd be happy as hell. (If you could figure that out, I'd love you til the end of time).
Would also love some info on that location alarm since I suck at Tasker. I'm always rushing in the morning, because I never leave the house at the right time :S
willis936 said:
Wow. Would it be too much to ask for you to make a ti backup of this, take out all of the emails, IPs, phone numbers, names, and other personal info, make a ti backup of that, post the data only here, then restore the previous backup?
Click to expand...
Click to collapse
I could do that, I'll have to do it in a day or two, but I'd probably just do a backup that could be restored.
SwiftLegend said:
Whoa if there was a way for it to also make my phone turn on bluetooth tethering, I'd be happy as hell. (If you could figure that out, I'd love you til the end of time).
Would also love some info on that location alarm since I suck at Tasker. I'm always rushing in the morning, because I never leave the house at the right time :S
Click to expand...
Click to collapse
It's possible I think... You can do Launch App then DPad actions. So yeah, ugh, but it's possible.
khaytsus said:
I could do that, I'll have to do it in a day or two, but I'd probably just do a backup that could be restored.
It's possible I think... You can do Launch App then DPad actions. So yeah, ugh, but it's possible.
Click to expand...
Click to collapse
But how would my tablet tell my phone to turn in on? o.o
SwiftLegend said:
Whoa if there was a way for it to also make my phone turn on bluetooth tethering, I'd be happy as hell. (If you could figure that out, I'd love you til the end of time).
Would also love some info on that location alarm since I suck at Tasker. I'm always rushing in the morning, because I never leave the house at the right time :S
Click to expand...
Click to collapse
I don't think tasker has the built in function to turn tether on, but you can launch a third party app like "bluetooth autotether", that should do the trick (it works for me at least
I have installed Open Garden on phone and Nexus7. BT on my phone is always on. Whenever I turn on BT on my Nexus7, tethering is automatically initiated.
So I set up a tasker profile on my Nexus7 to turn BT on whenever wifi is not connected, and turn it off when it is.
Works like a charm. :cyclops:
deadcaribou said:
I don't think tasker has the built in function to turn tether on, but you can launch a third party app like "bluetooth autotether", that should do the trick (it works for me at least
Click to expand...
Click to collapse
Cool, I was just thinking of setting up a profile that when I pressed the icon, it sent a message to my phone, which in turn, would activate tethering on my phone. Unfortunately, I can't think of a way to send that message. Can we send SMS via NFC or Bluetooth?
McLeod5000 said:
I have installed Open Garden on phone and Nexus7. BT on my phone is always on. Whenever I turn on BT on my Nexus7, tethering is automatically initiated.
So I set up a tasker profile on my Nexus7 to turn BT on whenever wifi is not connected, and turn it off when it is.
Works like a charm. :cyclops:
Click to expand...
Click to collapse
Cool I'll try this out. Can I have some more info on it? This Open Garden app is new to me and so is Tasker.
Does anyone know of a way to have Tasker monitor for my N7 pairing to my GN via bluetooth? I have an idea
SwiftLegend said:
Cool I'll try this out. Can I have some more info on it? This Open Garden app is new to me and so is Tasker
Click to expand...
Click to collapse
Setting up Open Garden is pretty simple. Just install the app on both devices and follow the on-screen instructions.
In Tasker you then could define a profile "BluetoothTether" (or whatever you'd like to name it) which - like every tasker profile - consists of contexts and tasks.
The contexts define when the tasks will be exceuted. I added a context for Wifi not being connected and another one for the display being on.
Then I defined an enter task "BluetoothOn" and an exit task "BluetoothOff".
So whenever I have no Wifi connection AND my display is on (multiple contexts are connected via an AND-condition in Tasker), Bluetooth will be activated (enter task). If a wifi connection is established or the display is switched off, BT will be deactivated (exit task).
SwiftLegend said:
Cool, I was just thinking of setting up a profile that when I pressed the icon, it sent a message to my phone, which in turn, would activate tethering on my phone. Unfortunately, I can't think of a way to send that message. Can we send SMS via NFC or Bluetooth?
Click to expand...
Click to collapse
If you're talking about Bluetooth tethering, just leave it enabled all of the time on your phone. Yes, it forces bluetooth on, but bluetooth uses almost zero power when not active.
Here is my attempt at a weather notification!
I have shortcut set to run it, but once it's in the notification bar all you have to do is click it to refresh.
This uses secure settings to turn on/off gps. Then turns your lat/lng to a zipcode. Then checks weather.com for current condition and temp.
Here's the description of the profile:
Profile: WeatherChanClick (2)
Event: Notification Click [ Owner Application:* Title:%LEJCONDTEMP°F ]
Enter: WeatherChan (55)
A1: Secure Settings [ Configuration:GPS Enabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings ]
A2: Flash [ Text:Acquiring location... Longff ]
A3: Get Location [ Source:GPS Timeout (Seconds):120 Continue Task Immediatelyff Keep Trackingff ]
A4: Perform Task [ Name:Location2Zip Stopff Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
A5: Wait Until [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ] If [ %ZIPCODE Is Set ]
A6: Secure Settings [ Configuration:GPS Disabled Package:com.intangibleobject.securesettings.plugin Name:Secure Settings ]
A7: Flash [ Text:Getting weather for %ZIPCODE... Longff ]
A8: HTTP Get [ Serverort:rss.weather.com/weather/rss/local/%ZIPCODE?cm_ven=LWO&cm_cat=rss&par=LWO_rss Path: Attributes: Cookies: Timeout:10 Mime Type:text/xml Output File: ]
A9: Variable Set [ Name:%LEJWEATHER To:%HTTPD Do Mathsff Appendff ]
A10: Variable Split [ Name:%LEJWEATHER Splitterutlook-- Delete Baseff ]
A11: Variable Split [ Name:%LEJWEATHER2 Splitter Delete Baseff ]
A13: Variable Split [ Name:%LEJWEATHER21 Splitter Delete Baseff ]
A14: Variable Set [ Name:%LEJCITY To:%LEJWEATHER211 Do Mathsff Appendff ]
A15: Variable Split [ Name:%LEJWEATHER222 Splitter:° F. Delete Baseff ]
A16: Variable Set [ Name:%LEJCONDTEMP To:%LEJWEATHER2221 Do Mathsff Appendff ]
A17: Notify [ Title:%LEJCONDTEMP°F Text:%LEJCITY Icon: Number:0 Permanentff Priority:3 ]
A18: Variable Clear [ Name:%LEJWEATHER* Pattern Matchingn ]
A19: Variable Clear [ Name:%HTTPD* Pattern Matchingn ]
A20: Variable Clear [ Name:%ZIPCODE Pattern Matchingff ]
Here's the description of loc2zip:
Location2Zip (19)
A1: Variable Set [ Name:%LEJLOC To:%LOC Do Mathsff Appendff ]
A2: HTTP Get [ Serverort:maps.google.com/maps/api/geocode/json?latlng=%LEJLOC&sensor=false Path: Attributes: Cookies: Timeout:54 Mime Type:text/* Output File: ]
A3: Variable Split [ Name:%HTTPD Splitter:"country", "political" Delete Baseff ]
A4: Variable Split [ Name:%HTTPD2 Splitter:"long_name" : " Delete Baseff ]
A5: Variable Split [ Name:%HTTPD22 Splitter:",
"short_name" : Delete Baseff ]
A6: Variable Set [ Name:%ZIPCODE To:%HTTPD221 Do Mathsff Appendff ]
Probably not the best but it's my first try at doing something more advanced lol
db.tt/M71j6rkN
Edit: next step is to create a pop up on click with more info with an option to exit or refresh (I think that's possible lol)
Sent from my SCH-I535 using Xparent SkyBlue Tapatalk 2
Here is a picture
Sent from my SCH-I535 using Xparent SkyBlue Tapatalk 2
I'm running Tasker on my Evo 3D and the Nexus 7. I'm working on ideas for profiles that will work with both.
For instance, when I'm at work or home, I don't need the wifi hotspot on the phone active, so Profile that, turning it on when I'm out and about.
Then on the Nexus, if not connected to some other WiFi source, it means I'm out and about, so connect to the hotspot.
There has got to be all kinds of ways to harness the possibilities of two devices communicating with each other and both using Tasker...
I do calls through Bluetooth and there are time I want to access the phone during the call. Only way to get screen back on is keep hitting the power button.
Is there a way to keep the screen on during a call?
Yeah, with Tasker.
I have a profile set up exactly for this.
Code:
Profile: Screen On Headset (25)
State: Call [ Type:Any Number:* ]
State: BT Connected[Name:Jabra Evolve 75 Address:70:BF:92:05:4D:C3 ]
Enter: Screen On (23)
A1: Display Timeout [ Secs:0 Mins:0 Hours:18 ]
A2: Notify [ Title:Screen On Text:Screen On Icon:hd_aaa_ext_bulb Number:0 Permanent:Off Priority:5 Repeat Alert:Off LED Colour:Red LED Rate:0 Sound File: Vibration Pattern: Category:%BATT ]
Exit: Screen Normal (26)
A1: Display Timeout [ Secs:0 Mins:1 Hours:0 ]
A2: Notify Cancel [ Title:Screen On Warn Not Exist:On ]
How do you get in to do that? Thank you
jkhawk said:
How do you get in to do that? Thank you
Click to expand...
Click to collapse
Well... Like I wrote. You create a profile that keeps your screen on when on a call and connected to a specific blue tooth headset.
When the call is ended the exit task resets the screen time out to 1min.
I also have a little pop up saying "Screen On", but that's not a must.
Do you know Tasker?
Have you worked with it?
No I haven't worked with it. I will look into it.
Yeah this is kinda annoying OnePlus has the screen off and unresponsive unless you got the power button. My other devices I have I could double tap the screen to wake.
You can probably use Tasker for this
rickysidhu_ said:
You can probably use Tasker for this
Click to expand...
Click to collapse
As has been said...
Bunecarera said:
As has been said...
Click to expand...
Click to collapse
Oh my bad, somehow I missed the earlier post about Tasker.
Typically, only time I'm actually ON a call, is while I'm at home anyway, my method of doing this is (particularly if you do not have a rooted phone):
1. developer options -> stay awake (while charging)
2. plug phone into charger.
3. make call, screen stays on.
I too find it annoying not being able to simply double tap my screen on this phone and have to use the power button (especially when you get soooo used to double tapping the screen to turn it on).
G
When I'm in my car and want to plug in for usb charging, I turn my phone upside down and place it in a padded cup holder.
Unfortunately the screen will not rotate upside down, it will only rotate 90 degrees to landscape orientation. I've tried it with both "Face Detection" on and off.
Is this a known problem? [Build: SD1A.210817.036]
FWIW, I upgraded to P6P from a Galaxy S7 Edge, and never had a problem flipping the screen upside down.
Stranger things I guess in the upside-down.
As an aside, I'll end up creating a Tasker profile to fix this glitch in the matrix.
This has never worked for me on any android phone except when I flashed custom ROMs where it was supported.
What @nuumuun said. This is normal behavior for stock Android as it comes from Google. I, too, have occasionally had use for 180-degree rotation although not so much anymore. I'll probably enable some way to do it through root, though.
Apology in advance for the teaser, but I believe I once came across an app that let me force 180-degree rotation, and it worked without root, but I didn't make note of the app / Play Store link even though I have a Google Sheet I maintain for noting "uniquely functional" apps I've used, so when I stop using them and then need them again (or to tell someone else), I can.
FWIW - I created a simple Tasker profile that has fixed the issue.
Profile: FlipUpsideDown
Settings: Restore: no
State: Orientation [ Is:Upside Down ]
Enter Task: DisplayUpsideDown
A1: Force Rotation [
Mode: Portrait Reverse ]
A2: Display AutoRotate [ ]
Exit Task: Anon
A1: Display AutoRotate [
Set: On ]