I’ve been checking lots of places so far, but am not able to actually run squeezelite on my vero4k.
Anypone in here managed to get it to run on his Vero4k? If yes, what did you do to get it to actually run.
I have so far installed the kodi-plugin and had to patch the internal python binary chooser to use the arm binary. However, it does not output any sound.
Hmmm. Usually when using alsa, it should not be locked (that was the main reason for alsa development if If I remember it right. Non blocking I/O ful duplex etc.).
Will tinker a little more. Will report if I find something that works.
Just a heads up, i just sudo apt-get install squeezelite
no configuration or anything else
osmc@vero4k:~$ squeezelite
[17:26:58.259284] test_open:294 playback open error: Device or resource busy
[17:26:58.259461] output_init_common:381 unable to open output device
Just in case anyone finds this and needs a solution… I’ve got it up and running on my Vero 4k and will provide my solution here. No guarantee that this is the most elegant way, but it works for me.
Important: “Keep audio device alive” in Kodi’s system audio settings has to be deactivated (enable “Advanced” or “Expert” level of settings to find this).
So let’s get started…
Install squeezelite and alsamixer:
sudo apt-get install squeezelite alsamixer
This will automatically install a system service, which will not work, as it will hog the audio output at startup and cause weird noise when something is played on Kodi (or Kodi will not play sound at all). So deactivate it:
sudo systemctl disable squeezelite.service
Create your own startup script:
mkdir /home/osmc/scripts
cd /home/osmc/scripts
nano start_squeezelite
and add the following lines (replacing SERVER_NAME with your LMS server IP [optional], and adding a meaningful PLAYER_NAME):
The sleep command makes sure that Kodi has initialised and released the sound device before squeezelite is started. The “-C 1” flag for the squeezelite command makes sure that the sound card is released by the player anytime it is paused, making switching between Kodi and squeezelite super easy (i.e. automatic).
Save (CTRL+O) and close (CTRL+X) this file and make it executable:
Now reboot your Vero and after 10 seconds, your squeezebox player should be recognised by LMS and fully functional. Just make sure that nothing is playing on Kodi when you start playing on the squeezebox. Should you run into trouble, you can mess around with the sleep time parameter in the start script (e.g. 30 seconds, if maybe you have a lot of stuff going on at startup) - furthermore, you shouldn’t be playing any Kodi sounds until the service has started (thus I kept it at a short 10 seconds).