unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#42175: "pulseaudio? #f" setting does not prevent pulseaudio from autostarting
@ 2020-07-03  9:00 Nathan Dehnel
  2020-07-03 10:20 ` Leo Prikler
  0 siblings, 1 reply; 3+ messages in thread
From: Nathan Dehnel @ 2020-07-03  9:00 UTC (permalink / raw)
  To: 42175

https://guix.gnu.org/manual/en/html_node/Sound-Services.html

(define %my-services
  ;; My very own list of services.
  (modify-services %desktop-services
    (alsa-service-type config =>
                       (alsa-configuration
                        (inherit config)
                        (pulseaudio? #f)))))

reconfigure, reboot, login to gnome, then

bash-5.0$ pgrep pulseaudio
517
1261




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#42175: "pulseaudio? #f" setting does not prevent pulseaudio from autostarting
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Leo Prikler @ 2020-07-03 10:20 UTC (permalink / raw)
  To: ncdehnel; +Cc: 42175

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).

Regards, Leo





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#42175: "pulseaudio? #f" setting does not prevent pulseaudio from autostarting
  2020-07-03 10:20 ` Leo Prikler
@ 2022-02-01  2:27   ` Maxim Cournoyer
  0 siblings, 0 replies; 3+ messages in thread
From: Maxim Cournoyer @ 2022-02-01  2:27 UTC (permalink / raw)
  To: Leo Prikler; +Cc: ncdehnel, 42175-done

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-01  2:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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).