Skip to content

Instantly share code, notes, and snippets.

@julianxhokaxhiu
Last active December 5, 2023 07:52
Show Gist options
  • Save julianxhokaxhiu/e0891db7193f2df6ee57f20cbaaa2a8b to your computer and use it in GitHub Desktop.
Save julianxhokaxhiu/e0891db7193f2df6ee57f20cbaaa2a8b to your computer and use it in GitHub Desktop.
Enable autodiscover AirPlay Client support on Arch Linux ( like on macOS )

Enable autodiscover AirPlay Client support on Arch Linux ( like on macOS )

Step 1

Install required dependencies

$ pacman -S avahi pulseaudio-zeroconf

Step 2

Enable and Start Avahi daemon

$ systemctl enable --now avahi-daemon.service

Step 3

Enable the required module on Pulseaudio ( paste this at the end of /etc/pulse/default.pa ):

### Enable AirPlay support
load-module module-raop-discover

Step 4

Restart Pulseaudio:

$ systemctl --user restart pulseaudio.service

Step 5

If everything worked fine you should be able to autodiscover all your AirPlay devices and connect to them.

Enjoy!

@luca-viggiani
Copy link

Great, thanks!

@olwe1
Copy link

olwe1 commented Feb 6, 2020

Awesome, thank you !

@demmaone
Copy link

Hello, I'm running last version of Manjaro, follow your instructions and have my device recognized, connected but no sound is passed through. In Pulse I have the control volume bars showing that sound is entering that channel. It's not a device problem because I can connect with other PC and phones and hear the audio. I'm using moode_airplay on a raspberry pi3. Thanks in advance.

@julianxhokaxhiu
Copy link
Author

@demmaone: I wish I could help you, that's all on PulseAudio. You need to approach either the module author or the PulseAudio team to understand what is going on. It could also be the module is deprecated and your device doesn't accept its protocol. Best shot I can suggest is check the logs and try to get a picture of what is going on.

@demmaone
Copy link

@julianxhokaxhiu Thanks for your answer, I will try what you said. I have a lot of experience but I'm new to Linux, trying to make the final switch once for all.

@lviggiani
Copy link

Hi since the last updates pulseaudio.service fails to load module-raop-sink.so. Says module not found

@julianxhokaxhiu
Copy link
Author

Hi since the last updates pulseaudio.service fails to load module-raop-sink.so. Says module not found

Hi, thanks for the feedback although I'm not sure where the issue is. The module seems to be in place on the relative package: https://www.archlinux.org/packages/extra/x86_64/pulseaudio-zeroconf/

Double check that you have the correct version of the package :)

@luca-viggiani
Copy link

luca-viggiani commented Oct 9, 2020

Hi since the last updates pulseaudio.service fails to load module-raop-sink.so. Says module not found

Hi, thanks for the feedback although I'm not sure where the issue is. The module seems to be in place on the relative package: https://www.archlinux.org/packages/extra/x86_64/pulseaudio-zeroconf/

Double check that you have the correct version of the package :)

I've discovered that with a recent update pulseaudio-zeroconf has been split into other packages and now you need to install pulseaudio-rtp. However, after installing that package and restarting the services, the Airplay device now shows up but if I select it as audio output and try to stream audio to it, it just disappear and output is switched back to my laptop speakers. I've tried also with another Arch Linux laptop but I get the same result.
All was working fine before latest update.

See here:
archlinux/svntogit-packages@2ee4411#diff-8d0411b338c83cd8cd8ad9d9db127101

@olwe1
Copy link

olwe1 commented Nov 6, 2020

I've discovered that with a recent update pulseaudio-zeroconf has been split into other packages and now you need to install pulseaudio-rtp. However, after installing that package and restarting the services, the Airplay device now shows up but if I select it as audio output and try to stream audio to it, it just disappear and output is switched back to my laptop speakers. I've tried also with another Arch Linux laptop but I get the same result.
All was working fine before latest update.

I had the same issue but since the latest update everything is back to normal !

@ajsb85
Copy link

ajsb85 commented Jun 13, 2022

sudo ln -s /usr/lib/pulse-15.99.1+dfsg1 /usr/lib/pulse-15.99

@cloudshare360
Copy link

pactl load-module module-raop-discover

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment