Hi,
I'm trying to enable the comfort view with Tasker.
Does anybody know how to do that?
Regard
fanello
You'd probably have better luck asking over at the Tasker Forum.
fanello123 said:
Hi,
I'm trying to enable the comfort view with Tasker.
Does anybody know how to do that?
Regard
fanello
Click to expand...
Click to collapse
I used a java code action to set the reader_mode_enable to a 0/1 value. It works well.
art.montesinos said:
I used a java code action to set the reader_mode_enable to a 0/1 value. It works well.
Click to expand...
Click to collapse
Could you please give a quick walkthrough on how to add this code in tasker? I have an LG V20 and would like to set comfort view to turn on at 10pm and turn off at 7am everyday.
Thanks!
Thank you, I've been trying to figure this out as well. I head set a task for the AOD, so it was easy to modify for comfort view. I attached the XML export from tasker. Change the parameter in the second step to 0 to turn off.
lemmyslender said:
Thank you, I've been trying to figure this out as well. I head set a task for the AOD, so it was easy to modify for comfort view. I attached the XML export from tasker. Change the parameter in the second step to 0 to turn off.
Click to expand...
Click to collapse
So I used this xml to create an on and off profile and set it to a schedule in tasker. However, sometimes the off profile toggles the comfort view off, but the screen is still the same color.
Does anyone else have this problem?
Also, Why would you have this setting and not be able to schedule it. LG needs to fix this, along with the ability to adjust screen brightness without having to turn off the auto brightness option ( I can do it on an LG V20, why not the G6??!).
supadoggie said:
So I used this xml to create an on and off profile and set it to a schedule in tasker. However, sometimes the off profile toggles the comfort view off, but the screen is still the same color.
Does anyone else have this problem?
Also, Why would you have this setting and not be able to schedule it. LG needs to fix this, along with the ability to adjust screen brightness without having to turn off the auto brightness option ( I can do it on an LG V20, why not the G6??!).
Click to expand...
Click to collapse
I don't use it often, although I obviously have it set up in tasker, never got around to creating a task. I don't think I ever saw it not turn off though.
supadoggie said:
So I used this xml to create an on and off profile and set it to a schedule in tasker. However, sometimes the off profile toggles the comfort view off, but the screen is still the same color.
Does anyone else have this problem?
Click to expand...
Click to collapse
I have the same problem here. Did you find a solution?
Airmaxchen said:
I have the same problem here. Did you find a solution?
Click to expand...
Click to collapse
Just figured a way out using shell commands. Works beautifully. This does require root though - just so you know.
Here is a great site on using shell commands http://www.notenoughtech.com/tasker/tasker-run-shell-commands/
The setting you want is "reader_mode_enable" It takes a 0 or a 1, 1 being enabled and 0 disabled. The command you want to use is:
settings put system reader_mode_enable 1
That will turn it on. In Tasker you need to add an action Code>Run Shell and then use that Shell command and make sure "Use Root" is checked. Hope this helps the next person searching this information out!
Sent from my LGUS997 using XDA Labs
Sobek5150 said:
Just figured a way out using shell commands. Works beautifully. This does require root though - just so you know.
Here is a great site on using shell commands http://www.notenoughtech.com/tasker/tasker-run-shell-commands/
The setting you want is "reader_mode_enable" It takes a 0 or a 1, 1 being enabled and 0 disabled. The command you want to use is:
settings put system reader_mode_enable 1
That will turn it on. In Tasker you need to add an action Code>Run Shell and then use that Shell command and make sure "Use Root" is checked. Hope this helps the next person searching this information out!
Click to expand...
Click to collapse
So a quick addition to this. The screen must be on for this to work. Use Secure Settings app or possibly one of the Auto tools apps to trigger the screen to pop on just before the shell command runs.
Sent from my LGUS997 using XDA Labs
Related
Since a lot of people suggest disabling the g-sensor to prevent the screen freezes I thought I'd try something.
I don't want to have my rotation disabled as it's very handy to have. So what I do is use an app called Tasker. It's not free, but there is a 7-day trial available.
Basically I have it set to disable screen rotation every time the screen is off..and so far I haven't had any screen freezes. It may be coincidence, it may not be. I'm not exactly sure if the app does disable the g-sensor or does something else, but so far so good.
For those that don't know about Tasker...it's probably the best app that will ever be made for Android. You can make your phone do almost anything.
For example, I use it to:
When I get home, Wifi turns on and 3G is turned off. When I leave home, Wifi turns off and 3G turns on....same for work.
I have it disable wifi, 3g and screen rotation at night when I'm in bed.
It enables GPS when I launch maps or navigation, and disables GPS when I close the app.
And those are very basic ones...
The Tasker wiki has many more advanced "profiles" you can use:
Code:
Lock An Application
Start the Day with a Particular Application
Battery Full Alert
Launch Music App When Headset Inserted
Launch Menu of Music Apps When Headset Inserted
Keep screen awake when using the keyboard
Speaking Clock for Android 1.5
Control Keyguard (scroll to unlock) when Power is Connected/Disconnected
Keep Multiple Backups of Tasker Config
Change Ringtone on Every New Call
Mute in Meetings
Hold Ringer Volume Down
Auto-Respond To SMSs At Night
Change Volume Levels during Different Times of the Day
Check Data/SMS/Minute Usage With Carrier While Sleeping
Temporarily max brightness of screen during Incoming Call
Auto (Silent) Sleep Mode with Exceptions
Intermediate
Power Plug In - Choose Car/Home/Night Mode
Generic Toggle Widget
Open the keyboard and start texting
Set volume then Launch menu of music apps
Alarmclock without Snooze
Alarms with Snooze and Vibrate
Geburtstagserinnerung (German)
Car Locator
Notification Reminder Pulse
Locate your phone using SMS and google maps
Lock your phone and locate it by SMS and sound
A full talking clock
Act like a docking station when plugged into USB
Auto answer calls when your bluetooth headset is connected
Extended phone profile changer with Notification and Widget
Turn your cell phone into a Voip phone
Advanced
Periodic Data Check (Juicedefender Replacement)
Creates profiles similar to S60 devices and changes them depending on variety of factors
U.S. Navy Ships Bells (Using Tasker's OR '/' feature) * Pattern Matching *
Changing background image depending on current weather (Using HTTPGet)
Or you can simply create your own...there is a learning curve, but once you get a feel for it, it's VERY powerful! It can control almost every part of your Android phone.
There's a decent thread with more examples on xda in this thread.
I realise this is a software post, but it's main aim was to point out a way of disabling rotation to help with screen freezes
Hey,
thanks for this thread, i have downloaded tasker now.
Can you post your code for disabling gsensor when screen is off?
//EDIT: Sorry, its very easy.. i think i can create it by myself
HTC_HDD said:
Hey,
thanks for this thread, i have downloaded tasker now.
Can you post your code for disabling gsensor when screen is off?
//EDIT: Sorry, its very easy.. i think i can create it by myself
Click to expand...
Click to collapse
Hehe yep, it's an easy one.
New Event profile > Display off is the Event. Action is disable rotation
I have done it like you and added a task which enables the rotation if screen is on, is this correct?
I have used the phone now and i got freezes again, but not so much.. i think.
Sent from my HTC Desire using XDA App
HTC_HDD said:
I have done it like you and added a task which enables the rotation if screen is on, is this correct?
I have used the phone now and i got freezes again, but not so much.. i think.
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
Yep, you also have to create another to say disable screen rotation when the screen is off.
@the_scotsman
Thanks for the suggestion, I've seen a few people mention this app before but now I finally downloaded it. I'll play around a bit to figure out some combos, but one quick question..
Is this going to be something running in the background sucking up battery and memory or is it just like running scripts? What do you think? I'll run current widget once I get some tasks going to see happens, just wondering if you've found anything out yet.
tgtoys said:
@the_scotsman
Thanks for the suggestion, I've seen a few people mention this app before but now I finally downloaded it. I'll play around a bit to figure out some combos, but one quick question..
Is this going to be something running in the background sucking up battery and memory or is it just like running scripts? What do you think? I'll run current widget once I get some tasks going to see happens, just wondering if you've found anything out yet.
Click to expand...
Click to collapse
It depends on what profiles you set up...if they involve wireless, it will enable wireless every so often to check access points etc....or if you are using a location profile, it will enable gps every so often to check your location. You can change how often everything polls in the settings.
I have mine as per the first post, so it does scan for wireless every so often, and I havent seen any change in battery usage.
the_scotsman said:
Yep, you also have to create another to say disable screen rotation when the screen is off.
Click to expand...
Click to collapse
Can you go step by step what you do to set up display off and rotation off?
Hi,
the last NetRipper Kernel has no freezes!!
Is not overclocked, is not undervolted, has no axi and has no freezes.
with friendly greet
starbase64
starbase64 said:
Hi,
the last NetRipper Kernel has no freezes!!
Is not overclocked, is not undervolted, has no axi and has no freezes.
with friendly greet
starbase64
Click to expand...
Click to collapse
Thanks, but i prefer to have axi and undervolt
And I have no freezes
the_scotsman said:
Hehe yep, it's an easy one.
New Event profile > Display off is the Event. Action is disable rotation
Click to expand...
Click to collapse
I can find everything else exept "disable rotation" in Actions. I only found "display rotation" in settings. Any help?
tzic said:
I can find everything else exept "disable rotation" in Actions. I only found "display rotation" in settings. Any help?
Click to expand...
Click to collapse
Yea, thats the one..just choose that one and set it to "off" in the settings for it
ty for the quick reply scotsman, I ll report back in a day or two.
Tried this, but didnt work
I tried many different versions of kernels but in all if I keep my phone on standby (screen off) for a long time, say 20 mins, my phone freezes, My hardware buttons still glow on press, but phone never wakes up, any Ideas??
Even you disable display rotation, the sensor is still active, just use Gscript and disable sensor, you won't get any more freeze.
justwonder said:
Even you disable display rotation, the sensor is still active, just use Gscript and disable sensor, you won't get any more freeze.
Click to expand...
Click to collapse
I was just about to write exactly the same words!
Scotsman - can you tell if Tasker can run a custom written script, upon some event? Then we can use it to turn off the gsensor!
Finally seems to be workin!!I made 2 changes:
1) Upgraded my radio from 2.08 to 2.12 (I recommend this one)
2) Stopped GSensor with Gscript
Another issue,
After I restart the sensor via script, photos in album wont rotate anymore!!
I did a `ps -ef|grep akmd` and the process is running, any thoughts??
edit: it works after restart!!
did you use the free gscript? cause mine says needs su:true
Your solution is great thanks... i did something slightly different : using tasker, autorotation is enabled only for apps that I want too, like gallery. Rest of the time, its off and working great that way too.
Is it possible to completely disable the automatic activation of the screensaver? I don't see it in settings, the longest interval for this to happen is 1 hour, but no option to disable it completely. I already installed the No Lock app, but this only helped me to get rid of the slide to unlock screen. Thank you for any ideas.
Martin
Martin2603 said:
Is it possible to completely disable the automatic activation of the screensaver? I don't see it in settings, the longest interval for this to happen is 1 hour, but no option to disable it completely. I already installed the No Lock app, but this only helped me to get rid of the slide to unlock screen. Thank you for any ideas.
Martin
Click to expand...
Click to collapse
All settings are here:
http://developer.android.com/reference/android/provider/Settings.System.html
In you case you'll need:
adb shell
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
-- check current value
select * from system where name='screen_off_timeout';
120000 - 2 min
3600000 - 1 hour
2147483647 = 596.5 hours
-- set
update system set value='2147483647' where name='screen_off_timeout';
.q
^d
or you can pull/mod/push alternatively.
Won't disabling the screensaver keep the screen and IR sensors active, thus eating up battery life significantly when not in use?
I know some folks would like to get rid of the swipe, waking up on a screen tap (mostly for accessibility issues), but I think some sort of screen (actually, battery) saver is still important.
Great link, ApokrifX. Would you happen to know if WIFI_SLEEP_POLICY does anything on the NST? I use Tasker to shut wifi off when the screen goes off, but I wonder if that might be easier?
bobstro said:
Great link, ApokrifX. Would you happen to know if WIFI_SLEEP_POLICY does anything on the NST? I use Tasker to shut wifi off when the screen goes off, but I wonder if that might be easier?
Click to expand...
Click to collapse
No idea.
I bet, it won't work...
Try and let us know?
ApokrifX said:
No idea.
I bet, it won't work...
Try and let us know?
Click to expand...
Click to collapse
I need to find a program that will let me know when wifi is on or off relative to the screen. On other devices, I can see that info in the battery status, but I'm not finding a similar option for the NST.
I *did* find a little program that would toggle it, but the NST lasts so long on battery, it's hard to tell if it's making any difference.
Actually, to disable the screensaver completely:
Code:
update system set value=-1 where name='screen_off_timeout';
I haven't found a way to disable the keyguard yet, but if you have one of the side keys set as Menu that dismisses the keyguard.
Renate NST said:
Actually, to disable the screensaver completely:
Code:
update system set value=-1 where name='screen_off_timeout';
Click to expand...
Click to collapse
Hi Renate again ( you adviced me with manual time set in NST
http://forum.xda-developers.com/showthread.php?p=30560605#post30560605, thanks).
I like the tweak (to disable the screensaver completely) also. But not understanding how to do this in internal terminal. Not shell and not busybox know the sqlite3 app and update command?
I fixed it so:
you must install SQLite3 to the NST you can just push it to the device. [unzip sqlite3 (push to n2e).zip]
Code:
adb shell mount -o rw,remount -t ext2 /dev/block/mmcblk0p5 /system
adb push sqlite3 /system/bin
download it from here:
http://forum.xda-developers.com/showpost.php?p=14747007&postcount=2
bobstro said:
Won't disabling the screensaver keep the screen and IR sensors active, thus eating up battery life significantly when not in use?
Click to expand...
Click to collapse
This makes a lot of sense... it explains my battery drain when the screen gets stuck on the "drag to unlock your NOOK" page after a reboot. Basically you have to make sure the Nook really goes to sleep.
Disabling the IR sensors and wifi are then the key to long battery life on the NST.
For anyone trying this technique: I used the pull/mod/push approach and Renate's recommendation of a -1 value, and everything seems to be working well, but I had to powercyle (power down, then power up) my Nook to get the change to take effect.
And have you been able to activate Power Saving Mode automatically with it? TIA!
You'll probably just have to hunt around the for activity that starts power save mode and set it to activate whenever criteria are met.
I use Tasker for wireless charging. I have one set up in my car and nightstand, so when it gets set on them, the screen timeout is set to 7 seconds and then it starts to Daydream.
I'd love one for turning on FoxFi when it realizes it's connected to a computer... But it's impossible to contact the devs. I wish they'd make it so we could launch each activity ourselves. Or at least make a plugin for it.
dpwhitty11 said:
You'll probably just have to hunt around the for activity that starts power save mode and set it to activate whenever criteria are met.
I use Tasker for wireless charging. I have one set up in my car and nightstand, so when it gets set on them, the screen timeout is set to 7 seconds and then it starts to Daydream.
I'd love one for turning on FoxFi when it realizes it's connected to a computer... But it's impossible to contact the devs. I wish they'd make it so we could launch each activity ourselves. Or at least make a plugin for it.
Click to expand...
Click to collapse
Do you happen to know the activity?
No idea, sorry. Best guess is to find which apk the power save comes from, and from there decompile it and try each activity until it triggers.
Sent from my SM-G900P using Tapatalk
dpwhitty11 said:
No idea, sorry. Best guess is to find which apk the power save comes from, and from there decompile it and try each activity until it triggers.
Sent from my SM-G900P using Tapatalk
Click to expand...
Click to collapse
It comes from within the settings. I have the package name for it can I do it with that?
Get the app 'Activity Launcher' from the play store.
Once installed, activate the power saving option from the settings.
Open activity launcher and it should be in your "recently used" list. From here you should be able to get the procedure to call using tasker.
Joe0113 said:
And have you been able to activate Power Saving Mode automatically with it? TIA!
Click to expand...
Click to collapse
I tried with secure settings plug in, and doesn't work
http://www.reddit.com/r/tasker/comments/28x4f7/figured_out_how_to_activate_ultra_power_saver_mode/
Someone does it there with screen taps.
Not ideal, but at least it's something.
moonrakerone said:
http://www.reddit.com/r/tasker/comments/28x4f7/figured_out_how_to_activate_ultra_power_saver_mode/
Someone does it there with screen taps.
Not ideal, but at least it's something.
Click to expand...
Click to collapse
That's cool! But I want to just activate regular PSM over night!
Hi all
It seems that the only way to get ring volume switched to vibrate only, is via the switch on the left side of the phone? I understand that this is the intended method, but that vibrate only cannot be configured in the regular profile shocks me?
The silence mode features an icon in the status bar, and enforces a whole set of other options, really? I understand that the switch is a design decision, but that is in no way the same to me as taking away regular well known usage of any android phone since dawn of time - the vibrate option in the normal 'volume profile'....
Any input on this? Am I missing something, or am I the only one having an issue here?
The lack of swipe across status bar to lower screen brightness is a different thing, but I'm sure developers will bring this back, at least with a custom kernel (EX for example).
Kind Regards
Seems like I'm the only person who cares :laugh: Or the thread just drowned :highfive:
TwinAdk said:
Seems like I'm the only person who cares [emoji23] Or the thread just drowned :highfive:
Click to expand...
Click to collapse
LOL, I think so ?. Personally I love this change.
Sent from my ONEPLUS A5000 using Tapatalk
I'll Growler to like it... I'm pretty sure..
Actually there's this app that can do this without you touching the switch. Sound Profile. I have no idea what makes it work but it does.
Now if only I could make Tasker do this...
wondering the same, had a similar problem, see https://forum.xda-developers.com/showthread.php?t=3629258
Solved it with tasker.
Trigger "silent ~ off" -> set a non empty ringtone.
trigger "silent ~ on" (this is true for dnd and silent mod): change ringtone to empty (silent) ringtone
I came across the same question and the only way I've found to enable silent/ vibrate mode without the slider is using a widget.
Ok, the attatched screenshot is a catlog of things happening when switching from silent to do not disturb. Notice the easily recognized event at the top, ThreeKeyHW.. That's whats triggering all the following actions. This can be intercepted by Tasker, and manipulated with :good:
Attatched screenshot
On having Tasker read or react to logcat content.
https://www.google.dk/amp/s/amp.red...nts/62gdx2/is_there_a_tasker_plugin_that_can/
TwinAdk said:
On having Tasker read or react to logcat content.
https://www.google.dk/amp/s/amp.red...nts/62gdx2/is_there_a_tasker_plugin_that_can/
Click to expand...
Click to collapse
why bother reading logcat (which might eat your battery)? for me, testing two variables in tasker allows me to determine the switch position:
%SILENT ~ off we are loud
%SILENT ~ on and %VOLR!=0 we are in dnd
%SILENT ~ on and %VOLR = 0 we are in silent mode
penĀ² said:
why bother reading logcat (which might eat your battery)? for me, testing two variables in tasker allows me to determine the switch position:
%SILENT ~ off we are loud
%SILENT ~ on and %VOLR!=0 we are in dnd
%SILENT ~ on and %VOLR = 0 we are in silent mode
Click to expand...
Click to collapse
You have more Tasker experience than I do :laugh:
Question, in your opinion, is any other tasker alternative worth spending money or time on, or is it just a matter of learning Tasker? My point being that Tasker is THE tool - but also quite difficult to manage at times... Hard to navigate in, I personally believe. But on the other hand, it can do ANYTHING, which you cannot say about ANY of the alternatives...
TwinAdk said:
You have more Tasker experience than I do [emoji23]
Question, in your opinion, is any other tasker alternative worth spending money or time on, or is it just a matter of learning Tasker? My point being that Tasker is THE tool - but also quite difficult to manage at times... Hard to navigate in, I personally believe. But on the other hand, it can do ANYTHING, which you cannot say about ANY of the alternatives...
Click to expand...
Click to collapse
Hi,
no, not more experience, but I found a posting for a similar question for the oneplus 3 where someone suggested testing the %INTERRUPT variable to determine if it is on value "priority" (meaning it is in dnd mode). I tested this and just created a task that shows a flash message with a number of variables of which I thought they could be interesting. Turned out that INTERRUPT was never set, but this is how I found out about SILENT and VOLR.
Regarding tasker alternatives: I haven't used an automation tool for maybe three years now, before I had only done simple stuff with tasker, so it was my first pick and it worked nicely - so I cannot say anything about alternatives...
me personally would love just bottom to top: all, vibrate only, nothing. no DND etc. another thing that bothers me is that when in silent/vibrate, I can't get Textra to use a certain pattern for messages coming in. oos defaults to two little vibrations. any ideas?
Sent from my ONEPLUS A5000 using XDA Labs
stooyleown said:
me personally would love just bottom to top: all, vibrate only, nothing. no DND etc. another thing that bothers me is that when in silent/vibrate, I can't get Textra to use a certain pattern for messages coming in. oos defaults to two little vibrations. any ideas?
Click to expand...
Click to collapse
Tasker. If status dnd and sms - vibrate
This annoyed me too.... I've done as people have suggested just switched the profile to "none"
TwinAdk said:
Tasker. If status dnd and sms - vibrate
Click to expand...
Click to collapse
well if ya have a profile, would ya mind sharing? :good:
Sent from my ONEPLUS A5000 using XDA Labs
stooyleown said:
well if ya have a profile, would ya mind sharing? :good:
Click to expand...
Click to collapse
I don't sorry ? if I had I would :good:
Is there no one here that can actually help with this? People just keep leaving short oneliners without any substance ("Just apply the thingy and it'll work"). It's not helpful, it's just frustrating as **** since none of us others get this to work.
If you do know how to do this, for real, then share your XML for your profile and/or tasks. Or write up a step by step.
rage77 said:
Is there no one here that can actually help with this? People just keep leaving short oneliners without any substance ("Just apply the thingy and it'll work"). It's not helpful, it's just frustrating as **** since none of us others get this to work.
If you do know how to do this, for real, then share your XML for your profile and/or tasks. Or write up a step by step.
Click to expand...
Click to collapse
Over the past days I've gained Tasker knowledge to do this. How would people want it to work, I'll try!
Hello All:
New oneplus 5 user, love my phone. But miss the ability to schedule timed DND or silent mode as I could with my S5. I have purchased Tasker. Lots of people say "it can be done", "it works fine", "you set up a profile" etc. But I've never used Tasker and I'd appreciate it if someone who actually has this working could post a tutorial, step by step.
I saw one poster talk about Tasker reading the file /sys/class/switch/tri-state-key/state
Sounds like it makes sense trying to coordinate with the hardware position, but again, don't have a clue where to start.
Anyone?
So I fiddled around a bit with MacroDroid (a Tasker alternative) and managed to make it work partially. What I mean by that is that you can have it turn on DnD whenever you like to, as long as the alert slider is in "ring" mode. If the slider is set to silent, at least for now, I couldn't get it to be DnD instead. but I think that being able to set it to DnD from "Ring" is more important anyways. If you want a step by step guide, hit me up!
harry_fine said:
Hello All:
New oneplus 5 user, love my phone. But miss the ability to schedule timed DND or silent mode as I could with my S5. I have purchased Tasker. Lots of people say "it can be done", "it works fine", "you set up a profile" etc. But I've never used Tasker and I'd appreciate it if someone who actually has this working could post a tutorial, step by step.
I saw one poster talk about Tasker reading the file /sys/class/switch/tri-state-key/state
Sounds like it makes sense trying to coordinate with the hardware position, but again, don't have a clue where to start.
Anyone?
Click to expand...
Click to collapse
I looked at that file you mentioned (/sys/class/switch/tri-state-key/state) and it does reflect as 1, 2, or 3 (3 being the bottom "ring" position. You can set a DND complete separate from this physical alert slider. Is that what you are trying to do? So that you can have DND mode turn on at a specific time of night without you touching the slider? If so, what exactly do you want it to do?
I also looked at this link and tried to replicate it. I was able to read the value of that key, but unable to write to it. http://tasker.wikidot.com/rootbasic
Shush!
harry_fine said:
Hello All:
New oneplus 5 user, love my phone. But miss the ability to schedule timed DND or silent mode as I could with my S5.
Click to expand...
Click to collapse
I loved the Shush! app. Timed DND, basically. Doesn't seem to work on OP5. The volume slider for "ring" never goes to zero, which is what appears to trigger Shush to pop up. Instead they seem to have separate all volumes from a global DND. Interesting.
harry_fine said:
Hello All:
New oneplus 5 user, love my phone. But miss the ability to schedule timed DND or silent mode as I could with my S5. I have purchased Tasker. Lots of people say "it can be done", "it works fine", "you set up a profile" etc. But I've never used Tasker and I'd appreciate it if someone who actually has this working could post a tutorial, step by step.
I saw one poster talk about Tasker reading the file /sys/class/switch/tri-state-key/state
Sounds like it makes sense trying to coordinate with the hardware position, but again, don't have a clue where to start.
Anyone?
Click to expand...
Click to collapse
Have a look if this Reddit post helps
Isn't the easiest way to create a time based profile in Tasker and assign it to a task that sets the DoNotDisturbMode to the value you like? Call the profile Night, set it to be active from 10 pm to 7 am. Then assign it to a task called Silent. That task sets the DoNotDisturbMode to Alarms. See screen shots.
ptblad said:
Isn't the easiest way to create a time based profile in Tasker and assign it to a task that sets the DoNotDisturbMode to the value you like? Call the profile Night, set it to be active from 10 pm to 7 am. Then assign it to a task called Silent. That task sets the DoNotDisturbMode to Alarms. See screen shots.
Click to expand...
Click to collapse
Thats exactly how I set it up. Why invent new more difficult ways when there is this easy way?
Why have I not discovered Tasker any sooner? Downloaded the app last night, and spent some time getting familiar with the app. Daunting at first, but watched a basic Youtube vid, and off I went. Took me a few attempts to get the tasks working as they should.
I have DND task, and Airplane mode on/off tasks set - and they both work as expected.
Yea, Tasker can be scary at first but once you start using and exploring the possibilities, you can really automate a lot of stuff.
L22EEW said:
Why have I not discovered Tasker any sooner? Downloaded the app last night, and spent some time getting familiar with the app. Daunting at first, but watched a basic Youtube vid, and off I went. Took me a few attempts to get the tasks working as they should.
I have DND task, and Airplane mode on/off tasks set - and they both work as expected.
View attachment 4216331
View attachment 4216332
View attachment 4216334
Click to expand...
Click to collapse
On the DND profile, I notice you do not use an "Exit Task". Do you not need one? What I mean by that is at 2:58 (per your setup) does DND mode exit and go to what the slider is selected to?
dustintinsley said:
On the DND profile, I notice you do not use an "Exit Task". Do you not need one? What I mean by that is at 2:58 (per your setup) does DND mode exit and go to what the slider is selected to?
Click to expand...
Click to collapse
In some cases Tasker is so inteligent that you dont have to have an exit task and Tasker just do that for you. And this is the case here.
Mikulec said:
In some cases Tasker is so inteligent that you dont have to have an exit task and Tasker just do that for you. And this is the case here.
Click to expand...
Click to collapse
Good stuff... Thanks.
dustintinsley said:
On the DND profile, I notice you do not use an "Exit Task". Do you not need one? What I mean by that is at 2:58 (per your setup) does DND mode exit and go to what the slider is selected to?
Click to expand...
Click to collapse
There is no "off" option In the DND task.
I haven't set up an end task, and the DND task does work fine as per setup.
Sent from my 8GB/128GB OP5 using Tapatalk PRO ?
Hi Guys. I use Automate App for this purpose, but with one difference.
If it is 09:00 PM and I connect my phone to the charger for sleep, the phone set automatically to DND mode for max 9:30 hours and when I disconnect the charger before, ringer mode is activated again. Look at my Automate Flow in screenshot. Really easy and relieable.