systemd отключают pulseaudio системный режим

При поиске и устранении неисправностей проблемы с VMware, разъединяющим аудиоустройство во время начальной загрузки Ubuntu (18.04.1 Рабочих стола Ubuntu LTS), я изолировал проблему, чтобы быть systemd, работающим pulseaudio в системном режиме, прежде чем экран входа в систему обнаружится. pulseaudio работает в непривилегированном режиме очень хорошо после входа в систему, и в именно это я нуждаюсь.

Мой вопрос состоит в том, как отключить pulseaudio (который является частью sound.target) в systemd, перед пользовательским экраном входа в систему.

1
задан 3 September 2018 в 07:57

1 ответ

Попытайтесь сначала остановить и отключить pulseaudio

systemctl --user stop pulseaudio.socket
systemctl --user stop pulseaudio.service

или

sudo systemctl stop pulseaudio
sudo systemctl disable  pulseaudio

и в конечном счете

sudo systemctl mask pulseaudio

для предотвращения этого, другие сервисы запускают pulseaudio снова.

Смотрите на

man pulse-daemon.conf

Этот человек описывает конфигурационный файл демона PulseAudio.

   The  PulseAudio sound server reads configuration directives from a con‐
   figuration file on startup. If the per-user  file  ~/.config/pulse/dae‐
   mon.conf  exists,  it  is used, otherwise the system configuration file
   /etc/pulse/daemon.conf is used. In addition to those main  files,  con‐
   figuration  directives  can  also  be  put  in  files under directories
   ~/.config/pulse/daemon.conf.d/  and  /etc/pulse/daemon.conf.d/.   Those
   files  have  to  have  the .conf file name extension, but otherwise the
   file names can be chosen freely. The files under daemon.conf.d are pro‐
   cessed  in alphabetical order. In case the same option is set in multi‐
   ple files, the last file to set an option overrides earlier files.  The
   main daemon.conf file is processed first, so options set in files under
   daemon.conf.d override the main file.

Одна из этих настроек

   daemonize=  Daemonize after startup. Takes a boolean value, defaults to
               no. The --daemonize command line option takes precedence.

Откройтесь /etc/pulse/daemon.conf и набор

daemonize = no

Откройте локальный конфигурационный файл ~/.config/pulse/client.conf

Не прокомментируйте следующую строку

autospawn = no
1
ответ дан 7 December 2019 в 15:14

Другие вопросы по тегам:

Похожие вопросы: