02-17-2017, 08:52 AM
(This post was last modified: 03-08-2017, 01:47 AM by Learnincurve.)
Hi,
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:
Planned mod (not yet implemented):
Base system: Armbian pine64 legacy / Ubuntu Xenial Desktop on Samsung Evo+ 32GB
[*]built and installed squeezelite from
[URL="https://github.com/marcoc1712/squeezelite-R2/tree/Play_DSD_decoded_by_Mansr_sox"[/URL]
(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.
[/LIST]
jivelite-autoload:
Enable GPIO pin and allow to accept input from autologin user (for jivelite screensaver):
Modified jivelite:
Not yet implemented:
Known issues:
32GB sdcard image
pwd: Pine64
You will need to have a Logitech Media Server (LMS) running on your network to use the player.
http://downloads.slimdevices.com/nightly/?ver=7.9
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.
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):
- Implement power filter as described at:
http://forum.pine64.org/attachment.php?aid=439
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* openoffice.org-hyphenation firefox:armhf
- built and installed ARM64 luajit from:
https://github.com/sindrom91/LuaJIT
- built and installed jivelite from
https://github.com/ralph-irving/jivelite
[*]built and installed squeezelite from
[URL="https://github.com/marcoc1712/squeezelite-R2/tree/Play_DSD_decoded_by_Mansr_sox"[/URL]
(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.
[/LIST]
- dpkg installed tslib-X11 packages from:
https://github.com/avafinger/pine64-touchscreen
- configured xorg.conf to use tslib
- 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:
https://www.armbian.com/pine64/ > Kernels > Default
- turned-up LCD backlight to 100% using technique described at:
http://forum.pine64.org/showthread.php?tid=2896
jivelite-autoload:
- 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:
BlankScreenSaverApplet.lua
- 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:
- https://ubuntuforums.org/showthread.php?t=1608913
- 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.
http://downloads.slimdevices.com/nightly/?ver=7.9
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.