slitaz-tools view tinyutils/setmixer @ rev 939

tazbox: fix subox icon when ~/.local/share/applications is absent; fix working with freegeoip; write full list of icons used; all other files: 2015 and insert blank lines.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 17 07:35:02 2015 +0300 (2015-04-17)
parents 585b0b30e445
children 3be081525506
line source
1 #!/bin/sh
2 # Set and store default mixer volumes for SliTaz. Used at boot time
3 # if a sound card has been detected automatically and can be used
4 # directly.
5 #
8 # Internationalization
10 . /usr/bin/gettext.sh
11 TEXTDOMAIN='slitaz-tools'
12 export TEXTDOMAIN
15 gettext "Setting default mixer volumes... "
17 amixer -s -q <<EOF
18 set Master 75% unmute
19 set Master -12dB
20 set 'Master Mono' 75% unmute
21 set 'Master Mono' -12dB
22 set Front 75% unmute
23 set Front -12dB
24 set PCM 90% unmute
25 set PCM 0dB
26 mixer Synth 90% unmute
27 mixer Synth 0dB
28 mixer CD 90% unmute
29 mixer CD 0dB
31 # mute mic
32 set Mic 0% mute
34 # ESS 1969 chipset has 2 PCM channels
35 set PCM,1 90% unmute
36 set PCM,1 0dB
38 # Trident/YMFPCI/emu10k1
39 set Wave 100% unmute
40 set Music 100% unmute
41 set AC97 100% unmute
43 # CS4237B chipset:
44 set 'Master Digital' 75% unmute
46 # Envy24 chips with analog outs
47 set DAC 90% unmute
48 set DAC -12dB
49 set DAC,0 90% unmute
50 set DAC,0 -12dB
51 set DAC,1 90% unmute
52 set DAC,1 -12dB
54 # some notebooks use headphone instead of master
55 set Headphone 75% unmute
56 set Headphone -12dB
57 set Playback 100% unmute
59 # turn off digital switches
60 set "SB Live Analog/Digital Output Jack" off
61 set "Audigy Analog/Digital Output Jack" off
62 EOF
64 gettext "Done"; echo
66 # Store config
67 alsactl store