From owner-freebsd-questions@freebsd.org Tue Jul 13 13:58:33 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 562B365E164 for ; Tue, 13 Jul 2021 13:58:33 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GPMfw3mPSz3BsT for ; Tue, 13 Jul 2021 13:58:32 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-wr1-x432.google.com with SMTP id i94so30595323wri.4 for ; Tue, 13 Jul 2021 06:58:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=syvxqhDprDusM5vkouV6Y3l4tFIMLFeo9WvryXLd/wU=; b=MbH834ROMTKnAUvMJiO1uywLzv7Kh3bi17bEqzQ8PQSIt1uYTcFRp2btOoxXpo8Ivc W9o7IVSDvBnCdv18kgRrz8fZJ9IXtbJ35VnsrJIKzhZwQkIWXcqYDrysp8sr/9e/B6Kj NOyYJpZmaF8LXBpTyaSXNz1zAUIfiHfBOhGY/0u3eJuxs5KFe0igHHLLKPrWyV7QT8YF jNgRLuENmVKUS7O3cdp+FQGpEBzl5n8z6RrA4JBixMQAWmWpCrk1vtMwmN2TmPhLWXpA IaFpnviTxESka6DNQZwDaOikwdaG8WlYJLF1x1y2k59BcBPYIn640X0lF7R6jjCFafZ9 bg7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=syvxqhDprDusM5vkouV6Y3l4tFIMLFeo9WvryXLd/wU=; b=G3cKB7n3wZ4Z2wUi+t8LMAZOTHvMKlKl/Uet9SVDAhzvjmJDAlmkLjVYvcxQiqqJ0M MQFjnIorya3Ddtk4ywCPoq1zZLLQ2ZVCtcrnqjLeblVXxiS8mvHjSSclkhbkuZJm/a4H T4xq3wC3VzfGAiHX1m4R4KL2BGsVCdkNEDT1IzKKdNhAnttpUothFSbTgB4kJXgSCId8 RYl7jVhA+lOpx50jXYf8oFHhnkn9G3q4Vpw+WhlM30VP46t5nU2lY8veqvfQATA6oW4p IyPbt1KLCoh+6S4IdeufTuP4UqQhwhruL19cSwuVLqr7m6VJcUwFzNGirPeJeVnE95lB Amdg== X-Gm-Message-State: AOAM532cGB3Ol6XASyJ4edlXYAjEbSYEgSt2swRZC4VgKx8KRMYJtPrq i5W6aDOr5kT1gM+fMnb/pwSLhRbhN52799b7GQkyyi8SrSRGieMP X-Google-Smtp-Source: ABdhPJzhuZ+73x3XV6eSnu6lMm33ywrLWQ5edpEhD5Nb/65FnFiO2UE7VqcJRPL3Iceoyjt/dzJGIkFjmxhKSUlWQvA= X-Received: by 2002:a5d:4d04:: with SMTP id z4mr5908732wrt.133.1626184710757; Tue, 13 Jul 2021 06:58:30 -0700 (PDT) MIME-Version: 1.0 References: <5b18f5de-7aae-a226-88cd-a210507d5c5@gmail.com> <72194e9f-261c-c3da-996-f8e1bcad2164@gmail.com> In-Reply-To: From: Tomasz CEDRO Date: Tue, 13 Jul 2021 15:58:09 +0200 Message-ID: Subject: Re: What the hell starts pulseaudio?! To: Roderick Cc: FreeBSD Questions Mailing List Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4GPMfw3mPSz3BsT X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=MbH834RO; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2a00:1450:4864:20::432) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.25 / 15.00]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.95)[-0.950]; SUBJECT_ENDS_EXCLAIM(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::432:from]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; SUBJECT_HAS_QUESTION(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[cedro.info]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::432:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::432:from]; R_SPF_NA(0.00)[no SPF record]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jul 2021 13:58:33 -0000 Another, user level, trick to prevent applications spawning PulseAudio is ~/.config/pulse/client.conf: autospawn = no On Tue, Jul 13, 2021 at 3:53 PM Tomasz CEDRO wrote: > > On Tue, Jul 13, 2021 at 1:42 PM Roderick wrote: > > On Tue, 13 Jul 2021, Tomasz CEDRO wrote: > > > What Window Manager do you use? Maybe this guy.. or its audio mixer? :-) > > It is written in my original mail. > > Sorry, TWM does not start it, its the Firefox, or any other > application linked against libpulse* will spawn local user service > with stream/dgram socket communication (not TCP!) :-) > > sockstat | grep pulse > XXX pulseaudio 99706 5 stream /home/XXX/.xdg/pulse/native > XXX pulseaudio 99706 8 stream -> /tmp/dbus-URrI0C27hY > XXX pulseaudio 99706 9 stream /home/XXX/.xdg/pulse/native > XXX pulseaudio 99706 11 dgram -> /var/run/log > XXX pulseaudio 99706 41 stream -> /var/run/dbus/system_bus_socket > XXX enlightenm 98712 73 stream -> /home/XXX/.xdg/pulse/native > > At first I though htop and ps auxd could show process tree with > parent, but in my case there was no parent, what seems reasonable > because it should work even after its spawning process terminates. > > Then I found this. Looks like exactly your question and the answer: > https://unix.stackexchange.com/questions/204522/how-does-pulseaudio-start > > Personally I like PulseAudio. It gives you lots of felxibility and > control over audio per application on the fly. > > If you do not like it you may want to try remove / lock the package > and/or put a link to /use/bin/true in place of the binary? > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info