Page 1 of 1

ALSA

Posted: 15 Jul 2016, 20:43
by upv
В Porteus 3.2rc были вырезаны утилиты настройки ALSA(alsamixer и amixer).Хотелось бы узнать есть ли способы управлять Alsa без них?

Re: ALSA

Posted: 15 Jul 2016, 21:45
by Bogomips

Code: Select all

su
alsactl restore
и.т.д.

Re: ALSA

Posted: 16 Jul 2016, 10:24
by upv
Можно конкретизировать "т.д."?

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

Re: ALSA

Posted: 16 Jul 2016, 11:36
by Blaze
Здравствуйте, upv.
Какую точно Вы используете версию Porteus 3.2 (rc2. rc3 или rc4)?

PulseAudio работает некорректно (нет звука)?

Если ввести команду

Code: Select all

pulseaudio
то что выдает?

Re: ALSA

Posted: 16 Jul 2016, 11:53
by upv
rc4
Да нет звука

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.

Re: ALSA

Posted: 16 Jul 2016, 12:18
by Blaze
upv, попробуйте так:

Code: Select all

rm -r ~/.config/pulse*; pulseaudio -k
pulseaudio --kill
pulseaudio --start
у меня что-то подобное было, я решил проблему так см. это сообщение (пункт 1. PulseAudio in Cinnamon RC4 does not play sound and I don't see a sound applet in the tray at the right corner.)

Re: ALSA

Posted: 16 Jul 2016, 12:45
by upv

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

Re: ALSA

Posted: 16 Jul 2016, 13:20
by Bogomips
upv wrote:Можно конкретизировать "т.д."?
При 3.2:

Code: Select all

alsactl   [ -f  <сохраненный файл>.state ]   restore

Re: ALSA

Posted: 16 Jul 2016, 14:26
by upv

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
Звук есть.Другй вопрос незная в чем причина осусвия звука без alsamixer можно чень долго редактировать asound.state (часами(((()

Re: ALSA

Posted: 16 Jul 2016, 16:40
by Blaze
upv, в Always Fresh mode проблема со звуком так же присутствует?
Введите там

Code: Select all

su
toor
pulseaudio

Re: ALSA

Posted: 16 Jul 2016, 19:19
by upv
все дело в параметре 'Auto-Mute Mode' который по умолчанию включен и звук не выводится((( и из PA его изменить нельзя

Re: ALSA

Posted: 16 Jul 2016, 20:48
by Bogomips
upv wrote:все дело в параметре 'Auto-Mute Mode' который по умолчанию включен и звук не выводится(((
Спасибо за фидбак. А интересно, что у меня звук есть, несмотря на то, что asound.state

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
		}
	}

Re: ALSA

Posted: 16 Jul 2016, 22:34
by upv
Все полностью разобрался,вероятно неправильно распаяна передняя аудио панель, после ее отключения звук работает без ковыряния в ALSA
Всем спасибо.