ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Speccyfighter <zxwarior@yandex.ru>
To: "community@lists.altlinux.org" <community@lists.altlinux.org>
Subject: [Comm]  Simply Linux 6 - pulseaudio remove и инициализация alsa
Date: Mon, 02 Jan 2012 10:29:08 +0300
Message-ID: <4F015CC4.6080404@yandex.ru> (raw)

Всех с Новым годом и доброго времени суток!

Лениво, но тест SL6 продолжается.

Топик в тему:
https://bugs.mageia.org/show_bug.cgi?id=500

В нашей alsa-utils:
$ rpm -ql alsa-utils|grep alsa|grep var
$

Версия нашей alsa-utils:
$ apt-cache show alsa-utils|grep Version
Version: 1:1.0.24.2-alt1

Попытка выполнения команды:
# alsactl -f /var/lib/alsa/asound.state store
alsactl: save_state:1547: Cannot open /var/lib/alsa/asound.state for 
writing: No such file or directory

# alsactl store
alsactl: save_state:1547: Cannot open /var/lib/alsa/asound.state for 
writing: No such file or directory

Моделирование пофиксивания бага (см. 
https://bugs.mageia.org/show_bug.cgi?id=500):

# mkdir /var/lib/alsa/

# touch /var/lib/alsa/asound.state

# alsactl -f /var/lib/alsa/asound.state store

# cat /var/lib/alsa/asound.state
state.Intel {
     control.1 {
         iface MIXER
         name 'Front Playback Volume'
<Skip>
             dbvalue.0 0
             dbvalue.1 0
         }
     }
}


Содержимое пакета из репозитория mageia:
$ rpm -qpl alsa-utils-1.0.24.2-3.mga1.i586.rpm | grep var
/var/lib/alsa
/var/lib/alsa/asound.state


http://mirror.yandex.ru/mageia/distrib/1/i586/media/core/release/alsa-utils-1.0.24.2-3.mga1.i586.rpm
http://mirror.yandex.ru/mageia/distrib/1/SRPMS/core/release/alsa-utils-1.0.24.2-3.mga1.src.rpm

Требуется:
пересборка пакета alsa-utils с включением в пакет:

/var/lib/alsa
/var/lib/alsa/asound.state

с последующей пересборкой altlinux-6.0.1_rc*-simply-*.iso с пофиксенным 
alsa-utils.


Вопрос второго плана:
В каком пакете у нас лежат скрипты сохранения настроек миксера alsa и 
восстановления оного? Локальных и глобальных?

В Mageia Linux это решено элегантным образом:

http://mirror.yandex.ru/mageia/distrib/1/i586/media/core/release/sound-scripts-0.60-5.mga1.noarch.rpm
http://mirror.yandex.ru/mageia/distrib/1/SRPMS/core/release/sound-scripts-0.60-5.mga1.src.rpm

$ rpm -qpl ./Загрузки/sound-scripts-0.60-5.mga1.noarch.rpm
/bin/reset_sound
/etc/modprobe.d/snd-oss
/etc/modprobe.d/snd-usb-audio
/etc/rc.d/init.d/alsa
/etc/rc.d/init.d/sound
/etc/rc.d/rc.alsa_default
/etc/sysconfig/alsa
/etc/udev/rules.d/alsa.rules
/sbin/alsa.agent
/usr/bin/reset_sound
/usr/sbin/alsa.agent
/usr/share/alsa
/usr/share/alsa/alsa-utils
/usr/share/doc/sound-scripts
/usr/share/doc/sound-scripts/ChangeLog

Файл /etc/rc.d/init.d/sound
function start_mixer
секция     # ALSA


В SL6 временное решение сделано таким образом:

$ touch ~/.asoundrc
echo "/usr/sbin/alsactl restore -f ~/.asoundrc" >> ~/.bash_profile

https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#Restore_ALSA_Mixer_settings_at_startup


Реализация способа замены pulseaudio на alsa без udev-alsa и aserver



             reply	other threads:[~2012-01-02  7:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-02  7:29 Speccyfighter [this message]
2012-01-02 21:26 ` Michael Shigorin
2012-01-03 18:42   ` Speccyfighter
2012-01-04 19:55     ` Michael Shigorin
2012-01-05  3:54       ` Speccyfighter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F015CC4.6080404@yandex.ru \
    --to=zxwarior@yandex.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git