[pulseaudio-tickets] [PulseAudio] #222: pacmd doesn't work with pulseaudio running as a system-wide daemon

PulseAudio trac-noreply at tango.0pointer.de
Sun Jan 23 05:09:02 PST 2011


#222: pacmd doesn't work with pulseaudio running as a system-wide daemon
-------------------------+--------------------------------------------------
  Reporter:  JeroenHoek  |       Owner:  lennart
      Type:  defect      |      Status:  new    
 Milestone:              |   Component:  daemon 
Resolution:              |    Keywords:         
-------------------------+--------------------------------------------------

Comment(by coling):

 You cannot use the $ in your command above murz... When you set the
 variable, the $ prefix must be omitted.

 As for why it's not working, this is more or less expected. The CLI
 interface (which pacmd uses) is a big security issue and thus is not
 enabled by default. As described above pacmd tries to tell the daemon to
 load the module-cli-protocol-unix module. This module creates a socket
 that allows direct communication with PA that bypasses the protocol and
 thus allows for extra information and details to be exchanged without
 having to squeeze it into the protocol (which is quite awkward).

 So once it's loaded this module pacmd connects directly to the "cli"
 socket in the runtime path. So check your /var/run/pulse/ folder for a
 "cli" socket. If it doesn't exist, pacmd isn't going to work.

 Normally the automatic module loading bit will fail with system PAs
 because module loading is not allowed and thus the module-cli-protocol-
 unix cannot be loaded. So you can try loading it manually in system.pa and
 then connect.

 Either way, this is by design and I'm not sure it's something we should
 change, especially as system mode is not really recommended or really
 heavily tested upstream.

-- 
Ticket URL: <http://pulseaudio.org/ticket/222#comment:5>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server


More information about the pulseaudio-bugs mailing list