Pi Zero W not seen as BT device - Help troubleshooting needed
Hello after a successful install on Raspberry Pi 3 with pifiberry DAC+, I tried yesterday to install it on a Volumio fresh install on Raspberry pi Zero W with USB audio dongle.
First, I disabled the BCM2835 chip adding the line blacklist snd_bcm2835 to alsa-blacklist.conf.
All works fine in Volumio, I do have the sound output to USB audio out.
After installing Super-Simple-Raspberry-Pi-Audio-Receiver (choice 4). I saw the Pi Zero W as BT and managed to connect to it. The sound was choppy so I installed the script to watch BT connexion and disable wifi when BT device is connected.
But upon reboot and even if comment the script call in /etc/rc.local, I can't see the Pi Zero W ... I have rebooted several times, no more luck.
pulseaudio --version
pulseaudio 6.0
dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.65+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #1056 Fri Nov 24 13:53:32 GMT 2017
[ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] OF: fdt:Machine model: Raspberry Pi Zero W Rev 1.1
[ 0.000000] cma: Reserved 8 MiB at 0x1d800000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] On node 0 totalpages: 126976
[ 0.000000] free_area_init_node: node 0, pgdat c0916df0, node_mem_map dd3a4000
[ 0.000000] Normal zone: 1116 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 126976 pages, LIFO batch:31
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 125860
[ 0.000000] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=640 bcm2708_fb.fbheight=480 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:56:89:B4 vc_mem.mem_base=0x1fa00000 vc_mem.mem_size=0x20000000 splash quiet plymouth.ignore-serial-consoles dwc_otg.fiq_enable=1 dwc_otg.fiq_fsm_enable=1 dwc_otg.fiq_fsm_mask=0xF dwc_otg.nak_holdoff=1 console=ttyS0,115200 kgdboc=ttyS0,115200 console=tty1 imgpart=/dev/mmcblk0p2 imgfile=/volumio_current.sqsh elevator=noop rootwait bootdelay=5 logo.nologo vt.global_cursor_default=0 loglevel=0
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 470852K/507904K available (5958K kernel code, 491K rwdata, 1948K rodata, 396K init, 725K bss, 28860K reserved, 8192K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xdf800000 - 0xff800000 ( 512 MB)
lowmem : 0xc0000000 - 0xdf000000 ( 496 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc05d9d68 (5960 kB)
.init : 0xc0843000 - 0xc08a6000 ( 396 kB)
.data : 0xc08a6000 - 0xc0920f28 ( 492 kB)
.bss : 0xc0920f28 - 0xc09d6628 ( 726 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000029] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[ 0.000060] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[ 0.000148] bcm2835: system timer (irq = 27)
[ 0.000618] Console: colour dummy device 80x30
[ 0.000642] console [tty1] enabled
[ 0.000668] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[ 0.060303] pid_max: default: 32768 minimum: 301
[ 0.060729] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.060745] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.062043] Disabling memory control group subsystem
[ 0.062181] CPU: Testing write buffer coherency: ok
[ 0.062240] ftrace: allocating 21720 entries in 64 pages
[ 0.177934] Setting up static identity map for 0x8200 - 0x8238
[ 0.179825] devtmpfs: initialized
[ 0.189393] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[ 0.189803] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.189829] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.191086] pinctrl core: initialized pinctrl subsystem
[ 0.192497] NET: Registered protocol family 16
[ 0.195206] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 0.204845] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[ 0.204861] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.204964] Serial: AMBA PL011 UART driver
[ 0.207842] bcm2835-mbox 2000b880.mailbox: mailbox enabled
[ 0.208576] uart-pl011 20201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
[ 0.256920] bcm2835-dma 20007000.dma: DMA legacy API manager at df80d000, dmachans=0x1
[ 0.259700] SCSI subsystem initialized
[ 0.259957] usbcore: registered new interface driver usbfs
[ 0.260070] usbcore: registered new interface driver hub
[ 0.260257] usbcore: registered new device driver usb
[ 0.268002] raspberrypi-firmware soc:firmware: Attached to firmware from 2017-11-17 15:20
[ 0.270129] clocksource: Switched to clocksource timer
[ 0.323681] VFS: Disk quotas dquot_6.6.0
[ 0.323798] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.324106] FS-Cache: Loaded
[ 0.324463] CacheFiles: Loaded
[ 0.343785] NET: Registered protocol family 2
[ 0.345143] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.345232] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.345326] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.345423] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.345450] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.345745] NET: Registered protocol family 1
[ 0.346478] RPC: Registered named UNIX socket transport module.
[ 0.346489] RPC: Registered udp transport module.
[ 0.346494] RPC: Registered tcp transport module.
[ 0.346499] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.346979] Trying to unpack rootfs image as initramfs...
[ 2.126196] Freeing initrd memory: 13804K
[ 2.139137] hw perfevents: enabled with armv6_1176 PMU driver, 3 counters available
[ 2.141533] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 2.161137] FS-Cache: Netfs 'nfs' registered for caching
[ 2.162823] NFS: Registering the id_resolver key type
[ 2.162870] Key type id_resolver registered
[ 2.162877] Key type id_legacy registered
[ 2.167308] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 2.167673] io scheduler noop registered (default)
[ 2.167686] io scheduler deadline registered
[ 2.168140] io scheduler cfq registered
[ 2.174156] BCM2708FB: allocated DMA memory 5d900000
[ 2.174214] BCM2708FB: allocated DMA channel 0 @ df80d000
[ 2.179927] Console: switching to colour frame buffer device 80x30
[ 2.186419] bcm2835-rng 20104000.rng: hwrng registered
[ 2.186588] vc-mem: phys_addr:0x00000000 mem_base=0x1fa00000 mem_size:0x20000000(512 MiB)
[ 2.187492] vc-sm: Videocore shared memory driver
[ 2.211597] brd: module loaded
[ 2.223659] loop: module loaded
[ 2.223679] Loading iSCSI transport class v2.0-870.
[ 2.224559] usbcore: registered new interface driver smsc95xx
[ 2.224587] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 2.452821] Core Release: 2.80a
[ 2.452838] Setting default values for core params
[ 2.452875] Finished setting default values for core params
[ 2.520131] random: fast init done
[ 2.653235] Using Buffer DMA mode
[ 2.653246] Periodic Transfer Interrupt Enhancement - disabled
[ 2.653251] Multiprocessor Interrupt Enhancement - disabled
[ 2.653261] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 2.653330] Dedicated Tx FIFOs mode
[ 2.653958] WARN::dwc_otg_hcd_init:1032: FIQ DMA bounce buffers: virt = 0xdd914000 dma = 0x5d914000 len=9024
[ 2.653986] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled
[ 2.653996] dwc_otg: Microframe scheduler enabled
[ 2.654080] WARN::hcd_init_fiq:459: FIQ on core 0 at 0xc04532b0
[ 2.654092] WARN::hcd_init_fiq:460: FIQ ASM at 0xc045358c length 36
[ 2.654117] WARN::hcd_init_fiq:486: MPHI regs_base at 0xdf8a5000
[ 2.654189] dwc_otg 20980000.usb: DWC OTG Controller
[ 2.654277] dwc_otg 20980000.usb: new USB bus registered, assigned bus number 1
[ 2.654355] dwc_otg 20980000.usb: irq 56, io mem 0x00000000
[ 2.654406] Init: Port Power? op_state=1
[ 2.654412] Init: Power Port (0)
[ 2.654773] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 2.654790] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.654801] usb usb1: Product: DWC OTG Controller
[ 2.654811] usb usb1: Manufacturer: Linux 4.9.65+ dwc_otg_hcd
[ 2.654820] usb usb1: SerialNumber: 20980000.usb
[ 2.655965] hub 1-0:1.0: USB hub found
[ 2.656052] hub 1-0:1.0: 1 port detected
[ 2.656991] dwc_otg: FIQ enabled
[ 2.657001] dwc_otg: NAK holdoff enabled
[ 2.657007] dwc_otg: FIQ split-transaction FSM enabled
[ 2.657027] Module dwc_common_port init
[ 2.657527] usbcore: registered new interface driver usb-storage
[ 2.657962] mousedev: PS/2 mouse device common for all mice
[ 2.659594] bcm2835-wdt 20100000.watchdog: Broadcom BCM2835 watchdog timer
[ 2.660106] bcm2835-cpufreq: min=700000 max=1000000
[ 2.660768] sdhci: Secure Digital Host Controller Interface driver
[ 2.660776] sdhci: Copyright(c) Pierre Ossman
[ 2.661230] sdhost-bcm2835 20202000.sdhost: could not get clk, deferring probe
[ 2.663670] mmc-bcm2835 20300000.mmc: could not get clk, deferring probe
[ 2.663848] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.664366] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.664507] hidraw: raw HID events driver (C) Jiri Kosina
[ 2.664767] usbcore: registered new interface driver usbhid
[ 2.664774] usbhid: USB HID core driver
[ 2.665970] vchiq: vchiq_init_state: slot_zero = 0xdd980000, is_master = 0
[ 2.667769] [vc_sm_connected_init]: start
[ 2.671531] vc_vchi_sm_init: failed to open VCHI service (-1)
[ 2.671551] [vc_sm_connected_init]: failed to initialize shared memory service
[ 2.671566] [vc_sm_connected_init]: end - returning -1
[ 2.672072] Initializing XFRM netlink socket
[ 2.672110] NET: Registered protocol family 17
[ 2.672262] Key type dns_resolver registered
[ 2.674376] registered taskstats version 1
[ 2.683089] uart-pl011 20201000.serial: cts_event_workaround enabled
[ 2.683213] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2
[ 2.685597] sdhost: log_buf @ dd913000 (5d913000)
[ 2.760201] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[ 2.762728] mmc-bcm2835 20300000.mmc: mmc_debug:0 mmc_debug2:0
[ 2.762744] mmc-bcm2835 20300000.mmc: DMA channel allocated
[ 2.840357] of_cfs_init
[ 2.840479] of_cfs_init: OK
[ 2.844613] Freeing unused kernel memory: 396K
[ 2.844624] This architecture does not have kernel memory protection.
[ 2.864778] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 2.867454] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 2.869471] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 2.871121] Indeed it is in host mode hprt0 = 00021501
[ 2.933780] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 2.940803] mmc0: host does not support reading read-only switch, assuming write-enable
[ 2.943911] mmc0: new high speed SDHC card at address aaaa
[ 2.948706] mmcblk0: mmc0:aaaa SL16G 14.8 GiB
[ 3.011256] mmcblk0: p1 p2 p3
[ 3.051026] mmc1: new high speed SDIO card at address 0001
[ 3.140310] usb 1-1: new full-speed USB device number 2 using dwc_otg
[ 3.140785] Indeed it is in host mode hprt0 = 00021501
[ 3.373404] initramfs: Booting Volumio for for BCM2835
[ 3.373796] initramfs: This script mounts rootfs RO with an overlay RW layer.
[ 3.409696] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 3.422330] initramfs: IMGPART=/dev/mmcblk0p2
[ 3.422675] initramfs: IMGFILE=/volumio_current.sqsh
[ 3.423177] initramfs: Boot delay (except first time) will be 5 seconds
[ 3.432360] usb 1-1: New USB device found, idVendor=0d8c, idProduct=013c
[ 3.432381] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3.432391] usb 1-1: Product: USB PnP Sound Device
[ 3.432400] usb 1-1: Manufacturer: C-Media Electronics Inc.
[ 3.445462] input: C-Media Electronics Inc. USB PnP Sound Device as /devices/platform/soc/20980000.usb/usb1/1-1/1-1:1.3/0003:0D8C:013C.0001/input/input0
[ 3.502699] initramfs: /dev/mmcblk0p2:
[ 3.510746] hid-generic 0003:0D8C:013C.0001: input,hidraw0: USB HID v1.00 Device [C-Media Electronics Inc. USB PnP Sound Device] on usb-20980000.usb-1/input3
[ 3.541043] EXT4-fs (mmcblk0p2): recovery complete
[ 3.542851] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 3.545824] initramfs: Doing a 5 second delay here to give kernel load a headstart
[ 8.555066] initramfs: Checking for USB updates
[ 8.751663] initramfs: No USB device detected (when incorrect, try adding 'bootdelay=5' to your boot cmdline)
[ 8.890418] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 8.925098] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 9.223832] EXT4-fs (mmcblk0p3): recovery complete
[ 9.225509] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
[ 9.230646] initramfs: With Option:
[ 9.301606] initramfs: VOLUMIO_VERSION="2.348"
[ 9.302039] initramfs: Finish initramfs, continue booting Volumio
[ 9.990668] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[ 9.991327] systemd[1]: Detected architecture 'arm'.
[ 10.197296] NET: Registered protocol family 10
[ 10.199282] systemd[1]: Inserted module 'ipv6'
[ 10.205158] systemd[1]: Set hostname to <concert-boy>.
[ 10.888306] systemd[1]: [/lib/systemd/system/mpd.service:18] Unknown lvalue 'ProtectKernelTunables' in section 'Service'
[ 10.888441] systemd[1]: [/lib/systemd/system/mpd.service:19] Unknown lvalue 'ProtectControlGroups' in section 'Service'
[ 10.888561] systemd[1]: [/lib/systemd/system/mpd.service:20] Unknown lvalue 'ProtectKernelModules' in section 'Service'
[ 10.888722] systemd[1]: [/lib/systemd/system/mpd.service:23] Unknown lvalue 'RestrictNamespaces' in section 'Service'
[ 10.979621] systemd[1]: Configuration file /lib/systemd/system/volume-watcher.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[ 11.052832] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[ 11.830648] fuse init (API version 7.26)
[ 11.959196] i2c /dev entries driver
[ 13.120574] Adding 524284k swap on /data/swapfile. Priority:-1 extents:3 across:540668k SSFS
[ 13.190123] random: crng init done
[ 14.311064] systemd-udevd[201]: starting version 215
[ 15.867277] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000
[ 17.900652] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[ 17.919020] usbcore: registered new interface driver brcmfmac
[ 18.420685] brcmfmac: Firmware version = wl0: Aug 7 2017 00:46:29 version 7.45.41.46 (r666254 CY) FWID 01-f8a78378
[ 18.421810] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 7.11.15 Compiler: 1.24.2 ClmImport: 1.24.1 Creation: 2014-05-26 10:53:55 Inc Data: 9.10.41 Inc Compiler: 1.29.4 Inc ClmImport: 1.36.3 Creation: 2017-08-07 00:37:47
[ 19.457125] snd_usb_audio: unknown parameter 'nrpacks' ignored
[ 19.457145] snd_usb_audio: unknown parameter 'nrpacks' ignored
[ 19.853832] usbcore: registered new interface driver snd-usb-audio
[ 19.873546] systemd-journald[168]: Received request to flush runtime journal from PID 1
[ 21.911877] brcmfmac: power management disabled
[ 23.750344] brcmfmac: power management disabled
[ 25.779799] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 26.430784] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
[ 46.458466] Bluetooth: Core ver 2.22
[ 46.458641] NET: Registered protocol family 31
[ 46.458649] Bluetooth: HCI device and connection manager initialized
[ 46.458671] Bluetooth: HCI socket layer initialized
[ 46.458684] Bluetooth: L2CAP socket layer initialized
[ 46.458737] Bluetooth: SCO socket layer initialized
[ 46.750247] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 46.750260] Bluetooth: BNEP filters: protocol multicast
[ 46.750290] Bluetooth: BNEP socket layer initialized
[ 48.793754] uart-pl011 20201000.serial: no DMA platform data
[ 64.454678] brcmfmac: brcmf_cfg80211_stop_ap: setting INFRA mode failed -7
[ 67.220558] brcmfmac: power management disabled
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 5: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
I changed the order of usb sound device in /etc/modprobe.d/alsa-base.conf from 5 (set by volumio) to 0.
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
I still have the same issue ...
Hello, I tried a fresh install in custom mode, juste BT and usb soundcard but still the Raspberry Pi Zero W isn't seen as BT device. What commands can I do to spot what is not working ? What process are supposed to expose the pi as a BT sound device ? And where are the config and log files ?
Thank-you.
what OS is installed on the fresh install?
I installed latest Volumio 2 image. On a fresh Jessie install, your installation works but then I am not able to setup up Volumio on top of a raspbian Jessie Lite install ...
My goal is just to add Bluetooth connectivity to a Volumio install on Raspberry Pi Zero W.
Thank-you for your help.
BTW, uname -a gives :
Linux concertboy 4.9.65+ #1056 Fri Nov 24 13:53:32 GMT 2017 armv6l GNU/Linux
2018-02-05 6:01 GMT+01:00 Brett Reinhard [email protected]:
what OS is installed on the fresh install?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BaReinhard/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/issues/112#issuecomment-362982218, or mute the thread https://github.com/notifications/unsubscribe-auth/Ahyy7As-4h7ZfuyzinHQtV96d-8nSF7Fks5tRos0gaJpZM4Rsaxd .
Hi,
I'm testing your fantastic script on a RPi0W too. My installation (Raspbian lite) is fresh (apt-get update and upgrade) and customed by your script (menu 6 - BT only or BT + AirPlay).
I'm encountering weird behaviours : The RPi0 is starting well, no special dmesg error messages, the BT is detected by my smartphone, it can connect to it but :
- Sometimes (most of the time) the sound cannot be heard, although AirPlay sound works well.
- When the sound can be heard, I can connect, disconnect many times, it works perfectly.
- When I plug the same SD card OS in a RPi3, everything works fine every time.
I think the CPU load at start is not the same and that could affect the process start flow (order). I did some outputs (dmesg, systemctl status bluetooth* and pulseaudio), but they seem irrelevant.
I'm volonteer to do some tests and traces but I have to admit that I'm not familiar with Pulseaudio and Bluetooth neither.
I found tonight that if I manually issue the command sudo /etc/init.d/bluetooth-agent start after Volumio started (earing the starting sound), I see the Pi ZeroW as BT device and I can connect to it.
Then to get the sound work I have to issue the command sudo /etc/init.d/pulseaudio start ...
What can I do to get this OK at startup without having to issue any command ?
Having slept on it, I set up this morning before leaving home a complete workaround.
So to have this script work to add BT connectivity as a speaker to my Volumio 2 install, here is what I did. Consider that I use an USB dongle as audio out device as default jack output is very bad on Rpi.
- Install and configure Volumio 2 on the Rpi 0w with the latest Volumio 2 image
- Install Super-Simple-Raspberry-Pi-Audio-Receiver-Install using the BT only choice (choice 4), note that I used the volumio-fix version on github (
git checkout volumio-fix) - Disable onboard audio :
sudo nano /etc/modprobe.d/alsa-blacklist.conf - Enter the following line :
blacklist snd_bcm2835 - Save the file and reboot
sudo reboot - Create a script that I called
bt_audio.sh
#!/bin/bash
# Wait 3 minutes before starting the script
sleep 180
# Make Rpi Zero W seen as a BT device
/etc/init.d/bluetooth-agent stop
sleep 5
/etc/init.d/bluetooth-agent start
# Enable streaming audio to BT device
/etc/init.d/pulseaudio stop
sleep 5
/etc/init.d/pulseaudio start
# Wait 10 seconds before continuining the script
sleep 10
# When BT connexion started : Wifi OFF
# When BT connexion stopped : Wifi ON
while true
do
RES=`inotifywait -q -e CREATE,DELETE /dev/input/`case "$RES" in
"/dev/input/ DELETE event1")
ifconfig wlan0 up
;;
- Make the script executable
chmod +x /home/volumio/bt_audio.sh - Add these lines to
/etc/rc.local
# enable wifi first to always gain access on boot
ifconfig wlan0 up
# script to stop wifi when connected to BT
/home/volumio/bt_audio.sh &
- Reboot the Rpi 0w and 3 minutes after earing the Volumio startup sound, I am able to connect to my Rpi 0w as a BT speaker !
sudo reboot
Perhaps theses informations would help BaReinhard tweak its Volumio branch of this great script !