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

Reconnect wifi if connection lost

$
0
0
Hi,
I'm running PcP on a PiZero as a client.
There are 2 servers available running the LMS.

I set up the wpa_supplicant.conf for multiple networks and assigned different priorities for the Zero to connect to.
Code:

network={
        ssid="Network1"
        psk="password1"
        key_mgmt=WPA-PSK
        auth_alg=OPEN
                priority=2
}
network={
        ssid="Network2"
        psk="password2"
        key_mgmt=WPA-PSK
        auth_alg=OPEN
                priority=1
}
network={
        ssid="Network3"
        psk="password3"
        key_mgmt=WPA-PSK
        auth_alg=OPEN
                priority=3
}

This works, but if the primary WiFi is lost, the Zero will not connect to the other available net.
It will also not reconnect if the primary net is available once again.

Is this the intended behavior or is something going wrong?

There are many solutions to force a reconnect but I can't determine if they're necessary any more.

Where is rsync in 5.0.0?

$
0
0
Hi I'm running PCP 5.0.0 and have been looking through all the config pages in Advanced and Beta mode, and scouring the forums, and I'm sorry, I just can't figure out where the option is to install or enable rsync. The 5.0.0 announce thread mentions it many times, but I didn't see where it is enabled.

Thanks for any help!

picoreplayer 5.0 on raspi 2B: Help for Wlan-Config

$
0
0
Helo together,

i just started to use picoreplayer on my raspi. i use it with lms and player. works great over ethernet-cbable.
now i put in my usb wlan dongle - when i log into pico with ssh a dmesg shows:

Code:

[ 5552.252089] usb 1-1.3: new high-speed USB device number 5 using dwc_otg
[ 5552.383241] usb 1-1.3: New USB device found, idVendor=0cf3, idProduct=7015, bcdDevice= 2.02
[ 5552.383260] usb 1-1.3: New USB device strings: Mfr=16, Product=32, SerialNumber=48
[ 5552.383271] usb 1-1.3: Product: USB WLAN
[ 5552.383282] usb 1-1.3: Manufacturer: ATHEROS
[ 5552.383293] usb 1-1.3: SerialNumber: 12345
[ 5920.594086] usb 1-1.3: USB disconnect, device number 5
[ 5922.422090] usb 1-1.2: new high-speed USB device number 6 using dwc_otg
[ 5922.553322] usb 1-1.2: New USB device found, idVendor=0cf3, idProduct=7015, bcdDevice= 2.02
[ 5922.553341] usb 1-1.2: New USB device strings: Mfr=16, Product=32, SerialNumber=48
[ 5922.553352] usb 1-1.2: Product: USB WLAN
[ 5922.553363] usb 1-1.2: Manufacturer: ATHEROS
[ 5922.553374] usb 1-1.2: SerialNumber: 12345
[ 5930.578080] usb 1-1.2: USB disconnect, device number 6
[ 5932.412100] usb 1-1.2: new high-speed USB device number 7 using dwc_otg
[ 5932.732084] usb 1-1.2: device descriptor read/64, error -71
[ 5932.983279] usb 1-1.2: New USB device found, idVendor=0cf3, idProduct=7015, bcdDevice= 2.02
[ 5932.983300] usb 1-1.2: New USB device strings: Mfr=16, Product=32, SerialNumber=48
[ 5932.983311] usb 1-1.2: Product: USB WLAN
[ 5932.983322] usb 1-1.2: Manufacturer: ATHEROS
[ 5932.983333] usb 1-1.2: SerialNumber: 12345
[ 7145.942831] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 7145.983039] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 7145.983271] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 7145.983284] cfg80211: failed to load regulatory.db
[ 7146.078872] usb 1-1.2: ath9k_htc: Firmware ath9k_htc/htc_7010-1.4.0.fw requested
[ 7146.079034] usb 1-1.2: Direct firmware load for ath9k_htc/htc_7010-1.4.0.fw failed with error -2
[ 7146.079056] usb 1-1.2: ath9k_htc: Firmware htc_7010.fw requested
[ 7146.079145] usb 1-1.2: Direct firmware load for htc_7010.fw failed with error -2
[ 7146.079158] usb 1-1.2: no suitable firmware found!
[ 7146.079167] usb 1-1.2: ath9k_htc: Failed to get firmware htc_7010.fw
[ 7146.079989] usb 1-1.2: ath9k_htc: USB layer deinitialized
[ 7146.080316] usbcore: registered new interface driver ath9k_htc

But i cannot conigure the wlan through the web interface - it says:

"WARNINGS:

/usr/local/etc/pcp/wpa_supplicant.conf not found.
"

I uploadet the diag messages

paste name: pCP-2B-833f04-wifi
https://pastebin.com/4bvEUh0D


Thanks for some hints

Fabi

Picoreplayer on AML8726 (wetek 1)?

$
0
0
Hi,

i have a wetek 1 with on board digital audio:

Code:

AMLogic AML8726-MX Dual-Core ARM Cortex A9 CPU @ 1.5 GHz
actual it runs libreelec.

I like to use picoreplayer on it. would this be possible?

Thanks for hints

Can My PiCorePlayer do other things too?

$
0
0
I must admit to having zero knowledge of Linux but with the help of this forum I built a Pi based LMS using PiCorePlayer and also use it to store all my music on a SSD.

Is it possible to run other programs too? I'm thinking of JRiver Media Centre which I use for all my music management, they have a Pi version available and I would like to use their media network to share music to other devices than my Squeezeboxes.

Is this possible?

Thanks in advance

Craig

official RPF touchscreen not fully recognized?

$
0
0
Greetings,

I have a raspberry pi 3 with the official RPF 7" touchscreen.

When I boot it in PiCorePlayer 5.0, the screen is correctly detected for display, but I have no touchscreen.
In the piCorePlayer menu (accessed trough keyboard) the option "adjust LCD brightness" I always get "no official raspberry pi display found" (or something to that end)

Where do we find the correct drivers to install for touchscreen and brightness control?

Thanks.

Need help installing on Debian 10

$
0
0
> This is perl 5, version 28, subversion 1 (v5.28.1) built for
> i686-linux-gnu-thread-multi-64int


You'll have to build the binaries yourself (or find somebody who already
did). We do not include them in LMS.

--

Michael

piCorePlayer & RTL8188eus wifi dongle

$
0
0
Hello.

I got a USB dongle off ebay. the mini DVD that came with it seems to point to its chipset being RTL8188eus.

I am at a loss as to how to make this work with picoreplayer. if this changes anything I am using piCorePlayer 5.0.0 w/ kernel 4.19.40-pcpCore on this specific unit (not that I cannot install another version if anything would help...)

I read on https://www.picoreplayer.org/main_news.shtml the mention "Added driver for rtl8188eu chipset" on piCorePlayer 4.0.0 (Kernel 4.14.56) and figured I should be able to get this running, but alas it seems it is not plug and play.

If anyone has any pointers on how I should be proceeding, this would be greatly appreciated.

LMS on Debian server: file permissions

$
0
0
Hi guys, could use some help here. :o

I moved LMS from a RPi to a Debian Buster LXC which, overall, is a big improvement:
- scrolling/searching tracks is much faster
- BT pairing on the zero also is much faster and playback is more in sync
- the main RPi with LCD has some hiccups and rebooting doesn't influence LMS/playback anymore

The only thing is that I have some issues with file permissions and I'm not a Linux expert at all.
- I cannot save playlists from squeezer or the LMS web UI
- syncing the music folder with Syncback or Robocopy from my desktop towards the SMB share works but Robocopy prompts as if the files are new, even if they already exist.

My setup is a Proxmox server with a LXC which runs Debian Buster, Samba and LMS.
The share is on a bindmounted host HD.

TIA

LMS on Alpine Linux

$
0
0
I've got:
Code:

Logitech Media Server (v7.9.2, 1576909043, Sat Dec 21 07:49:57 CET 2019) perl 5.030001 - aarch64-linux-thread-multi
Running on a Raspberry Pi 4 with Alpine Linux 3.11.2:
Code:

Linux rpi4 5.4.6-0-rpi4 #1-Alpine SMP PREEMPT Tue Dec 24 11:53:25 UTC 2019 aarch64 Linux
Besides my bumbling (but ultimately successful) install with Fedora 31 on the Pi 3 B+, I don't have much experience with the installing LMS other than from the Windows installer or a Linux package of some sort.

I've read multiple posts on the subject like:

This guide by Roland0
This post by Stuarty
and this succinct one from Paul-

Paul-'s post doesn't mention needing slimserver-vendor. I guess I'm a little unclear still about the relationship between Perl versions, module versions, the two repos (slimserver-vendor and slimserver), and the various packages.

For this effort on Alpine, I mostly followed Stuarty's post above, basically:

- Cloned the slimserver-vendor repo and built the modules directly on the RPi4 with Alpine. This did require some minor edits here and there to get everything to build correctly. I can post my notes if anyone is interested.
- I also built the other binaries from the slimserver-vendor source (alac, faad, flac, sox, and wvunpack)
- Downloaded the "Logitech Media Server: Unix Tarball - No CPAN Libraries" archive and moved the modules under arch/5.30/aarch64-linux-thread-multi/ and binaries under Bin.

That seems to work ok, I can access the web interface, complete the setup, and stream music to a client. I haven't tested much beyond that.

I'm interested in feedback on whether this is a "good" process for getting a working LMS on an OS that doesn't have a pre-built package? My next step would be to try to get an APKBUILD together for it but I don't really want to go down that road until I have better feel for whether I'm taking the right build approach here or not. I've looked at some of Gentoo's ebuild files for LMS and they are a little scary (to me).

Based on Roland0's post, I *think* the main con to my current approach is that I'm tying the modules to the Perl version shipped on this release of Alpine which means that if Alpine updates Perl then that might break LMS?

picoreplayer and atheros wifi dongle

$
0
0
Warning - lots of ignorance will be on display here.

I'm trying to use a Netgear WNA1100 wifi dongle in my pi Zero. Pcp sees and identifies it, and tries to load the firmware htc-9271.fw. It doesn't find it.

I run tce-ab and search for 'firmware' - it comes up with (among others) firmware-atheros. I look at the files in firmware-atheros, and they include the one I need. I say 'install', and its says 'already installed!'.

I look in lib/firmware, and some atheros stuff IS there, but not the bits I need.
I try to delete firmware-atheros with tce-audit so I can re-install it, but the computer says 'no'.

As I said earlier, ignorance is on display here... what is it I don't know that will enable me to install the latest firmware package?

piCorePlayer and NTP updates

$
0
0
Hi,

I just installed 5.0.0 on my RPi3+HifiBerry AMP2+. Works great. I noticed that NTP is already installed (it wasn't with v.4.1.0). How do I change the server? I tried setting it to my local server in /etc/sysconfig/ntpserver but it keeps setting itself to the original line after reboot. Any tips?

Thanks

Ubuntu w LMS 7.92, problem mapping NAS drive

$
0
0
I have installed Ubuntu 18:04.3 LTS and LMS 792 on a NUC

My problem is that I cant map my nas smb://192.168.2.xx/music (login details) NAS is a Qnap 419p

I can navigate to the NAS folder from my NUC with no problem, SMB/AFP and all other protocols work fine.


I have moved from Vortexbox, but Linux is not my home turf.

Please help

piCorePlayer & wifi - any way to enforce?

$
0
0
I have a few pi running picoreplayers with wifi.
When they boot, they get the wifi dongle on, and try to reach the hotspot

"trying to discover"

They try 3 times, then resort to trying wired Ethernet.
But they are not connected through wire.

Sometimes it "discover" on 1st or 2nd try, but sometimes I feel they could use 4 or 5. And then they don't reach the server.

Is there a way to augment the number of tries?

piCorePlayer + Wolfson DAC Card

$
0
0
I have a Raspberry PI (B Rev 2 I believe) with a Wolfson DAC Card mounted on the PI.
I wish to install piCorePlayer with the output from the Line-Out of the Wolfson DAC Card.
I've successfully installed piCorePlayer 5.0.0 with output from the PI Headphone socket and via a USB DAC.
However, I have been unsuccessful in obtaining an output from the Wolfson Card Line-Out or Headphone socket.
I have selected the Cirrus Logic Card option as the Audio Output Device option and tried various Squeezelite Output settings - all unsuccessful in obtaining an output
Pressing the "Card Control" button does not give any options. I expected options to direct the audio output to Line-Out, Headphone, HDMI, etc.
Squeezelite is running and the piCorePlayer option is visible from LMS
Any help in successfully running my PI+Wolfson will be much appreciated - Thanks.

piCorePlayer exposing WiFI password

$
0
0
Hi,

happily running version 5.0.0 of the piCorePlayer. I noticed that under About -> Current configuration[ INFO ] /usr/local/etc/pcp/pcp.cfg, the password of the wifi network is being shown. I feel this is quite insecure:
a) because the connections to the GUI is via http and not https (i can't find a setting to let it default to https)
b) anyone connecting on the same wifi WLAN will see the password ... you could argue that someone that is on the WLAN would have already acquired the password somehow but still, this is not appropriate in my view.

Is there a way of:
a) defaulting the GUI to https?
b) masking the password in the GUI?
c) connecting to the GUI only via login/password?

I know that if I connect a screen and keyboard to the RPi I can turn the GUI off, but its very inconvenient to have to do so an then turn it back on when you need to make some changes to settings (this is what I'm doing at the moment, which is quite tedious ...)

Any suggestions on how I can improve this and make things more secure without having to turn the GUI on/off all the time?

Thanks

WaveShare 7'' touchescreen calibration issue with Jivelite

$
0
0
Hello


I've moved this message from an other thread to a new thread as this is concerning 7'' screen waveshare.

I have the touchscreen 7'' Waveshare HDMI LCD (C) on a raspberrypi 3B with PicorePlayer 5.0

I adapted pcp_startup.sh accordingly to use BYZHYYZHY By ZH851 Touchscreen as identifier.

I: Bus=0003 Vendor=0eef Product=0005 Version=0110
N: Name="BYZHYYZHY By ZH851 Mouse"
P: Phys=usb-3f980000.usb-1.4/input0
S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:0EEF:0005.0004/input/input6
U: Uniq=c0U585P865
H: Handlers=mouse1 event5 js0
B: PROP=0
B: EV=1b
B: KEY=70000 0 0 0 0 0 0 0 0
B: ABS=3
B: MSC=10

I: Bus=0003 Vendor=0eef Product=0005 Version=0110
N: Name="BYZHYYZHY By ZH851 Touchscreen"
P: Phys=usb-3f980000.usb-1.4/input0
S: Sysfs=/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:0EEF:0005.0004/input/input7
U: Uniq=c0U585P865
H: Handlers=mouse2 event6
B: PROP=0
B: EV=1b
B: KEY=401 0 1 0 0 0 0 0 0 0 0
B: ABS=100 3
B: MSC=10

in config.txt, I've added the following

Code:

max_usb_current=1
hdmi_group=2
hdmi_mode=87
hdmi_cvt 1024 600 60 6 0 0 0
hdmi_drive=1

Everything works fine for display, except the touchpad feature. only top-left corner seems ok. I cannot press anything on Jivelite. I must use a mouse to configure and use jivelite.

So I presume I shall calibrate the touchscreen. I did the following:

Code:

sudo TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVICE=/dev/input/event6 /usr/local/bin/ts_calibrate
I see the crosshair.

It seems the calibration process does not work well: sometimes it does not pass via all the corners points and jumps directly to the end. Thus the calibration file pointercal is not good.

Here is my ts.conf file:

Code:

# Access plugins
################

# Uncomment if you wish to use the linux input layer event interface
module_raw input

# For other driver modules, see the ts.conf man page


# Filter plugins
################

# Uncomment if first or last samples are unreliable
# module skip nhead=1 ntail=1

# Uncomment if needed for devices that measure pressure
#module pthres pmin=1

#module variance delta=30

# Uncomment if needed
 module debounce drop_threshold=500

# Uncomment if needed to filter spikes
# module median depth=5

# Uncomment to enable smoothing of fraction N/D
# module iir N=6 D=10

# Uncomment if needed
# module lowpass factor=0.1 threshold=1

# Uncomment if needed to filter noise samples
#module dejitter delta=100

# Uncomment and adjust if you need to invert an axis or both
# module invert x0=800 y0=480
#module invert x0=1024 y0=600

# Uncomment to use ts_calibrate's settings
 module linear

I tried to use different values, no effect.

I tried to calibrate by pressing very fast the screen to pass successfully to 5 area and I got this:

Code:

tc@piCorePlayer:/usr/local/bin$ sudo TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVICE=/dev/input/event6 /usr/local/bin/ts_calibrate
xres = 1024, yres = 600
Took 4 samples...
Top left : X =  16 Y =  600
Took 11 samples...
Top right : X =    0 Y =  600
Took 10 samples...
Bot right : X =    0 Y =  600
Took 8 samples...
Bot left : X =    0 Y =  600
Took 18 samples...
Center : X =    0 Y =  600
ts_calibrate: determinant is too small -- 0.000000
Calibration failed.

Sometimes, when it skips some calibration corners, the file is properly generated but of course the parameters are wrong.

So I'm stuck. is there an alternative to generate this pointercal config file ? to calibrate this screen ?

I've done some search on this forum and abroad without finding the right calibration parameters.


any idea to solve that problem ?

Thank you and happy new year to all !

Thomas

PS: i tried this touchsreen on Standard Raspbian desktop OS and it works like a charm without any config except config.txt

PiCorePlayer + OLED (SH1106) + Menu possible?

$
0
0
I am using piCorePlayer with an OLED (SH1160; 128x64) and LMSMonitor to show actual playing info on this display. I also have some buttons and ir installed to controll the player "headless" with sbpd and lirc. It is working well.

Now I wonder if it is possible to use the OLED Display to show a "minimal" navigation menu for music and internet radio like with slimmer or JiveLite?

Any suggestions for necessary software components and configuration?

picoreplayer USBridge auto on AMP

$
0
0
Hello, I'm using latest pcp6 and Allo USBridge. USBridge->USB->AMP (Primare)
I'm very happy with this combo but there is one thing not working.

If I start playing music and my AMP is off it is supposed to get switched on automatically by USB signal.
It's working with a different software (I think it was DietPi) but not with pcp6. I've tried also previous version of pcp with no success.
Do you have any idea how to fix?

cheers Sebastian

Jivelite on Alpine Linux

$
0
0
I've managed to build Jivelite for Alpine Linux armhf on the Raspberry Pi Zero W. I used the source from: https://github.com/ralph-irving/jivelite

No X environment, just the base install with the SDL, luajit, libpng etc. packages added. The pi is connected to my non-touch monitor via HDMI @ 1920x1080. When I start Jivelite I see "Jive Lite" on the screen briefly and then it goes to a blank screen and that's it.

When I ran fbset originally it was showing 640x480 which I don't really believe somehow, I set 1920x1080 in config.txt and fbset reflected that after reboot but it looked the same to me. Jivelite did the same thing when I started it. I can sometimes get back to the console by randomly pressing some keys on the keyboard and when I do I see some messages had been logged to the console while jivelite was running:

libpng warning: Interlace handling should be turned on when using png_read image
libpng warning: iCCP: known incorrect sRGB profile

I'd appreciate any tips to troubleshoot this, I feel like I'm close and would like to get this working.
Viewing all 1530 articles
Browse latest View live