Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 29,537
» Latest member: JosephyCic
» Forum threads: 16,208
» Forum posts: 116,946

Full Statistics

Latest Threads
more mobile linux on redd...
Forum: General Discussion on PinePhone
Last Post: biketool
4 hours ago
» Replies: 0
» Views: 89
Call recording?
Forum: PinePhone Pro Software
Last Post: baptx
Yesterday, 04:59 PM
» Replies: 6
» Views: 4,956
Having trouble reading MP...
Forum: Getting Started
Last Post: Alex92
09-05-2025, 08:49 PM
» Replies: 1
» Views: 1,437
Special keys stopped work...
Forum: General Discussion on PineNote
Last Post: cheepeero
09-05-2025, 07:32 PM
» Replies: 0
» Views: 517
Booting Issues
Forum: PineNote Software
Last Post: vlagged
09-04-2025, 12:52 PM
» Replies: 20
» Views: 8,277
Experimental Mobian kerne...
Forum: PinePhone Pro Software
Last Post: teekay
09-04-2025, 01:40 AM
» Replies: 11
» Views: 2,847
[Article] RISC-V Ox64 BL8...
Forum: General
Last Post: PrinceMorissette
09-03-2025, 10:51 PM
» Replies: 2
» Views: 3,412
Why projects like PinePho...
Forum: General Discussion on PinePhone
Last Post: Kevin Kofler
09-03-2025, 02:47 PM
» Replies: 2
» Views: 1,991
irradium (based on crux l...
Forum: Linux on Quartz64
Last Post: mara
09-01-2025, 10:26 AM
» Replies: 6
» Views: 5,112
The PPP behaves as if the...
Forum: General Discussion of PinePhone Pro
Last Post: teekay
09-01-2025, 04:07 AM
» Replies: 2
» Views: 2,088

 
  Multi Room Audio - Pine style
Posted by: mjgoode - 09-05-2018, 10:38 AM - Forum: Getting Started - Replies (4)

Greetings,

Hopefully this will shorten the learning curve for someone.  If not, at least I can search the forum for my own post at some point if I have a disaster.

Setting up multi room audio with multiple pine devices.  Want to play internet radio, a small audio library, and Spotify through the house.

The journey starts with Volumio - distros are available for most of our devices. The Volumio forum has the latest links.  gkkpch has done a lot of work.  I need to buy him a beer.  You do too.  

Rock64:  https://volumio.org/forum/volumio-rock64-t9467.html
Pine64/LTS-SOPINE:  https://volumio.org/forum/volumio-pine64...t9465.html

Burned these onto their respective flash cards.  Decided to have a Rock64 as the server and a Pine64 as the client.  

Initial install was pretty straight foward.  There is a guided setup for the software through the web interface once you launch.  

Now you have two media boxes.  They show up together in Volumio but they play different streams.  To connect the boxes together you need a way to synch the audio.  I choose Snapcast.  You need to install both the Snapcast application and the Volumio Snapcast plugin for command and control.

At the time of writing the latest version was here:
https://github.com/badaix/snapcast/releases/tag/v0.15.0

You will need the client and the server.  The server will need to install both but for the client . . . only the client.

Grab the arm versions (armhf).  Get them to your pines in the manner you see fit.  To install:

sudo dpkg -i snapclient_0.15.0_armhf.deb
sudo dpkg -i snapserver_0.15.0_armhf.deb
sudo apt-get -f install

The Snapcast app and overview is described on Github:  https://github.com/badaix/snapcast  

Now you need the plugin.  As it is not an official Volumio plug in you need to load it manually.  Instructions are here: https://github.com/Saiyato/volumio-snapcast-plugin.  In short:

git clone https://github.com/Saiyato/volumio-snapcast-plugin.git
cd volumio-snapcast-plugin/
rm volumio-snapcast-plugin.zip

Now . . . there is currently an issue.  It may be fixed but you need to put in one more command before the plugin install.

npm i

Then:

volumio plugin install

On the server, go to the snapcast plugin.  Enable the server, pick any sample rate that you want as long as it is 44,100Hz, 16 bits, 2 channels.  For both the server and client enable the client.  Server's host should be local while client's host should be server.  (Duh)  Pick the right sound port.  Especially if it's 2am and you're pulling your hair out.  MPD choose the same sample rate, bit depth, all that everywhere.  For the server select FIFO only.  For the client select ALSA.

Spotify Integration.  (Still in the Snapcast Plugin.)  I used no dedicated stream - and the spotify web connect.  The sample rate, bit depth, channels should be the same for server and client and mpd.  Don't dinker with Librespot.

Leave the rest of the stuff alone if you value your sanity.

Reboot your devices for good measure. 

To test your masterpiece try this on the server:

sudo cat /dev/urandom > /tmp/snapfifo

Dumps white noise out your speakers.  All your stations should start and end at the same time.  If not . . . problems.  You should hear a delay.

Next see if you can play a webradio from server to client.  Does it sound good?  Nice.  Do you want Spotify too?  Probalby not working yet.

What I did that works:

On the server go to /data/plugins/music_service/volspotconnect2 and find the volspotconnect2.tmpl file.

Replace the one meaningful line in the file with the below:
./librespot -b 320  -c /tmp ${shared} ${normalvolume} --name '${devicename}' --backend pipe --device /tmp/snapfifo --disable-audio-cache --initial-volume ${initvol}

Save.  Go to the Spotify plug in, make a change, and save.  This will burn a new startconnect.sh file with your changes.  The original version had the backend as alsa and the output device as a local device.  So the music only played to the server's device.

Try Spotify.  Cross your fingers real hard.  Open your Spotify client, find your server under "connect to device" and play some nice tune.

If you have done everything right you will get beautiful music out of all your speakers.  If you have not lived life on the straight and narrow bad stuff will happen.  Now it's time to swear a bit and figure out what went wrong.


Gotchas / notes
The default sample rate of 48kHz and 16 bits works just fine for web radio.  For Spotify it sucks out loud.  The audio is higher pitched and warbles.  It's a sampling rate problem between the Spotify stream and the resampling.  (I read this somewhere, maybe I will find it again some day.)  There might be another way around it, but just be sure everything matches up and you should be fine.

If there is a volumio update and you want to upgrade - you can do it through the app but you need to go enable "test" softare.  Go to your volumio box url and add "/dev" after the address.  Push the right button.  Turning on SSH while you're there probably is smart.

The Rock64 Volumio build does not support the rtl8812au based wifi adapter sold in the Pine store.  There has been discussion on this but it still is not there.  I tried cheating a bit to build a driver but not all the bits were in the load to make that happen.  Left this for another day.

---
Bonus Round!  Making a Rock64 Ubuntu Bionic Client

This is pretty easy as well.  Grab the 64 bit version of your choice from ayufan's git.  Burn it to a memory thingie and start the silly thing up.

EvilBunny has done the WiFi driver work for you.  Grab the file, load it, be sure you've got python installed.  (sudo apt install python)

sudo dpkg -i drivernameofyourchoice.deb

sudo depmod
sudo modprobe 8812au

Configuring WiFi - you're on your own.  

There is no arm64 bit Snapcast on Git, you you need to build your own.  Luckily there are step by step instructions on the site.  
https://github.com/badaix/snapcast/blob/...nux-native

The instructions work. Start at the top then follow the Debian instructions.  The build runs on one core so it takes a bit.

Repeat the dpkg stuff from above and . . .

Craft the command for the snapcast client.  Check the plug names with aplay -l and choose which one you want to use.  (You should be able to have more than one client running but my testing has ended poorly on that front.  More work to be done there.) 

The client command documentation is a little light.  "snapclient --help" gives you the basics.  I used the following with a static internal IP address as the server.

sudo snapclient -s I2S -h 192.qq.yy.xx -d --user snapclient:audio

This will automagically run at startup.  I haven't figured out how to kill it actually . . . but that's for another day (and more edits).

---

Yeah I should still do some more experimenting and close the loop with some folks.  But for now I'm going to take a break from pulling my hair out and enjoy the sweet sound of success.  

I will maintain this post based upon learnings, feedback is appreciated and welcomed.  

Best Regards,


Matthew


Exclamation Using LCD panel with Xenial Mate OS
Posted by: r.tanaka - 09-05-2018, 02:25 AM - Forum: Linux on PINE A64-LTS / SOPINE - Replies (1)

hi

Can I use the LCD panel with the following OS?
https://forum.pine64.org/showthread.php?tid=376


  Newbie, Can't get Audio using Ubuntu 18.04 v0.7.9 LXDE
Posted by: Pajaro - 09-04-2018, 03:00 PM - Forum: Linux on Rock64 - Replies (4)

Aloha,

I have a Rock64 4GM RAM
Purchased two month ago
HDMI connection to LED TV

Just installed Ubuntu 18.04 Bionic LXDE (0.7.9) everything works fine EXCEPT ( Huh ) I get no Audio.  It comes with alsamixer.  I tested audio and video with YouTube.   I am a newbie with Linux and this version of Ubuntu on a ROCK64.  I like this version of Linux and it streams very fast but no audio.  Is there a driver I have to install, if so, what driver?  Do I have to use the A/V port versus HDMI for audio? With this install I get no Audio, is that normal???

I have install Armbian Debian Stretch Desktop [microSD Boot] [5.42] It works fine (streaming), video and audio, for same ROCK64 SBC?

Appreciate any advice...

Pajaro,
Hawaii


  Network boot
Posted by: Drago - 09-04-2018, 06:33 AM - Forum: Linux on RockPro64 - Replies (1)

Hi all,

Is it possible to set up the rockpro64 so I can boot images from my LAN? If find that I sometimes cannot boot from my microSD after I do a soft reboot from within Debian, and I want to avoid re-imaging the microSD every time this happens.

-D


  External DAC - Pine64
Posted by: mjgoode - 09-04-2018, 05:53 AM - Forum: Ubuntu - Replies (2)

Hello,

Time to call for help.  (HELP!)

I'm trying to enable external DAC support on a distribution other than Volumio for the Pine64. (Not the Rock64 - for which there seems to be support.)  I have tried both Armbian Xenial desktop legacy kernel 3.10.y and 0.7.19-118 xenial minimal from ayufan.  The DAC is not recognized and it ports do not appear when one queries aplay.

Am missing something pretty basic like, duh, there is only a driver available for Volumio for the Pine64.

Why? I'm setting up multi room audio and was hoping to have a few "drone" devices with just snapcast and maybe some other stuff for home automation.  Wanted Ubuntu because I have more experience with it than others.  And I thought this would be easy.  (HA!)  At least I've learned a lot.

Thank you for your thoughts,


Matthew


  Big Little Disable
Posted by: nifares - 09-04-2018, 05:35 AM - Forum: General Discussion on ROCKPRO64 - Replies (1)

hello, i'm not a fan of low core, how can i disable the little core, they should not be visible also should not be addressed


  Marvel 9215 Sata controller support
Posted by: MisterA - 09-03-2018, 02:38 PM - Forum: RockPro64 Hardware and Accessories - Replies (6)

Could the following sata controller be supported on the rockpro?

http://www.sybausa.com/index.php?route=p...uct_id=722

It has pcie x4 and uses the marvel 9215 chipset.


  Pine64+ 1G and Pine LCD with Android 6.0.1
Posted by: Tanveer - 09-03-2018, 05:05 AM - Forum: Android on Pine A64(+) - No Replies

Please follow: Android 6.0 Tablet and TV (release candidate, maintained)

LCD:

To enable LCD, edit uEnv.txt from BOOT partition and uncomment:
Code:

Code:
disp_screen0=lcd


  No more update on ayufan's github release
Posted by: Ryan - 09-03-2018, 03:53 AM - Forum: Linux on RockPro64 - Replies (4)

I noticed there is no more update of ayufan's Github release since Jul-26, is the development put on hold?
https://github.com/ayufan-rock64/linux-build/releases


  startup failure Pine64
Posted by: yasser.moj - 09-03-2018, 02:15 AM - Forum: General - Replies (6)

I have PineA64  with Ubuntu image installed on SD card. sometimes it fails to startup and get into OS. the HDMI display recognizes the signal but still shows black screen for a while then back to "NO Signal" message. this happens only on startup.
if I plug out / plug in the power cable again, the system works correctly.
This issue occurs many times.
Any solution for that?
Thx for help,