Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with AirPlay and Spotify Connect #9

Closed
Schniitzelchen opened this issue Apr 22, 2021 · 4 comments
Closed

Issues with AirPlay and Spotify Connect #9

Schniitzelchen opened this issue Apr 22, 2021 · 4 comments

Comments

@Schniitzelchen
Copy link

Hi,

I run my Peppy Radio just by using the Headphonejack on my pi 3b.

When I Enable Airplay and Spotify Connect I don`t hear anything. If I change the settings from the services to hw:1 (Headphone Jack) I Hear some Music but then the Spectrum/VU-Meter Screensavers are not working and the equalizer isn't working either.

Can you help me, telling what I am doing wrong? I am running the latest Version of Peppy with the nearly default config for the Waveshare 5Inch Screen (Premade Image)

Thanks in advance

@project-owner
Copy link
Owner

Hi,

You can try to use the fix described here (Airplay Issue):
https://github.com/project-owner/PeppyPlayers.doc/wiki/Known-Issues#airplay-issue
I hope everything should work after that.

Here is some additional information about equalizer:
mikebrady/shairport-sync#1046
Hopefully it will be helpful.

Best regards

@Schniitzelchen
Copy link
Author

In the Meantime: Yes@a

@Schniitzelchen
Copy link
Author

In the Meantime Yes.
Sound: OK
Screensavers: not Working

@project-owner
Copy link
Owner

It's possible to make Equalizer and VU Meter working with Airplay by changing User and Group from 'shairport-sync' to 'pi' in two files:
/usr/lib/systemd/system/shairport-sync.service

[Unit]
Description=Shairport Sync - AirPlay Audio Receiver
After=sound.target
Requires=avahi-daemon.service
After=avahi-daemon.service
Wants=network-online.target
After=network.target network-online.target

[Service]
ExecStart=/usr/local/bin/shairport-sync
User=pi
Group=pi

[Install]
WantedBy=multi-user.target

/etc/dbus-1/system.d/shairport-sync-dbus.conf

<!-- initial version, based on /etc/dbus-1/system.d/avahi-dbus.conf, with thanks -->
<!DOCTYPE busconfig PUBLIC
          "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
          "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

  <!-- Allow users "root" and "shairport-sync" to own the Shairport Sync service -->
  <policy user="root">
    <allow own="org.gnome.ShairportSync"/>
  </policy>
  <policy user="pi">
    <allow own="org.gnome.ShairportSync"/>
  </policy>


  <!-- Allow anyone to invoke methods on Shairport Sync server -->
  <policy context="default">
    <allow send_destination="org.gnome.ShairportSync"/>
    <allow receive_sender="org.gnome.ShairportSync"/>
  </policy>

</busconfig>

The solution was found here:
mikebrady/shairport-sync#1437
mikebrady/shairport-sync#730

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants