Bug 42773 - pactl does not turn down volume
Summary: pactl does not turn down volume
Status: RESOLVED FIXED
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: tools (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-10 02:19 UTC by dashmz
Modified: 2011-11-10 05:04 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.