Warning: THE VOID WIKI IS DEPRECATED. It is no longer being maintained, contains outdated and incorrect information, and will eventually be shut down. Please refer to the Void Handbook, https://docs.voidlinux.org/, for the official documentation. If you can't find the information you're seeking, please raise an issue at https://github.com/void-linux/void-docs/issues

Difference between revisions of "PulseAudio"

From Void Linux Wiki
Jump to navigation Jump to search
(Created page with "[http://www.freedesktop.org/wiki/Software/PulseAudio/ PulseAudio] =Recommended setup= PulseAudio needs dbus and ConsoleKit2 to change access permissions to the audio device....")
 
Line 1: Line 1:
 +
[[Category:Audio]]
 +
{{Related articles start}}
 +
{{Related|Audio}}
 +
{{Related articles end}}
 +
 
[http://www.freedesktop.org/wiki/Software/PulseAudio/ PulseAudio]
 
[http://www.freedesktop.org/wiki/Software/PulseAudio/ PulseAudio]
  
=Recommended setup=
+
==Installation==
PulseAudio needs dbus and ConsoleKit2 to change access permissions to the audio device.
+
[[Install]] the {{pkg|pulseaudio}}  package and {{pkg|ConsoleKit2}} if you want to continue with [[PulseAudio#Recommended_setup]]".
To activate the ConsoleKit2 service the cgmanager service is required to be running.
+
 
 +
  # xbps-install -S pulseaudio ConsoleKit2
 +
 
 +
Make sure your [[alsa]] output device is not muted and  [[enable]] the [[alsa]] [[runit]] [[service]] to save and restore [[alsa]] levels and configuration between reboots.
 +
  # ln -s /etc/sv/alsa /var/service/
 +
 
 +
===Recommended setup===
 +
In this setup [[PulseAudio]] needs [[dbus]] and[[ConsoleKit2]] to change access permissions to the audio device.
 +
Therefor you don't need the audio group, for more infos, take a look at  Ubuntu's Wiki page about [https://wiki.ubuntu.com/Audio/TheAudioGroup TheAudioGroup].
  
# xbps-install -S pulseaudio ConsoleKit2
+
[[Enable]] the required [[runit]] [[services]]:
 
  # ln -s /etc/sv/dbus /var/service/
 
  # ln -s /etc/sv/dbus /var/service/
 
  # ln -s /etc/sv/cgmanager /var/service/
 
  # ln -s /etc/sv/cgmanager /var/service/
Line 12: Line 25:
 
In some cases you have to add <code>start-pulseaudio-x11 &</code> to your <code>.xinitrc</code> file.
 
In some cases you have to add <code>start-pulseaudio-x11 &</code> to your <code>.xinitrc</code> file.
  
=System wide setup=  
+
===System wide setup===
 
PulseAudio supports a system wide daemon that can be used with voidlinux.
 
PulseAudio supports a system wide daemon that can be used with voidlinux.
 
The system wide setup should be avoided in most common cases for security and performance reasons.
 
The system wide setup should be avoided in most common cases for security and performance reasons.
Line 19: Line 32:
 
Enable the pulseaudio service
 
Enable the pulseaudio service
 
  # ln -s /etc/sv/pulseaudio /var/service/
 
  # ln -s /etc/sv/pulseaudio /var/service/
Add all users that should have access to pulseaudio to the `pulse-access` group.
+
Add all users that should have access to [[pulseaudio]] to the `pulse-access` group.
 
  # usermod -a -G pulse-access $USER
 
  # usermod -a -G pulse-access $USER
 
Visit the PulseAudio documentation for more informations [http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/ SystemWide].
 
Visit the PulseAudio documentation for more informations [http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/ SystemWide].

Revision as of 02:11, 18 April 2016

Related articles

PulseAudio

Installation

Install the pulseaudio package and ConsoleKit2 if you want to continue with PulseAudio#Recommended_setup".

 # xbps-install -S pulseaudio ConsoleKit2

Make sure your alsa output device is not muted and enable the alsa runit service to save and restore alsa levels and configuration between reboots.

 # ln -s /etc/sv/alsa /var/service/

Recommended setup

In this setup PulseAudio needs dbus andConsoleKit2 to change access permissions to the audio device. Therefor you don't need the audio group, for more infos, take a look at Ubuntu's Wiki page about TheAudioGroup.

Enable the required runit services:

# ln -s /etc/sv/dbus /var/service/
# ln -s /etc/sv/cgmanager /var/service/
# ln -s /etc/sv/consolekit /var/service/

In some cases you have to add start-pulseaudio-x11 & to your .xinitrc file.

System wide setup

PulseAudio supports a system wide daemon that can be used with voidlinux. The system wide setup should be avoided in most common cases for security and performance reasons. More informations why you should not use the system wide mode is available in the PulseAudio documentation at WhatIsWrongWithSystemWide.

Enable the pulseaudio service

# ln -s /etc/sv/pulseaudio /var/service/

Add all users that should have access to pulseaudio to the `pulse-access` group.

# usermod -a -G pulse-access $USER

Visit the PulseAudio documentation for more informations SystemWide.