~mil/sxmo-utils

61451f62928ca04cf7bc954f9832a57913813520 — Maarten van Gompel 14 days ago b857198
added a default audiostart hook to force output over main speaker and set a sane default volume

Signed-off-by: Stacy Harper <contact@stacyharper.net>
3 files changed, 11 insertions(+), 6 deletions(-)

M configs/appcfg/sway_template
M configs/appcfg/xinit_template
A configs/default_hooks/audiostart
M configs/appcfg/sway_template => configs/appcfg/sway_template +1 -0
@@ 230,4 230,5 @@ exec sxmo_modemmonitortoggle.sh restart
exec sxmo_notificationmonitor.sh
exec mako
exec sxmo_hooks.sh lisgdstart
exec sxmo_hooks.sh audiostart
exec sxmo_menumode_toggler.sh

M configs/appcfg/xinit_template => configs/appcfg/xinit_template +1 -6
@@ 17,12 17,7 @@ conky -c /usr/share/sxmo/appcfg/conky.conf -d #12 hour clock (am/pm)

# Force audio over the main speaker
# and set a sane default volume
sxmo_audioout.sh Speaker
amixer sset 'Line Out Source' 'Mono Differential','Mono Differential'
amixer set "Line Out" 50%

# Play a funky startup tune
#mpv --quiet --no-video ~/welcome.ogg &
sxmo_hooks.sh audiostart

# You will sometime get SMS or calls from not
#  country code prefixed phone numbers. To make

A configs/default_hooks/audiostart => configs/default_hooks/audiostart +9 -0
@@ 0,0 1,9 @@
# Force audio over the main speaker
# and set a sane default volume

sxmo_audioout.sh Speaker
amixer sset 'Line Out Source' 'Mono Differential','Mono Differential'
amixer set "Line Out" 75%

# Play a funky startup tune if you want (disabled by default)
#mpv --quiet --no-video ~/welcome.ogg &