Bug 81269

Summary: Add pacmd/pactl command to set volumes by role
Product: PulseAudio Reporter: Felipe Sateler <fsateler>
Component: toolsAssignee: pulseaudio-bugs
Status: RESOLVED MOVED QA Contact: pulseaudio-bugs
Severity: normal    
Priority: medium CC: lennart
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Felipe Sateler 2014-07-12 16:20:20 UTC
From the Debian bug tracker:

> there is no way to control volume of system sounds by script with pacmd (eg. at
> login). Sometimes system sounds are much too loud. Then you have to start
> pavucontrol (if installed) and move the system sound slider to reduce sound
> volume. Or you have to switch off the sound card. This is a no-go for disabled
> people.
>
> Please implement access to control system sound volume in pacmd or another
> command line tool.


And indeed, currently there is no command line interface to set volumes by role.
Comment 1 Tanu Kaskinen 2014-07-12 16:33:36 UTC
I agree, pactl should have support for this. pavucontrol uses the stream-restore extension API, which pactl could use too.

Something to note is that I'm working on a new volume API in Tizen's version of PulseAudio, which potentially supersedes the stream-restore API. Hopefully that will be available upstream too (with pactl support for the new API), but it's uncertain at this point.

The fastest way to get this functionality is to write it yourself using the stream-restore API. If nobody offers to do that, feel free to ask in this bug about the progress of upstreaming the new volume API. I probably won't remember to update this bug without someone explicitly asking about the status.
Comment 2 GitLab Migration User 2018-07-30 09:33:01 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/3.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.