Bug 258322 - audio/pulseaudio: Do not restore card/device volumes by default
Summary: audio/pulseaudio: Do not restore card/device volumes by default
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-desktop (Team)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-06 19:53 UTC by Kevin Zheng
Modified: 2021-09-12 01:05 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (desktop)


Attachments
Patch (1.92 KB, patch)
2021-09-06 19:53 UTC, Kevin Zheng
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Zheng 2021-09-06 19:53:07 UTC
Created attachment 227717 [details]
Patch

PulseAudio enables module-device-restore and module-card-restore, which load and store device and card volume settings, by default. On FreeBSD, this functionality is already handled by rc.d/mixer. Further, if PulseAudio is not enabled on a system-wide basis, PulseAudio restores its own mixer settings when an application needs it.

As a result, module-device-restore and module-card-restore cause a jarring experience on FreeBSD. For example, playing a video in Firefox sometimes causes the mixer volume to change suddenly as PulseAudio loads what it thinks were the previous mixer settings.

This patch changes the example default.pa to not load these modules by default. This has no affect on systems with PulseAudio already installed and configured.