Tiny Core Base > Raspberry Pi

Spotify connect (librespot) on piCore

<< < (3/4) > >>

RomanoFX:
Thank you for your message Paul.
I found rng-tools.tcz in repo but no random sources are available (tpm or nist) when I run it

Paul_123:
It should use. /dev/hwrng

chemanork:
Dear Gerrelt,

Thank you for preparing this solution and leave it available for the rest of us. I thought the same and found out through Google that someone else already did it!

I follow all the steps, first problem I had is that "aplay -l" and "cat /proc/asound/cards" did not work. I investigated a little and installing alsa and alsa-utils made it work.

Second problem is that both alsa and alsa-utils did not start in bootlocal.sh, I had to set them in /home/tc/.X.d/startupscript.sh in order to work.

The last problem I could not figure out yet is that "/mnt/mmcblk0p2/tce/librespot --name YourSpotifyConnectDevicename --cache /tmp --bitrate 320 --initial-volume 100 --backend alsa --device hw:0,0 > /dev/null 2>&1 &" does not start in neither bootlocal.sh or startupscript.sh. But if I run it in terminal it starts working.

What could it be?

chemanork:
I made it work. With a sleep command before librespot. It seemed libasound library was not loaded yet. With 3 seconds made the trick.

What is strange now is that if I disconnect from power the rbpi, when I turn it on again no sound will output. I have to reboot it in order to work...

chemanork:
Well, finally it works even when I unplug the rpi. These 2 lines reset the alsa driver:

sudo modprobe snd_bcm2835
sudo amixer cset numid=3 2

Found it here: https://www.raspberrypi.org/forums/viewtopic.php?t=246431.

Regarding my problems with running alsa and alsa-utils, my problem was that I had not include them in onboot.lst. Now librespot works without x server in bootlocal.sh

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version