Ubuntu – Ubuntu Touch change system settings from command line (silent mode specifically)

command linephonesystem-settingsubuntu-touch

I'm looking for a way to automatically set my Ubuntu Phone to silent mode during the night and automatically turn off silent mode in the morning (I keep forgetting to turn it off myself). I figure this could be done through some kind of cron job but in order to do that I need some way of changing the phones system settings from the command line and I can't figure it out.

Both gsettings and dconf seem to have silent-mode related settings but the value of these settings doesn't seem to be related at all to the real settings. Changing the settings using gsettings/dconf isn't reflected in the system settings and changing it in system settings isn't reflected in gsettings/dconf. So I'm looking for a way to change system settings from command line.

Thanks

Best Answer

It seems to work (with OTA-11, connect with SSH):

amixer -q -D pulse sset Master toggle

Edit: From https://askubuntu.com/a/444183

Related Question