Quantcast
Channel: Squeezebox : Community : Forums - Linux / Unix
Viewing all 1530 articles
Browse latest View live

Random Mix on PiCorePlayer

$
0
0
> My old server used to start a mix instantly but the Pi server takes
> about 7 seconds to start playback this is with a library of about
> 18,000.


What kind of mix? What UI are you using? And what i your database memory
setting (Settings/Advanced/Performance)?

--

Michael

Spotty on PiCorePlayer

$
0
0
Hi folks, Trying to get Spotify running on LMS, but when I open the "Connect to a Device" window in the Spotify app, it doesn't show the my PiCorePlayer LMS... Any suggestions?
FYI, piCorePlayer is version v4.1.2, Spotify app is 1.1.12.449.g4109e645, running on my Mac (OS 10.11.6)

Debian / OMV installation - location of cache...

$
0
0
Hello!

New installation of openmediavault; installed LMS 7.9.1 flawlessly.
I want to move the location of the cache to other drive; tried editing server.pref without luck, broke LMS requiring new installation...

Somewhere i stumbled across a reference til specifying the cachedir by adding an argument via command line ??? It this possible in linux??

Any help appreciated - i should add that my linux skills are limited, so...

Starting multiple Shairport-Sync Instances on PcP 5.0

$
0
0
Hi Folks,

I would like to start multiple shairport-snyc Instances on my PcP 5.0.

I have a 7.1 USB Audiocard which I split into 4 Stereo Channels.

So I now generated 4 PcP Instances via:

Code:

/usr/local/bin/squeezelite -n "Bath" -o stereosurround -a 80:::0: -m ab:cd:ef:12:34:01 -C 1 -G 8:L -z
/usr/local/bin/squeezelite -n "Kitchen" -o stereofront -a 80:::0: -m ab:cd:ef:12:34:02 -C 1 -G 8:L -z

and so on.

Now I want to do this also with Shairport-Sync, so that I can Stream to each room separately.

Can anyone give me a hint how I can reach my target?

I searched but couldn´t find a solution.

Thanks in Advance.

Sending audio to PCP player via Bluetooth - bluez-alsa?

$
0
0
I can't find the answer to this anywhere.

I want to pair my phone, or other bluetooth device to my PCP player (PI Zero with BT) and have the ability send audio out via my Justboom amp hat whilst keeping the squeezeplayer function alive

Surely that is possible using bluez-alsa? If so can I pair via SSH if not currently supported in GUI?

Pishrink for SD card backups

$
0
0
I imagine anyone who needs to know about this does so already since I am an amateur coder and usually way behind the curve. However, I didn't know about Pishrink and it helped me out of a hole over the weekend. I was getting some weird network errors and then LMS refused to scan music and I eventually concluded that the SD card was giving up the ghost. I thought I was ok however since I had a number of backups of the working SD card as image files. However, I ran into the usual issue of the backup image files being bigger than any of the spare SD cards I have, including two brand new ones. I was essentially stuffed at this point as the only way I knew of to fix the problem was to reduce the partition size of the card using GParted before making a new backup image file but the card was giving up the ghost so new copies weren't going to work! The answer was surprisingly easy, using Pishrink to get rid of all the unused space on one of my backup image files, (reducing it from around 32gig to 3.7 or so). Then using dd to write the image onto a fresh card with Pishrink expanding the image on boot to fill the new card.

Thanks to the developers of Pishrink you saved my bacon!

Regards

Jerry

Player doesn't reconnect after restarting LMS

$
0
0
Hello,
I have a player that fails to connect after an LMS restart.

I recently built a Linux Mint 19.2 PC and installed LMS 7.9.2 - 1565967976 using the Debian package. There's also this infomation that may be relevant, though it doesn't seem so to me.
- I'm running Mullvad VPN client with local browse enabled.
- I've been wrestling with sound since the git-go, and still am. This works for me for now, reliably: After a reboot, force-reload alsa and then start sound-dependent apps.

I have a minimal setup at the moment; a squeezelite player running as a daemon, and a Boom. Here's the problem.

I get LMS running and the two players playing. A situation occurs where I need to stop and restart LMS. When I do this, the Boom disappears from the player list. On the Boom there is a message "can't connect", and repeated attempts fail to connect it to LMS. There are no relevant messages in the server log. The Squeezctl app on my phone won't connect either. Disabling VPN on the host has no effect.

Now the really weird part, to me, is this problem persists through a reboot. Problem occurs, reboot and login, force-reload alsa and start the squeezelite player, and Boom still fails to connect.

The only thing that has worked is to restore from the last snapshot when this was all working. When I do that the Boom connects and all is well. (I've learned to take frequent snapshots.)

Edit:
To be clear, this problem only happens when I run 'sudo service logitechmediaserver stop' and then 'start'. If I add/remove a plugin and let LMS run the restart this probem doesn't happen.

Any ideas and suggestions would be most welcome.
Thanks,
~dean~

Auto start favorite

$
0
0
Hello,

For some time I've been running vers. 5 on my PiCoreplayer with LMS, Samba, Jivelite, local 3.5" TFT and internal hard disk. RaspPi 2B+.
Works flawlessly. On PcP 4.1 I has set Auto Start Favorite to a local Danish radio channel, and the radio started playing music after boot. In 5.0 it doesn't.
Perhaps because 2B+ is to too slow when booting?
It finds the radio channel just fine, but it set at Stop. So I need to touch Play to get music going.
Any ideas what causes this? Bug in 5.0?

Thanks Jan

Is piCore what I need? Help!

$
0
0
> On the other hand, if piCorePlayer is accepting logitech's original
> commend set, or something like it, I could adapt my server to send and
> receive what piCorePlayer likes.


You mentioned IR. Which makes me wonder whether you implemented a UI,
too? Or how else would you use the IR remote?

Because pCP does NOT implement the Classic's UI commands. That's part of
the player protocol. But squeezelite doesn't support displays.

Simple playback commands should not have changed though.

Why don't you fire up one of your Pis with pCP and give it a try?
--

Michael

ADAU1701 with piCorePlayer?

$
0
0
Hello,
I managed to get my ADAU1701 based Sure DAC running on Raspbian, basically using this guide and dto:
https://digital-audio-labs.jimdofree...01-i2s-driver/
Unfortunately, I couldn't get this running on piCorePlayer, which is what I need in the end:
After putting the dto in /boot/overlays and adding
Code:

dtoverlay=adau1701-i2s
to /boot/config.txt,
Code:

aplay -l
returns no soundcards found :(
Does anyone know how I could approach this? Anyways, the adau1701 kernel module is there...
Any help would be great! Thank you!

Station logo not shown

$
0
0
I have one Squeezebox Classic and two PCP players, one with a Hifiberry DAC+ pro and the official 7" screen and one with a 4.3" touchscreen and a Hifiberry AMP2. I also occasionally use Squeezeplayer on my phone and tablet.

When I add a station to my favorites list with my old Squeezebox classic, it then shows on the favorites list with its logo on all other players. Also when playing that station, the logo is displayed normally.

When I do the same on any of my PCP players, the logo is not shown, not in the favorites list and not when the station is playing.
Do I need to adjust something in PCP or is this a known problem?

Raspbian, Pi 3 B+ and LMS : scan problem with encoding

$
0
0
Hello,

I try unsuccessfully to run LMS on a Raspberry Pi 3 B+ with Raspbian Buster Lite. The music files are stored on an NTFS external hard drive. (I do not want to use piCorePlayer or Max2Play because the Raspberry Pi must host other applications than LMS.)

Everything works except the scan of the library (full rescan from scratch). These are the character sets (utf8 and others) that seems to generate the problem. The errors begin to appear in the second step of the analysis. The detection of files/directories is working properly. It's the analysis of new music files that generates errors.

scanner.log :
Code:

[19-09-15 10:42:35.0422] Slim::Utils::Scanner::Local::new (891) Handling new playlist file:///media/SAMSUNG/Musique/Classique/-%20Compilation%20-/Copland%20-%20Lutoslawski%20-%20Nielsen%20(Clarinet%20Concertos)/Copland,%20Clarinet%20Concerto%20-%20Lutoslawski,%20Dance%20Preludes%20-%20Nielsen,%20Clarinet%20Concerto%20(Janet%20Hilton).cue
[19-09-15 10:42:36.2021] Slim::Utils::Scanner::Local::new (891) Handling new playlist file:///media/SAMSUNG/Musique/Classique/-%20Compilation%20-/Dimitri%20Ashkenazy%20-%20Works%20for%20Clarinet%20and%20Piano/cover/Various%20Composers%20-%20Works%20for%20Clarinet%20and%20Piano%20-%20Dimitri%20Ashkenazy,%20Vladimir%20Ashkenazy.cue
[19-09-15 10:42:36.2289] Slim::Formats::Playlists::CUE::parse (473) Error: Couldn't find referenced FILE: [/media/SAMSUNG/Musique/Classique/- Compilation -/Dimitri Ashkenazy - Works for Clarinet and Piano/cover/Various Composers - Works for Clarinet and Piano - Dimitri Ashkenazy, Vladimir Ashkenazy.flac] on disk! Skipping!
[19-09-15 10:42:36.2300] Slim::Formats::Playlists::CUE::parse (473) Error: Couldn't find referenced FILE: [/media/SAMSUNG/Musique/Classique/- Compilation -/Dimitri Ashkenazy - Works for Clarinet and Piano/cover/Various Composers - Works for Clarinet and Piano - Dimitri Ashkenazy, Vladimir Ashkenazy.flac] on disk! Skipping!

server.log :
Code:

[19-09-15 10:42:40.2129] Slim::Plugin::FullTextSearch::Plugin::_initPopularTerms (525) Fulltext index missing or outdated - re-building
[19-09-15 10:42:40.2147] Slim::Schema::Storage::throw_exception (122) Error: DBI Exception: DBD::SQLite::db selectcol_arrayref failed: no such table: fulltext_terms [for Statement "
                SELECT term, d FROM (
                        SELECT term, SUM(documents) d
                        FROM fulltext_terms
                        WHERE NOT col IN ('*', 1, 0) AND LENGTH(term) > 1
                        GROUP BY term
                        ORDER BY d DESC
                )
                WHERE d > 500
        "]
[19-09-15 10:42:40.2157] Slim::Schema::Storage::throw_exception (122) Backtrace:

  frame 0: Slim::Utils::Log::logBacktrace (/usr/share/perl5/Slim/Schema/Storage.pm line 122)
  frame 1: Slim::Schema::Storage::throw_exception (/usr/share/squeezeboxserver/CPAN/DBIx/Class/Storage/DBI.pm line 1007)
  frame 2: DBIx::Class::Storage::DBI::__ANON__ (/usr/share/perl5/Slim/Plugin/FullTextSearch/Plugin.pm line 532)
  frame 3: Slim::Plugin::FullTextSearch::Plugin::_initPopularTerms (/usr/share/perl5/Slim/Plugin/FullTextSearch/Plugin.pm line 118)
  frame 4: Slim::Plugin::FullTextSearch::Plugin::__ANON__ (/usr/share/perl5/Slim/Control/Request.pm line 2058)
  frame 5: (eval) (/usr/share/perl5/Slim/Control/Request.pm line 2058)
  frame 6: Slim::Control::Request::notify (/usr/share/perl5/Slim/Control/Request.pm line 859)
  frame 7: Slim::Control::Request::checkNotifications (/usr/sbin/squeezeboxserver line 708)
  frame 8: main::idle (/usr/sbin/squeezeboxserver line 677)
  frame 9: main::main (/usr/sbin/squeezeboxserver line 1210)

[19-09-15 10:42:40.2164] Slim::Control::Request::notify (2060) Error: Failed notify: Carp::Clan::__ANON__(): DBI Exception: DBD::SQLite::db selectcol_arrayref failed: no such table: fulltext_terms [for Statement "
                SELECT term, d FROM (
                        SELECT term, SUM(documents) d
                        FROM fulltext_terms
                        WHERE NOT col IN ('*', 1, 0) AND LENGTH(term) > 1
                        GROUP BY term
                        ORDER BY d DESC
                )
                WHERE d > 500
        "] at /usr/share/perl5/Slim/Schema/Storage.pm line 126

/var/log/syslog :
Code:

/var/log/syslog
Sep 15 10:42:33 pisalon ntfs-3g[449]: Could not convert filename to Unicode: 'Spohr, Rietz, Solère, Heinze - Clarinet in Concert - Thea King.flac': Chaîne multi-octets ou étendue de caractères invalide ou incomplète
Sep 15 10:42:33 pisalon ntfs-3g[449]: Could not convert filename to Unicode: 'Spohr, Rietz, Solère, Heinze - Clarinet in Concert - Thea King.flac': Chaîne multi-octets ou étendue de caractères invalide ou incomplète

LMS :
Code:

Logitech Media Server
Logitech Media Server Version : 7.9.2 - 1567938514 @ Sun Sep 8 12:49:29 CEST 2019
Nom d'hôte : pisalon
Adresse IP du serveur : 192.168.1.12
Port HTTP du serveur : 9000
Système d'exploitation : Debian - FR - utf8
Architecture de la plate-forme : armv7l-linux
Version de Perl : 5.28.1 - arm-linux-gnueabihf-thread-multi-64int
Audio::Scan : 1.02
IO::Socket::SSL : 2.060
Version de la base de données : DBD::SQLite 1.58 (sqlite 3.22.0)
Platines identifiées : 4

cat /etc/*release*
Code:

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

ps -eaf | grep squeeze
Code:

squeeze+  438    1  0 10:14 ?        00:00:00 /bin/bash /usr/sbin/squeezeboxserver_safe /usr/sbin/squeezeboxserver --prefsdir /var/lib/squeezeboxserver/prefs --logdir /var/log/squeezeboxserver/ --cachedir /var/lib/squeezeboxserver/cache --charset=utf8
squeeze+  447  438  2 10:14 ?        00:00:33 /usr/bin/perl /usr/sbin/squeezeboxserver --prefsdir /var/lib/squeezeboxserver/prefs --logdir /var/log/squeezeboxserver/ --cachedir /var/lib/squeezeboxserver/cache --charset=utf8

locale
Code:

LANG=fr_FR.UTF-8
LANGUAGE=
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=

/etc/fstab
Code:

#LABEL=SAMSUNG /media/SAMSUNG ntfs defaults,nofail,uid=1000,gid=1000,umask=000,nls=utf8,utf8 0 0
LABEL=SAMSUNG /media/SAMSUNG ntfs defaults,auto,users,rw,nofail,umask=000 0 0

mount | grep sda1 :
Code:

/dev/sda1 on /media/SAMSUNG type fuseblk (rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
Do you have an idea ?

I have been looking for two days without success ...

Thanks in advance.

USB wifi not detected at boot

$
0
0
One of my picore devices is placed on my workbench. I always power it down when I'm not using it.

I noticed that on several occasions, the USB Wifi stick itself is not detected at boot. This happens apparently at random. I can boot ten times without problems and then several times with the stick not being detected. When that happens the blue LED of the stick doesn't glow.

I already tried another USB-stick and changed the "waitusb" on the bootcodes page from 2 to 5 but it doesn't make any difference.

Here are two pictures to show what happens at boot:

USB stick detected
Name:  detected.jpg
Views: 49
Size:  73.1 KB

USB stick not detected
Name:  not-detected.jpg
Views: 45
Size:  114.4 KB

Anybody any idea as to why this happens?
Attached Images
  

Picorplayer name

$
0
0
I changed the name of my picoreplayer but it at the next reboot, the player reverts to its default name.

How can I make the new name persistent?

Bad (?) LMS Install on debin

$
0
0
I'm trying to get LMS going on a kirkwood armel processor running on debian buster. I have an installation running on jessie thanks to a forum member (505, I think) that compiled the perl 5.20 modules for armel. Since jessie is getting old, it would be nice to have LMS on a new version. The working install used the -all.deb 7.9 nightly package. For the buster version, I tried to get ahead by using the -ARM.deb package assuming it was the all with everything but ARM removed. The install ran OK, but the /usr/share/squeezeboxserver directory contains only the CPAN directory. The working on jessie has many more directories. Attempting to start over, I tried to uninstall LMS using dpkg and it fails because the package name contains ~, an invalid character. I could not find any way to get around this. Further check says packages are squeezeboxserver and squeezecenter. Remove says they are not installed.

How can I uninstall LMS with the invalid character?

For an armel processor, what package should I install? -all?

I'll post my struggles with compiling the perl modules in another thread.

help me unravel deep networking problem with classic squeezebox

$
0
0
Bear with me, this is messy and weird.

Basic problem: stuttering; and it's worse with some songs than others. Only the actual SB Classics stutter - I just set up squeezelite on a piCorePlayer and it doesn't stutter. On the Classics, the stutter is worse on some units than others. Donn't prejudge the problem: it's not network bandwidth, and the Classic that's on wifi stutters the least.

I want to keep the Classics going as long as I can, because my wife is used to using the remote and the menus on the display.

Now for the many weird aspects. First of all, all the Classics are on rev 81 of the firmware. Why so old? Because I'm not using LMS. I'm using a custom server that understands the protocol used in version 81, and for complicated reasons I'll skip over unless asked, that aspect won't change. I'm very wedded to the custom server, and my wife is very wedded to the completely custom way it displays menus and other info on the classic. PiCore and Squeezelite won't be an option for her, at least until I have a way to display a facsimile of those menus.

Second, when I ran my server on a raspberry pi, there were no stutters, in about 10 years of use. I recently moved it to a NUC, a much faster system; that's when the stuttering started - very rarely for some players and some some songs, but horribly often for one particular song and a couple of players.

Since it's my own server, I can instrument it however I like, so I measured the timing for reading chunks from the music file, and how long it took to send() each chunk over the network.

Reading the file isn't a problem: Reading 64k at a time from an internal SSD disk, the NUC is spending between 28 to maybe 60 microseconds to load each buffer, with very occasional spikes as high as 1.3 milliseconds. The average is around 40 microseconds. Reading is fine.

Writing over the socket is where the problem is. When I use the piCore player, I get exactly what I expect: when a song first starts loading to the piCore, socket writes happen quickly, with a peak of maybe 3 milliseconds to write each 64k, usually rather less. But the squeezelite fills its internal buffer, and reads less often, so the TCP stream backs up as expected. Socket writes in the server start blocking, waiting for the TCP stream to unjam. So I'll get a write time like 1093 milliseconds or 786 milliseconds, followed by something much faster for the next 64k chunk, like 108 microseconds. This is just what I'd expect - as squeezelite uses up the buffer, it gets more interested in doing TCP reads, which unblocks the server to quickly ship enough to top off squeezelite again. All is perfect.

But when I move that same ethernet cable to a classic (running firmware 81), the socket writes are a completely different story.

There is an initial inrush of buffers, though it's slower, at around 24ms each. (Except for some songs where it's slower). But thereafter, there's no alternating between slow and fast send times. Every send is in the hundreds of milliseconds. It's as if the Classic isn't bothering to read from the socket very often, so it stalls on its own buffer being empty. And it's simple to test that theory: if I just pause the music, the server keeps sending buffers, so when I unpause there's a period of unstuttering play.

I could believe the classic just isn't getting around to reading the socket often enough, but when the server ran on a raspberry pi this never happened.

And the weirdest aspect: this is sensitive to which song is playing. George Winston's Carol of the Bells doesn't stutter, or at least I haven't caught it at it. The Strawbs' Benedictus stutters like mad, towards the end of the song and on every repeat. (Both are flac). CSNY's Carry On starts stuttering only partway through.

All I can come up with is that there's some difference between the TCP stack of a raspberry pi and this NUC (linux mint) and somehow the classic is sensitive to it (and picore isn't), but that seems like a fringe theory. Note that I've tried this with different buffers sizes, and with nagle enabled and disabled. Still stutters.

I know the next step is to move the server back to a pi and see if the problem goes away again. Or move all the classics up to a more recent firmware and see if something changed.

Does anyone have any insight into what could cause this?

noob trying to get picoreplayer on rasptouch working as a roon endpoint

$
0
0
The system is up and running, but roon doesn't spot it in its audio settings panel.
I thought roon could use squeezelite as an endpoint? squeezelite is running but no spotting it from roon.
So then I thought to try to install roonbridge but can get this going either:
curl -O download.roonlabs.com/builds/roonbridge-installer-linuxarmv7hf.sh
chmod +x roonbridge-installer-linuxarmv7hf.sh
sudo ./roonbridge-installer-linuxarmv7hf.sh

bash doesn't seem to be installed in picoreplayer, so I can't run that script.
And there is no apt-get so I can't install bash.
A but stumped - help appreciated...

picore player won't play certain files - help please if possible

$
0
0
Hi, I am not Linux-savvy but was delighted to get picore player v5.0.0 running seemingly perfectly on a new raspberry Pi, running LMS 7.9.2. Music source is entirely flac files on a removable USB powered hard drive. All seemed great - Boom, Classic, Touch all synchronising, speedy on/off, no network issues. Then I realised some folders didn't seem to exist. Example, searched for Blade Runner 2049 soundtrack and it wasn't there. On Music Folder, the Artist and Album title comes up the but the folder is reported as empty. If I move the HDD to the PC, the folder contains all the tracks, which play fine on media monkey. Running LMS on the PC (7.9.2) discovers the folder and reads the tracks without a problem.

I estimate there are about 400 tracks that LMS on the picoreplayer is not playing but it is very hard to say. Needless to say I have tried deleting and re-copying this folder and others, and rescanning, but to no avail. They just don't get recognised.

I am baffled as to why just a small number of entire albums won't play, yet will on the same LMS version on the PC. Any help would be gratefully received as for so many other reasons the PCP is brilliant. Thanks

piCorePlayer can't contact pCP repo.

$
0
0
My LMS is running on a Raspberry Pi 3 with piCorePlayer v5.0.1. It has a wired connection to the router.
LMS is notifying me of a new LMS version, but when I attempt to download and install it via the pCP web interface it fails to download. I also notice that the pCP repo can't be accessed, nor can I ssh into the Pi.
This isn't massively urgent as the server is working fine just now, but I wonder where the problem lies - with the rPi, my LAN, or with the repo itself. Any advice as to where to look or how to sort this out?

Robert

Thank you pidCOrePlayer ppl

$
0
0
I've had a number of squeezebox hardware players for some years. Luckily for me they have shown no problems that a firmware reset didn't seem to fix. However I was looking gloomily at the possbility of having to replace them, and the extravegant and high prices solutions like Sonos seemed to offer.

I came across lots of Squeezebox advice, and ended up following the instruction for setting up piCorePlayer on a pi. Kudos to all; in one shot the whole thing worked well, including a wireless setup without a wired network connection (who has a handy LAN point these days??).

So I just thought I'd post a thank you. I'm even surprised at the audio quality out of the analogue phone jack. I don't need a super hifi solution for my use case, but I was surprised listening on my headphones at how reasonble the sound is from the naked pi (using a 3 b+). I'm going to be hooking it up to a power amp in the next fwe days to see how it holds up. If I end up needed some sort of DAC device or resorting to the hdmi output, it's still been good value.

Keep it coming folks.
Viewing all 1530 articles
Browse latest View live