Pine64 as squeezebox touch replacement

   This is a copy of a thread that I posted on the Slimdevices forums.

For those of you who don't already know, the Squeezebox Touch was part of a family of devices developed by Slimdevices and later bought by Logitech.

The provided high audio quality output at very reasonable price and could play a large number of formats from a number of sources, including local archives and online streaming services and were highly configurable.

Unfortunately the line was discontinued by Logitech in 2012.

The Squeezebox Touch was introduced in 2010 and could output high bit-rate digital streams in audiophile quality, over COAX, optical fibre or USB, in addition to its own, builtin DAC, which could handle standard bit-rate and output stereo analogue in high quality.

The server-side "Logitech Media Server" and much of the player software was open-sourced when the products were discontinued and there is a lively community effort, keeping the project alive. Code exists to clone the squeezebox touch functionality to a number of devices, including a range of "Pi"s.  The Pine64 has not been supported up to now.

The Pine64 hardware is well suited as it has ample processing and RAM headroom and dedicated USB ports , directly hardwired to the SoC and an independent bus dedicated to the Gb Ethernet port (if we discount the LCD screen).  It is also much cheaper than competing products.

I'm sharing my work here, in the hope that someone might find it useful and that others will join me in making the Pine64 one of the best choices for a Squeezebox-Touch replacement.

Although my system will output to a USB DAC and connect to Ethernet network only, it would be relatively easy to connect a DAC HAT for analogue output and include wifi.

Hardware spec:

Pine64+ (2GB) with official LCD screen and C4 labs surround

Modified surround:
  • glued screen into front bezel
  • countersunk m3, flathead bolts
  • ordered custom aluminium stand to hold device in "alarm-clock" position (not yet delivered/mounted)
  • 5v Power supply through EULER connection pins

Planned mod (not yet implemented):
Base system:  Armbian pine64 legacy / Ubuntu Xenial Desktop on Samsung Evo+ 32GB

  • apt installed:
    libsdl2-dev libsdl1.2-dev liblua5.1-dev liblua5.2-dev libluajit-5.1-dev libsdl-image1.2-dev libsdl-ttf2.0-dev libsdl-gfx1.2-dev libexpat1-dev libtool libtool-bin liblua5.4-dev liblua5.3-dev
  • apt removed:
    blueman bluez bluex-obexd bluez-tools bluetooth libreoffice* firefox:armhf
[*]built and installed squeezelite from
(This version is necessary if you - like me - require native DSD output. DoP should work with pre-packaged verion of squeezelite)
Many thanks to Marco Curti for DSD work.
  • Built minimal  kernel, with performance governor default, removed builtin snd_usb_audio and hid and compiled as loadable modules (necessary for DAC detection).
  • Much removed: including Wifi, Bluetooth, Filesystems and network protocols that I will not used.
  • dpkg installed using technique described at: > Kernels > Default

  • Modified /etc/default/nodm to disable mouse cursor:
    # Options for the X serverNODM_X_OPTIONS='-nolisten tcp -nocursor'

Enable GPIO pin and allow to accept input from autologin user (for jivelite screensaver):
  • edit /etc/rc.local -
    #allow squeezer user to set screen brightnesecho 362 > /sys/class/gpio/export && chgrp squeezer /sys/class/gpio/export && chmod 220  /sys/class/gpio/exportsleep 1echo out > /sys/class/gpio/gpio362/direction && chgrp squeezer /sys/devices/soc.0/1f02c00.pinctrl/gpio/gpio362/direction && chmod 664 /sys/devices/soc.0/1f02c00.pinctrl/gpio/gpio362/directionsleep 1chgrp squeezer /sys/devices/soc.0/1f02c00.pinctrl/gpio/gpio362/value && chmod 664 /sys/devices/soc.0/1f02c00.pinctrl/gpio/gpio362/valueexit 0
  • Created ~/.xsessionrc for autologin user:
    #!/bin/shsleep 2 && exec /opt/jivelite/bin/jivelite #sleep to allow LCD backlight settings to take effect

Modified jivelite:
  • resized some wallpapers to 1024x600 resolution and modified wallpaper loader
  • Included LCD screen backlight off/on to:
  • Tuned text scrolling by changing refresh rate and scrolling values, for smoother scroll.
  • System boots
  • Squezelite loads
  • Jivelite loads
  • 1024x600 skins mostly look nice (much work done by Ralphy since this thread was first announced).  Thanks to Ralphy
  • Connects to LMS running in local network
  • "Plays" local and streaming content.
  • Blank screensaver works well and turns off LCD backlight
  • Touchscheen works well if jivelite runnning in context of autologin user
  • Gb ethernet works well and correctly.
  • PCM playback tested and working up to 24b@384k

Not yet implemented:
  • USB audio out tweaks as discussed at:
  • working, fully patched RT kernel (reverted to standard, low latency kernel)
  • 3.13 USB improvements patch backported to 3.10.104
  • PWM management of LCD backlight brightness

Known issues:
  • Jivelite scrolling text is still slightly jumpy.
  • Some screensavers (analog clock) not optimised for 1024x600 resolution.
  • Some graphics not positioned correctly on 1024x600 resolution
  • Can't get touchscreen to work if loading jivelite as root (even with tslib_test behaving correctly and loading with tslib environment variables)
  • Jivelite splashscreen not correctly centered when running in context of autologin user (looks better when loading from root shell).
  • Top LH "stop" button in jivelite UI works, but if a "stop" screensaver is configured, touch does not wake the screen  
  • DSD (native) playback is being silently converted to PCM on my system due to non-XMOS dac and (probably) kernel 3.10  It still sounds good, but this is not native DSD. I have ordered a XMOS DAC and will look at ways to backport the native DSD support from a later kernel if Armbian can't supoort the LCD on 4.x before I'm done.

32GB sdcard image
pwd: Pine64

You will need to have a Logitech Media Server (LMS) running on your network to use the player.

7.9 "BETA" has been stable for me

LMS can also be installed on the Pine64 if necessary, but might  steal resources from the player.

Messages In This Thread
Pine64 as squeezebox touch replacement - by Learnincurve - 02-17-2017, 08:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pine64 E-ink screen - Android projectileobjects 4 9,890 12-03-2020, 03:03 PM
Last Post: Silk
  Pine64 based IP KVM tuaris 0 4,068 08-06-2020, 12:05 AM
Last Post: tuaris
Information Pine64 Head Unit Zoidiano0 100 147,711 11-19-2019, 04:35 AM
Last Post: rogatip79
  PINE64 to allow use of SATA disk on network/FTP mwelbourne 10 16,341 11-18-2019, 04:09 PM
Last Post: evilbunny
  How to setup VNC on your Pine64 (Debian, SSH, headless) pine64nutz 20 44,032 04-16-2019, 08:00 AM
Last Post: hg6806
  Setup Pine64+ with OP-TEE stdys 0 3,649 09-13-2018, 03:23 PM
Last Post: stdys
Information UEFI for Pine64 z4v4l 20 39,537 06-24-2018, 03:06 PM
Last Post: z4v4l
  Domoticz + PINE64 Z-Wave Module + Open Z-Wave klliew 4 10,028 04-19-2018, 02:23 AM
Last Post: Harlan Mueller
  Pine64 as Security Camera / Baby Monitor utdrmac 2 7,318 02-01-2018, 07:49 AM
Last Post: davidbrucs
Photo Nextcloud running on Pine64 gbjensen 1 6,207 01-18-2018, 05:51 AM
Last Post: Luke

Forum Jump:

Users browsing this thread: 1 Guest(s)