Tiny Core Base > Raspberry Pi

Spotify connect (librespot) on piCore

<< < (2/4) > >>

Rich:
Hi Zizico2 & RomanoFX
Try changing this:

--- Code: ---/mnt/mmcblk0p2/tce/librespot --name YourSpotifyConnectDevicename --cache /tmp --bitrate 320 --initial-volume 100 --backend alsa --device hw:0,0 > /dev/null 2>&1 &
--- End code ---
to this:

--- Code: ---/mnt/mmcblk0p2/tce/librespot --name YourSpotifyConnectDevicename --cache /tmp --bitrate 320 --initial-volume 100 --backend alsa --device hw:0,0 > /tmp/errors.txt 2>&1 &
--- End code ---

Then see if there are any clues in  /tmp/errors.txt.

RomanoFX:
Thank you Rich for helping us!
Please find the error log


--- Quote ---INFO:librespot: librespot 14721f4 (2019-03-27). Built on 2019-04-06. Build ID: $
WARN:<unknown>: Failed to register IPv6 receiver: Os { code: 97, kind: Other, m$
WARN:<unknown>: dropping truncated packet from V4(192.168.0.1:5353)
INFO:librespot_core::session: Connecting to AP "gew1-accesspoint-a-z4wt.ap.spot$
INFO:librespot_core::session: Authenticated as "*********" !
INFO:librespot_playback::audio_backend::alsa: Using alsa sink
INFO:librespot_core::session: Country: "FR"
INFO:librespot_playback::player: Loading track "I Will Follow You Into The Dark
--- End quote ---
2 minutes after

--- Quote ---INFO:librespot_playback::player: Track "I Will Follow You Into The Dark" loaded
WARN:<unknown>: dropping truncated packet from V4(192.168.0.1:5353)

--- End quote ---

It takes 2 minutes to play music. I can ensure the connection is good (wired)

Thank you

RomanoFX:
After few attempts, few reboots, it works well!
I just added bluetooth player, it's perfect!  ;D


--- Quote ---/mnt/mmcblk0p2/tce/librespot --name "Spotify Client" --cache /tmp --bitrate 32
0 --initial-volume 70 --backend alsa --device hw:0,0 > /tmp/errors.txt 2>&1 &

bluealsa-aplay 00:00:00:00:00:00 > /tmp/error_bt.txt 2>&1 &
--- End quote ---

RomanoFX:
It works after I launch bluetooth playing or waiting few minutes.
The sound begins to play when that message occurs in dmesg logs

--- Quote ---[  299.364909] random: crng init done
[  299.364919] random: 4 urandom warning(s) missed due to ratelimiting
--- End quote ---
I am looking for haveged but still not found. An idea?

Thank you

Paul_123:
Your running out of random.   You will need to use rngd to feed random from the arm hw device.

https://github.com/nhorman/rng-tools

It’s got quite a few dependencies.  Most are available in extensions.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version