Control of ML2 volume through adb?

I am trying to see and adjust the volume of the ML2 using adb commands but don't see any documentation for anything like that. There are sources online with instructions on how to print out the audio settings using:

adb shell dumpsys audio

However, the output from this command doesn't seem to change with the ML2 volume.
I also see that:

"adb shell input keyevent 24" and "adb shell input keyevent 25"

is meant to increase and decrease the volume, but it doesn't seem to change the volume of the ML2.

Would appreciate some guidance on this, thanks!

Hi @mohammad.hadi I was able to reproduce this bug and raised the issue with the voice of customer team. Do you mind sharing a little more about your use case so I can include it in the ticket?

1 Like

We are trying to turn off the "High Volume" warning that appears when increasing the volume passed a certain level, and verify that the warning is disabled. For verification we have instructions to increase the volume to 100% to ensure that the dialogue doesn't appear. We are hoping to automate this with abd commands and saw that the resources out there don't seem to correlate to changing the volume on the ML2, at least on version 1.10.
It would be ideal if there are commands for

  1. Disabling the "High Volume" dialogue/warning
  2. Increasing and decreasing the volume of the HMD generally.

Thanks for the help!

I have created a ticket. Regarding the warning, unfortunately you will not be able to disable the high volume warning due to regulations to protect users from sounds that can cause hearing loss.

1 Like