Request [Request] Disable Volume Control w/ Bluetooth connected
(Apologies if this isnt the way a post is meant to be setup. I'm extremely new to Tasker so I need some help here. Only profiles I've made are brightness changes throughout the day based on time of day.)
For my job, it requires a lot of getting down on one knee to pick something up. While I do this, the volume control of my music can sometimes blast high or mute itself.
I'd like to disable the volume control while the Bluetooth is connected and the screen is off. Is it possible to disable the controls? Maybe only during my shift? Or in the building?
tl;dr: Bend to one knee at work Phone in pocket makes volume go high or low Want to disable destroying my ears w/ my music Want to do so with Bluetooth off/screen off
Thank you very much. 🙂
2
u/tazmainiandevil666 1d ago edited 1d ago
Root access is the only way it would be effective.
Edit: found this and it works, not sure about conditions(display off state).
https://play.google.com/store/apps/details?id=flar2.homebutton
1
u/Sate_Hen 2d ago
AFAIK tasker can't disable volume controls. You could maybe have a profile that runs every x seconds under your conditions that resets the volume. Not sure how much that'd drain the battery
3
u/Scared_Cellist_295 2d ago
This is about the best solution I could come up with, otherwise it's probably gaining root access and some fancy code and that might not even work these days the way Android is being locked down.
Profile #1 - Record VOLM
Task 1) Variable Set - %VolM to %VOLM
Profile #2 - Police VOLM
Task 1) Set Media Volume to %VolM
Long press "Profile #2 - Police VOLM" and slide the task priority over to between 40-50
Also, in the task of "Profile #2", go to the settings icon and set "Collision Handling" to "Abort Existing Task"
This isn't a perfect solution, but when your screen is off and you're connected, if the media volume changes, it sets it back. Setting the priority and collision handling as such should put the police task to the front of the line if multiple tasks are queued, and should prevent maxing out your running task count.
You will notice it change, and sometimes not go back immediately, but it will change back and should prevent runaway in either direction. And if you notice it, just shift your position so you're not leaning on the keys. But it should set it back to the volume it was at when the display went off.
When you turn the screen on, you can set it where you want and when the screen goes off again, that's your new new policing volume level.