OnionUI / Onion

OS overhaul for Miyoo Mini and Mini+
https://onionui.github.io
GNU General Public License v3.0
3.16k stars 190 forks source link

Add feature to always set specific audio volume upon startup #1546

Closed nvllsvm closed 1 month ago

nvllsvm commented 2 months ago

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.

$ cat .tmp_update/config/.defaultVolume-C2A037C6B080
7
$ cat .tmp_update/config/.defaultVolume-D7C3FDF55222
0

Why?

I developed this feature to solve different problems with both of my devices:

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?