Open lellmauer opened 6 years ago
No worries I should have done a better job with the details. Two questions:
Thanks for the quick reply. Yes, I am using various i2s DACs for testing. I have a Mamboberry LS, Hifiberry, Suptronics X5000 (Hifiberry compatible), and a small IQAudio DAC for the Zero, can't remember the name. I did the installation via SSH, I didn't even know there was a plugin. So after writing the Volumio image to the SD card, I followed the steps you described:
git clone https://github.com/bareinhard/super-simple-raspberry-pi-audio-receiver-install cd super-simple-raspberry-pi-audio-receiver-install git checkout volumio-fix sudo ./install.sh
I chose option #4 and a device name. Installation took some time, but completed succesfully. Now I can connect my phone to the Pi, but this is where I am stuck at the moment. How am I supposed to play back files via BT? Just start the playback on the external device and Volumio will detect it automatically, or do I have to select a certain menu option?
Would be great if you had any hints for troubleshooting. I am not really a Linux expert, so I am afraid I cannot contribute codewise, but if you need someone for testing certain things, just let me know.
Best regards,
Lars
On 09 January 2018 at 13:16 Brett Reinhard notifications@github.com wrote:
No worries I should have done a better job with the details. Two questions: 1. Are you running an i2s dac? 2. Did you install from the volumio plugin or through ssh? (ssh seems to be better, as i had to do a few hacky things to get the plugin to work, and I need to look more into who plugins are run) — 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/103#issuecomment-356268154 , or mute the thread https://github.com/notifications/unsubscribe-auth/AgD6MC5mI7RTr56sSksMAhL2Qcb8oozgks5tI1i4gaJpZM4RXZXF .
Thanks Lars, for now the use of Bluetooth isn’t directly integrated with volumio it should just start playing there are some things I’ll need to be able to diagnose the issue:
Make sure you’re device is connected to the Pi and you’re playing some sort of music.
Then run the following commands
sudo pactl list sinks
sudo pactl list sink-inputs
And reply with the outputs of both.
Hi Brett,
sorry it took me so long to reply, it was my daughter's birthday yesterday and I was caught up in family stuff the whole week.
Anyway, here's the output:
Sinks
Sink #0 State: RUNNING Name: alsa_output.platform-soc_audio.analog-stereo Description: bcm2835 ALSA Analog Stereo Driver: module-alsa-card.c Sample Specification: s16le 2ch 44100Hz Channel Map: front-left,front-right Owner Module: 1 Mute: no Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB balance 0.00 Base Volume: 56210 / 86% / -4.00 dB Monitor Source: alsa_output.platform-soc_audio.analog-stereo.monitor Latency: 93257 usec, configured 100000 usec Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY Properties: alsa.resolution_bits = "16" device.api = "alsa" device.class = "sound" alsa.class = "generic" alsa.subclass = "generic-mix" alsa.name = "bcm2835 ALSA" alsa.id = "bcm2835 ALSA" alsa.subdevice = "0" alsa.subdevice_name = "subdevice #0" alsa.device = "0" alsa.card = "0" alsa.card_name = "bcm2835 ALSA" alsa.long_card_name = "bcm2835 ALSA" alsa.driver_name = "snd_bcm2835" device.bus_path = "platform-soc:audio" sysfs.path = "/devices/platform/soc/soc:audio/sound/card0" device.string = "hw:0" device.buffering.buffer_size = "17640" device.buffering.fragment_size = "1760" device.access_mode = "mmap" device.profile.name = "analog-stereo" device.profile.description = "Analog Stereo" device.description = "bcm2835 ALSA Analog Stereo" alsa.mixer_name = "Broadcom Mixer" module-udev-detect.discovered = "1" device.icon_name = "audio-card" Ports: analog-output: Analog Output (priority: 9900) Active Port: analog-output Formats: pcm
Sink #1 State: SUSPENDED Name: alsa_output.platform-soc_sound.analog-stereo Description: snd_rpi_hifiberry_dac Analog Stereo Driver: module-alsa-card.c Sample Specification: s16le 2ch 44100Hz Channel Map: front-left,front-right Owner Module: 2 Mute: no Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB balance 0.00 Base Volume: 65536 / 100% / 0.00 dB Monitor Source: alsa_output.platform-soc_sound.analog-stereo.monitor Latency: 0 usec, configured 0 usec Flags: HARDWARE DECIBEL_VOLUME LATENCY Properties: alsa.resolution_bits = "16" device.api = "alsa" device.class = "sound" alsa.class = "generic" alsa.subclass = "generic-mix" alsa.name = "" alsa.id = "HifiBerry DAC HiFi pcm5102a-hifi-0" alsa.subdevice = "0" alsa.subdevice_name = "subdevice #0" alsa.device = "0" alsa.card = "1" alsa.card_name = "snd_rpi_hifiberry_dac" alsa.long_card_name = "snd_rpi_hifiberry_dac" alsa.driver_name = "snd_soc_hifiberry_dac" device.bus_path = "platform-soc:sound" sysfs.path = "/devices/platform/soc/soc:sound/sound/card1" device.string = "hw:1" device.buffering.buffer_size = "17640" device.buffering.fragment_size = "1764" device.access_mode = "mmap" device.profile.name = "analog-stereo" device.profile.description = "Analog Stereo" device.description = "snd_rpi_hifiberry_dac Analog Stereo" module-udev-detect.discovered = "1" device.icon_name = "audio-card" Ports: analog-output: Analog Output (priority: 9900) Active Port: analog-output Formats: pcm
Sink Inputs
Sink Input #0 Driver: module-loopback.c Owner Module: 16 Client: n/a Sink: 0 Sample Specification: s16le 2ch 43236Hz Channel Map: front-left,front-right Format: pcm, format.sample_format = "\"s16le\"" format.rate = "44100" format.channels = "2" format.channel_map = "\"front-left,front-right\"" Corked: no Mute: no Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB balance 0.00 Buffer Latency: 98297 usec Sink Latency: 94470 usec Resample method: speex-fixed-1 Properties: media.role = "abstract" module-stream-restore.id = "sink-input-by-media-role:abstract" media.name = "Loopback from Moto G (4)" media.icon_name = "audio-card-bluetooth"
Hope this helps you to help me ;-)
Thanks for your support!
Best regards, Lars
On 09 January 2018 at 17:28 Brett Reinhard notifications@github.com wrote:
Thanks Lars, for now the use of Bluetooth isn’t directly integrated with volumio it should just start playing there are some things I’ll need to be able to diagnose the issue: Make sure you’re device is connected to the Pi and you’re playing some sort of music. Then run the following commands sudo pactl list sinks sudo pactl list sink-inputs And reply with the outputs of both. — 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/103#issuecomment-356336699 , or mute the thread https://github.com/notifications/unsubscribe-auth/AgD6MIehUh13XdVGjlE5rTeatZcU3dCKks5tI5PHgaJpZM4RXZXF .
It’s all good @lars I hope your daughter had a nice birthday. How old did she turn?
In regards to the playback issue, what you can do to solve this issue is edit /usr/local/bin/bluez-udev
On the second line there is something that says audio_sink=0
change that to audio_sink=1
next time you connect it should automatically play to the hifiberry amp.
Thanks, that worked fine. Music playback from my phone is now streamed on the RPi. 😃
Playback is stuttering heavily though, even if the phone is lying right next to the Pi. I tried playback from music stored on the phone via Jet Audio Player as well as streamed vis Spotify app.
Any hints on how to improve this? Or is is better to treat this in a new issue, as this one is solved.
Again, thanks for your help, if you need me to test anything, let me know.
Cheers, Lars
Oh, nearly forgot.She turned 18, therefore it had to be somewhat bigger this time... 😉
Everything went fine, and now proud daddy is looking forward to having more time for hobbying in the future 😜
Haha very nice, I could imagine 18 is a big deal. Luckily my daughter just turned 2 so I have some time before the big 18.
That’s odd that playback is choppy, a start would be to take a look at the syslog,
cat /var/log/syslog
As well as running
pulseaudio —version
I would first try restarting the pi and try again before the previous commands.
Hello, same thing here, Volumio on Raspberry pi 3 with Pifi DAC+ and with the audio_sink=1 I do have sound but it doesn't work properly. It stops about twice a second ... Streaming is no working flawlessly :-(
Do you need anything from me to troubleshoot ?
Try running the commands I suggested the post right above your comment.
Also, are these connected to the internet via WiFi or Ethernet?
My RPi3 is connected via Wifi to the internet. You think that if I turn off wifi, it will work better ?
2018-01-15 0:04 GMT+01:00 Brett Reinhard notifications@github.com:
Also, are these connected to the internet via WiFi or Ethernet?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/BaReinhard/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/issues/103#issuecomment-357550442, or mute the thread https://github.com/notifications/unsubscribe-auth/Ahyy7B6R544w2BLv_du7O2XPK_num9EJks5tKogXgaJpZM4RXZXF .
pulseaudio -version pulseaudio: invalid option -- 'e' E: [pulseaudio] main.c: Failed to parse command line.
cat /var/lightshowpi/syslog cat: /var/lightshowpi/syslog: No such file or directory
@frmelle Unfortunately, streaming bluetooth and using wifi is a bug with the drivers that Raspbian uses for the broadcom chipset. It been reported to the RPI foundation, but it doesn't seem like it's that high a priority at the moment. A current workout around is using a ethernet connection or an external wifi dongle to handle connection to wifi. You can take a look at the issue here: https://github.com/raspberrypi/linux/issues/1402
For pulseaudio it should be
pulseaudio --version
at the log statement should have been
cat /var/log/syslog
Sorry I was commenting from my phone it must have autocorrected to lightshowpi, kinda odd.
Here are the logs 👍
volumio@radiopi:~$ pulseaudio --version
pulseaudio 6.0
But I don't have any syslog
volumio@radiopi:~$ ls /var/log/
boot.log btmp volumio.log wtmp
volumio@radiopi:~$ dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.65-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #1056 SMP Fri Nov 24 13:58:07 GMT 2017
[ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt:Machine model: Raspberry Pi 3 Model B Rev 1.2
[ 0.000000] cma: Reserved 8 MiB at 0x3dc00000
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] On node 0 totalpages: 255488
[ 0.000000] free_area_init_node: node 0, pgdat 80c6f380, node_mem_map bd336000
[ 0.000000] Normal zone: 2246 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 255488 pages, LIFO batch:31
[ 0.000000] percpu: Embedded 14 pages/cpu @be5af000 s25600 r8192 d23552 u57344
[ 0.000000] pcpu-alloc: s25600 r8192 d23552 u57344 alloc=14*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 253242
[ 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 vc_mem.mem_base=0x3f000000 vc_mem.mem_size=0x3f600000 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: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 977288K/1021952K available (7168K kernel code, 486K rwdata, 2012K rodata, 1024K init, 770K bss, 36472K reserved, 8192K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xbe800000 - 0xff800000 (1040 MB)
lowmem : 0x80000000 - 0xbe600000 ( 998 MB)
modules : 0x7f000000 - 0x80000000 ( 16 MB)
.text : 0x80008000 - 0x80800000 (8160 kB)
.init : 0x80b00000 - 0x80c00000 (1024 kB)
.data : 0x80c00000 - 0x80c79834 ( 487 kB)
.bss : 0x80c7b000 - 0x80d3b964 ( 771 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 19.20MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[ 0.000007] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[ 0.000018] Switching to timer-based delay loop, resolution 52ns
[ 0.000301] Console: colour dummy device 80x30
[ 0.000318] console [tty1] enabled
[ 0.000338] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[ 0.000353] pid_max: default: 32768 minimum: 301
[ 0.000661] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000671] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.001734] Disabling memory control group subsystem
[ 0.001806] CPU: Testing write buffer coherency: ok
[ 0.001841] ftrace: allocating 22397 entries in 66 pages
[ 0.048961] CPU0: update cpu_capacity 1024
[ 0.048977] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.049012] Setting up static identity map for 0x100000 - 0x100034
[ 0.050878] CPU1: update cpu_capacity 1024
[ 0.050886] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.051572] CPU2: update cpu_capacity 1024
[ 0.051578] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.052250] CPU3: update cpu_capacity 1024
[ 0.052257] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.052346] Brought up 4 CPUs
[ 0.052356] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[ 0.052360] CPU: All CPU(s) started in HYP mode.
[ 0.052364] CPU: Virtualization extensions available.
[ 0.053098] devtmpfs: initialized
[ 0.065023] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[ 0.065305] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.065321] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.065853] pinctrl core: initialized pinctrl subsystem
[ 0.066771] NET: Registered protocol family 16
[ 0.069269] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 0.078412] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.078418] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.078560] Serial: AMBA PL011 UART driver
[ 0.080469] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[ 0.081004] uart-pl011 3f201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
[ 0.149807] bcm2835-dma 3f007000.dma: DMA legacy API manager at be80f000, dmachans=0x1
[ 0.151669] SCSI subsystem initialized
[ 0.151834] usbcore: registered new interface driver usbfs
[ 0.151912] usbcore: registered new interface driver hub
[ 0.152004] usbcore: registered new device driver usb
[ 0.158767] raspberrypi-firmware soc:firmware: Attached to firmware from 2017-11-17 15:20
[ 0.160435] clocksource: Switched to clocksource arch_sys_counter
[ 0.207427] VFS: Disk quotas dquot_6.6.0
[ 0.207504] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.207703] FS-Cache: Loaded
[ 0.207952] CacheFiles: Loaded
[ 0.220261] NET: Registered protocol family 2
[ 0.221155] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.221263] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.221448] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.221534] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.221576] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.221780] NET: Registered protocol family 1
[ 0.222187] RPC: Registered named UNIX socket transport module.
[ 0.222192] RPC: Registered udp transport module.
[ 0.222197] RPC: Registered tcp transport module.
[ 0.222201] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.222448] Trying to unpack rootfs image as initramfs...
[ 1.390096] Freeing initrd memory: 13804K
[ 1.396733] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[ 1.399111] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[ 1.415360] FS-Cache: Netfs 'nfs' registered for caching
[ 1.416355] NFS: Registering the id_resolver key type
[ 1.416380] Key type id_resolver registered
[ 1.416385] Key type id_legacy registered
[ 1.418692] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 1.418808] io scheduler noop registered (default)
[ 1.418814] io scheduler deadline registered
[ 1.419066] io scheduler cfq registered
[ 1.424963] BCM2708FB: allocated DMA memory fdd10000
[ 1.424986] BCM2708FB: allocated DMA channel 0 @ be80f000
[ 1.430581] Console: switching to colour frame buffer device 80x30
[ 1.435434] bcm2835-rng 3f104000.rng: hwrng registered
[ 1.435560] vc-mem: phys_addr:0x00000000 mem_base=0x3f000000 mem_size:0x3f600000(1014 MiB)
[ 1.436113] vc-sm: Videocore shared memory driver
[ 1.450942] brd: module loaded
[ 1.459784] loop: module loaded
[ 1.459795] Loading iSCSI transport class v2.0-870.
[ 1.460343] usbcore: registered new interface driver smsc95xx
[ 1.460358] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 1.688448] Core Release: 2.80a
[ 1.688456] Setting default values for core params
[ 1.688485] Finished setting default values for core params
[ 1.888875] Using Buffer DMA mode
[ 1.888881] Periodic Transfer Interrupt Enhancement - disabled
[ 1.888885] Multiprocessor Interrupt Enhancement - disabled
[ 1.888891] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 1.888905] Dedicated Tx FIFOs mode
[ 1.889261] WARN::dwc_otg_hcd_init:1032: FIQ DMA bounce buffers: virt = 0xbdd04000 dma = 0xfdd04000 len=9024
[ 1.889284] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled
[ 1.889291] dwc_otg: Microframe scheduler enabled
[ 1.889338] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x805909a0
[ 1.889348] WARN::hcd_init_fiq:460: FIQ ASM at 0x80590d10 length 36
[ 1.889359] WARN::hcd_init_fiq:486: MPHI regs_base at 0xbe87a000
[ 1.889418] dwc_otg 3f980000.usb: DWC OTG Controller
[ 1.889451] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[ 1.889481] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[ 1.889527] Init: Port Power? op_state=1
[ 1.889531] Init: Power Port (0)
[ 1.889729] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.889739] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.889747] usb usb1: Product: DWC OTG Controller
[ 1.889754] usb usb1: Manufacturer: Linux 4.9.65-v7+ dwc_otg_hcd
[ 1.889762] usb usb1: SerialNumber: 3f980000.usb
[ 1.890605] hub 1-0:1.0: USB hub found
[ 1.890643] hub 1-0:1.0: 1 port detected
[ 1.891303] dwc_otg: FIQ enabled
[ 1.891307] dwc_otg: NAK holdoff enabled
[ 1.891311] dwc_otg: FIQ split-transaction FSM enabled
[ 1.891324] Module dwc_common_port init
[ 1.891545] usbcore: registered new interface driver usb-storage
[ 1.891770] mousedev: PS/2 mouse device common for all mice
[ 1.892721] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[ 1.893003] bcm2835-cpufreq: min=600000 max=1200000
[ 1.893406] sdhci: Secure Digital Host Controller Interface driver
[ 1.893410] sdhci: Copyright(c) Pierre Ossman
[ 1.893680] sdhost-bcm2835 3f202000.sdhost: could not get clk, deferring probe
[ 1.895859] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe
[ 1.895962] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.898576] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.898763] hidraw: raw HID events driver (C) Jiri Kosina
[ 1.898952] usbcore: registered new interface driver usbhid
[ 1.898956] usbhid: USB HID core driver
[ 1.899719] vchiq: vchiq_init_state: slot_zero = 0xbdd80000, is_master = 0
[ 1.901352] [vc_sm_connected_init]: start
[ 1.904738] vc_vchi_sm_init: failed to open VCHI service (-1)
[ 1.904746] [vc_sm_connected_init]: failed to initialize shared memory service
[ 1.904753] [vc_sm_connected_init]: end - returning -1
[ 1.905110] Initializing XFRM netlink socket
[ 1.905132] NET: Registered protocol family 17
[ 1.905253] Key type dns_resolver registered
[ 1.905902] Registering SWP/SWPB emulation handler
[ 1.906596] registered taskstats version 1
[ 1.912791] uart-pl011 3f201000.serial: cts_event_workaround enabled
[ 1.912852] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[ 1.914403] sdhost: log_buf @ bdd07000 (fdd07000)
[ 1.990466] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[ 1.992669] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[ 1.992677] mmc-bcm2835 3f300000.mmc: DMA channel allocated
[ 2.070559] of_cfs_init
[ 2.070644] of_cfs_init: OK
[ 2.073546] Freeing unused kernel memory: 1024K
[ 2.088360] mmc0: host does not support reading read-only switch, assuming write-enable
[ 2.090710] mmc0: new high speed SDHC card at address a150
[ 2.091680] mmcblk0: mmc0:a150 SD04G 3.75 GiB
[ 2.092056] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 2.093698] mmcblk0: p1 p2 p3
[ 2.093968] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 2.095992] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 2.098877] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 2.120584] Indeed it is in host mode hprt0 = 00021501
[ 2.188758] random: fast init done
[ 2.239459] initramfs: Booting Volumio for for BCM2835
[ 2.239663] initramfs: This script mounts rootfs RO with an overlay RW layer.
[ 2.252315] mmc1: new high speed SDIO card at address 0001
[ 2.258458] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 2.264108] initramfs: IMGPART=/dev/mmcblk0p2
[ 2.264265] initramfs: IMGFILE=/volumio_current.sqsh
[ 2.264479] initramfs: Boot delay (except first time) will be 5 seconds
[ 2.312197] initramfs: /dev/mmcblk0p2:
[ 2.320523] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 2.320667] Indeed it is in host mode hprt0 = 00001101
[ 2.550718] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[ 2.550729] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.551539] hub 1-1:1.0: USB hub found
[ 2.551632] hub 1-1:1.0: 5 ports detected
[ 2.699615] EXT4-fs (mmcblk0p2): recovery complete
[ 2.790311] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 2.792145] initramfs: Doing a 5 second delay here to give kernel load a headstart
[ 2.870478] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 3.000722] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 3.000733] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3.003584] smsc95xx v1.0.5
[ 3.094114] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:3b:7e:5f
[ 7.795992] initramfs: Checking for USB updates
[ 7.886230] initramfs: No USB device detected (when incorrect, try adding 'bootdelay=5' to your boot cmdline)
[ 8.084128] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 8.161741] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 9.147567] EXT4-fs (mmcblk0p3): recovery complete
[ 9.240185] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
[ 9.242578] initramfs: With Option:
[ 9.413086] initramfs: VOLUMIO_VERSION="2.348"
[ 9.413243] initramfs: Finish initramfs, continue booting Volumio
[ 9.801418] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[ 9.801743] systemd[1]: Detected architecture 'arm'.
[ 9.915332] NET: Registered protocol family 10
[ 9.916866] systemd[1]: Inserted module 'ipv6'
[ 9.920111] systemd[1]: Set hostname to <radiopi>.
[ 10.193390] systemd[1]: [/lib/systemd/system/mpd.service:18] Unknown lvalue 'ProtectKernelTunables' in section 'Service'
[ 10.193454] systemd[1]: [/lib/systemd/system/mpd.service:19] Unknown lvalue 'ProtectControlGroups' in section 'Service'
[ 10.193513] systemd[1]: [/lib/systemd/system/mpd.service:20] Unknown lvalue 'ProtectKernelModules' in section 'Service'
[ 10.193586] systemd[1]: [/lib/systemd/system/mpd.service:23] Unknown lvalue 'RestrictNamespaces' in section 'Service'
[ 10.234650] systemd[1]: Configuration file /lib/systemd/system/volume-watcher.service is marked executable. Please remove executable permission bits. Proceeding anyway.
[ 10.265897] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[ 10.733640] fuse init (API version 7.26)
[ 10.742939] systemd-udevd[208]: starting version 215
[ 10.814831] i2c /dev entries driver
[ 11.116376] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[ 11.525567] snd_bcm2835: unknown parameter 'index' ignored
[ 11.595940] snd-rpi-hifiberry-dacplus soc:sound: ASoC: CPU DAI (null) not registered - will retry
[ 11.601947] snd-rpi-hifiberry-dacplus soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[ 11.841774] snd-rpi-hifiberry-dacplus soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[ 11.842546] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[ 11.850965] usbcore: registered new interface driver brcmfmac
[ 11.851811] snd-rpi-hifiberry-dacplus soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[ 12.057894] snd-rpi-hifiberry-dacplus soc:sound: pcm512x-hifi <-> 3f203000.i2s mapping ok
[ 12.148077] brcmfmac: Firmware version = wl0: Aug 7 2017 00:46:29 version 7.45.41.46 (r666254 CY) FWID 01-f8a78378
[ 12.148839] 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
[ 12.631958] systemd-journald[189]: Received request to flush runtime journal from PID 1
[ 12.908951] brcmfmac: power management disabled
[ 13.832792] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 13.883951] brcmfmac: power management disabled
[ 14.351514] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 14.682841] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[ 17.082685] random: crng init done
[ 17.735239] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 17.740300] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 17.817982] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 17.822923] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 17.830107] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 17.862988] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 18.595442] Bluetooth: Core ver 2.22
[ 18.595516] NET: Registered protocol family 31
[ 18.595522] Bluetooth: HCI device and connection manager initialized
[ 18.595545] Bluetooth: HCI socket layer initialized
[ 18.595559] Bluetooth: L2CAP socket layer initialized
[ 18.595593] Bluetooth: SCO socket layer initialized
[ 18.659573] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 18.659583] Bluetooth: BNEP filters: protocol multicast
[ 18.659602] Bluetooth: BNEP socket layer initialized
[ 19.571194] uart-pl011 3f201000.serial: no DMA platform data
[ 24.056256] Bluetooth: HCI UART driver ver 2.3
[ 24.056269] Bluetooth: HCI UART protocol H4 registered
[ 24.056274] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 24.056457] Bluetooth: HCI UART protocol Broadcom registered
[ 24.110264] Bluetooth: RFCOMM TTY layer initialized
[ 24.110294] Bluetooth: RFCOMM socket layer initialized
[ 24.110315] Bluetooth: RFCOMM ver 1.11
[ 27.824031] brcmfmac: brcmf_cfg80211_stop_ap: setting INFRA mode failed -7
[ 45.604486] FS-Cache: Netfs 'cifs' registered for caching
[ 45.605310] Key type cifs.spnego registered
[ 45.605332] Key type cifs.idmap registered
[ 49.346617] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 575.108083] input: 94:8B:C1:78:5E:79 as /devices/virtual/input/input0
[ 576.823720] pcm512x 1-004d: No SCLK, using BCLK: -2
[ 587.133507] pcm512x 1-004d: No SCLK, using BCLK: -2
Ok all looks good. Can you try connecting the pi to an Ethernet cable and see if the stutter continues?
I disabled wifi and all is working perfectly !
So I went to autostart (/etc/rc.local) at launch this script. I works perfectly :-)
#!/bin/bash
# enable wifi first to always gain access on boot
ifconfig wlan0 up
# 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 event0")
ifconfig wlan0 up
;;
"/dev/input/ CREATE event0")
ifconfig wlan0 down
;;
esac
done &
Same here, when connected via Ethernet with WiFi disabled, music playback works fine. Since I need the wireless connection, I will give it another try with an external dongle tonight. Will get back with the results.
i read about the problem, that onboard bluetooth and wireless still dont work flawlessly on rapsberry 3b, so i use a dongle for wifi now and this works great. hope this will be fixed soon. but as i see, this is nothing BaReinhard can do. :(
edit: see here for more: https://github.com/raspberrypi/linux/issues/1402
as a site note: with the new settings in bluez-udev: audio_sink=1 the soudn doesnt work for me with onboard-sound anymore. i changed it back to 0 and it works, @BaReinhard are you able to get this automated within your install-script?
@silelmot yeah that should be an easy fix, it’ll have to wait until I get some time. The reason it doesn’t work with 1 is 1 means it’s expecting more than one audio source , I.e. a dac or usb sound card.
For both BT and Airplay services installed, if you use the disable_wifi_on_bt.sh script and you connect to the BT, the WiFi will be disabled. But the shairport-sync won't have the time to broadcast the end of its service. So, if you use an iOS device, you would see for a long time the AirPlay service enabled although it is not. I modified the script :
#!/bin/bash
while true
do
RES=`inotifywait -q -e CREATE,DELETE /dev/input/`
case "$RES" in
"/dev/input/ DELETE event0")
ifconfig wlan0 up
systemctl start shairport-sync
;;
"/dev/input/ CREATE event0")
systemctl stop shairport-sync
sleep 1
ifconfig wlan0 down
;;
esac
done &
Now on a BT connection, the shairport-sync service is disabled and enabled again when WiFi comes up.
Ok, so it is quite strange that on a Volumio installation (I retried yesterday with the latest image 12-02-2018 V2.362) and I still haven't any BT connection showing up ...
The thing is that as D10Z when I install your script upon a fresh raspbian install, it works ... I can't figure out what I am missing :-(
2018-02-13 18:16 GMT+01:00 D10Z notifications@github.com:
For both BT and Airplay services installed, if you use the disable_wifi_on_bt.sh script and you connect to the BT, the WiFi will be disabled. But the shairport-sync won't have the time to broadcast the end of its service. So, if you use an iOS device, you would see for a long time the AirPlay service enabled although it is not. I modified the script :
!/bin/bash`
while true do RES=
inotifywait -q -e CREATE,DELETE /dev/input/
case "$RES" in "/dev/input/ DELETE event0") ifconfig wlan0 up systemctl start shairport-sync ;; "/dev/input/ CREATE event0") systemctl stop shairport-sync sleep 1 ifconfig wlan0 down ;; esac done &Now on a BT connection, the shairport-sync service is disabled and the enable again when WiFi comes up.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/BaReinhard/Super-Simple-Raspberry-Pi-Audio-Receiver-Install/issues/103#issuecomment-365337074, or mute the thread https://github.com/notifications/unsubscribe-auth/Ahyy7FmhuRcZcnMWQQX_MoYs9h_a-j4zks5tUcNbgaJpZM4RXZXF .
I haven’t checked recently if there was a new image for volumio. If they updated their pre baked image there may be some issues with the installation as it was already pretty fragile with the older image.
Does anyone got it work on Volumio 2.389 with raspberry pi 3b+ ? Or do i have to use raspbian? Install on Volumio 2.389 ends with this error: SSRPARI [Thu Apr 26 18:06:08 UTC 2018] Dependency libcap-dev already met... SSRPARI [Thu Apr 26 18:06:08 UTC 2018] Running su volumio -c ./bt_pa_config.sh... SSRPARI [Thu Apr 26 18:06:08 UTC 2018] Executing sudo cp usr/local/bin/volume-watcher.py Fatal error encountered: 'sudo cp usr/local/bin/volume-watcher.py /usr/local/bin/volume-watcher.py' failed Fatal error encountered: su volumio -c ./bt_pa_config.sh failed Can anyone help me?
Hello @flasche1 , same thing happened to me. I was able to complete installation following a couple of tips spread in blog:
Thanks for your help @s1m00. It worked after I changed only all "sudo" to "sudo -S", no deleting of a "exc" was needed. Best regards, Andi
Hi there, I installed Volumio 2.348 yesterday on an RPi 3. Afterwards I followed the steps you described in the Volumio forum (https://volumio.org/forum/volumio-bluez-alsa-a2dp-bluetooth-support-t6130-20.html). Installation went well and I could connect my phone to the Pi after it. When playing music on the phone, no audio is played on the Pi (I have to admit though, that I am not sure what to set in Volumio to get the BT audio, so this might also cause the problem). You also mentioned that I "may need to configure what pulseaudio input sink goes to what output sink." - could you explain that? Sorry for the stupid questions and thanks in advance!