SqueezePlay for Joggler (Native, Ubuntu & SQPOS)

General discussion relating to the O2 Joggler, from the default O2 setup, to alternative operating systems and applications.
User avatar
roobarb!
Posts: 1746
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: SqueezePlay for Joggler (Native, Ubuntu & sqpOS)

Post by roobarb! »

johnnygal wrote:I can confirm that the SSH install does work ok, once leaving it for a good 15mins or so.
Blimey, that is slow!
BuZz wrote:it's worth noting, ubuntu mirrors are VERY slow right now due to release of 12.04. bad time to apt-get install stuff :)

gb.archive.ubuntu.com is barely working at all.
Hehe, and that would be why. This thing is configured to use gb.archive.ubuntu.com. :)

I knew I should have just bundled the packages in there. Ah, well - that's for another day.
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
User avatar
BuZz
Site Admin
Posts: 1460
Joined: Fri Mar 04, 2011 1:15 am

Re: SqueezePlay for Joggler (Native, Ubuntu & sqpOS)

Post by BuZz »

not getting much more than 24.8 kB/s from that mirror - i think ill try another... at this speed to upgrade a local machine to precise will take 7 hours for the package downloads!
ARJunior
Posts: 51
Joined: Fri Aug 05, 2011 2:28 pm

Re: SqueezePlay for Joggler (Native, Ubuntu & sqpOS)

Post by ARJunior »

additional.log content :
Hit http://ppa.launchpad.net maverick Release.gpg
Get:1 http://archive.canonical.com lucid Release.gpg [198B]
Hit http://ppa.launchpad.net lucid Release.gpg
Hit http://ppa.launchpad.net lucid Release.gpg
Get:2 http://archive.canonical.com lucid Release [8,215B]
Hit http://ppa.launchpad.net maverick Release
Hit http://ppa.launchpad.net lucid Release
Ign http://archive.canonical.com lucid Release
Hit http://ppa.launchpad.net lucid Release
Hit http://archive.canonical.com lucid/partner Packages
Hit http://ppa.launchpad.net maverick/main Packages
Hit http://archive.canonical.com lucid/partner Sources
Hit http://ppa.launchpad.net maverick/main Sources
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://ppa.launchpad.net lucid/main Sources
Hit http://ppa.launchpad.net lucid/main Packages
Hit http://ppa.launchpad.net lucid/main Sources
Hit http://gb.archive.ubuntu.com lucid Release.gpg
Hit http://gb.archive.ubuntu.com lucid-security Release.gpg
Hit http://gb.archive.ubuntu.com lucid-updates Release.gpg
Hit http://gb.archive.ubuntu.com lucid-backports Release.gpg
Hit http://gb.archive.ubuntu.com lucid Release
Hit http://gb.archive.ubuntu.com lucid-security Release
Hit http://gb.archive.ubuntu.com lucid-updates Release
Hit http://gb.archive.ubuntu.com lucid-backports Release
Hit http://gb.archive.ubuntu.com lucid/main Packages
Hit http://gb.archive.ubuntu.com lucid/restricted Packages
Hit http://gb.archive.ubuntu.com lucid/main Sources
Hit http://gb.archive.ubuntu.com lucid/restricted Sources
Hit http://gb.archive.ubuntu.com lucid/universe Packages
Hit http://gb.archive.ubuntu.com lucid/universe Sources
Hit http://gb.archive.ubuntu.com lucid/multiverse Packages
Hit http://gb.archive.ubuntu.com lucid/multiverse Sources
Hit http://gb.archive.ubuntu.com lucid-security/main Packages
Hit http://gb.archive.ubuntu.com lucid-security/restricted Packages
Hit http://gb.archive.ubuntu.com lucid-security/main Sources
Hit http://gb.archive.ubuntu.com lucid-security/restricted Sources
Hit http://gb.archive.ubuntu.com lucid-security/universe Packages
Hit http://gb.archive.ubuntu.com lucid-security/universe Sources
Hit http://gb.archive.ubuntu.com lucid-security/multiverse Packages
Hit http://gb.archive.ubuntu.com lucid-security/multiverse Sources
Hit http://gb.archive.ubuntu.com lucid-updates/main Packages
Hit http://gb.archive.ubuntu.com lucid-updates/restricted Packages
Hit http://gb.archive.ubuntu.com lucid-updates/main Sources
Hit http://gb.archive.ubuntu.com lucid-updates/restricted Sources
Hit http://gb.archive.ubuntu.com lucid-updates/universe Packages
Hit http://gb.archive.ubuntu.com lucid-updates/universe Sources
Hit http://gb.archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://gb.archive.ubuntu.com lucid-updates/multiverse Sources
Hit http://gb.archive.ubuntu.com lucid-backports/main Packages
Hit http://gb.archive.ubuntu.com lucid-backports/restricted Packages
Hit http://gb.archive.ubuntu.com lucid-backports/universe Packages
Hit http://gb.archive.ubuntu.com lucid-backports/multiverse Packages
Hit http://gb.archive.ubuntu.com lucid-backports/main Sources
Hit http://gb.archive.ubuntu.com lucid-backports/restricted Sources
Hit http://gb.archive.ubuntu.com lucid-backports/universe Sources
Hit http://gb.archive.ubuntu.com lucid-backports/multiverse Sources
Fetched 199B in 16s (12B/s)
So I would had to wait a bit more :)
User avatar
roobarb!
Posts: 1746
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: SqueezePlay for Joggler (Native, Ubuntu & sqpOS)

Post by roobarb! »

12B/s! My old BBC B would consider that slow! ;)
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
ARJunior
Posts: 51
Joined: Fri Aug 05, 2011 2:28 pm

Re: SqueezePlay for Joggler (Native, Ubuntu & sqpOS)

Post by ARJunior »

OK I confirm...installation of SSH service is working perfectly after a bit of patient :)
mrw
Posts: 47
Joined: Mon Jan 02, 2012 6:30 pm

Re: SqueezePlay for Joggler (Native, Ubuntu & sqpOS)

Post by mrw »

roobarb! wrote:I've not felt that the responsiveness has been particularly laggy, but if you do come up with any improvements I'm more than happy to try them out!
'Slow' was probably a poor choice of word to apply to responsiveness. I find the responsiveness under X11 to be fine, except that the 'flick' action seems to be somewhat suppressed, and limited in speed. It has been irritating me.

Attached patch to 'share/jive/ui/Flick.lua' does seem to give better results, although not perfect. My assumption is that the Squeezebox Touch device delivers up mouse events to Squeezeplay rather more regularly than does the Joggler/X11/Openpeak combination.

I should really run this side by side against an unpatched Joggler/Squeezeplay. That would tell me if the improvement I'm claiming is real. I'd be interested to hear feedback.

PS - The board doesn't allow me to upload text files for some reason. So I hope this works:

Code: Select all

--- a/src/squeezeplay/share/jive/ui/Flick.lua	2012-04-14 10:02:35.000000000 +0100
+++ b/src/squeezeplay/share/jive/ui/Flick.lua	2012-04-14 10:06:05.000000000 +0100
@@ -148,6 +148,21 @@
 	--use last flick data collection time as initital scroll time to avoid jerky delay when afterscroll starts 
 	self.flickInitialScrollT = Framework:getTicks()
 
+	--suppress mouse 'wiggles' at the start - we throw away a preliminary wiggle when something newer arrives
+	-- these seem to be a particular feature of the 'native' Joggler OS running under X11, and substantially limit the
+	-- the calculated flick speed
+	if #self.flickData.points == 1 then
+		if math.abs( self.flickData.points[1].y - y ) < 10 then
+			table.remove(self.flickData.points, 1)
+		end
+	end
+
+	--ignore this event if it has the same time stamp as last - can cause 'infinite' speed
+	-- seems to be a feature of the the 'native' Joggler OS under X11
+	if (#self.flickData.points >= 1) and (self.flickData.points[#self.flickData.points].ticks == ticks) then
+		return
+	end
+
 	table.insert(self.flickData.points, {y = y, ticks = ticks})
 
 	--remove any more than 20 points
@@ -171,6 +186,7 @@
 		repeat
 			if self.flickData.points[#self.flickData.points].ticks - self.flickData.points[1].ticks > FLICK_STALE_TIME then
 				table.remove(self.flickData.points, 1)
+				log:debug("Removed stale flick data point")
 			else
 				staleRemoved = true
 			end
@@ -178,13 +194,17 @@
 	end
 
 	if not self.flickData.points or #self.flickData.points < 2 then
+		log:debug("Not enough flick data points")
 		return nil
 	end
 
 	if mouseUpT then
 		local delayUntilUp = mouseUpT - self.flickData.points[#self.flickData.points].ticks
-		if delayUntilUp > 25 then
+		--25 milliseconds seems too short for the Joggler. Mouse events can be separated by 30 ms or more
+		--if delayUntilUp > 25 then
+		if delayUntilUp > 100 then
 			-- a long delay since last point is one indication of a finger stop since lower level duplicate suppression may be in effect
+			log:debug("Returning nil: delay until up too long - Finger stop ?: ", delayUntilUp)
 			return nil
 		end
 	end

User avatar
BuZz
Site Admin
Posts: 1460
Joined: Fri Mar 04, 2011 1:15 am

Re: SqueezePlay for Joggler (Native, Ubuntu & sqpOS)

Post by BuZz »

mrw wrote: PS - The board doesn't allow me to upload text files for some reason. So I hope this works:
now it does :)

for small snippets inlining is useful for reading anyway.
mrw
Posts: 47
Joined: Mon Jan 02, 2012 6:30 pm

Re: SqueezePlay for Joggler (Native, Ubuntu & sqpOS)

Post by mrw »

BuZz wrote:now it does :)
Thanks. And you're right.
Pokersut
Posts: 3
Joined: Wed Feb 15, 2012 9:44 pm

Re: SqueezePlay for Joggler (Native, Ubuntu & sqpOS)

Post by Pokersut »

roobarb! wrote:Download the USB Installer and copy the contents to a FAT formatted USB stick. Connect it to a powered-off Joggler, power on and wait. You should hear two beeps and a blue SqueezePlay icon will appear on one of your launcher screens
Hi.

Just got myself a Joggler and wanted to install Squeezeplay on it. I downloaded the USB installer onto a FAT32-formatted USB-stick. Then I rebooted the Joggler, and the installation seemed to complete, because I heard the two beeps. But I see no Squeezeplay icon anywhere after the installation.

What could be wrong? Firmware version is 8686.53. EDIT: Software version is 26635.S3

Mikkel
mikeyg
Posts: 2
Joined: Mon Mar 26, 2012 12:05 pm

Re: SqueezePlay for Joggler (Standalone Native and Ubuntu)

Post by mikeyg »

gurney wrote:
+1 for Squeezeplay to play in the background or other workaround!
Can I ask how you mapped the image viewer to your NAS? I'm struggling to get mine to see other network devices.
[/quote]

I installed the cifs kernel module, created a directory as a mount point, then put the mount command in the startup scripts

The kernel module is here
http://webdiary.com/2010/11/05/squeezeb ... -a-budget/
copy the ko file to somewhere suitable on the device and add the insmod and mount commands to the startup scripts

I added the following 2 lines
/sbin/insmod /lib/modules/cifs.ko
(/bin/sleep 20; /bin/mount -t cifs //192.168.1.xxx/pics /media/photos -o user=me,password=xxxxxxx)&

I run the sleep and mount in a parallel subshell because it takes a little while for my network to start up. If I run the mount command too early it doesn't work, and 20 seconds is quite a long time to wait. You might get away with a shorter sleep followed by the mount command on a separate line.

then to activate the slideshow you need the image viewer plugin installed - installing it on the server will cause it to be installed on the joggler. Under settings, sources choose local media

enjoy
User avatar
roobarb!
Posts: 1746
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: SqueezePlay for Joggler (Native, Ubuntu & sqpOS)

Post by roobarb! »

Just a quick note to say that I've tested the SqueezePlay installers on the recently released OpenPeak OS.

If you are installing using the command line (downloading the sqpinstall.sh file and running it directly) all will be well, other than the icon looking somewhat out of place. All of the SqueezePlay features appear to work with no modifications.

Unfortunately, the USB key installer won't work for the time being. The code that triggers USB updates is still there in the new OS, but there's been a change in how the integrity of the payload is checked (including a missing file). However, it's a pretty minor thing to repair. I'll post back and let you all know when I've had chance to sort it out.
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
plm
Posts: 16
Joined: Thu May 03, 2012 3:50 am

Re: SqueezePlay for Joggler (Native, Ubuntu & sqpOS)

Post by plm »

roobarb! wrote:Just a quick note to say that I've tested the SqueezePlay installers on the recently released OpenPeak OS.
I just downloaded the OpenPeak OS and the latest version of SqueezePlay yesterday. Aside from the known issue of the USB installer not working it went on smoothly and has been working really well for the last 24 hours or so.

The only problem I've got is that the display likes to dim whenever SqueezePlay is in a stopped state.

I've tried switching off the Dim option on the screensaver and even disabling the screensaver, which hasn't had any effect. It seems that the OpenPeak OS is dimming the screen when SqueezePlay switches it off and then it's not returning to its original brightness setting.

Anybody have a clue how I can prevent this?
User avatar
roobarb!
Posts: 1746
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: SqueezePlay for Joggler (Native, Ubuntu & sqpOS)

Post by roobarb! »

Pokersut wrote:
roobarb! wrote:Download the USB Installer and copy the contents to a FAT formatted USB stick. Connect it to a powered-off Joggler, power on and wait. You should hear two beeps and a blue SqueezePlay icon will appear on one of your launcher screens
Just got myself a Joggler and wanted to install Squeezeplay on it. I downloaded the USB installer onto a FAT32-formatted USB-stick. Then I rebooted the Joggler, and the installation seemed to complete, because I heard the two beeps. But I see no Squeezeplay icon anywhere after the installation.

What could be wrong? Firmware version is 8686.53. EDIT: Software version is 26635.S3
It sounds like the Little App Launcher which handles the icon didn't trigger an update and reload of the UI. The quickest way to fix this is to look in your network settings for your IP address. If your IP is '192.168.1.3', then enter 'http://192.168.1.3' into your computer's web browser address bar.

This will launch a browser page from your Joggler, but should also trigger the update and relaunch the interface.
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
User avatar
roobarb!
Posts: 1746
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: SqueezePlay for Joggler (Native, Ubuntu & sqpOS)

Post by roobarb! »

mrw wrote:Attached patch to 'share/jive/ui/Flick.lua' does seem to give better results, although not perfect. My assumption is that the Squeezebox Touch device delivers up mouse events to Squeezeplay rather more regularly than does the Joggler/X11/Openpeak combination.
Thanks for this - once I've got the USB installers working again, I'll give this a try. :)
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
User avatar
roobarb!
Posts: 1746
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: SqueezePlay for Joggler (Native, Ubuntu & sqpOS)

Post by roobarb! »

Happy to say that yesterday evening, we passed 100 different Jogglers running SqueezePlay!

At the time of posting, there have been requests from 107 seemingly unique Jogglers.

You can keep track yourself here. :)
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
ARJunior
Posts: 51
Joined: Fri Aug 05, 2011 2:28 pm

Re: SqueezePlay for Joggler (Native, Ubuntu & sqpOS)

Post by ARJunior »

For sure we love running SQP on your Joggler :)
jollyjoggler
Posts: 25
Joined: Sat Apr 07, 2012 12:42 pm

Re: SqueezePlay for Joggler (Native, Ubuntu & sqpOS)

Post by jollyjoggler »

i did the new OpenPeak firmware update on Mon Apr 30. then I´ve installed Squeezeplay via the Command Line. It did work with your recommended commands

cd /media
wget http://birdslikewires.co.uk/download/jo ... install.sh
chmod +x ./sqpinstall.sh
./sqpinstall.sh

OK, today after booting the joggler the openpeak firmware f**** up and my device didn´t boot anymore. then I reflashed it with the new openpeak fw again.

now i cannot install squeezeplay anymore.

./sqpinstall.sh gives me

sh: 1: unknown operand

and doesn´t start the installation of squeezeplay anymore. any ideas? does the busybox has a problem with #!/bin/sh ? A comment in your script states the 3rd May 2012 , did you change anything today?
User avatar
roobarb!
Posts: 1746
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

SqueezePlay for Joggler (Native, Ubuntu & sqpOS)

Post by roobarb! »

jollyjoggler wrote:A comment in your script states the 3rd May 2012 , did you change anything today?
Oops! I've obviously slipped up somewhere. I'll get it sorted.

UPDATE: Unknown operand error fixed, it was a pretty basic mis-setting of a variable. It shouldn't have prevented the installation though, jollyjoggler.

Try this:

Code: Select all

rm -rf /opt/squeezeplay
Then run the script again.
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
jollyjoggler
Posts: 25
Joined: Sat Apr 07, 2012 12:42 pm

Re: SqueezePlay for Joggler (Native, Ubuntu & sqpOS)

Post by jollyjoggler »

thanks, it works!
Wilberforce
Posts: 134
Joined: Sun Apr 15, 2012 4:52 pm

Re: SqueezePlay for Joggler (Native, Ubuntu & sqpOS)

Post by Wilberforce »

A while a go I hacked squeezeplay to power off the screen when the blank screensaver kicked in. I have just updated this to play better with Roobarbs brightness settings ( I always just used maximum brightness).

I tend to use this ("screen off") when "playing is stopped" , and "when playing" have the "now playing" screen. The power off button will keep the screen on a 5 second timeout, so you can check the clock with a tap of the screen.

Anyway, I attach the patch.

Edit: Oh yeah, forgot to mention that it removes the existing standby applet as it conflicts.
Attachments
screensaver_powersave.patch.txt
use screensavers for power saving
(25.4 KiB) Downloaded 323 times
Post Reply