From 26c06e2c37238a38145fa307b39827fc6bddf11d Mon Sep 17 00:00:00 2001 From: "marcio.fernandes" Date: Fri, 21 Jan 2022 11:53:33 +0000 Subject: [PATCH] Update 'README.md' --- README.md | 99 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 53 insertions(+), 46 deletions(-) diff --git a/README.md b/README.md index ded8027..1e42268 100644 --- a/README.md +++ b/README.md @@ -22,8 +22,45 @@ Copy/download file [etc/asound.conf](etc/asound.conf) to /etc/ Reboot +## Bluealsa/bluealsa-aplay + *Using pi as bluetooth speaker* + +### Install + + sudo apt update && sudo apt install bluealsa -y + +### Start on boot + + sudo service bluealsa enable && sudo service bluealsa start + +### How to use + +#### Manual initialization + + bluealsa-aplay 00:00:00:00:00:00 + +#### Automatically on boot +ALSA only allows one application using sound (bad sound quality experience with DMUX or pulseaudio). To control service start/stop use onlyone utility + + +#### Service Setup +**Atention! Step not required if using onlyone utility** + +*if used with squeezelite only one can be used on boot* +Download/copy file [etc/systemd/system/bluealsaaplay.service](etc/systemd/system/bluealsaaplay.service) to /etc/systemd/system/ + +Start service + + sudo systemctl start bluealsaaplay + +Start on boot + + sudo systemctl enable bluealsaaplay + + ## SqueezeLite -*Requires Logitech Media Server check [instructions](/marcio.fernandes/lms) for setup* +*Requires Logitech Media Server check [instructions](/marcio.fernandes/lms) for server setup* + ### Install 1. Check latest [version](https://sourceforge.net/projects/lmsclients/files/squeezelite/linux/) SqueezeLite 1. Download latest version @@ -47,63 +84,33 @@ Reboot sudo chmod +x /usr/local/bin/squeezelite -### Setup as service - +### Setup +ALSA only allows one application using sound (bad sound quality experience with DMUX or pulseaudio). To control service start/stop use onlyone utility + +#### Manual initialization + + /usr/bin/squeezelite + +#### Setup as service +**Atention! Step not required if using onlyone utility** Download/copy file [etc/systemd/system/squeezelite.service](etc/systemd/system/squeezelite.service) to /etc/systemd/system/ *check file for squeezelite configurations* *squeezelite --help for arguments* +*if used with bluealsa only one can be running* Start service - *if used with bluealsa only one can be running* - + sudo systemctl start squeezelite Enable on boot - *if used with bluealsa only one can be used on boot* - - sudo systemctl enable squeezelite - -## Bluealsa/bluealsa-aplay - *Using pi as bluetooth speaker* - -## Install - - sudo apt update && sudo apt install bluealsa -y - -## Setup as service - -Start on boot - - sudo service bluealsa enable && sudo service bluealsa start - -### bluealsa-aplay as service - Download/copy file [etc/systemd/system/bluealsaaplay.service](etc/systemd/system/bluealsaaplay.service) to /etc/systemd/system/ - -Enable service on boot - *if used with squeezelite only one can be used on boot* - - sudo systemctl enable bluealsaaplay - -Start service - *if used with squeezelite only one can be running* - - sudo systemctl start bluealsaaplay - -## bluealsa-aplay and Squeezelite - -Squeelite on boot - + sudo systemctl enable squeezelite - -Change to bluealsa-aplay - sudo sh -c 'systemctl stop squeezelite; systemctl start bluealsaaplay' +## onlyone - utility -Change to squeezelite - - sudo sh -c 'systemctl stop bluealsaaplay; systemctl start squeezelite' - + cd /srv + git clone https://git.limbosolutions.com/marcio.fernandes/onlyone.git