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

piCorePlayer - is running vpn on same machine possible?

$
0
0
> On 6 Mar 2019, at 14:42, DJanGo <DJanGo.8whojb (AT) no-mx (DOT) forums.slimdevices.com> wrote:
>
>
> rkrug wrote:
>> Hi
>>
>> would it be possible to install openvpn on a machine running
>> piCorePlayer? This would make accessing it from the internet much easier
>> (and safer).
>>
>> Any ideas?
>>
>> Thanks,
>>
>> Rainer

> I dont think picoreplayer is the right OS for this purpose.
> Get a real rasbian add something like pivpn to it and squeezelite and
> your done.


I was thinking about my piCorePlayer running LMS (and no player). And the reason why I a,m thinking about piCorePlayer is the fact that it runs in-memory. No corruption of the system possible when the power cots off. Obviously, the data from LMS could be corrupted, but I am setting up a backup routine for that.

And yes - an additional pi running pippin would be another possibility.

>
>
> ------------------------------------------------------------------------
> DJanGo's Profile: http://forums.slimdevices.com/member.php?userid=1516
> View this thread: http://forums.slimdevices.com/showthread.php?t=110286
>
>

Migrating LMS from Wandband to Pi 3B+ - how to transfer TrackStat settings?

$
0
0
My wandboard has started to die (I'm getting no HDMI out any more) and so I am going to migrate to a RPi3B+ to run LMS. I am going to run PiCorePlayer. It all seems quite straight forward, but one thing than I don't know how to do is migrate all of my settings/ database for Erland's plug-ins such as TrackStat.

Any advise how I can do this? By the way, my Linux level is basic, but I can follow instructions and have PuTTy set up!

Cheers

CW

squeezelit and snd-sun8i-i2s-dac

$
0
0
Hi,

I am using a minidsp SHD device. It is a room correction system using dirac and features a dac and additional an undefined arm board with volumio on it. There is a plugin for Volumio to run squeezelite. The version is v1.8.7-999. It is compiled with libwiringPi. The dac is supposed to be connected via I2S. I managed to compile the library and get the plugin to run.

Now The Question:

squeezelite -l gives me several devices:


null - Discard all samples (playback) or generate zero samples (capture)
default:CARD=sndsun8ii2sdac - snd-sun8i-i2s-dac, - Default Audio Device
sysdefault:CARD=sndsun8ii2sdac - snd-sun8i-i2s-dac, - Default Audio Device
dmix:CARD=sndsun8ii2sdac,DEV=0 - snd-sun8i-i2s-dac, - Direct sample mixing device
dsnoop:CARD=sndsun8ii2sdac,DEV=0 - snd-sun8i-i2s-dac, - Direct sample snooping device
hw:CARD=sndsun8ii2sdac,DEV=0 - snd-sun8i-i2s-dac, - Direct hardware device without any conversions
plughw:CARD=sndsun8ii2sdac,DEV=0 - snd-sun8i-i2s-dac, - Hardware device with all software conversions
default:CARD=Codec - H3 Audio Codec, - Default Audio Device
sysdefault:CARD=Codec - H3 Audio Codec, - Default Audio Device
dmix:CARD=Codec,DEV=0 - H3 Audio Codec, - Direct sample mixing device
dsnoop:CARD=Codec,DEV=0 - H3 Audio Codec, - Direct sample snooping device
hw:CARD=Codec,DEV=0 - H3 Audio Codec, - Direct hardware device without any conversions
plughw:CARD=Codec,DEV=0 - H3 Audio Codec, - Hardware device with all software conversions

If I take the sndsun8ii2sdac I only get noise which turns on and of if I start palying or stop.
I I take the H3 Audio Codec I get nothing.

It is the same, when I use the latest squeezelite from sourceforge.

Any idea why this is so?

The Volumio player works fine, but I have a complete Squeezebox environment so I prefer to use squeezelite.
Any help would be appreciated.

Greets Christian

New HiFiBerry DAC+ ADC with analogue input

$
0
0
There will be soon this HiFiberry Dac & ADC to buy.

Might be an easy solution to streaming vinyl from my Turntable, if I read this.

The DAC must be recognized by PiCorePlayer and the analogue input needs a menü in Jivelite probably. Installing something like this is beyond my capabilities I presume. Might this be incorporated into PiCorePlayer?

What do you think?

A nice Pi case !!

$
0
0
Perhaps like many I find the cases available for a Pi to be a bit ugly, very plastic and I particularly dislike the ports being all on different sides.

I have just built a new Pi based player which is going to use a USB DAC using this new little black aluminium case which features a clever add on card that puts all of the ports on one face of the box (the back).

Its quite well built but lacks any feet (easily sorted)

https://www.modmypi.com/raspberry-pi...ial-case-black



Name:  IMG_4684.jpg
Views: 253
Size:  225.3 KB
Attached Images
 

Picoreplayer or LMS flip audio wave on the fly? (audio polarity)

$
0
0
Hi all,

Is it possible with some trick or setting to reverse polarity on the fly for the songs that pcp plays? (or on the server side with LMS)

Cheers

piCorePlayer 4.1.0 Refusing Airplay Connections

$
0
0
Hello Everyone. I'm sorry if this has been addressed, but I have tried searching and the results have come back with an overwhelming number of results and I can't seem to find what I'm looking for. I have a multiroom audio system running on six Raspberry Pis, all running piCorePlayer 4.1.0. The LMS side of everything works fine without issue, however, when I try to play media from an iOS device (ver. 12.1.4), I get the error message "Unable to Connect to "XXX"" every single time. If I restart squeezelite and shairplay, it will work for a while, but I will eventually get the same issue. It does this on all of my piCorePlayers. I tried to figure out how to get and view the debug log, but again, too many results came up when I searched, leaving me frustrated and more confused. I am not very technically proficient in programming and computers, but great with following instructions. Any help would be immensely appreciated.

Prevent suspend / keep awake - shell script

$
0
0
I've just moved from a Windows XP Squeezebox server to a new Ubuntu machine and needed to sort out the power management.

Ubuntu power management appears to simply look for keyboard and mouse activity to determine if the machine is in use, and consequentially will suspend even if playing music. On XP I used the SrvrPowerCtrl plugin, but that was sometimes irritating in so far as it was unaware of keyboard and mouse activity!

This script essentially checks to see if any Squeezebox players are on, and also checks disk activity. The amount of data read/written to disk over 10 minutes is checked to see if it exceeds a threshold. If the computer needs to remain on the mouse is momentarily moved from its current location and back again to reset Ubuntu's suspend timer. The mouse move is practically invisible to the user.

The script may also be of interest to anyone wanting to script the CLI using netcat.

Tony



Code:

#!/bin/bash

# Moves mouse to reset sleep timer if at least one player is powered or disk activity
# exceeds threshold

# Requires iostat and xdotool
#(to install iostat - sudo apt install sysstat  -  sudo apt install xdotool)

# Tony Wilson 0319

IP="127.0.0.1 9090"       
threshold=10000            # you may need to tweak this!

while true
do
                          #find number of players
  echo
  echo $(date '+%H:%M:%S %d-%m-%Y')
  nplayers=$(echo "player count ?" | nc -q1 $IP | tail -c 2 )
  #echo $nplayers

  n=0
  power=0
        #loop through players to determine power status

        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' )
                pstate=$(echo "$pmac power ?" | nc -q1 $IP | tail -c 8 )
               
                printf "%-16s %-10s" "$pname"  "$pstate"
                echo

                pstate=$(echo $pstate  | tail -c 2 )
                power=$((power+pstate)) #count players powered on
                n=$(($n + 1))
        done
               
                sda_r0=$sda_r
                sda_w0=$sda_w
                sdb_r0=$sdb_r
                sdb_w0=$sdb_w
                                        #use iostat to check disk activity

                sda_r=$(iostat -d sda | grep sda | awk '{ print $5; }')
                sda_w=$(iostat -d sda | grep sda | awk '{ print $6; }')
                sdb_r=$(iostat -d sdb | grep sdb | awk '{ print $5; }')
                sdb_w=$(iostat -d sdb | grep sdb | awk '{ print $6; }')

                diff=$((sda_r-sda_r0  + sda_w-sda_w0 + sdb_r-sdb_r0  + sda_b-sda_b0))

                echo $diff kB read/write over 10 minutes

                if [ $diff -gt $threshold ]
                        then
                        power=$((power+1))
                fi
       
               
                #echo $power
                if [ $power -gt 0 ]               
                        then
                        eval $(xdotool getmouselocation --shell)
                        echo Move Mouse!
                        xdotool mousemove 100 100
                        sleep 0.1
                        xdotool mousemove $X $Y
                fi
sleep 600 # 10 minutes
done


piCorePlayer4.1.0 with LMS 7.9.2 and DSDPlayer plugin

$
0
0
Hi,

I have just for the first time, setup a new Raspberry Pi3B+ with a fresh piCorePlayer 4.1.0 Installation. Installed LMS, scanned my Music and everything works just fine.

I subsequently enabled the DSDPlayer plugin v1.0 to enable DSD over PCM in the same manner as I have another LMS 7.9.1 system running on Windows 10 with a Touch (with EDO) and SB3. This works just fine. However, on piCorePlayer LMS 7.9.2 I get the following message for the Touch player:

dsdplayer does not currently include a version of dsdplay which supports your server. dsd playback has been disabled for this player.

I assume I have missed something here, any ideas what please?

Thanks in advance, a new forum member but long time Squeezebox user! :-)

Logitech Media Server and nginx?

$
0
0
> I've currently got my LMS running in a docker container. To get it
> working with a VPN server, I'm proxying everything through nginx.


This sounds like too many components, each one asking for its own share
of problems...

Why would you need to pipe traffic through nginx in order to use VPN?
LMS uses more protocols than just http. Therefore you can't proxy
everything through nginx.

> [20:31:52.731491] slimproto:922 connected


slimproto is not http.

> Is there an nginx guru who can help me out? The 400 error in the nginx
> log implies a https error, but none of the comms are https, are they?


None is https. The web UI (port 9000) is http.

--

Michael

LAN connecting Raspberry Pi 3 (LMS) to Squeezbox Touch. How to?

$
0
0
Hello!
I want to connecting Raspberry Pi 3 with PicorePlayer (LMS) via LAN wire to transmit stream to Squeezbox Touch.
LMS works on the Raspbery and accepts the Internet via Wi-Fi.
Sharing the Pi's WiFi connection through the Ethernet port.
Tell me, how can this be done on PicorePlayer ?

Picoreplayer and VPN clients

PiCorePlayer - disable WiFi

$
0
0
Having tried running my PiCorePlayer/LMS system on WiFi I wanted to switch back to a wired connection. Simply turning WiFi off has left it non-working. Can I go into the config files and reset it that way?

IR Remotes with Linux based Players

$
0
0
I'm trying to get a feel of what different devices are out there. As of Linux 4.17, the linux kernel is dropping the irda stack and device drivers. This is due to the fact that it is currently broken, and nobody is maintaining the code anymore. See: https://git.kernel.org/pub/scm/linux...56e9d599872a36

What this means that with the next release of pCP 5.0, we will moving to a 4.19 kernel, which will for sure cause issues with folks. There are 3 different types of devices out there
  1. GPIO connected IR receivers - will still work, but may require different configuration
  2. USB connected receivers emulating keyboards - These should still work as they do today.
  3. Other USB based IR receivers - These will no longer work


We have to move to newer kernels to support new audio devices, but that does mean that older hardware is going to have to change. You will of course be able to maintain your current configuration with pCP 4.1.0



Could we get some responses with they types of remotes you maybe using and the associated IR receiver?

piCorePlayer: Problem with Equalizer

$
0
0
Hello,

I have a wonderful music player setup based on piCorePlayer on a Pi2, and IQaudIO's Pi-DAC+/Pi-AMP+ combo :D

But, as soon as I set up the equalizer, there are fast, periodic, plops (serveral times/sec).
I played a lot with different setting (auto-mute, unmute, ...), but couldn't get rid of this behaviour.

Does anybody have a hint for me what I could do to resolve this?

Thank you!
Frank

Here is my /usr/local/etc/pcp/pcp.cfg:
Code:

WIFI="on"
DEBUG="0"
MODE="30"
TEST="0"
NAME="(player name)"
OUTPUT="hw:CARD=IQaudIODAC"
ALSA_PARAMS="80:4::1:"
BUFFER_SIZE=""
_CODEC=""
XCODEC=""
PRIORITY=""
MAX_RATE=""
UPSAMPLE=""
MAC_ADDRESS=""
SERVER_IP=""
LOGLEVEL=""
LOGFILE=""
DSDOUT=""
VISUALISER="yes"
CLOSEOUT=""
UNMUTE=""
ALSAVOLUME=""
OTHER=""
AUDIO="iq_amp"
AUDIOBOOTSCRIPT=""
HOST=(hostname)
TIMEZONE="CET-1CEST,M3.5.0,M10.5.0/3"
CPUGOVERNOR="ondemand"
OVERCLOCK="NONE"
ADVOVERCLOCK="None"
CPUISOL=""
SQLAFFINITY=""
SQLOUTAFFINITY=""
CMD="Default"
FIQ="0xF"
ALSAlevelout="Default"
ALSAeq="no"
REBOOT="Disabled"
RB_H="0"
RB_WD="*"
RB_DMONTH="*"
RESTART="Disabled"
RS_H="0"
RS_WD="*"
RS_DMONTH="*"
CRON_COMMAND=""
AUTOSTARTLMS=""
A_S_LMS="Disabled"
AUTOSTARTFAV=""
A_S_FAV="Disabled"
USER_COMMAND_1="%2Fhome%2Ftc%2Fheadphone_detect"
USER_COMMAND_2=""
USER_COMMAND_3=""
JIVELITE="yes"
SCREENROTATE="0"
JL_SCREEN_WIDTH="0"
JL_SCREEN_HEIGHT="0"
SHAIRPORT="no"
LMSERVER="no"
LMSDATA="default"
SQLT_VERSION="basic"
SQBINARY="default"
SQUEEZELITE="yes"
GPIOPOWEROFF="no"
GPIOPOWEROFF_GPIO="17"
GPIOPOWEROFF_HI="yes"
GPIOSHUTDOWN="no"
GPIOSHUTDOWN_GPIO="22"
GPIOSHUTDOWN_HI="yes"
GPIOSHUTDOWN_PU="down"
POWER_GPIO=""
POWER_OUTPUT="L"
POWER_SCRIPT=""
IR_LIRC="no"
IR_GPIO_IN="25"
IR_GPIO_OUT=""
IR_DEVICE="lirc0"
IR_CONFIG=""
LMSWEBPORT=""
FSM="Default"
LMSCONTROLS="yes"
PLAYERTABS="yes"
HDMIPOWER="on"
APMODE="no"
AP_IP=""
RPI3INTWIFI="on"
RPIBLUETOOTH="off"
SAMBA="disabled"
WOL="no"
WOL_NIC=""
WOL_LMSMACADDRESS=""
SPARAMS1=""
SPARAMS2=""
SPARAMS3=""
SPARAMS4=""
SPARAMS5=""
INTERNET_CHECK_IP=""
ROTDASH="no"
SHAIRPORT_OUT="hw:CARD=IQaudIODAC"
SHAIRPORT_CONTROL="Digital"
NETWORK_WAIT="50"


Alarm Clock Not Working in Ubuntu

$
0
0
I tried to use the alarm clock on my new server set up and found that it didn't work. The server is normally suspended and wakes properly using WOL. Wake set by OS is set in the BIOS.
Digging a little deeper:
Code:

media@media-pc:~/Desktop$ dmesg |grep rtc
[    2.067321] rtc_cmos 00:00: RTC can wake from S4
[    2.068425] rtc_cmos 00:00: rtc core: registered rtc_cmos as rtc0
[    2.068488] rtc_cmos 00:00: alarms up to one day, y3k, 242 bytes nvram
[    2.122240] rtc_cmos 00:00: setting system clock to 2019-04-06 10:49:19 UTC (1554547759)

It therefore appears that the motherboard only supports alarms up to one day. Has anyone come up with a workaround? The concept would be along the lines of a scheduled wake each day to set the alarms.

Help appreciated.

Tony

Squeezelite CPU at 87% while converting CBR->FLAC

$
0
0
Hello All,

I am listening to Spotty, and noticed that Squeezelite is hogging the CPU at 87%, steady, converting a 705kbps CBR to FLAC.
I wonder if it has to be so.

I use this entry level two core server for printing pictures on fine art paper, and I had some crashes lately, after an Nvidia update, wasting expensive inks and sheets.
Because the print is quite a slow process, I thought I'd install SqueezeLite, to enjoy some music waiting for the print to come out.
I had some trouble to make it up and running, and I thought it was an Nvidia driver problem conflicting with an USB sound card, however, now it seems to work fine.
So I am starting to think that it might be a CPU problem.

Thanks for reading and commenting,
ciao,

-Gian

[How To] Control LMS with any input device

$
0
0
Interesting concept! Thanks for sharing.

> keypress.KEY_VOLUMEDOWN = /bin/bash /usr/local/bin/sb-command.sh "mixer volume +5"


Should be "-5"?

> keypress.KEY_VOLUMEUP = /bin/bash /usr/local/bin/se-volume.sh "mixer volume +5"


sb-command.sh or se-volume.sh?


--

Michael

Samba: Permission Asking

$
0
0
I am using the latest version of Picore. And I could access the content through samba.
But now I can't. The 2nd screenshot it says "The folder named Hdd can't be opened because of you not having the permission to see whats in"

Wow! How could lock itself up? And anybody experienced this before?

Name:  Ekran Resmi 2019-04-20 16.53.22.png
Views: 96
Size:  24.4 KB
Name:  Ekran Resmi 2019-04-20 16.53.34.png
Views: 92
Size:  24.0 KB
Attached Images
  

Volumio: is there touchscreen interface like jivelite for pcp?

$
0
0
Have a volumio based pi machine with touchscreen. Is there a SBT touchscreen emulator like the jivelite for picoreplayer? I can’t find a reference to any thing at the Volumio forum.
I could switch the machine to pcplayer, but would prefer not to.
Viewing all 1518 articles
Browse latest View live