"settings put system volume_music_speaker (X_value)" only applies after reboot

If I run for example "settings put system volume_music_speaker 5" thought adb with SU and the current speaker volume is 0 this value wont update. Only after I do a reboot of the device this value changes to 5. Why is this command not updating the different volume levels (speaker and headset for example) in real time? Is there any way I can change this? Or is there perhaps a different command that I could use instead.

Suggestions are welcome.

"Why would you want to know this?" I want to make it so that if I leave from home that the speaker volume goes to 0 and the volume of my earphones goes to a level for music listing regardless of something is plugged in via the headphone jack. This would naturally be done with Tasker.

Specs:
- Andriod 7.1.2, LOS based ROM

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by sbauch
2 hours ago
Last post by marjorie56
2 hours ago
Last post by rhianna.jaskolski
3 hours ago
Last post by clyde.jacobi
2 hours ago
Last post by yroob
3 hours ago
Last post by lorena43
27 minutes ago
Last post by ischmidt
1 hour ago
Last post by wjohns
40 minutes ago
Last post by jon79
2 hours ago
Last post by wintheiser.brenna
4 hours ago