* добавлена настройка громкости при первом запуске Revert "media-sound/alsa-utils: добавлено изменение громкости при первой загрузке (2)" This reverts commitmhiretskiy 24993c6d49c98d
. Revert "media-sound/alsa-utils: добавлено изменение громкости при первой загрузке" This reverts commitf7efaf8ea8
.
parent
3c6d49c98d
commit
65b8d29e4d
@ -1 +0,0 @@
|
||||
# Calculate path=/etc
|
@ -1,67 +0,0 @@
|
||||
# Calculate format=patch
|
||||
<reg>(\s*ebegin "Restoring Mixer Levels"
|
||||
\s*
|
||||
\s*checkpath.*
|
||||
\s*
|
||||
\s*if \[ ! -r "\$\{alsastatedir\}/asound.state" \] ; then)
|
||||
(\s*ewarn "No mixer config in \${alsastatedir}/asound.state, you have to unmute your card!")
|
||||
(\s*eend 0
|
||||
\s*return 0
|
||||
\s*fi)</reg>
|
||||
<text>\1
|
||||
einfo "Setting up ALSA Mixer Levels"
|
||||
# set output volumes to 85% - 100%
|
||||
#?os_audio==alsa#
|
||||
amixer -c 0 scontrols | grep -v Mic | sed -nr "/Wave|Master|Front|LFE|Center|Side|Speaker|Surround|PCM/ s/.*'([^']+)'.*/\\\\1/p" | xargs -I {} amixer -c 0 -q set "{}" 85% unmute &>/dev/null
|
||||
#!os_audio#
|
||||
amixer -c 0 scontrols | grep -v Mic | sed -nr "/Wave|Master|Front|LFE|Center|Side|Speaker|Surround|PCM/ s/.*'([^']+)'.*/\\\\1/p" | xargs -I {} amixer -c 0 -q set "{}" 100% unmute &>/dev/null
|
||||
#os_audio#
|
||||
# reduce beep
|
||||
amixer -c 0 scontrols | sed -nr "/Beep/ s/.*'([^']+)'.*/\\\\1/p" | xargs -I {} amixer -c 0 -q set "{}" 10% mute &>/dev/null
|
||||
# mute all mics
|
||||
amixer -c 0 scontrols | sed -nr "/Mic/ s/.*'([^']+)'.*/\\\\1/p" | xargs -I {} amixer -c 0 -q set "{}" 0% mute &>/dev/null
|
||||
save
|
||||
if ! grep -q "PCM Playback Volume" ${alsastatedir}/asound.state
|
||||
then
|
||||
sed -ri "s/^\}/\
|
||||
control.99 \{\\n\
|
||||
iface MIXER\\n\
|
||||
name 'PCM Playback Volume'\\n\
|
||||
value.0 255\\n\
|
||||
value.1 255\\n\
|
||||
comment \{\\n\
|
||||
access 'read write user'\\n\
|
||||
type INTEGER\\n\
|
||||
count 2\\n\
|
||||
range '0 - 255'\\n\
|
||||
tlv '0000000100000008ffffec1400000014'\\n\
|
||||
dbmin -5100\\n\
|
||||
dbmax 0\\n\
|
||||
dbvalue.0 0\\n\
|
||||
dbvalue.1 0\\n\
|
||||
}\\n\
|
||||
\}\\n\
|
||||
\}\\n\
|
||||
/" ${alsastatedir}/asound.state && restore
|
||||
fi
|
||||
\3</text>
|
||||
<reg>(\s*ebegin "Loading ALSA modules"
|
||||
\s*eindent
|
||||
\s*load_modules)
|
||||
(\s*eoutdent)
|
||||
(\s*eend \$\? \|\| return 1)
|
||||
(\s*fi
|
||||
|
||||
\s*if \[ ! -d /proc/asound \]; then)</reg>
|
||||
<text>\1
|
||||
RES=$?
|
||||
\2
|
||||
eend $RES || return 1
|
||||
\4</text>
|
||||
#?os_audio==alsa#
|
||||
<reg>100% unmute</reg>
|
||||
<text>85% unmute</text>
|
||||
#!os_audio#
|
||||
<reg>85% unmute</reg>
|
||||
<text>100% unmute</text>
|
||||
#os_audio#
|
@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="7"
|
||||
PYTHON_COMPAT=(python2_7)
|
||||
|
||||
declare -A CALCULATE_MODULES=(
|
||||
["lib"]="3.6.9.7"
|
||||
["install"]="3.6.9.19"
|
||||
["client"]="3.6.9.10"
|
||||
["desktop"]="3.6.9.3"
|
||||
["console-gui"]="3.6.9.1"
|
||||
["update"]="3.6.9.3"
|
||||
["builder"]="3.6.9.1"
|
||||
)
|
||||
|
||||
inherit calculate-utils-r12
|
||||
|
||||
DESCRIPTION="A set of Calculate utilities for system installation, build and upgrade"
|
||||
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate_utilities"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="3"
|
||||
KEYWORDS="amd64"
|
||||
|
Loading…
Reference in new issue