Set Media Volume to 0 anytime Vibrate/Silent mode is initiated

1,598 views
Skip to first unread message

hollywoodfrodo

unread,
Apr 30, 2012, 3:09:13 AM4/30/12
to tas...@googlegroups.com
Like most phones when I put my phone into Silent or Vibrate mode, it doesn't silence the media channel.  I figured there must be a way to do this in Tasker, but can't figure it out. There is no "silent/vibrate mode" trigger event, so I figured I'd have to use Variable.

I tried Variable Value, Name "%SILENT", Op "Is Set" then created Tasks to run that if was equal to Vibrate or On lower media.  Didn't trigger.
I tried Variable Value, Name "%SILENT", Op "Doesn't Match", Value "OFF".  Didn't trigger.

I just want anytime my phone is switched to either Vibrate Mode or Silent Mode for the Media Volume to be dropped to Zero.  A bonus would be if anytime it's switched back from one of those modes to normal volume mode, the Media volume is automatically set to a selected amount.

I know this is probably simple and I'm just missing something.  Any help would be greatly appreciated!

Eric

Pent

unread,
Apr 30, 2012, 3:13:42 AM4/30/12
to Tasker
> I just want anytime my phone is switched to either Vibrate Mode or Silent
> Mode for the Media Volume to be dropped to Zero.

%SILENT Not Matches on

Case matters in matches.

>  A bonus would be if
> anytime it's switched back from one of those modes to normal volume mode,
> the Media volume is automatically set to a selected amount.

In the main screen, long-click on the task (RHS) and select Add Exit
Task.
Action is Audio / Volume Media.

Pent

Pent

unread,
Apr 30, 2012, 3:14:29 AM4/30/12
to Tasker
Sorry, that should be Not Matches off :-)

Pent

hollywoodfrodo

unread,
Apr 30, 2012, 4:35:22 PM4/30/12
to tas...@googlegroups.com
Thanks, Pent - you're like the man that never sleeps.  Your continual support of Tasker is so appreciated! I knew variables were case sensitive and needed to be all upper, but had missed that the variable status for silent mode was all lower case.

I couldn't get it to work with the "doesn't match", so I created 2 profiles, one for if it matches "vibrate" and one for if it matches "on"
Then I created a task that is executed for both those profiles to lower the media volume to 0.
I also created an exit task to increase the media volume to level 5 IF %SILENT matches off.

Now it works like a charm whether I'm cycling through vibrate, silent, back to normal OR if i just go straight from normal to silent.  Works every time!

Thanks again for making an app that allows to fix all the misses of the manufacturers and Google!

Pent

unread,
May 1, 2012, 3:02:39 AM5/1/12
to Tasker
> Thanks, Pent - you're like the man that never sleeps.

It's just an illusion created by posting last thing at night and
straight after breakfast :-)

Pent

NardDawg314

unread,
May 7, 2012, 3:01:48 PM5/7/12
to tas...@googlegroups.com
Could you post the files for this?  THANKS!

hollywoodfrodo

unread,
May 8, 2012, 7:46:34 PM5/8/12
to tas...@googlegroups.com
Here are the two profiles I use to accomplish muting Media when in Silent or Vibrate mode then returning it to level 5 when going back to regular mode.

Hope they help!
Eric


On Monday, April 30, 2012 12:09:13 AM UTC-7, hollywoodfrodo wrote:
Media_Vol_Silent.prf.xml
Media_Vol_Vibrate.prf.xml

fedcas

unread,
Jan 23, 2018, 6:06:58 AM1/23/18
to Tasker
Awesome! Exactly what I was looking for, thanks ;)
I just wanted to point out a couple of things:
- I have unified the profile using "NEQ off" instead of "EQ on" + "EQ silent", which seems to work perfectly (after all, having a 3 state logic - on, off, silent - it should be logically equivalent).
- When setting vibrate mode by pressing volume down multiple times, the selected slider instantly switches from notification volume to media volume, meaning it's not possible anymore to switch from "vibrate" to "do not disturb" by pressing volume down another time. That was not intentional, but I think it's actually a nice plus more than a drawback (preventing to enter "do not disturb" by accident). For some reason the slider selection change happens only when going down from a set notification volume to silent, not vice versa, but that's insignificant.
What described above at least is what happens in my case on android 6.
- In addiction to setting the media volume to 0, I added an action for setting the in-call volume to a low level (wich of course is reverted to a high level in the exit action) because another problem I have for example in libraries or other very quiet places is when I listen to a Whatsapp voice note: even with the media volume set to 0 or 1, when you put the phone to your hear and it switches to the phone speaker if the in-call volume is high it will be enough to catch the attention of the people around.

I attach this edited version as well ;)
Silent.prf.xml

EW

unread,
Jan 23, 2018, 11:23:08 AM1/23/18
to tas...@googlegroups.com
Nice work, dude! Thanks for sharing!!!

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/M7T_3W10ktQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.



--

fedcas

unread,
Jan 26, 2018, 10:00:39 AM1/26/18
to Tasker
"When setting vibrate mode by pressing volume down multiple times, the selected slider instantly switches from notification volume to media volume, meaning it's not possible anymore to switch from "vibrate" to "do not disturb" by pressing volume down another time."

Ok, I figured out the reason of this behaviour, it depends on whether the "display" option is flagged or not in the "media volume" action options... so one can choose to activate this or not ;)
Reply all
Reply to author
Forward
0 new messages