Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 10 of 13

Threaded View

  1. #1
    Junior Member
    Join Date
    Mar 2018
    Posts
    7

    squeezelite / PulseAudio / Debian

    Hi all!

    I'm new to this and pretty much impressed about LMS and its capabilities.

    I installed LMS on a RasPi - works fine.

    To test the server, I installed squeezelite on my desktop as well as on a laptop.
    Both run Debian jessie (oldstable), so the current version provided by the repos is 1.6.4-1.
    (By the way: there are 2 packages: "squeezelite" and "squeezelite-pa" ... you can only chose one of these! I chose "squeezelite"...)
    First, everything went very well, I could access the LMS web interface and play sound on both clients.

    The next day, things changed. Obviously, squeezelite is fired up before networking is completely up and running, so both clients have had MAC address 00:00:00:00:00:00. I resolved the issue by adding something like SB_EXTRA_ARGS="-m 12:34:56:78:90:12" (using the correct MAC addresses) to /etc/default/squeezelite. That solved the issue.

    Now, I discovered, that both machines do EITHER play sound through any other app (youtube in a browser or any music player you can think of) OR through squeezelite. Stopping the squeezelite daemon lets all other applications play sound again, restarting the daemon blocks sound for all other applications...

    Stopping the daemon and manually restarting squeezelite by invoking (as normal user!)
    Code:
    squeezelite -n name -m 12:34:56:78:90:12 -z
    DOES however work as expected - any application can play sounds, including squeezelite!

    Adding SB_EXTRA_ARGS="-m 12:34:56:78:90:12 -o pulse" (and logging) leads to the following behaviour, when run as a service:
    Code:
    [22:23:45.544636] test_open:124 playback open error: Connection refused
    [22:23:45.544698] output_init_common:373 unable to open output device

    Using "top", I observed the daemon is run as root. So I added root to groups audio, pulse and pulse-access - no luck (didn't expect it anyway).

    Might be worth posting:
    Code:
    $ squeezelite -l
    Output devices:
      default                        - Playback/recording through the PulseAudio sound server
      null                           - Discard all samples (playback) or generate zero samples (capture)
      pulse                          - PulseAudio Sound Server
      sysdefault:CARD=NVidia         - HDA NVidia, ALC883 Analog - Default Audio Device
      front:CARD=NVidia,DEV=0        - HDA NVidia, ALC883 Analog - Front speakers
      surround21:CARD=NVidia,DEV=0   - HDA NVidia, ALC883 Analog - 2.1 Surround output to Front and Subwoofer speakers
      surround40:CARD=NVidia,DEV=0   - HDA NVidia, ALC883 Analog - 4.0 Surround output to Front and Rear speakers
      surround41:CARD=NVidia,DEV=0   - HDA NVidia, ALC883 Analog - 4.1 Surround output to Front, Rear and Subwoofer speakers
      surround50:CARD=NVidia,DEV=0   - HDA NVidia, ALC883 Analog - 5.0 Surround output to Front, Center and Rear speakers
      surround51:CARD=NVidia,DEV=0   - HDA NVidia, ALC883 Analog - 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
      surround71:CARD=NVidia,DEV=0   - HDA NVidia, ALC883 Analog - 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
      iec958:CARD=NVidia,DEV=0       - HDA NVidia, ALC883 Digital - IEC958 (S/PDIF) Digital Audio Output
      dmix:CARD=NVidia,DEV=0         - HDA NVidia, ALC883 Analog - Direct sample mixing device
      dmix:CARD=NVidia,DEV=1         - HDA NVidia, ALC883 Digital - Direct sample mixing device
      dmix:CARD=NVidia,DEV=2         - HDA NVidia, ALC883 Alt Analog - Direct sample mixing device
      dsnoop:CARD=NVidia,DEV=0       - HDA NVidia, ALC883 Analog - Direct sample snooping device
      dsnoop:CARD=NVidia,DEV=1       - HDA NVidia, ALC883 Digital - Direct sample snooping device
      dsnoop:CARD=NVidia,DEV=2       - HDA NVidia, ALC883 Alt Analog - Direct sample snooping device
      hw:CARD=NVidia,DEV=0           - HDA NVidia, ALC883 Analog - Direct hardware device without any conversions
      hw:CARD=NVidia,DEV=1           - HDA NVidia, ALC883 Digital - Direct hardware device without any conversions
      hw:CARD=NVidia,DEV=2           - HDA NVidia, ALC883 Alt Analog - Direct hardware device without any conversions
      plughw:CARD=NVidia,DEV=0       - HDA NVidia, ALC883 Analog - Hardware device with all software conversions
      plughw:CARD=NVidia,DEV=1       - HDA NVidia, ALC883 Digital - Hardware device with all software conversions
      plughw:CARD=NVidia,DEV=2       - HDA NVidia, ALC883 Alt Analog - Hardware device with all software conversions
    By the way: The package "squeezelite-pa" gives the same overall behaviour, while the error messages are slightly different.

    In the end, I get the impression, that the daemon may be seeing some different pulseaudio environment than a regular user?
    As I installed the packages from the repos, no dedicated user has been created. Could that maybe solve the issue and what would I have to do to run the service as a dedicated user (editing daemon start/stop scripts?)? Any other ideas?

    Bye & Thanks for reading...
    W69
    Last edited by W69; 2018-03-20 at 14:37.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •