CS Forward

Month: July 2021

Multiple Bluetooth Audio Output through Audio MIDI Setup on macOS

I tried to connect multiple bluetooth speakers and get audio from all of them on Raspberry Pi, but no success. This is very simple with Audio MIDI Setup software on macOS.

Steps for Stereo Configuration (Basic Setup):

1. Connect all bluetooth speakers to your Mac.

2. Open the ‘Audio MIDI Setup’ software.

3. Create a ‘Multi-Output Device’ by clicking the + sign on the bottom left corner.

4. Set it as default sound output by clicking the volume icon on on the top bar.

5. Have fun!

Steps for Surround Sound (Advanced Setup):

1. Follow the steps 1 & 2 above.

2. Create a ‘Aggregate Device’ by clicking the + sign on the bottom left corner.

3. Configure your speakers.

  • I connected 3 bluetooth speakers in Hexagonal setting.
  • Each speaker has two channels. I named my speakers’ channels as follows:
    • Speaker 1 channels as a, b
    • Speaker 2 channels as c, d
    • Speaker 3 channels as e, f
  • In my configuration I did the following:
    • Set my channel c as my Left
    • Set my channel e as my Right
    • Set my channel d as my Left surround
    • Set my channel f as my Right surround
    • Set my channel a as Center
    • Set my channel b as Center

3. Double finger click on it and select “Use This Device For Sound Output”.

4. Have fun!

 

Credits:

https://support.apple.com/guide/audio-midi-setup/play-audio-through-multiple-devices-at-once-ams7c093f372/mac

https://support.apple.com/en-us/HT202000

Multiple Audio Output with Raspberry Pi

I spent a lot of time and tried connecting two bluetooth devices to get audio from Raspberry Pi 3B+, but it looks like there is no way to do this with Bluetooth 4.2. You can connect multiple bluetooth speakers to Raspberry Pi, but only one of them will sound. The other one is just a connected ‘card’ when you do:

pacmd list-cards

but it does not appear in ‘slave’ list when you do:

pacmd list-slaves

Following will give audio output from two sources, but with a relatively significant delay: (In my case, HDMI and Bluetooth)

pacmd list-sinks

pacmd load-module module-combine-sink sink_name=MyCombine

pacmd update-sink-proplist MyCombine sink_properties=MyCombine device.description=MyCombine

pacmd set-default-sink MyCombine

Change the Volume of Raspberry Pi OS Lite

Just do:

alsamixer

 

Credits:

https://www.bareconductive.com/blogs/resources/how-to-change-the-volume-on-the-pi-cap

Command Line VLC Controls on Raspberry Pi OS Lite

If you want play videos on a headless Raspberry Pi OS, you cannot pause or control the video. Following will let you control the vlc player:

vlc -I ncurses <filename>

Credits:
https://www.raspberrypi.org/forums/viewtopic.php?t=257395
https://wiki.videolan.org/Documentation:Modules/ncurses/

How to Backup/Restore Your Raspberry Pi SD Card on macOS

Steps for Backup

1. Mount your Raspberry Pi SD card to your Mac.

2. Find your SD card’s name:

diskutil list

3. and backup your diskX as myPiBackup.dmg:

sudo dd if=/dev/diskX of=~/myPiBackup.dmg

4. Enter your password when prompted.

5. Backup will take some time. If you want to see the process:

Control+T

6. Eject your SD card:

sudo diskutil eject /dev/rdiskX

 

Steps for Restoring

1. Mount your empty SD card to your Mac.

2. Find your SD card’s name:

diskutil list

3. Write your myPiBackup.dmg into your diskX.

diskutil unmountDisk /dev/diskX
sudo dd if=myPiBackup.dmg of=/dev/diskX

4. Enter your password when prompted.

5. Restoring will take some time. (31914983424 bytes transferred in 15260.841046 secs (2091299 bytes/sec)). If you want to see the process:

Control+T

6. Eject your SD card:

sudo diskutil eject /dev/rdiskX

 

Credits

https://howchoo.com/pi/create-a-backup-image-of-your-raspberry-pi-sd-card-in-mac-osx

Powered by WordPress & Theme by Anders Norén