Quantcast
Viewing all 1518 articles
Browse latest View live

Jivelite on a Joggler

I have a couple of O2 Jogglers that I use solely as touch controllers in a couple of locations around the house. I'm running Squeezeplay OS on them, but an unwanted side-effect is that each Joggler shows up as a player in LMS. It was suggested to me (in this thread) that I should try to get Jivelite running instead, since the interface would be the same, but without the software players.

I have very little Linux experience, but I've been having a go this evening. I've made some progress, but have hit some snags, and I'm hoping some on here might be able to help me with them.

I started by making a bootable USB stick with the ext4 Ubuntu base/server image from here. My reason for going for a base/server image was that I thought I could fit one of those images into the 1GB of flash storage on the Joggler, but since it wouldn't boot up after trying to 'reflash' that image (probably because the image expands to ~2GB) I have switched to booting off a USB stick. It might therefore have made more sense to start with a more complete image, so that more packages/features are available from the start, but I do still hope to fit the finished setup into the flash memory, so a smaller starting point is better. So one question I have is what would be the best (smallest?) starting point to base this install on, or is there an easy way to remove stuff from a working system to leave just what's needed to run Jivelite? Whoever created Squeezeplay OS must have done something like that I guess.

Then I followed the instructions for compiling and installing Lua and Jivelite, as given in step 4 here. I had to connect the Joggler via an ethernet cable, since I've been unable to get the wifi connected (a task for later). So another question - any tips for getting the wifi going? I followed instructions that I found on a couple of different sites, but nothing has worked so far.

The Jivelite and Lua compilations went OK in the end though - no warnings or errors. But Jivelite won't start. It gives me an "Invalid width or height" error. I figured this might be due to the wallpaper. The Hagensieker site has some files for the 800x480 screen size of the Joggler, so I copied those into the specified locations (without checking whether they were actually any different from the existing versions of those files), and on looking through SetupWallpaper.lua I noticed that the 800x480 wallpaper names should have a 'PCP_' prefix. In my wallpapers folder I only had files with BB_, FAB4_ and JIVE_ prefixes, so I copied all the PCP_ files from a pCP installation. But no joy - I still get the "Invalid width or height" error.

So my main question is therefore, what's causing this "Invalid height or width" error, and how do I go about fixing it?

Maybe my first question should have been "Is there already a flashable image for a Joggler that simply runs Jivelite?"?

Moving Configured PCP to Different Network

Is it possible to easily reconfigure a PCP/LMS install to another network? All music is local (USB drive) and LMS is configured locally on the Pi. I just wanted to move the unit to a different SSID. Can I just change the wpa_supplicant.conf file to reflect the new network credentials?

Thanks in advance!

LMS with perl-5.26

running gentoo, upgraded to stable perl-5.26.2

now LMS-7.9.1 or LMS-7.9.2 (tried both) will not start with error:

The following modules failed to load: EV JSON::XS Digest::SHA1 YAML::XS

any fix known?

crond synch time

New to this rasperry pi and picoreplayer


I have been trying for days to get picore player to run but im stuck with crond syncing time
I have goggled everywhere to find the answer
Any advise please ??

piCorePlayer 4.1.0 with LMS and SuperDateTime Plugin

Hello,
I set up a Raspberry Pi3B+ with a fresh piCorePlayer Installation. Installed LMS, scanned my Music and everything works fine so far.
But as soon as a install the SuperDateTime Plugin in LMS (tried both, the WU and Weather.com Version) i lost the Ability to restart LMS via
the pCP LMS Page. I can Stop LMS but Start or Restart is not working.
It's not the biggest Problem but after any LMS Update or Changes in the Plugins i have to reboot the complete Raspberry to get
LMS starting again.
Maybe someone has an idea or workaround for me.
Thanks

Can I resize a disk image?

I'm hoping someone can tell me how to resize a disk image. Here's my problem:

I created a bootable USB by writing an image file using 'Etcher' on my Macbook. The source image (this one) requires a 2GB stick. I have a couple of sticks that are nominally 2GB, but in fact they are a fraction too small (1.99GB), so Etcher fails at the last moment. I have another nominally 2GB stick, which is in fact 2.1GB, so Etcher successfully writes the image. It creates a disk that has three partitions (boot=64.0MB, swap=255.9MB, linux=1.7GB)

I've then made some changes to that base image (by installing Jivelite on a Joggler), and I'd like to take an image of the result, so that it will fit on another '2GB' stick.

If I do a 'dd' on e.g. /dev/sdb, it makes an image of the entire disk, including all three partitions (boot, swap, linux), but the resulting image is now 2.1GB (even though the three partitions are exactly the same size as the original image). The disk image size seems to be fixed to the physical size of the USB hardware. So now, if I want to put that image on another stick, the stick will have to be at least 2.1GB.

So is it possible to reduce the disk image somehow, so that it's no bigger than the sum of the three partitions?

Jivelite and (hopefully) Screen Switcher Applet

Hello,
i used my Squeezebox-Touch for years but now i switched to a Raspberry 3 with pCP, Jivelite and 7'' display. This setting is a good replacement for my old touch but there is on thing i really miss.
It's the Screen Switcher Applet from Erland Isaksson. http://wiki.slimdevices.com/index.ph...witcher_applet
Sadly it is not listed in the Applet Installer.

Is there any chance to get this applet working in jivelite?
Maybe someone has a good idea.

Thanks

pieCorePlayer hardware question

I'm looking at building a pCP in an existing housing using a raspberry pi zero w and a DAQ. I have 24V, 18V, or 12V DC (clean) available from the existing power supply and was wondering what my best option is for stepping this down for the raspberry pi? Would a Pololu 5V, 2.5A Step-Down Voltage Regulator D24V22F5 work or is the RPi input going to be too noisy for audio?

piCorePlayer v4.1.0 odd Date & Time

There have been some discussions already about time setting in pCP, but I think in my case, there is really something odd going on:
I am running:
piCorePlayer | piCorePlayer v4.1.0 | linux 4.14.81-pcpCore | piCore v9.2pCP | Squeezelite v1.9.0-1121-pCP
(Which I think is the latest version; I installed this version from scratch, so no updates etc)
on a PiZeroW

When I boot, pCP Webpage lists a 1970ies date in the bottom.
(I definetely have Internet access; I also tried to change the time server and also time zone w/o success in correcting the time)

But what is really strange is that when I manually want to change the date via ssh and do i.e. "sudo date 20190126",
the date does not adjust accordingly, but just increments by one year to "Sat Aug 19 01:26:00 CEST 1971"!
If I redo the above sudo command, the date increments again by 1 year. And so on.
So, I can not even manually change the date.

This is more a cosmetic issue, but it bugs me a little and I guess it will cause trouble at some point with plugins, as this is also the date/time LMS is reporting in logs etc.

Is anyone else seeing this with the above pCP build and a PiZero connected via WLAN?

The provided flac 1.3.2 fails with "Illegal instruction"

Hello,

The newer flac 1.3.2 that comes with LMS 7.9.2 unfortunately fails on the very old Linux OS of my Thecus 3200PRO. E.g. when testing a flac file with the "-t" option, I am getting the following error:

Illegal instruction

The previous version that have been shipped with the older LMS releases is working fine.

As a workaround I am currently linking the "Bin/i386-linux/" directory from an older LMS version.

I wonder if it would be possible to review and compare the make flags with the older working one and provide a new compiled version that is backward compatible to older OSs / CPUs? My Thecus 3200PRO comes with an AMD Geode CPU.


Best regards
Budjer

way to detect Picoreplayer connected to LMS

Hello everybody.
I think about add a feature to Picoreplayer and raspberry.
sometimes when I turn on my zero w to connect picoreplayer to Logitech media server , I always don't have Hdmi output to understand what status it is in,
recently I wrote a sh script to turn on led when it is connected to wifi with bash scripting gpio.

I want to ask you a solution ,
is there a way or parameter i can check when it is connected to LMS server?
for example after connecting a variable or flag is set and I can check it in loop.
the wifi led method I used is good but as I said connecting to lms server or for example finding out this zero w is detected by server and synced and after that turn the led on is more reliable.

Two different players on my system

Hi,
I installed PicorePlayer on my Raspberry with the DAC Hifiberry PRO +.
I see that I have two different players PicorePlayer
Which should I use ? Both work.
If in the option card of the DAC audio output device I disable Raspberry built-in audio, I have only one player but in this case I have "Squeezelite in not running" on the main page. What should I do ?

Thanks for your help.

pCP - ADS7846 Touch.... but Y inverted

I have a Kedei/waveshare ADS7846 + HDMI display which in config text has

Code:

dtoverlay=ads7846,cs=0,penirq=25,swapxy=1,speed=10000,penirq_pull=2
,keep_vref_on=1,xohms=150

I run

Code:

tc@piCorePlayer:~$ sudo TSLIB_TSDEVICE=/dev/input/event0 /usr/local/bin/ts_calibrate
xres = 480, yres = 320
Took 6 samples...
Top left : X =  265 Y = 3728
Took 4 samples...
Top right : X = 3824 Y = 3844
Took 5 samples...
Bot right : X = 3869 Y =  271
Took 6 samples...
Bot left : X =  260 Y =  254
Took 3 samples...
Center : X = 1977 Y = 1986
-23.010315 0.128281 0.000717
328.396729 0.001586 -0.085109
Calibration constants: -1508004 8406 47 21521808 103 -5577 65536

Which all works when I run tc_test.

So when Jivelive fires up and gives language selection, the Y is inverted. X is fine.

I also tried swapping swapxy=0 and re running the calibrate.

The ribbon connector is top right and the jivelite orientation matches the "boot" orientation.

For info grabbed from the waveshare site I also added this lot, which was mainly as I was dropping the resolution to 480
Code:

hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt 480 320 60 6 0 0 0
hdmi_drive=2

How can I swap the Y?

TinyCore-Sound-Adjustments Script

Help requested with ScreenSavers applet

I'm trying to tweak the behaviour of the Jivelite ScreenSavers applet to make it more appropriate for a device that only controls other players connected to LMS. I've built Jivelite for use on a Joggler (see Jivelite on a Joggler), which is a touchscreen device. I've been posting about this issue in that thread, but I don't think it's necessarily a Joggler-specific issue, so I'm posting here in the hope of getting wider input.

My use case is probably self-evident: Since my build of Jivelite does not include Squeezelite (no need for it), there is no 'local' player, and hence no 'while off' screen saver. The only way to make a clock screensaver appear is to pause the currently selected player, and if that player happens to be in a synced group then playback stops everywhere.

My intended behaviour is to allow the 'when off' screensaver to activate when the currently selected player is powered off. I'd also like to be able to touch the screen to wake it, and select a different player, without the currently selected player being powered up.

I'm making progress (see here), but I'm stuck on a specific issue, so I'm hoping someone can help. I'd also appreciate thoughts on my 'intended behaviour', and whether there's an easier way to achieve this.

Here's what I've done so far.
1) I commented out the check on whether there's a local player.
Code:

        -- only present a WHEN OFF option when there is a local player present
--        if Player:getLocalPlayer() then
                menu:addItem(
                        {
                                text = self:string("SCREENSAVER_WHEN_OFF"),
                                weight = 2,
                                sound = "WINDOWSHOW",
                                callback = function(event, menu_item)
                                                  self:screensaverSetting(menu_item, "whenOff")
                                          end
                        }
                )
--        end

This meant that the 'whenOff' screensaver option is now available on my player-less Joggler. And it seems to work as expected. However, while the 'whenOff' screensaver is displaying, touchscreen events are ignored, so it's not possible to touch the screen to wake the Joggler.

2) I fixed this behaviour by commenting out the code that prevents processing of the mouse event:
Code:

                        if event:getType() == EVENT_MOUSE_PRESS or
                          event:getType() == EVENT_MOUSE_HOLD or
                          event:getType() == EVENT_MOUSE_DRAG then
                                if self.mouseAllowed then
                                        log:debug("'Per window' mouse event allowed to pass through")
--                                        return EVENT_UNUSED

                                end
                        end
                        log:debug("Closing screensaver event=", event:tostring())

                        self:deactivateScreensaver()

So now I can touch the screen to deactivate the 'whileOff' screensaver, but in doing so it also powers up the currently selected player. That's not always desirable, e.g. if it's a Radio in a bedroom.

3) I fixed this behaviour by commenting out the code that powers up the player.
Code:

        if not self:isSoftPowerOn() then
--                jiveMain:setSoftPowerState("on")
        end

So now I'm very nearly there. The issue I now have, that I'd appreciate help with, is that when I switch players, the 'whenOff' screen saver appears to continue to respond to the power state of the previously selected player, i.e. I touch the screen to wake the Joggler, select a different player that is NOT powered off, but the 'whenOff' screensaver continues to activate because the previous player is still powered off. If I cycle the power on the 'new' player, then the behaviour of the 'whenOff' screensaver is corrected. I'm guessing I need to update the screensaver code to listen for the power status of the new player somehow, but I'm at a loss as to how to do this. The odd thing is that the 'when stopped' screensaver DOES appear to respond to the new player's status already.

Why can't I install LMS 7.9.2 on Fedora 28?

When I try, I get this

# rpm -i ./logitechmediaserver-7.9.2-0.1.1550612824.noarch.rpm
error: Failed dependencies:
perl >= 5.8.8 is needed by logitechmediaserver-7.9.2-0.1.1550612824.noarch

...but I have perl 5.26.3.

I'm sure I have this version running on another F28 server - am I missing some magic incantation here?

Thanks in advance for any help...

Jon.

piCorePlayer on pi1 + BT Dongle reduce delay?

So I'm getting addicted to these little things as I had so many old Pis who's function had ceased, I figured make my entire house music-synced.

I used old usb-audio adapters but I ran out so with four rooms to go and not wanting to buy any more stuff I purchased 2 cheapy usb dacs and 2 different hats for the more modern pis. Given old pi1 doesn't take modern hats (ALL the pins!) I tried one of the two cheapy usb dacs and it worked fine, the other one that has the same PID/VID and physical layout not so much. Strange but then I was left with what I had on hand, which was a bluetooth option for that speaker. Aside from having to manually pair and connect (yep, beta, and I'm not scared of commandline, so I don't care too much!), it works!

But, as is understandable, there's a noticable delay of about half a second on bluetooth transmission. Is there anything I can do to tell squeezelite to use an offset in sync'd playback mode to accommodate this? I don't mind working out what it is but I've not seen a setting like that.

replacement for Vortexbox -suggestions

Hi all,

After some suggestions.. It appears that VB is pretty much dead as a platform and I am looking at alternatives. My needs are simple: LMS, Plex, Pihole. Nice: Transmission, time capsule, squeezelite.

Install is to go on to a headless NUC with just a single HD - I ideally would like to run the OS on a USB stick and leave the internal HD for media only.

I have done some research and have come up with daphile (not suitable), OpenMediaVault, ap-linux.com and snakeoil-os.net. Snakeoil is looking good and I plan to soon test it further. Are there any other distros that I should be looking at ?

Feature request picoreplayer: Play state to GPIO

Hi,

maybe i have overseen some threat here, otherwise maybe a new useful feature:

"When PiCorePlayer is playing a GPIO Port ist pulled up or down"

My use case: Swithing the Amp with the already configurable "Power GPIO" i would like to use a second GPIO to switch a two way relay for toggling the line input of the amp to external source, when picoreplayer is paused.

Thanks and
best Regards
Axel

Problem with LMS 7.9.2 nightly update (?)

Hi,

I am running pCP 4.1.0 (although I don't think this is a pCP problem), and have tried to update using the "Nightly Update" button on the LMS page, but it fails the same way if I run the lms update script manually. Can anyone advise what I am doing wrong? Snippet from /var/log/slimserver/LMS_update.log:

Code:

[1;32mDownloading required extension squashfs-tools.tcz[0;39m

[ INFO ] Downloading: squashfs-tools.tcz
Connecting to repo.picoreplayer.org (104.27.186.254:443)
wget: server returned error: HTTP/1.1 403 Forbidden
[ INFO ] Checking MD5 of: squashfs-tools.tcz.....md5sum: can't open 'squashfs-tools.tcz': No such file or directory
FAIL
[ ERROR ] There was a error downloading squashfs-tools.tcz.
[ INFO ] Retrying extension squashfs-tools.tcz...in 5 seconds.
[ INFO ] Downloading: squashfs-tools.tcz

[ ERROR ] Max retries reached.
[1;31mFailed to load required extension!. [0;39m Check by manually installing extension squashfs-tools.tcz

Thanks in advance/paul
Viewing all 1518 articles
Browse latest View live