unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Leo Prikler <leo.prikler@student.tugraz.at>
Cc: ncdehnel@gmail.com, 42175-done@debbugs.gnu.org
Subject: bug#42175: "pulseaudio? #f" setting does not prevent pulseaudio from autostarting
Date: Mon, 31 Jan 2022 21:27:59 -0500	[thread overview]
Message-ID: <878ruvl3rk.fsf@gmail.com> (raw)
In-Reply-To: <336cacb31035e43c01b8a8a23b470970351e4116.camel@student.tugraz.at> (Leo Prikler's message of "Fri, 03 Jul 2020 12:20:02 +0200")

Hello,

Leo Prikler <leo.prikler@student.tugraz.at> writes:

> I don't think pulseaudio autostarting is governed by alsa.  There are
> two options you can try.
>
> 1. disable autospawning through configuration.  For that, try setting
> the client-conf field of the pulseaudio-configuration to 
>   '((autospawn . no))
> 2. Removing the pulseaudio package from gnome and anywhere else it
> might be propagated.  (I don't think it is propagated in other
> services).

Indeed, if you look at (gnu services sound), you'll see that what
pulseaudio? #t does (the default) is to add this to ALSA's asound.conf
file:

--8<---------------cut here---------------start------------->8---
`("# Use PulseAudio by default
pcm_type.pulse {
  lib \"" ,#~(string-append #$alsa-plugins:pulseaudio
                            "/lib/alsa-lib/libasound_module_pcm_pulse.so") "\"
}

ctl_type.pulse {
  lib \"" ,#~(string-append #$alsa-plugins:pulseaudio
                            "/lib/alsa-lib/libasound_module_ctl_pulse.so") "\"
}

pcm.!default {
  type pulse
  fallback \"sysdefault\"
  hint {
    show on
    description \"Default ALSA Output (currently PulseAudio Sound Server)\"
  }
}

ctl.!default {
  type pulse
  fallback \"sysdefault\"
}\n\n"
--8<---------------cut here---------------end--------------->8---

This configures ALSA applications to use pulseaudio as its default
output.  Many non-ALSA applications will attempt to use pulseaudio and
the configuration of it being allowed to autostart or not is to be made
at the level of pulseaudio-service-type, as pointed out in Liliana's
reply (thanks!).

Closing,

Maxim




      reply	other threads:[~2022-02-01  2:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-03  9:00 bug#42175: "pulseaudio? #f" setting does not prevent pulseaudio from autostarting Nathan Dehnel
2020-07-03 10:20 ` Leo Prikler
2022-02-01  2:27   ` Maxim Cournoyer [this message]

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=878ruvl3rk.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=42175-done@debbugs.gnu.org \
    --cc=leo.prikler@student.tugraz.at \
    --cc=ncdehnel@gmail.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).