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

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: 15
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: 103
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.

Raspberry Pi w/screen as dedicated controller?

$
0
0
Hi-

I've spent quite a bit of time looking for a dedicated controller.

I currently have a ELAN system that's very very dated and I'd like to update or upgrade the system with LMS, PiCorePlayer(s) and some dedicated 7" controllers that will be wall mounted where the elan controllers are currently mounted. My current ELAN controllers are connected by cat5 ethernet so I'd use the existing ethernet for the controllers. The PiCorePlayers would be located in a central location with access to cat6, cat5e, speaker wiring and amps for the whole house system.

Is there a dedicated Jivelite controller distribution anywhere or is this something I'd have to roll on my own? I did read through @chill thread, Javelite on a Joggler, and figured that's probably the avenue to go.

Activate HDMI output at boot whitout TV

$
0
0
Hi,
Thanks for pCP !

I got a small problem, for the living room I use a Raspberry Pi model 1B with HDMI output.
I tried first with a HDMI to Toslink converter, each boot I need to connect the HDMI output to a TV, else there is no sound coming.
I then put it to and HDMI input of an home cinema amplifier I bought, but I've to start the TV at boot if not there is no sound coming.
I imagine there is an automatic config of the output at boot but is there some way to set it somewhere to avoid starting the TV each time ?

lack of IO::Socket::SSL

$
0
0
> I'm running LMS 7.9.2 on a Raspberry Pi3 (pCP 5.0.1). This evening I'm
> seeing an error when using Spotty:
>
> "Spotty requires the Perl module IO::Socket::SSL. You can NOT use Spotty
> without this module. Please use your operating system's package manager
> to install it."


Go to pCP's Main Page -> Extensions, then make sure you installed
perl_io_socket_ssl.tcz and all the perl_crypt_* modules.

EDIT: oh... never mind. I didn't see your edit :-)

--

Michael

Picoreplayer on Pi Zero performance

$
0
0
I've just installed picoreplayer on a pi zero w to work with my original squeezebox. I just threw a few albums onto an old 8gb usb stick to test it out and it connects up fine. I'd forgotten just how lovely the Squeezebox is actually!

I have a couple of questions though.

The performance is a little slow when accessing a new album, but there after the album is selected quite quickly. Does this indicate that a newer, bigger usb stick would be faster? Or is the relative performance of the Zero itself more likely to be to blame?

On that performance note, would a full fat pi like a 3 or 4 be a better way to go with using picoreplayer and avoid stutter? Perhaps paired with a SSD?

Lastly, I've looked up Spotify support, yet I'm not sure if it's still supported now? I don't have a paid Spotify sub so I'd just like to access their free service, with audio ads. Is this possible?

Any advice greatly appreciated.

LMS on Buster Lite

$
0
0
Evening All

I’ve been running my LMS server on a Pi4 using piCorePlayer for many months now and it’s absolutely brilliant.

However, I was recently intrigued by mention of Pi-hole on another thread and realised that I wanted to give it a try. This I did using a spare Pi3 and all is good. And then I wondered about combining LMS and Pi-hole on the same Pi. I read that this can’t be done using PiCorePlayer so I set about installing Buster Lite on a spare SD card. Many hours later and I have a working LMS installation and Pi-hole on the same machine but I must say that it was quite challenging as my Linux command line skills aren’t great.

What I miss however, is the fantastic control piCorePlayer gives over the LMS installation. Even basic things like starting and stopping LMS require me to use Putty, I have a few questions…

1. Using Putty to start and stop LMS I am using “Sudo service logitechmediaserver start” and “Sudo service logitechmediaserver stop” Is this correct?

2. Do I need to use these commands every time I close down the Pi? To shutdown I am using “Sudo halt”. Is this a violent way to shutdown which might potentially corrupt my LMS installation?

3. With piCorePlayer I am using the 64bit version but I wasn’t sure how to do that using Buster Lite. Not sure it really matters a great deal anyway?

4. I’m not clear on how to update the LMS installation, it’s currently running 7.9.3 which is fine for now.

5. What is the best way to clone a 32gb SD card?

6. Are there any other basic commands I should know about to keep things ticking along? Google has been very helpful with all of the various stages so I can keep plugging along.

Having said all of this I may just leave it as it is and continue running piCorePlayer and Pi-hole on two separate RPIs but that does seem a bit daft when the Pi4 is generally under utilised.

Any advice would be gratefully received.

Many thanks
Ashley
Viewing all 1518 articles
Browse latest View live