Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Nov 2016
    Posts
    12

    Squeezelite doesn't start on my linux system

    Hello,

    Maybe someone can help me.. I'm on an Ubuntu Bionic system.

    Code:
    mathojojo@mathojojo-pc:~$ 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
      hdmi:CARD=HDMI,DEV=0           - HDA ATI HDMI, HDMI 0 - HDMI Audio Output
      hdmi:CARD=HDMI,DEV=1           - HDA ATI HDMI, HDMI 1 - HDMI Audio Output
      hdmi:CARD=HDMI,DEV=2           - HDA ATI HDMI, HDMI 2 - HDMI Audio Output
      hdmi:CARD=HDMI,DEV=3           - HDA ATI HDMI, HDMI 3 - HDMI Audio Output
      hdmi:CARD=HDMI,DEV=4           - HDA ATI HDMI, HDMI 4 - HDMI Audio Output
      hdmi:CARD=HDMI,DEV=5           - HDA ATI HDMI, HDMI 5 - HDMI Audio Output
      dmix:CARD=HDMI,DEV=3           - HDA ATI HDMI, HDMI 0 - Direct sample mixing device
      dmix:CARD=HDMI,DEV=7           - HDA ATI HDMI, HDMI 1 - Direct sample mixing device
      dmix:CARD=HDMI,DEV=8           - HDA ATI HDMI, HDMI 2 - Direct sample mixing device
      dmix:CARD=HDMI,DEV=9           - HDA ATI HDMI, HDMI 3 - Direct sample mixing device
      dmix:CARD=HDMI,DEV=10          - HDA ATI HDMI, HDMI 4 - Direct sample mixing device
      dmix:CARD=HDMI,DEV=11          - HDA ATI HDMI, HDMI 5 - Direct sample mixing device
      dsnoop:CARD=HDMI,DEV=3         - HDA ATI HDMI, HDMI 0 - Direct sample snooping device
      dsnoop:CARD=HDMI,DEV=7         - HDA ATI HDMI, HDMI 1 - Direct sample snooping device
      dsnoop:CARD=HDMI,DEV=8         - HDA ATI HDMI, HDMI 2 - Direct sample snooping device
      dsnoop:CARD=HDMI,DEV=9         - HDA ATI HDMI, HDMI 3 - Direct sample snooping device
      dsnoop:CARD=HDMI,DEV=10        - HDA ATI HDMI, HDMI 4 - Direct sample snooping device
      dsnoop:CARD=HDMI,DEV=11        - HDA ATI HDMI, HDMI 5 - Direct sample snooping device
      hw:CARD=HDMI,DEV=3             - HDA ATI HDMI, HDMI 0 - Direct hardware device without any conversions
      hw:CARD=HDMI,DEV=7             - HDA ATI HDMI, HDMI 1 - Direct hardware device without any conversions
      hw:CARD=HDMI,DEV=8             - HDA ATI HDMI, HDMI 2 - Direct hardware device without any conversions
      hw:CARD=HDMI,DEV=9             - HDA ATI HDMI, HDMI 3 - Direct hardware device without any conversions
      hw:CARD=HDMI,DEV=10            - HDA ATI HDMI, HDMI 4 - Direct hardware device without any conversions
      hw:CARD=HDMI,DEV=11            - HDA ATI HDMI, HDMI 5 - Direct hardware device without any conversions
      plughw:CARD=HDMI,DEV=3         - HDA ATI HDMI, HDMI 0 - Hardware device with all software conversions
      plughw:CARD=HDMI,DEV=7         - HDA ATI HDMI, HDMI 1 - Hardware device with all software conversions
      plughw:CARD=HDMI,DEV=8         - HDA ATI HDMI, HDMI 2 - Hardware device with all software conversions
      plughw:CARD=HDMI,DEV=9         - HDA ATI HDMI, HDMI 3 - Hardware device with all software conversions
      plughw:CARD=HDMI,DEV=10        - HDA ATI HDMI, HDMI 4 - Hardware device with all software conversions
      plughw:CARD=HDMI,DEV=11        - HDA ATI HDMI, HDMI 5 - Hardware device with all software conversions
      sysdefault:CARD=Generic        - HD-Audio Generic, ALC887-VD Analog - Default Audio Device
      front:CARD=Generic,DEV=0       - HD-Audio Generic, ALC887-VD Analog - Front speakers
      surround21:CARD=Generic,DEV=0  - HD-Audio Generic, ALC887-VD Analog - 2.1 Surround output to Front and Subwoofer speakers
      surround40:CARD=Generic,DEV=0  - HD-Audio Generic, ALC887-VD Analog - 4.0 Surround output to Front and Rear speakers
      surround41:CARD=Generic,DEV=0  - HD-Audio Generic, ALC887-VD Analog - 4.1 Surround output to Front, Rear and Subwoofer speakers
      surround50:CARD=Generic,DEV=0  - HD-Audio Generic, ALC887-VD Analog - 5.0 Surround output to Front, Center and Rear speakers
      surround51:CARD=Generic,DEV=0  - HD-Audio Generic, ALC887-VD Analog - 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
      surround71:CARD=Generic,DEV=0  - HD-Audio Generic, ALC887-VD Analog - 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
      iec958:CARD=Generic,DEV=0      - HD-Audio Generic, ALC887-VD Digital - IEC958 (S/PDIF) Digital Audio Output
      dmix:CARD=Generic,DEV=0        - HD-Audio Generic, ALC887-VD Analog - Direct sample mixing device
      dmix:CARD=Generic,DEV=1        - HD-Audio Generic, ALC887-VD Digital - Direct sample mixing device
      dmix:CARD=Generic,DEV=2        - HD-Audio Generic, ALC887-VD Alt Analog - Direct sample mixing device
      dsnoop:CARD=Generic,DEV=0      - HD-Audio Generic, ALC887-VD Analog - Direct sample snooping device
      dsnoop:CARD=Generic,DEV=1      - HD-Audio Generic, ALC887-VD Digital - Direct sample snooping device
      dsnoop:CARD=Generic,DEV=2      - HD-Audio Generic, ALC887-VD Alt Analog - Direct sample snooping device
      hw:CARD=Generic,DEV=0          - HD-Audio Generic, ALC887-VD Analog - Direct hardware device without any conversions
      hw:CARD=Generic,DEV=1          - HD-Audio Generic, ALC887-VD Digital - Direct hardware device without any conversions
      hw:CARD=Generic,DEV=2          - HD-Audio Generic, ALC887-VD Alt Analog - Direct hardware device without any conversions
      plughw:CARD=Generic,DEV=0      - HD-Audio Generic, ALC887-VD Analog - Hardware device with all software conversions
      plughw:CARD=Generic,DEV=1      - HD-Audio Generic, ALC887-VD Digital - Hardware device with all software conversions
      plughw:CARD=Generic,DEV=2      - HD-Audio Generic, ALC887-VD Alt Analog - Hardware device with all software conversions
    I have set my /etc/default/squeezelite like this :

    Code:
    # Defaults for squeezelite initscript
    # sourced by /etc/init.d/squeezelite
    # installed at /etc/default/squeezelite by the maintainer scripts
    
    # The name for the squeezelite player:
    SL_NAME="$(hostname -s)"
    
    # ALSA output device:
    SL_SOUNDCARD="default"
    
    # Squeezebox server (Logitech Media Server):
    # Uncomment the next line if you want to point squeezelite at the IP address of
    # your squeezebox server. This is usually unnecessary as the server is
    # automatically discovered.
    #SB_SERVER_IP="192.168.x.y"
    
    # Additional options to pass to squeezelite:
    # Please do not include -z to make squeezelite daemonise itself.
    SB_EXTRA_ARGS="-C 5 -d all=debug -f /var/log/squeezelite.log"
    But when I start or restart the squeezelite service, squeezelite crashes. Here is what the log file show :

    Code:
    /usr/bin/squeezelite -n mathojojo-pc -o default -C 5 -d all=debug -f /var/log/squeezelite.log 
    [21:41:23.192226] stream_init:290 init stream
    [21:41:23.192262] stream_init:291 streambuf size: 2097152
    [21:41:23.192820] output_init_alsa:817 init output
    [21:41:23.192832] output_init_alsa:846 requested alsa_buffer: 40 alsa_period: 4 format: any mmap: 1
    [21:41:23.192842] output_init_common:346 outputbuf size: 3528000
    [21:41:23.192860] output_init_common:370 idle timeout: 5000
    [21:41:23.196724] ALSA snd_pcm_hw_open:1602 open '/dev/snd/pcmC0D0p' failed (-2)
    [21:41:23.196738] ALSA snd_pcm_dmix_open:1052 unable to open slave
    [21:41:23.196797] test_open:294 playback open error: No such file or directory
    [21:41:23.196803] output_init_common:381 unable to open output device
    I looked in the /dev/snd directory, but didn't saw any pcmC0D0p file, but there where some other (for example 'pcmC01D0').

    So, it looks like the "default" device I set in the squeezelite default file is not referring to an existing /dev/snd device.... Why? and what can I do to fix it ?

    Another thing : On another Ubunty Bionic computer, squeezelite is starting well with exactly the same default squeezelite file.

    Thank you for your help

  2. #2
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    2,278
    I'm a numpty at this lark but I notice that the default is

    default - Playback/recording through the PulseAudio sound server
    your other settings refer to Alsa.


    Is this correct? I though one either had Pulse Audio or Alsa. I have only ever used Alsa so don't know if the two are compatible.

    Just ignore me

  3. #3
    Junior Member
    Join Date
    Nov 2016
    Posts
    12
    Quote Originally Posted by Man in a van View Post
    I'm a numpty at this lark but I notice that the default is



    your other settings refer to Alsa.


    Is this correct? I though one either had Pulse Audio or Alsa. I have only ever used Alsa so don't know if the two are compatible.

    Just ignore me
    Sounds devices on linux systems are managed by ALSA drivers. But when an application stream something to the ALSA device, this device is locked (and of course, can't be opened by another app). So, for example, if you are listening music on Youtube, you won't be able to hear sounds from a movie played by VLC, because the ALSA device will already be in use.

    Pulseaudio is the solution to avoid thous rectrictions. It's a sound server. Pulseaudio open an ALSA device (set as default), and appear in ALSA as a virtual ALSA device.So all sounds, from each application is sent to pulseaudio, and Pulseaudio mixes all thous sounds to only one stream that can be sent to the default ALSA device.

    So, in my case, When I set my squeezelite config file with "default - Playback/recording through the PulseAudio sound server ", in fact I'm selecting the virtual ALSA device "Pulseaudio".

    I could select another ALSA device, but if I do so, the ALSA device selected will be locked by squeezelite and I won't be able to play anything else.

    I hope I'm clear enough

    If you see an error in my demonstration, please tell me.

    Thank you for your help

  4. #4
    Junior Member
    Join Date
    Nov 2016
    Posts
    12
    In fact, I think that the real question is :

    Why does squeezelite try to open pcmC0D0p file when I use " SL_SOUNDCARD="default" ", if this file doesn't really exists :

    Code:
    mathojojo@mathojojo-pc:/dev/snd$ ls
    by-path  controlC0  controlC1  hwC0D0  hwC1D0  pcmC0D10p  pcmC0D11p  pcmC0D3p  pcmC0D7p  pcmC0D8p  pcmC0D9p  pcmC1D0c  pcmC1D0p  pcmC1D1p  pcmC1D2c  seq  timer
    It looks like the virtual alsa device created by pulseaudio, refers with a bad link to an audio device...

  5. #5
    Senior Member
    Join Date
    Jan 2011
    Location
    Staffordshire. UK
    Posts
    2,278
    Quote Originally Posted by mathojojo View Post
    Sounds devices on linux systems are managed by ALSA drivers. But when an application stream something to the ALSA device, this device is locked (and of course, can't be opened by another app). So, for example, if you are listening music on Youtube, you won't be able to hear sounds from a movie played by VLC, because the ALSA device will already be in use.

    Pulseaudio is the solution to avoid thous rectrictions. It's a sound server. Pulseaudio open an ALSA device (set as default), and appear in ALSA as a virtual ALSA device.So all sounds, from each application is sent to pulseaudio, and Pulseaudio mixes all thous sounds to only one stream that can be sent to the default ALSA device.

    So, in my case, When I set my squeezelite config file with "default - Playback/recording through the PulseAudio sound server ", in fact I'm selecting the virtual ALSA device "Pulseaudio".

    I could select another ALSA device, but if I do so, the ALSA device selected will be locked by squeezelite and I won't be able to play anything else.

    I hope I'm clear enough

    If you see an error in my demonstration, please tell me.

    Thank you for your help
    And thank you for your explanation

Tags for this Thread

Posting Permissions

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