ALSA
Posted: 15 Jul 2016, 20:43
В Porteus 3.2rc были вырезаны утилиты настройки ALSA(alsamixer и amixer).Хотелось бы узнать есть ли способы управлять Alsa без них?
Code: Select all
root@porteus:/home/guest# alsactl restore
alsactl: load_state:1683: Cannot open /var/lib/alsa/asound.state for reading: No such file or directory
alsactl: sysfs_init:48: sysfs path '/sys' is invalid
Found hardware: "HDA-Intel" "VIA VT1705" "HDA:11064397,101905b3,00100000" "0x1019" "0x05b3"
Hardware is initialized using a generic method
alsactl: sysfs_init:48: sysfs path '/sys' is invalid
Found hardware: "HDA-Intel" "Nvidia Generic" "HDA:10de0041,156911c6,00100100" "0x1569" "0x11c6"
Hardware is initialized using a generic method
Code: Select all
pulseaudio
Code: Select all
root@porteus:/home/guest# pulseaudio
W: [pulseaudio] authkey.c: Failed to open cookie file '/root/.config/pulse/cookie': No such file or directory
W: [pulseaudio] authkey.c: Failed to load authentication key '/root/.config/pulse/cookie': No such file or directory
W: [pulseaudio] authkey.c: Failed to open cookie file '/root/.pulse-cookie': No such file or directory
W: [pulseaudio] authkey.c: Failed to load authentication key '/root/.pulse-cookie': No such file or directory
W: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
W: [pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
E: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files
Code: Select all
guest@porteus:~$ pulseaudio
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.
Code: Select all
rm -r ~/.config/pulse*; pulseaudio -k
pulseaudio --kill
pulseaudio --start
Code: Select all
guest@porteus:~$ su
Password:
root@porteus:/home/guest# rm -r ~/.config/pulse*; pulseaudio -k
E: [pulseaudio] main.c: Failed to kill daemon: No such process
root@porteus:/home/guest# pulseaudio --kill
E: [pulseaudio] main.c: Failed to kill daemon: No such process
root@porteus:/home/guest# pulseaudio --start
N: [pulseaudio] main.c: User-configured server at {3a1ba190dd5e9ed43a9c8a6c578a516a}unix:/tmp/pulse-PKdhtXMmr18n/native, refusing to start/autospawn.
root@porteus:/home/guest# rm -r ~/.config/pulse*; pulseaudio -k
upv wrote:Можно конкретизировать "т.д."?
Code: Select all
alsactl [ -f <сохраненный файл>.state ] restore
Code: Select all
guest@porteus:~$ su
Password:
root@porteus:/home/guest# alsactl store
root@porteus:/home/guest# kwrite /var/lib/alsa/asound.state
Code: Select all
root@porteus:/home/guest# alsactl restore
Code: Select all
su
toor
pulseaudio
Спасибо за фидбак. А интересно, что у меня звук есть, несмотря на то, что asound.stateupv wrote:все дело в параметре 'Auto-Mute Mode' который по умолчанию включен и звук не выводится(((
Code: Select all
control.20 {
iface MIXER
name 'Auto-Mute Mode'
value Enabled
comment {
access 'read write'
type ENUMERATED
count 1
item.0 Disabled
item.1 Enabled
}
}