This adds the ability to always set the volume to a specific value during startup. It is enabled by writing the numeric value to ${sysdir}/config/.defaultVolume-${device_uuid}.
I developed this feature to solve different problems with both of my devices:
MMv4: the runtime.sh script currently forces non-plus devices to maximum volume due to the device having an analog adjustment wheel (see here). However, this results in my device being slightly audible even when the potentiometer is at its lowest. This is likely an issue with my device's potentiometer, but it otherwise works fine. I previously worked around this by lowering the boost volume after each boot. With this change, a value of 7 allows for complete silence with the wheel turned down and a reasonable volume with the wheel at max.
MMP: I always want the device to startup with a volume of 0 to any surprises of it blasting at full-volume when resuming the game (ex. in bed).
I've tested and am currently using this modification on both of my devices without issue. That said, the code change could probably be a little cleaner - perhaps living in the already device-specific json files. This feature could then be added to the setting UI.
This adds the ability to always set the volume to a specific value during startup. It is enabled by writing the numeric value to
${sysdir}/config/.defaultVolume-${device_uuid}
.Ex.
Why?
I developed this feature to solve different problems with both of my devices:
7
allows for complete silence with the wheel turned down and a reasonable volume with the wheel at max.0
to any surprises of it blasting at full-volume when resuming the game (ex. in bed).I've tested and am currently using this modification on both of my devices without issue. That said, the code change could probably be a little cleaner - perhaps living in the already device-specific json files. This feature could then be added to the setting UI.
Thoughts?