Re: [SlimDevices: Unix] squeezelite / PulseAudio / Debian
I set up a headless server using the following config: loginctl enable-linger kodi # kodi is the userid I used for all multimedia mkdir .config/systemd file .config/systemd/squeezelite.service: [Unit] Description=Squeezelite Wants=dbus.socket After=dbus.socket [Service] ExecPre=xset s off ExecStart=/usr/bin/squeezelite -s server.homenet Restart=always [Install] WantedBy=default.target There is a similar control file for kodi. nodm is set to autologin to the kodi user. systemctl --user enable squeezelite systemctl --user start squeezelite I used pavucontrol to initially set pulse to use the correct output (hdmi in my case). adamf663's Profile: http://forums.slimdevices.com/member.php?userid=71084 View this thread: http://forums.slimdevices.com/showthread.php?t=108842 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] squeezelite / PulseAudio / Debian
As long as you don't kill -9 the squeezelite program the signal handler sends the 'slimprotocol STOP command' (https://github.com/ralph-irving/squeezelite/blob/master/main.c#L233) to the server before it quits. I should mention that as soon as you run more than one instance of squeezelite on the same system you MUST add the -m parameter with a unique MAC address or set the UTMAC environment variable and squeezelite will use that MAC to annouce itself to LMS. This again must be per user not global. Two or more players using the same MAC causes LMS to be unable to control any of the players with the same MAC reliably. Ralphy *1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio 'Squeezebox client builds' (https://sourceforge.net/projects/lmsclients/files/) 'donations' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) always appreciated. ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484 View this thread: http://forums.slimdevices.com/showthread.php?t=108842 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] squeezelite / PulseAudio / Debian
W69 wrote: > > squeezelite-start-player-quiet.sh (should be executable) > > Code: > > #!/bin/bash > LMS_NAME="servername.local" > LMS_PORT="9090" > SL_NAME=$(echo "$HOSTNAME") > > /usr/local/bin/squeezelite-pulse -n $SL_NAME -z > wait 1 > printf "$SL_NAME stop\nexit\n" | nc $LMS_NAME $LMS_PORT > /dev/null > > exit 0 > > > > Maybe this helps others as well... > > Cheers > W69 Hi, using one Variable with the exact value of an already existing variable istnt that smart as it looks. eg.> > SL_NAME=$(echo "$HOSTNAME") Code: printf "$$HOSTNAME stop\nexit\n" | nc $LMS_NAME $LMS_PORT > /dev/null piping the printf to > /dev/null is the same - not a good idea. Just "stop" a player thats maybe online or not - maybe stopped or not - is a even -better:mad:- idea. You should use something and only that something - not something here (autostartscript) and some autoplaysettings. You end in a big mess... DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516 View this thread: http://forums.slimdevices.com/showthread.php?t=108842 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] squeezelite / PulseAudio / Debian
since you find exact the phrase in lms ralphy told you about - there is a 100% yes W69 wrote: > > If yes, then which one would I chose to achieve what I intend? Where's > the difference between > 1. Pause at power off/Remain paused at power on > 2. Stop at power off/Remain stopped at power on > ? > > Are these settings known to work properly with squeezelite clients? > I ask, because I didn't manage to achieve what I intend with these > settings yet... > > > > > > Again - lms supports different players. If that Player can handle the squeeze protocol. like eg. squezzelite its all the same. If not things like sync volume bla bub isnt supported. If you just try yourself - its exact the same as you would find in CD players.. * STOP means STOP - last played track is in cache/stored somewhere. * Pause means Pause - last played track and the playtime (before pause was pressed) is in cache/stored somewhere. DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516 View this thread: http://forums.slimdevices.com/showthread.php?t=108842 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] squeezelite / PulseAudio / Debian
Thanks for the autostart desktop scripts. I would recommend picoreplayer for the rpi0w and squeezelite comes installed. There's an LMS per player audio setting called Power On Resume to change the behaviour to remain paused on power on but the default is to continue playing, it's not squeezelite specific. Ralphy *1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio 'Squeezebox client builds' (https://sourceforge.net/projects/lmsclients/files/) 'donations' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) always appreciated. ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484 View this thread: http://forums.slimdevices.com/showthread.php?t=108842 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] squeezelite / PulseAudio / Debian
Hi Ralphy, thanks for your answer. So I will try the pulse_x86_64 versions for the desktops and armv6hf for the Raspis. For the latter however, I still have to get these DACs and set everything up. So I didn't know about PulseAudio for the Raspis... if it's not working/not there/... well that's fine for me. Is there a special distro to be used for a Raspberry Pi Zero W + pHAT DAC + squeezelite? Picoreplayer perhaps? Thanks again, now I'll give the binaries a try... W69 W69's Profile: http://forums.slimdevices.com/member.php?userid=67977 View this thread: http://forums.slimdevices.com/showthread.php?t=108842 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] squeezelite / PulseAudio / Debian
W69 wrote: > Hi al,, > > > I'm going to need builds for x64 and RaspberryPis... > > For the x64 machines and with PulseAudio, should I use > squeezelite-1.8.7-1052-debian8-x86_64.tar.gz > or > squeezelite-pulse-1.8.7-1052-debian8-x86_64.tar.gz > ? > > I ask, because I didn't notice any difference in behaviour, when > installing squeezelite or squeezelite-pa from the standard Debian > repos... > > For the RaspberryPis (one is a RPi3, the other one a RPiZeroW), which > one of these should I use: > squeezelite-1.8.7.1052-armel.tar.gz > squeezelite-1.8.7.1052-armv6hf.tar.gz > ? > > Thanks again > W69 The squeezelite-pa binaries do NOT include the pulseaudio portaudio library driver only ALSA and OSS. For pulseaudio you must use one of the squeezelite-pulse-*tar.gz files. You can use either the armel or armv6hf files for the RPi3 or 0, however the armv6hf is the build meant for those boards. No dice on a pulseaudio squeezelite build for RPis. The pulseaudio portaudio library driver just hangs when you start squeezelite. Ralphy *1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio 'Squeezebox client builds' (https://sourceforge.net/projects/lmsclients/files/) 'donations' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) always appreciated. ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484 View this thread: http://forums.slimdevices.com/showthread.php?t=108842 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] squeezelite / PulseAudio / Debian
Hi al,, ralphy wrote: > I have native pulseaudio squeezelite builds available for Debian 7, 8 > and 9 on the sourceforge site. I'm going to need builds for x64 and RaspberryPis... For the x64 machines and with PulseAudio, should I use squeezelite-1.8.7-1052-debian8-x86_64.tar.gz or squeezelite-pulse-1.8.7-1052-debian8-x86_64.tar.gz ? I ask, because I didn't notice any difference in behaviour, when installing squeezelite or squeezelite-pa from the standard Debian repos... For the RaspberryPis (one is a RPi3, the other one a RPiZeroW), which one of these should I use: squeezelite-1.8.7.1052-armel.tar.gz squeezelite-1.8.7.1052-armv6hf.tar.gz ? Thanks again W69 W69's Profile: http://forums.slimdevices.com/member.php?userid=67977 View this thread: http://forums.slimdevices.com/showthread.php?t=108842 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] squeezelite / PulseAudio / Debian
I have native pulseaudio squeezelite builds available for Debian 7, 8 and 9 on the sourceforge site. I've been using it for about the last year and it works very well. $ squeezelite -l Output devices: 0 - Built-in Audio Analog Stereo [PulseAudio] Ralphy *1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio 'Squeezebox client builds' (https://sourceforge.net/projects/lmsclients/files/) 'donations' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted) always appreciated. ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484 View this thread: http://forums.slimdevices.com/showthread.php?t=108842 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
Re: [SlimDevices: Unix] squeezelite / PulseAudio / Debian
Hi, 1: forget about pulse - 2: use squeezelite from ralphy 3 root should be already member of these groups.. 4: remember -1- forget about pulse! cheers DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516 View this thread: http://forums.slimdevices.com/showthread.php?t=108842 ___ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix
[SlimDevices: Unix] 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 ...and the same blocking of any other sound than squeezelite. 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