OpenRepeater / scripts

Misc scripts live here like system build scripts. This is a Work-In-Progress...
5 stars 9 forks source link

Alsamixer scripted setup #11

Closed Dloranger closed 6 years ago

Dloranger commented 6 years ago

for ics hardware (and others?), the user must manually set the alsamixer settings.

possible scripted solution referenced here

https://askubuntu.com/questions/97936/terminal-command-to-set-audio-volume

Dloranger commented 6 years ago

to set the values (verified)

amixer set 'Headphone' 86%; amixer set 'PCM' 75%; amixer set 'Lineout' 58%; amixer set 'Mic' 59%; amixer set 'Capture Mux' LINE_IN;

should also be able to force save the settings just in-case of an ungraceful shutdown (powerloss) sudo alsactl store <0?>

abcrawford commented 6 years ago

This has been added to the main ORP gui code base as part of the board preset feature. The above mentioned settings are stored in the presets array and past to alsa upon selection of the board.