Do not disturb temporarily - Huawei P9 Questions & Answers

Is there any way to enable this stock feature on P9?
It's infuriating that I can't click "Do not disturb" and then select "for [x] hours".

Download Activity Launcher. Open application-select all activities-select system UI- select demo mode- select Do Not Disturb.
Now exit the application. When you now press the volume down for example you will see the Do Not Disturb slider.
You can select Do Not Disturb slider and the desired time for TOTAL SILENCE - ALARMS ONLY - PRIORITY ONLY

Related

Help! 5X refuses to exit from Do Not Disturb mode.

Nothing happens when I click on the DND icon in the quick settings screen or when I try to push the volume up and press "END NOW" to deactivate DND. Any ideas???

Question About Making a Profile Shortcut

Hello.
I made a profile which basically whenever you set it on, you select some applications and when you try to open them they'll automatically close and make a short beep sound.
However, it's hard to go to Tasker and manually disable and enable the profile.
I was wondering if I could, let's say, hit the "back" button three times and the profile would either enable or disable, I would know this as a flash text would pop up on the screen saying either "Profile activated" or "Profile deactivated", any idea how to do this?
I don't think you can make tasker react to button presses that way, but in some UIs you can. Just make the tripple-press activate an action that toggles the profile. You could also make a shortcut to that task on your desktop. Another way would be to make a notification action button (preferences - monitor), to make the profile toggleable from the notifications.
If you're rooted and have the Xposed Framework installed, you can install Xposed Additions and remap whatever keys you want, some to even launch Tasker tasks.

[GUIDE][Difficulty: Intermediate] Entering Night Mode depending on alarm clock state

On the portal news on 2016-03-11 (thanks to @MishaalRahman for this).
This profile requires AlarmPad (either free or Pro version) and will activate your own Night Mode by setting an alarm.
You have to go to work the next morning, are sleeping, dreaming of the ones/things you love and then – BEEEEEEP BEEEEEEP BEEEEEEP – getting woken up by some more or less (most likely less) funny message by one of your friends. Awesome, right? No way… But this comes to an end right now.
Use Alarm Pad in combination with Tasker to set up a Night Mode, where you won’t get disturbed by any loud notification anymore. Activating an alarm will automatically set your phone into silence mode during a specific time, only the alarm is allowed to wake you up. When you dismiss the alarm, the Night Mode will turn itself off automatically. Cool, eh?
So, what do we need? First of all, you have to install AlarmPad (which is a great and customizable alarm clock app with native Tasker integration). Download it by following the above inserted Play Store link and continue with Tasker. Let’s start.
1. First, set up a profile called “Alarm set”. This will set a variable %ALARM to true if the alarm has been set. We need this variable to determine whether an alarm is currently set or not.
Use Event -> Plugin -> AlarmPad and select the Edit button. Choose “Alarm set” and confirm it by clicking the check mark on top right (OPTIONAL: you can choose a specific alarm for this by selecting “Restrict alarm” and then choosing the desired alarm).​Create a new task and name it (for example) “Set Alarm VAR”. Create a new variable %ALARM and set it to true.​Add Audio->Alarm Volume and set it to your desired value (maximum, if you tend to sleep very deep).​Now you are done. You can optionally add a toast notification to verify that the task has been executed, for example Alert -> Flash -> Text “Alarm set”.
2. Create a new profile called “Alarm disabled”. This will set %ALARM to false if the alarm gets disabled manually.
Use Event -> Plugin -> AlarmPad and select the Edit button. Choose “Alarm disabled” and confirm it by clicking the check mark on top right.​Create a new task and name it (for example) “Reset Alarm VAR”. Set variable %ALARM to false.​Add Audio->Alarm Volume and set it to your desired default alarm value when being outside of your house.​Now you are done with it. You can optionally add a toast notification to verify that the task has been executed, for example Alert -> Flash -> Text “Alarm disabled”.
3. Create a new profile called “Alarm playing”. This will set %ALARM to false if the alarm is fired and manually disabled.
Use Event -> Plugin -> AlarmPad and select the Edit button. Choose “Alarm triggered” and confirm it by clicking the check mark on top right.​Create a new task and name it (for example) “Reset Alarm VAR”. Set variable %ALARM to false.​Add Audio->Alarm Volume and set it to your desired default alarm value when being outside of your house.​Now you are done with it.
4. Create a new profile “Night Mode”. This will set your device into silent mode during a specific time interval when an alarm is set.
Use State -> Variables -> Variable Value and enter %Alarm ~ true. Return to your profile and select a new task which you call “Night Mode on”.​Add Task -> Wait -> 1 minute. Return to the task menu.​Add Task -> If and select “%ALARM ~ true”. Return to the task menu.​Add Display -> Display Brightness and set it to 0. Return to the task menu.​Add Audio -> Notification Volume and set it to 0. Repeat the same for Media Volume and Ringer Volume. Add Audio -> Alarm Volume and set it to your desired value. This will ensure that no other profile which might be triggered between setting the alarm and starting the Night Mode task has reset your alarm volume.​At last, add Task -> End If.​That’s it.
5. OPTIONAL: Return to the profile screen and add a trigger event to the profile Night Mode: Time.
Here you can define when the Night Mode will start and when it will end, for example, you set your alarm at 8 p.m., but go to bed at 10 p.m. and don’t want to miss messages until 10 p.m. because of reasons. Then select 10 p.m. as start time and whatever end time you want, for example 10 a.m. (don’t worry, if the alarm is triggered before 10 a.m., the Night Mode will automatically being deactivated and you can receive audio notifications again).
6. Create a new exit task for the profile “Night Mode” and call it “Night Mode off”. This will reset your device from silent mode after the alarm is triggered or manually disabled.
Add Task -> Wait -> 1 minute. Return to the task menu.​Add Plugin ->AlarmPad and select AlarmPad perform Action” and select “Disable” (OPTIONAL: select the alarm that is to be disabled). Confirm and return to the task menu.​Add Display -> Display Brightness and set it to your default brightness. Return to the task menu.​Add Audio -> Notification Volume and set it to your default volume value. Repeat the same for Media Volume and Ringer Volume.​That’s it.
Now we have set up Tasker to toggle your own Night Mode automatically depending on your alarm’s status.
That’s all, folks. Have a nice dreaming :good:
I' not sure if i understand it very well. How can we set the audio volumes (notifications, ringer and media) in silence mode only at one specifit hore (21:00 pe). When i disable the alarm the volumes are set to the default configuration that we have on the phone? And how do they turn off (silent mode) again?
joguirian said:
I' not sure if i understand it very well. How can we set the audio volumes (notifications, ringer and media) in silence mode only at one specifit hore (21:00 pe). When i disable the alarm the volumes are set to the default configuration that we have on the phone? And how do they turn off (silent mode) again?
Click to expand...
Click to collapse
Setting an alarm will trigger the Night Mode profile (and its related task Night Mode on, which sets all notification/media/ringer volumes to 0). If you have set up a time-trigger (for example between 10 p.m. and 10 a.m.) the task will only being executed within this time frame. For example, if you set your alarm at 8 p.m. and have the given time frame from 10 p.m. to 10 a.m., the Night Mode will only being executed if %ALARM is true and it is past 10 p.m. and before 10 a.m. of the following day.
Disabling the alarm will trigger the exit task (Night Mode off) of the Night Mode profile, thus all volumes are set back to their (pre-defined in exit task Night Mode off)volume level.
If you want to silence your phone at 9 p.m., just use a time trigger for the profile and set 9 p.m. as start and whatever you like as end time.
orville87 said:
Setting an alarm will trigger the Night Mode profile (and its related task Night Mode on, which sets all notification/media/ringer volumes to 0). If you have set up a time-trigger (for example between 10 p.m. and 10 a.m.) the task will only being executed within this time frame. For example, if you set your alarm at 8 p.m. and have the given time frame from 10 p.m. to 10 a.m., the Night Mode will only being executed if %ALARM is true and it is past 10 p.m. and before 10 a.m. of the following day.
Disabling the alarm will trigger the exit task (Night Mode off) of the Night Mode profile, thus all volumes are set back to their (pre-defined in exit task Night Mode off)volume level.
If you want to silence your phone at 9 p.m., just use a time trigger for the profile and set 9 p.m. as start and whatever you like as end time.
Click to expand...
Click to collapse
ok, understood
Thanks

Context/trigger when between a time and plugged in (charging)

I would like to create a task that silences my phone when it's plugged in between 9pm and 3am (when I go to bed I plug in my phone and it would be nice if the phone automatically silenced itself).
There are two problems with this:
1) While I have the ability to create a time based context or a USB connected context, I do not see how to create an "and" condition in your context such that you want your task to fire when both those conditions are met. How do you create a context that will trigger off multiple conditions?
Edit SOLVED: Tap the profile tab and tap on a profile you have until it shows the arrow view with a trigger on the left, a task on the right, and a green arrow between. Long press the trigger on the left of the green arrow and a plus icon will show up to add more triggers.
2) When I look at creating a task for silent mode, the only values available are to turn silent mode off or vibrate. I do not see an option for turning silent mode on. What am I missing? How do people turn the phone to silent using Tasker?
Turn volumes down with Tasker in the audio Section.
Sent from my SM-G930F using XDA-Developers mobile app
If you want it to act like a true silent mode by using the method mentioned by @Josh Smith10
What you could do is store the current volume levels, such as ring, media, alarm etc. Into a variable, then when it's time to exit the profile, just set your volume to those variables that you created. Then clear your custom variable after it has restored to that volume.
So this will restore the previous volume level before silent mode kicked in

[Huawei Mate 20 + Android 9] Tasker does not execute tasks

Hello guys,
I try to set tasker to my new Mate 20 phone. I installed it with all authorizations, and I disabled the automatic save power control.
I set a first task – turn Bluetooth ON at 9AM. The task is running but at 9AM the Bluetooth is steel OFF and on the screen I have a popup “Allow Tasker to enable Bluetooth ?”.
A second task – Put the phone in Vibration mode at 10AM. At 10AM the phone switch to Vibration, but on the screen I have another popup “The vibration mode is activated”.
Why these popups, what I missed ?
Thanks for your help
Sounds like those popups came from another app. Maybe some security app or a preinstalled app from Huawei, which monitors who enables / disables system services. Do you see those popus also when you enable / disable bluetooth in the phone settings?
Try to identify the app / service owner of the popup by pressing long onto the popup. When you see a context menue choose app info.

Categories

Resources