Bug 42773

Summary: pactl does not turn down volume
Product: PulseAudio Reporter: dashmz
Component: toolsAssignee: pulseaudio-bugs
Status: RESOLVED FIXED QA Contact: pulseaudio-bugs
Severity: normal    
Priority: medium CC: lennart
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description dashmz 2011-11-10 02:19:17 UTC
When I'm using pactl to turn the volume up by 5% for example, it all works:

r@MacBeth:~$ /usr/bin/pactl set-sink-volume 0 +5%

but turning the volume down by 5% returns an error code:

r@MacBeth:~$ /usr/bin/pactl set-sink-volume 0 -5%
/usr/bin/pactl: invalid option -- 5

In the manpage, it is described as followed:
set-sink-volume SINK VOLUME
Set  the  volume  of the specified sink (identified by its symbolic name or numerical index). VOLUME can be specified as integer (e.g. 2000, 16384), a linear factor (e.g. 0.4, 1.100), a percentage (e.g. 10%, 100%) or a decibel value (e.g.  0dB, 20dB). If the volume specification start with a + or - the volume adjustment will be relative to the current sink volume.

So am I doing something wrong or is this a bug?

Regards
Comment 1 dashmz 2011-11-10 05:04:04 UTC
Okay, found it out now. Sorry for opening a ticket.

The correct syntax for turning down the volume 10% is:

/usr/bin/pactl -- set-sink-volume 0 -10%

Regards

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.