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

Switching piCorePlayer off

$
0
0
The advice about switching PiCorePlayer off seems to be that whilst it runs in RAM and is immune to power-off corruption, LMS can be corrupted by power removal, presumably if it's writing data at the time.

I've been in what I thought was the good habit of switching off via the UI and then removing power. Occasionally other members of the family have switched off the main power without doing this, thus far without any problems.

In looking at whether I should leave the power on permanently I've done some measurements of current consumption of my system. It drops by less than 2mA when turned off from the UI, so I’m wondering what does get turned off. I notice if I switch off like this and then go to the LMS settings they show that LMS is still running.

So I'm now wondering whether a full shutdown is required if we want to be certain that LMS doesn't get corrupted?

The Advanced mode operations panel on the piCorePlayer Main Page suggests that Shutdown is not really required and that "piCorePlayer can be turned off at the switch".

Can someone clarify?

PiCorePlayer: Frequent Gaps - Why?

$
0
0
Hi,
I run a PCP with "piCorePlayer 1.21b_RPi2" on an RPI2 with Hifiberry. It is connected to a router per LAN and to an amplifier per CINCH. It has been running with no problems for some years.
For some time now I have frequent gaps while replaying both long and short files (i.e. MP3). In the interface the counter keeps counting down the seconds of the song while the sound is off and then randomly switches on again. That is the playback does not stop but the player just seems to fall silent.
I don't think it's an issue on the server's side, but I have checked and the NAS that runs LMS is pretty busy at times plus, LMS has amassed quite a lot of data (see pic) but I struggle to relate this to something that seems to be an issue on the PCP's side.
Has someone encountered similar issues?
Name:  squeezecenter.jpg
Views: 68
Size:  169.3 KB
In addition I wonder whether I should update PCP to a later version (which one?)
Attached Images
 

Jivelite on a Pirate Audio 240x240 screen

$
0
0
I've moved this over from the pCP6/Pi4 thread, where it wasn't really on-topic.

The Jivelite on Alpine Linux thread prompted me to have another go at getting Jivelite to work on the little Pirate Audio 240x240 display. After following JQW's instructions for getting the screen to show the boot up messages, and copying over Ralphy's file to configure detailed logging, I'm then trying to start Jivelite from a keyboard connected to the RPi, via a slightly modified script:

Code:

#!/bin/sh
if [ ! -z ${SDL_TOUCHSCREEN} ]; then
    export JIVE_NOCURSOR=1
fi

export HOME=/home/tc
export JIVE_FRAMERATE=22
export JL_SCREEN_WIDTH=240
export JL_SCREEN_HEIGHT=240
export TSLIB_FBDEVICE=/dev/fb1

#while true; do
#    sleep 3
    /opt/jivelite/bin/jivelite >> /var/log/jivelite.log 2>&1
#done

I included the TSLIB_FBDEVICE variable in an attempt to get jivelite to use the correct framebuffer device for this little screen - not sure if that's the correct approach.

All that happens when I run the script is that the cursor on the screen stops flashing. The jivelite process is evidently running (I can see it as a process with PS), and the the logfile rapidly starts filling up. The only way I can get control back on the keyboard/screen is by killing the jivelite process from an SSH terminal.

I think the fbset command is telling me that the little screen has a bit depth of 16
Code:

fbset -fb /dev/fb1 -s

mode "240x240-0"
        # D: 0.000 MHz, H: 0.000 kHz, V: 0.000 Hz
        geometry 240 240 240 240 16
        timings 0 0 0 0 0 0 0
        accel false
        rgba 5/11,6/5,5/0,0/0
endmode

..whereas /dev/fb0 has a bit depth of 32
Code:

fbset -fb /dev/fb0 -s

mode "800x600-72"
        # D: 50.000 MHz, H: 48.077 kHz, V: 72.188 Hz
        geometry 800 600 800 600 32
        timings 20000 64 56 23 37 120 6
        accel false
        rgba 8/16,8/8,8/0,8/24
endmode

I can't seem to match the jivelite log file to either of these devices:
JiveLite 0.1.0
[0;33m20200118 09:01:11.587 INFO jivelite - JiveMain.lua:312 JiveLite version 0.1.0[0m
[0;33m20200118 09:01:11.587 INFO jivelite.ui.draw - jiveL_initSDL:232 initSDL[0m
[0;33m20200118 09:01:11.710 INFO jivelite.ui.draw - jiveL_initSDL:245 656,416 32 bits/pixel 4 bytes/pixel [R<<16 G<<8 B<<0][0m
[/code]

Is that fourth line telling me that the device is 656x416, with bit depth 32?

So I'm wondering if Jivelite is sending the output somewhere else. What's the correct way to force it to use /dev/fb1 ?

How to for LMS 8.0 on piCorePlayer (on PiZero)?

$
0
0
Uh, oh... I just saw that all 8.0 builds but the .deb files have
disappeared from the downloads site. I've seen this a few days ago
already, but thought this was an accident of some kind. But it seems to
repeat itself. I'll have to see with IT what's wrong there. I'm going to
kick off new builds. Please check

http://downloads.slimdevices.com/nig...ex.php?ver=8.0

before you try next time. There should be more than a dozen files, in
particular the noCPAN tarball.

--

Michael

where is screen for interactive background scripts.

$
0
0
For long running scripts like initial rsync I am used to work with the linux 'screen' command, and be able to check after a nigh or more.
But what do I need to install to add this to pcp ?

And more importantly, How can I find such an answer myself ?
Is there any index to the extensions in the repository ?

T.I.A. M-H

Powering off HDMI...FAILED

$
0
0
I'm running PiCorePlayer 5 on a RaspTouch and have configured it to disable the HDMI output through the web interface.

However, when the PiCorePlayer boots it displays the line "Powering off HDMI...FAILED".

After booting, the web interface indicates that the HDMI interface is disabled, however I'm not sure if this is just the setting that is showing that way, rather than detecting if the HDMI has been disabled.

I've plugged in a monitor to the HDMI output and nothing shows on the monitor however the monitor does detect an input and remains on. After booting if I remove the HDMI cable the monitor shows that there is no input and the monitor turns off. So it seems as if the HDMI output is on.

Does anyone know what may be causing this?

Thanks,

Jolon.

Howto update LMS on a Debian server?

$
0
0
> Hi all, is there a way to update to the latest LMS and if so, can you
> give me some pointers please?


Download the .deb file and install it using dpkg. Nothing special.

--

Michael

Alsa mixer on picore - cannot save

$
0
0
I have a picore player which never remembers the level settings, which always start out too low...I adjust the volume, then forget how high it is, then switch to TV -- ouch says my ears !

I tried

alsactl store

but I get an error saying the state file is locked ...

file /var/lib/alsa/asound.state lock error: File exists

Would like to permanently assign levels --

THX

Using Argon One case with fan and powerbutton together with piCorePlayer?

$
0
0
Hello!

This is a new thread for the question how to use the fan and the powerbutton of the Argon One case together with piCorePlayer.
Let's start at the beginning.

I want to use a Raspberry Pi 4 as a LMS server with the piCorePlayer installation. This will be no problem.
I want to place this into this case: https://www.argon40.com/catalog/prod...rry-pi-4-case/
This case has a software for using the Power-Button together with eg. Raspbian.

Does anyone know if this software button will also work somehow together with piCorePlayer? So is it possible to switch it off gracefully with the button?
This case has also been available for older Raspberry Pi.

The script for the button and the fan can be found here (for Raspbian): https://download.argon40.com/argon1.sh

First part: "The fan"

The installation of the script consists of a few different parts.
First it installs the following packages: "raspi-gpio python-rpi.gpio python3-rpi.gpio python-smbus python3-smbus i2c-tools"
Then it creates a few files:
- daemonconfigfile (there are only temperatures and fan speeds in a "table"
- shutdownscript (this will be called later from the daemon when the button is pressed.
- powerbuttonscript (this is the script that will later run as a daemon)
- daemonfanservice (this is the configfile for the service, it is placed at: /lib/systemd/system/$daemonname.service)
- removescript (to remove the installation)
- configscript (to configure the reactions to different temperatures, later it will write the daemonconfigfile)
At the end it starts the service via:
Code:

sudo systemctl daemon-reload
sudo systemctl enable $daemonname.service
sudo systemctl start $daemonname.service

This is the part of the daemon for temperature checking and switching the fan to the different speeds:
Code:

echo 'def temp_check():' >> $powerbuttonscript
echo '        fanconfig = ["65=100", "60=55", "55=10"]' >> $powerbuttonscript
echo '        tmpconfig = load_config("'$daemonconfigfile'")' >> $powerbuttonscript
echo '        if len(tmpconfig) > 0:' >> $powerbuttonscript
echo '                fanconfig = tmpconfig' >> $powerbuttonscript
echo '        address=0x1a' >> $powerbuttonscript
echo '        prevblock=0' >> $powerbuttonscript
echo '        while True:' >> $powerbuttonscript
echo '                temp = os.popen("vcgencmd measure_temp").readline()' >> $powerbuttonscript
echo '                temp = temp.replace("temp=","")' >> $powerbuttonscript
echo '                val = float(temp.replace("'"'"'C",""))' >> $powerbuttonscript
echo '                block = get_fanspeed(val, fanconfig)' >> $powerbuttonscript
echo '                if block < prevblock:' >> $powerbuttonscript
echo '                        time.sleep(30)' >> $powerbuttonscript
echo '                prevblock = block' >> $powerbuttonscript
echo '                try:' >> $powerbuttonscript
echo '                        bus.write_byte(address,block)' >> $powerbuttonscript
echo '                except IOError:' >> $powerbuttonscript
echo '                        temp=""' >> $powerbuttonscript
echo '                time.sleep(30)' >> $powerbuttonscript

They are reading the temperature with "vcgencmd measure_temp" and if it reaches the next step from the config they call this:
Code:

bus.write_byte(address,block)
where address is 0x1a and block is the fanspeed from config.

I don't know what this bus.write_byte is doing. Maybe it is enough to write this a single time to have the fan running always at the same speed?

The fan is controlled via I2c as paul has written and bus.write... is for writing to I2c.

Is it possible to write to I2c with piCorePlayer? So I can write one byte at start to let the fan work in one defined speed.

Quote:

Originally Posted by paul- View Post
Yes you can, we can probably run the scripts(Daemon) that they use. You just can use the installation script.

Second Part: "The powerbutton"

Quote:

Originally Posted by Aldoszx View Post
I also have this RPi4 case.
From the script itself, i saw that: 'shutdown_pin=4'.
I suppose that is the pin used for shutdown command.
And, it must be pulled down: 'pull_up_down=GPIO.PUD_DOWN'

So I used this configuration in piCorePlayer:
Name:  Bildschirmfoto 2020-01-24 um 21.05.05.png
Views: 78
Size:  17.2 KB
I pressed the button to create the script and it can be found in the filesystem.

But what happens is that I get the following messages at startup:
Code:

Mounting USB Drives...
Mounting USB Drive: 5D0B-9332...
FUSE exfat 1.2.7
WARN: volume was not unmounted cleanly.
Disk Mounted at /mnt/LMS.
Mounting USB Drive: 5E28-AD65...
FUSE exfat 1.2.7
WARN: volume was not unmounted cleanly.
Disk Mounted at /mnt/Musikbox.
 Done.

So the Pi was not correctly shutdown, as the filesystems are not clean.

Is there any possibility to see if the shutdown script is called when switching off without an attached monitor? E.g. via looking at the logfile via ssh or something like that?
Attached Images
 

Jivelite breaks playlist - Squeezeplay gives a choice - need help

$
0
0
I searched and found the new settings on LMS that tells each player whether or not to break a playlist (selecting a song and the player goes straight to that song deleting all other songs in queue) and when using Jivelite it always just plays, killing everything else. I know you can hold down to select and then you get the popup to select but that is not really usable as no one knows to do that. I have scaled the HDGrid skin and the PiGrid skin to fit a 1024x768 touchsceen with only 2 lines of 3 albumcovers at 180x180 each and it looks and works great until you go to select something and it just isn't usable for me. With Squeezeplay it works great but there is no Grid skins and I don't need the extra player it adds.

I need to get Jivelite to "play right' with the others, there is no settings in LMS for Jivelite as it has no player but it seems it should still honor the settings for the actual players it is controlling.

It has to be something simple to make Jivelite select to same way Squeezeplay does, thay are basically the same, fingers crossed.

My other option is to try to setup one of the Grid skins in Squeezeplay and just deal with the extra player it comes with, I have gotten partially through getting that done and I can get albumcovers displaying in a grid but something goes wrong trying to format it and I have no way of debugging this so I just copy and paste changing a little at a time but I am no programmer.

This is for a real Jukebox that I have in my house and I want it incorporated with my home system, the regular touch skins work super but the don't look like a Jukebox setup, the Grid skins in Jivelite are perfect for this.

John

HD Nowplaying Screen

$
0
0
I have been doing a little editing in Squeezeplay and Jivelite so I decided to make a better now playing screen to run on my server fed out to my TVs in my system, I like to have a display up when playing music sometimes. Basically it just stays on the now playing screen with other controllers in the house selecting things. I'll probably add a faded out background to it also if I find something nice.

John
Attached Images
 

Using Harman Kardon Soundsticks I together with piCorePlayer?

$
0
0
Hello!

I have here the old Harman Kardon Soundsticks I with USB input that are working fine on my Mac as sound output.
Is it possible to use such USB Speakers attached to a Raspberry Pi 4 with installes piCorePlayer and use them as sound output?
How do I have to configure them? Is this a USB-DAC?

Picoreplayer does not output sound

$
0
0
I'm using the latest version of Picoreplayer + Hifiberry DAC + (china blue version) + original LCD.
Everything works perfectly, but sometimes when you turn on the power and start Jivelite there is no sound. Hands of VU meters show movement, but sound is not. Sometimes it works, sometimes not.
Just in the Rebootpicoreplayer from settings menu and then everything works.
I think, it would be enough time lag at startup ???
Could you give me an advice please ?

No Output Device AKA No Sound on Picoreplayer 5.0 Pi3

$
0
0
I had picoreplayer configured and set up on Pi3, player seems to be detected fine on Qnap version LMS server, plays fine through audio jack on Pi but for the life of me, I couldn't get it to work with external USB DAC.
I am using Jolida Glass FX DAC DSD connected to picoreplayer through USB, for some reason player does not recognize external USB DAC (multiple reboot with different sqeezelite dac options). I am not familiar with Linux, based on my research I found command dmessg | grep USB, the result shows Pi seeing Jolida DAC but when I run aplay -L command, it does not detect output hardware.
Any idea how to get DAC recognized?

LMS on Zorin Linux

$
0
0
So I’ve been running LMS on my SFF Asrock Beebox 3150 running Windows 10 for some time fine but now it’s gone pair shaped.
The SFF PC only has 2gb ram and 32gb EEC HD.

I’ve recently installed Zorin Linux on my wife’s old Dell Windows 7 laptop and have been impressed with it’s simplicity and speed.

Will it run LMS?
Which is the correct file to install and could some Linux guru post the step by step install instructions.

Thanks from a Linux newbie.

squeezeplay i386 does not display all cover art

$
0
0
In an attempt to convert an Elo Touch Solutions ESY15E1 (http://media.elotouch.com/pdfs/datas...15E1_ds_en.pdf) into a big (15inch) SBTouch I have tried squeezeplay-7.8.0-1188-i386.tgz with Debian Buster 10.2 and Ubuntu-Mate 18.0.4.3. It works pretty well in both cases but it does not display all cover art. Strangely, no errors are logged and I have verified using a network trace that corver art is being requested from the server and does indeed arrive on the wire and it is the picture that should be displayed. Cover art works whenever it is embedded in tracks. But most of my collection is single wav + cue with a jpeg cover in the same folder. Cover art works very rarely in this case. If there is a systematic I didn't discover it yet.

As a crosscheck I have tried squeezeplay-7.8.0-1188-x86_64.tgz on Ubuntu 16.04 and Ubuntu 18.04 on different boxes and this problem does not appear. It seems that only the 32bit version is affected. Unfortunately, the box in question is 32bit... Did anyone else see this? What might be the cause? Any help much appreciated.

piCorePlayer + hifiberry DAC+ - Squeezelite Randomly Stops

$
0
0
I've tested on a PI4 with PCP 6.0.0 beta as well as Pi3B+ with PCP 5.0.0 -- in any case with the Hifiberry DAC+ and continuous playback (LMS local content), squeezelite eventually stops running. Usually happens after 12 - 48 hours of continuous playback.

Running PCP with debug logging (command parameter: squeezelite -n piCorePlayer -o hw:CARD=sndrpihifiberry -a 80 4 1 -d all debug -f /var/log/pcp_squeezelite.log)

Code:

[08:14:15.050636] codec_open:257 codec open: 'a'
[08:14:15.050654] codec_open:274 closing codec: 'm'
[08:14:15.050690] faad_open:541 opening mp4 stream
[08:14:15.050773] stream_sock:486 connecting to 192.168.1.100:9000
[08:14:15.051036] stream_sock:563 header: GET /stream.mp3?player=b8:27:eb:cb:5f:c6 HTTP/1.0


[08:14:15.051055] sendSTAT:189 STAT: STMc
[08:14:15.051088] process_strm:377 set fade mode: 0
[08:14:15.051137] process:521 audg
[08:14:15.051153] process_audg:433 audg gainL: 200 gainR: 200 adjust: 1
[08:14:15.051200] set_volume:233 setting internal gain left: 200 right: 200
[08:14:15.106185] stream_thread:247 headers: len: 115
HTTP/1.1 200 OK
Server: Logitech Media Server (7.9.1 - 1522157629)
Connection: close
Content-Type: audio/aac


[08:14:15.106235] sendRESP:220 RESP
[08:14:15.151841] read_mp4_header:295 type: ftyp len: 28 consume: 28
[08:14:15.151895] read_mp4_header:295 type: wide len: 8 consume: 8
[08:14:15.151913] read_mp4_header:236 type: mdat len: 167888 pos: 44
[08:14:15.151928] faad_decode:373 samplerate: 44100 channels: 2
[08:14:15.151942] faad_decode:378 setting track_start

In all cases, it seems to die in exactly the same way, with 'setting track_start' as the last log entry, without indicating much more. From recollection, at least 2 of the cases (maybe all of them) have been on an audio/aac content type.

Restarting squeezelite (via GUI, init.d restart, or command line), squeezelite comes back up and everything is fine.

What other info might I be able to log/inspect to get more insight as to what might be happening? Wondering if it's a particular file or set of files that's causing the issue, so I've turned on 'player' logging in LMS so that I can see what particular source files cause the crash.

Raspberry Pi - Picoreplayer WiFi problem

$
0
0
I am beyond frustrated!

First of all, I have searched this forum and the whole Internet at least a dozen of times before turning to you my fellow forum members.

My problem is the following:
-at my home I have two Raspberries with PiCorePlayer installed on both.
-until a couple of weeks ago both worked perfectly, the one in our living room wired and the one in the bedroom on WiFi
-then all of a sudden the bedroom one stopped working
-it just doesn't connect to my Wifi
-it works fine wired
-I have checked everything:
-fresh install
-fresh install with all previous versions
-I have tried to connect the same Raspberry Pi with some other OS and it connected just fine
-I have tried to connect the same Raspberry Pi to a WiFi network at work and it connected just fine
-I have tried to copy/paste the SSID into the settings

Here is the screenshot of the diagnosticsName:  Screen Shot 2020-02-05 at 17.15.03.jpg
Views: 44
Size:  166.9 KB

Has anyone got any ideas what can be wrong?

Thanks in advance
Attached Images
 

piCorePlayer 5.0.0 + rPI4 wont boot

$
0
0
Hello

I am a totally new user. I got an RPi4 to experiment with music streaming in my house. I have followed the instructions on the piCorePlayer website to burn the image to an SD card.

When I turn on my RPi nothing happens. The green light briefly flashes and then remains off while the red light remains on. I don't get signal out of the HDMI port and the device is not connecting to my network (ethernet).

I thought maybe the RPi might be DOA but it works without any problems with RopieeeXL.

Can anyone suggest what I can do next to get piCorePlayer up and running?
Thanks

Can't control PiCorePlayer with RPi Screen/Jivelite connected with OpenVPN

$
0
0
I'm running picoreplayer 6b7 and managed to get wifi and openvpn working tethered from my cell phone. I currently have the official touchscreen attached and when it's connected with VPN, audio plays if control it with a seperate controller. When I try to use the touchscreen, it can't find my Library though.
Viewing all 1530 articles
Browse latest View live