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

Music on USB HDD not scanning on pCP

$
0
0
I have built a few RPi and matched them with USB HDD - running both LMS and as a player - all OK.

But I started to help someone else, and I am having an issue with the USB HDD failing to be scanned by LMS.

Name:  pCP.jpg
Views: 49
Size:  37.3 KB

I set up the LMS and point it to the Mounted Music of the USB HDD (and it sees it), but the scan shows 0 artists/songs etc and when I browse in LMS to the MNT again - it has disappeared.

Any suggestions? I have already changed from a Toshiba HDD to WD. Tried pCP v5. I do suspect the PSU but I only have a MeanWell one to try it against, and it means taking apart a working system.

======

RPi 3+ running pCP v4.1.0

PSU (non RPI - but it is 2.5A)

Memory Card (128Gb)

The last 2 items were not what I asked them to order :-(
Attached Images
 

picorePlayer auto start and stop playing at specific times

$
0
0
I could have sworn I had seen the answer to this at some point, but for the life of me I can't find it again.

I would like to have piCorePlayer running on a pi zero W start and stop playing at specified times. For example start at 6:30am and then stop at 8am. I do have a separate LMS server running and I would potentially like to be able to select either a stream, or a playlist. I'm assuming I can do this with a cron job running on the piCore, but I have no idea what to specify for commands.

Thanks

what is the username/password used to scan the library?

$
0
0
Greetings.

Getting a brand new server setup for squeezebox, using an orange pi running debian buster. I have installed LMS 7.9.2 which does launch, and I am up to setting up the music library.
I am trying to mount a NAS folder for this, but cannot wrap my head around rights managements.

The NAS is an old Thecus n2100, and its media folder can be either public where it gets drwx---rwx+ or user specific (where I have more issues accessing it from windows) where it gets drwxrwx---+

in either case, I seem to not have read access to the files from the console (but do have write/erase rights..?? Go figure)
But more importantly the library does not scan - scanner.log reports tons of permission issues

Code:

Audio::Scan::scan (64) Warning: Error reading: Permission denied
so I am thinking I have something wrong in the rights management between the NAS and the pi.

Any pointers would be greatly appreciated.
What's the user used to scan the files? maybe I need to create same user on the NAS and log with it? can I change username/password used by lms?

Bad caracter songs arab

$
0
0
> I use picoreplayer 6 beta with jivelite
> all works fine except the display of the song arbe i have bad character
> someone can help me


What display are you using? Jivelite can't display arabic (and many
other non-latin) languages.

--

Michael

PiCorePlayer Downloads Fail

$
0
0
> I'm trying to download either PiCorePlayer 5 or 4 and neither one will
> download. Is there a problem with the server or is there an alternate
> place to download from?


How does it fail? Are you familiar with curl or wget?

--

Michael

PCP + Khadas Tone Board - DAC controlled volume?

$
0
0
Hi. I started a discussion on the thread ANNOUNCE: piCorePlayer 5.0.0 (starts on page #518) and it was suggested to start a new thread (thanks to @Man in a Van and @paul- for their help so far). To summarize…

As I understand it, the ESS9038Q2M DAC chip (as found on the Khadas board) can control the volume of its outputs (instructed by i2c). I understand that this is potentially an optimal method of controlling volume is because it does it by using some serious “hardware” oversampling (or something like that) which is preferable to altering the stream in software before it is sent to the DAC (where it is usually advised to leave volume setting in players at 100% for bit-perfect transmission). Of course, chip-level volume control also offers us the opportunity us to remove pots / stepped attenuators from the signal path (if we dare to place trust in our settings!)

Now, I am certainly able to control volume coming out of the Khadas board (which attached to a Pi 3B via USB) using the slider on the LMS interface – but I would like to understand what PCP is doing. Is PCP:

A - doing software adjustment of the stream sent to the DAC (i.e. not bit perfect)

… or…

B - sending the original bit perfect stream and instructing the DAC (via the driver) to alter its outputs (i.e. the supposedly preferable method).

If it is not doing B, can it be done? I would be very grateful for any advice.


Some relevant info…


Many thanks for listening!

Migrating from LMS on RedyNas to LMS on PI(absolute beginner!!!)

$
0
0
Hi!

I think my ReadyNas is getting a little old, and LMS for it does have problems now.

1 Can not upgrade to LMS 7.9.2
2 Radio Paradise FLAC does not work
3 Podcast does not work

So I am thinking migrating LMS to a PI on a newer and better maintainded platform. It just has to run LMS and my ReadyNas as music storage.

What do I need. I am NOT skilled Linux programmer, so I need a good guideline....

Which PI should I go for. There are serval versions ??
Operating system ??
Interface to modify it???
Can PI be modified to startup 5 minutes after The ReadyNas(Timer start/stop) ?

I really love my SB system, so need a little help here...

piCorePlayer5.0 samba speed issue

$
0
0
I use piCorePlayer5.0 with samba installed, but the speed by transferring files from Windows 10 to USB HDD connected to Rpi 3b+ is very low (2mb/s). The network is OK.

I found that by adding this lines into smb.conf file can improve speed:

[global]
max xmit = 64000
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=64000 SO_RCVBUF=64000 SO_KEEPALIVE

Tell me please by steps (with commands) how can i add this lines in piCorePlayer. Is it possible? I'm beginner.
Thank you!

LMS 7.91 with Fedora 30

$
0
0
> I've got a Fedora Core 30 install on my PC that isn't doing much else.
> I've downloaded 7.9.1 and installed it using dnf. It seemed to install


Try 7.9.2 instead.

--

Michael

Just a good ol' warm feeling and thanks

$
0
0
I landed on this forum recently and thought I may have been a member much earlier. Anyway, I'm so thrilled with how friendly and helpful people are here.

I speak, for example, to how the community came together and helped here "Migrating from LMS on RedyNas to LMS on PI(absolute beginner!!!)"

That was so beautiful! And so I rejoined, or simply joined, to say thanks and hopefully I will help others and learn from others in time.

Good community! Keep it up.

For now, I will continue to 'feel' my way around and be inspired with configurations as well!

Mount NAS using guest - Debian Buster problem

$
0
0
I've reliably used this in fstab for years:

//192.168.0.1/sda1 /mnt/hd1/ cifs username=guest,password=

I assumed this would also work for Debian Buster, but it just produces a mount error.

Any ideas?

PiCorePlayer and pi 1B

$
0
0
I cannot seem to figure out this tidbit of information...

Can piCorePlayer properly run as a squeeze player on a first gen (single core) raspberry pi 1b?

Is it possible sending music to my picoreplayer like I do to my JBL Bluetooth speaker

$
0
0
I play my music on Spotify on my MacBook and want it to play on my raspberry pi that has a hifiberry amp that is connected to my KEF Speakers.

I know there is a plugin for Spotify for LMS but that is not what I want.
I want to control music from Spotify Application on my MacBook like I can when sending music to my JBL Bluetooth speaker.

Thanks

LMS restart error: Found left-over process 441 (squeezeboxserve)

$
0
0
Hi,

I just successfully installed LMS on my new RPi 4+ 4GB. Works like a charm.

Except when it comes to a restart:

If I use
Code:

service logitechmediaserver restart
or
Code:

sudo systemctl restart logitechmediaserver.service
the LMS always starts a full scan upon restart. This is also true for a reboot or general start of LMS.

If I use
Code:

service logitechmediaserver status
, I get the following error of a "left-over process":

Code:

pi@RPiWohnzimmer:/proc/2885 $ service logitechmediaserver status
● logitechmediaserver.service - LSB: Startup script for the Logitech Media Server
  Loaded: loaded (/etc/init.d/logitechmediaserver; generated)
  Active: active (running) since Wed 2019-11-13 14:11:05 CET; 23h ago
    Docs: man:systemd-sysv-generator(8)
  Process: 2878 ExecStart=/etc/init.d/logitechmediaserver start (code=exited, status=0/SUCCESS)
    Tasks: 6 (limit: 4915)
  Memory: 1.3G
  CGroup: /system.slice/logitechmediaserver.service
          ├─2885 /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
          └─2887 /usr/bin/perl /usr/sbin/squeezeboxserver /usr/sbin/squeezeboxserver /usr/sbin/squeezeboxserver /usr/sbin/squeezeboxserver /usr/sbin/squeezeboxserver --prefsdir /var/lib/squeezeboxserver/prefs --logdir /var/log/squeezebox

Nov 13 14:11:05 RPiWohnzimmer systemd[1]: Stopped LSB: Startup script for the Logitech Media Server.
Nov 13 14:11:05 RPiWohnzimmer systemd[1]: logitechmediaserver.service: Found left-over process 441 (squeezeboxserve) in control group while starting unit. Ignoring.
Nov 13 14:11:05 RPiWohnzimmer systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Nov 13 14:11:05 RPiWohnzimmer systemd[1]: Starting LSB: Startup script for the Logitech Media Server...
Nov 13 14:11:05 RPiWohnzimmer logitechmediaserver[2878]: Making sure that Logitech Media Server is not running first: start-stop-daemon: warning: failed to kill 437: No such process
Nov 13 14:11:05 RPiWohnzimmer logitechmediaserver[2878]: No process in pidfile '/var/run/logitechmediaserver.pid' found running; none killed.
Nov 13 14:11:05 RPiWohnzimmer logitechmediaserver[2878]: Starting Logitech Media Server.
Nov 13 14:11:05 RPiWohnzimmer systemd[1]: Started LSB: Startup script for the Logitech Media Server.

Now, specifically, might this error be the cause for a full re-scan on every startup:
Code:

Nov 13 14:11:05 RPiWohnzimmer systemd[1]: logitechmediaserver.service: Found left-over process 441 (squeezeboxserve) in control group while starting unit. Ignoring.
Or are these 2 issues which I should separate? I would love to solve both!

Regards, Till

Changing FLAC settings in custom-convert file disables MP3 in LMS ????

$
0
0
Hi!

On my new Pi that runs LMS I have made a custom-convert file. The change is to make SOX handle FLAC. This eliminates stuttering sound on some streams from Tidal.
But with the custom-convert file in use, LMS is "deactivated" in LMS, and you can not change it......
Thise causes Radio streams to be silent.......


If I remove the custom_convert file MP3 plays fine and MP3 is enabled in LMS.

With the custom_convert file mp3 is deactivated and I get this error in the log, when I play a radio stream:


[19-11-14 15:39:55.3665] Slim::Networking::IO::Select::__ANON__ (131) Error: Select task failed calling Slim::Networking::Async::_async_read: open2: exec of # Non-mp3 starts here failed: No such file or directory at /usr/local/slimserver/Slim/Player/Pipeline.pm line 138.
; fh=Slim::Networking::Async::Socket::HTTP=GLOB(0xd6 37cd8)


The only thing I change in custom_convert file(copy of convert.conf) is putting in this line
Name:  custom-convert.jpg
Views: 51
Size:  36.3 KB

Anyone that can help with this one ???
Attached Images
 

Knob - Volume - mouse scroll hack

$
0
0
Here is a shell script that takes input from the mouse scroll wheel to change the volume of the named local player. I wrote it with a view to hacking a Poundland mouse plus rotary encoder to put a real volume knob on my LMS / Squeezebox computer. I would welcome any comments or suggestions.
Code:

#!/bin/bash

#use command - xinput - to find id of mouse who's scroll wheel you want to use
mouseID=10
player='Dining Room'
IP="127.0.0.1 9090"




  #Need to convert player name to mac address
  #find number of players
 
  nplayers=$(echo "player count ?" | nc -q1 $IP | tail -c 2 )


  n=0
        #loop through players to determine mac address of player

        while [ $n -lt $nplayers ]
        do
                pmac=$(echo "player id $n ?" | nc -q1 $IP | tail -c 28 | sed -r 's/%3A/:/g' )
                pname=$(echo "player name $n ?" | nc -q1 $IP | cut -c 15- | sed -r 's/%20/ /g')
                        if [ "$pname" = "$player" ]; then
                                playerID=$pmac
                                echo
                                echo "$pname"  "$pmac"
                        fi
                n=$(($n + 1))
        done

echo
OldScroll=$(xinput --query-state $mouseID | grep 'valuator\[2\]\=' | cut -c 14-)
echo "Initial wheel position: $OldScroll"
playerVOL=$(printf "$playerID mixer volume ?\nexit\n" | nc $IP | tail -c 3 | tr -dc '0-9')
echo "Initial Volume: $playerVOL"
echo

# Infinite loop checks to see if mouse scroll wheel has turned and in which direction - Ctrl C to quit

while :
do

scroll=$(xinput --query-state $mouseID | grep 'valuator\[2\]\=' | cut -c 14-)

if [ $OldScroll -gt $scroll ]; then
        playerVOL=$(printf "$playerID mixer volume ?\nexit\n" | nc $IP | tail -c 3 | tr -dc '0-9')
        setVOL=`expr $playerVOL + 5`
        printf "$playerID mixer volume $setVOL\nexit\n" | nc $IP
fi

if [ $scroll -gt $OldScroll ]; then
        playerVOL=$(printf "$playerID mixer volume ?\nexit\n" | nc $IP | tail -c 3 | tr -dc '0-9')
        setVOL=`expr $playerVOL - 5`
        printf  "$playerID mixer volume $setVOL\nexit\n" | nc $IP
fi
 
OldScroll=$scroll 
sleep 0.2

done

Desperately need help getting Benchmark Dac2 to work with Squeezelite/Max2Play on RPi

$
0
0
I have been using a Raspberry Pi 3b+ with Squeezelite (through Max2Play) for years with a Benchmark Dac1 with no issues. I recently acquired a Benchmark Dac2, however, and despite a ton of effort and web surfing I can't get it to work.

The Benchmark 2 appears on the list of outputs on the advance tab and Squeezelite successfully launches when I select the option for no software conversion (oddly, the Sysdefault option does not work and Squeezelite will not start). But after it launches, and the dac appears to be connected, there is no sound whatsoever.

I have tried a variety of different setting and have confirmed the Dac itself is working perfectly fine.

I'm happy to post debug information if helpful, but any help would be greatly, greatly appreciated.

Pretty desperate here and not very knowledganle about Linux in general

Thank you!

pCP 6 / synchonisation

$
0
0
Hi,

following Setup


Logitech Media Server Version: 7.9.2 - 0023.1559540205 @ Wed Jun 5 14:51:56 CEST 2019
OS: Synology DiskStation - DE - utf8
Platform: x86_64-linux
Perl-Version: 5.24.0 - x86_64-linux
Audio::Scan: 0.95
IO::Socket::SSL: 2.037
Datenbankversion: DBD::SQLite 1.34_01 (sqlite 3.7.7.1)
Number of Player: 3

2 PI 3B+ with pCP 6.0.0-b7

One of them (called Blau67) connected per ethernet with output on a BT Speaker. The BT Speaker is Player 3(called Boseplayer)
The other one (called WoZi67) connected per WLAN with output on a hifiberry DAC

I have configured a synchronisation between "WoZi67" and "Boseplayer", but this only works for an hour or so.
I start to play music and th sync is perfekt. After a while(sometimes 30 minutes, sometimes an hour or two hours the sync is lost and the only chance to sync it again is stop playing and start ist again.
Alternative i can power off/on the BT Speaker.

What can i do?

greets,
sky

Pi Zero-W and picoreplayer

$
0
0
Am I the only one having problems connecting through wifi?
I've tried with releases 4.1, 5.0 and 6 beta, on two different pi's, which both connect instantly when I boot Raspbian.

What am I missing? What diagnostics would be useful? I can't see any mention of wifi in dmesg.

RGB Matrix Clock And Roll

$
0
0
I'm really not sure if this is of any interest to folks but it was a lot of fun developing it

I had a couple of Adafruit RGB matrix panels sitting unused so I decided to get my dev on and write a little code to see what I could do with them

The results can be found here https://github.com/shunte88/rgbclock

Its written in golang to keep it performative

The current version displays a nice graphical clock face until a track is played via LMS.

With a track playing the track details and coverart are displayed

Its just a bit of fun but hopefully folks find it a useful source of ideas

Note that the weather data is scraped from the Weather Channel site and cached so that multiple Pi based utilities I've written can share the data. That caching script can be found in another of my repos "clockscroll".

There's definitly a recurring theme here :D
Viewing all 1530 articles
Browse latest View live