Howto: Add PulseAudio to GNOME 2.26 in Arch Linux
As a follow up on my article about PulseAudio in Gnome 2.26, I’ll briefly explain how you can install PulseAudio integrated with Gnome in Arch Linux. As mentioned before, the Gnome maintainer in Arch Linux has patched Gnome to the way it was before version 2.26, at least the audio part. It is however very easy to undo this with ABS. I suggest you read up on ABS if you’re not familiar with it.
Install & configure ABS
First you will need to install the The Arch Build System (ABS) and the basic development tools:
pacman -Sy abs base-develMake sure the core, extra and community repository are enabled in /etc/abs.conf:
REPOS=(core extra community !testing)
Now grab all the PKGBUILDS with:
abs
Install & configure PulseAudio
Install pulseaudio with:
pacman -S pulseaudioThere’s a lot to say about configuring pulseaudio, things I’m not going put here. More info on configuring pulseaudio can be found at The Arch Wiki and The Official PulseAudio site. The must do things are installing alsa-plugins to maintain alsa compatibility, configuring .asoundrc, adding yourself to the pulse-rt and pulse-access groups and configuring gstreamer to use pulse. I also don’t recommend using PulseAudio as a system-wide daemon. Just use the per-user daemon.
Rebuild related Gnome packages
There are a few gnome packages that need to be rebuilt against pulseaudio in this order:
- gnome-settings-daemon
- gnome-applets
- gnome-media
Grab the build files from abs one at the time. They are all located under /var/abs/abs/<packagename>. You can build and install the package with:
makepkg -signome-settings-daemon – Remove the patch line (2nd line right after build) in the PKGBUILD.
gnome-applets – Just needs a rebuild, no need to change anything.
gnome-media – Add –enable-pulse to the ./configure line in the PKGBUILD.
That’s pretty much it. Next time you login using gnome, it will use pulseaudio. By default it adds a rather ugly volume slider to the panel (you can prevent it from starting by removing it under system > preferences > startup applications. You can add a better one by right clicking on the panel and adding the volume applet.
thank you very much…
wouldn’t it be nice to put this into the wiki under pulseaudio?
I currently have very little time to do this and will soon be on holiday for a few weeks. You are free to do it yourself if you can do it sooner. All my postings are licensed under the creative commons by-nc-sa license as mentioned in the footer.