Ticket #214 (assigned enhancement)

Opened 8 months ago

Last modified 7 months ago

Ability to change sinks volumes from CLI on runtime

Reported by: valoun Assigned to: lennart (accepted)
Priority: normal Milestone:
Component: clients Severity: normal
Keywords: volume, batch, command-line, CLI Cc: ondrej@valek.net

Description

Hi,

I haven't found a way to change volume from command-line (in a non-interactive way) for sinks. I need it to be able to attach volume scripts to my notebook buttons.

"pulseaudio -nF" with commands fails with error:

E: pid.c: Daemon already running. E: main.c: pa_pid_file_create() failed.

Other programs like pactl, pavucontrol, paprefs etc. get no commandline options at all or do not offer the needed functions.

So is there a way that I haven't found? Basically what I need is to issue commands like those offered with amixer i.e. volume up (with unmute), volume down, volume up by %, volume down by %, mute, unmute, toggle mute etc.

Right now, I can only control PCM with amixer through pulse.

Change History

01/11/08 11:10:07 changed by valoun

  • cc set to ondrej@valek.net.

added myself to CC

02/15/08 14:14:18 changed by lennart

You can script pacmd that way a bit. But yes, a new pactl command for this might make sense.

02/15/08 14:58:48 changed by lennart

  • status changed from new to assigned.

#191 has another request for a new pactl command.