XBMC dedicated Joggler

General discussion relating to the O2 Joggler, from the default O2 setup, to alternative operating systems and applications.
Post Reply
User avatar
iLLiac4
Posts: 48
Joined: Sat Aug 18, 2012 5:22 am

XBMC dedicated Joggler

Post by iLLiac4 »

Hi!
I have bought O2 Joggler and have tried out Xubuntu image and I have mixed feelings. I would like to build O2 Joggler just to use XBMC on it and have not seen that anywhere.
So when the system boots it should go into XBMC something like AppleTV and Crystalbuntu.
I'd would also like to have SSH access to it so it can be remotely managed.

Buzz: Is it possible to get your image Ubuntu Base/Server 12.04 LTS (Precise) to work like that?
What else has to be done on this image to make it like that.
Is your version of XBMC in Ubuntu special compiled for Joggler or. is it generic for linux. Does this version of XBMC support dirty regions? How can the XBMC installed into your minimum vesion?
How can a remote SSH access be enabled on your image? I think it is useful because it is more comfortable to manage the joggler from computer.

My goal is to create 'perfect' minimum installation for XBMC.


TNX
kappa__2
Posts: 23
Joined: Fri Feb 03, 2012 10:22 pm

Re: XBMC dedicated Joggler

Post by kappa__2 »

Ive done that. Its very easy to do.
Use xubuntu image. It's light and faster than ubuntu.

1. Install ssh. >> sudo apt-get install ssh
2. Log off.
3. On the lightdm menu log in as joggler user (password joggler) but select the xbmc session.
4. Reboot
5. You're done!

Now the o2 joggler logs itself into the last session used >> that is: xbmc.
User avatar
iLLiac4
Posts: 48
Joined: Sat Aug 18, 2012 5:22 am

Re: XBMC dedicated Joggler

Post by iLLiac4 »

TNX for answer.
I will try that. I'm on Ubuntu atm. I will try base image (Ubuntu Base/Server 12.04 LTS (Precise)) and lxde desktop. On top of that i'd like to install XBMC and make it autostart.
I'd like as light installation as possible.
I have already install ssh server because i prefer to work from my computer. So i have used te following modifications.
1. I have enabled root account (i know some will not advise that :) )
2. Installed SSH with

Code: Select all

sudo apt-get install x11vnc
When i need VNC i use this command:

Code: Select all

x11vnc -display :0 -bg -nopw -noxdamage -forever
3. Set timezone:)

Code: Select all

sudo dpkg-reconfigure tzdata
4. I have already tried TVHeadEnd from my server and it works ok as IPTV stream. Maybe i will try TVHeadend with DVB-T stick and also backend installation of TVHeadend on it.
5. I wanted to port Ambilight into it (i know stupid:) ) but i'm a little sceptical because proc usage is already very high. I hope it will be lower on my custom build. Do you also have so high proc usage? I have already switch to Touch v1.5 skin which should be lighter.


I want to try out some things before i move on with base image and install those packages manually.
1. First I'm interested if the installation of XBMC that Buzz used was

Code: Select all

sudo apt-get install xbmc
or is this custom build? Did someone tried nightly build for debian?
2. I have to mode it because it runs really hot in XBMC (81 C) and proc usage is constantly 60-80% even when doing nothing. With screen turned of it gets 65 C. I am going to do something similar like http://www.justblair.co.uk/o2-joggler-i ... oling.html
3. I have to solder optical output on it.
4. What other packages are needed to on base image to be installed manually (for example: screen calibration,...)
5. Does O2 Juggler has video acceleration or. do you use Automatic settings?
User avatar
hawsey
Posts: 2069
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: XBMC dedicated Joggler

Post by hawsey »

Ahhh XBMC Os that's what I want :-) totally out of my capabilities so very cheeky of me to even suggest it but here goes ...
A pre built Xbmc Os image that auto boots in to XBMC with the xebo ,retouched , joggler and confluence skins built in and everything not required or needed in the base os used i.e mint or xubuntu removed but with the ability to quit the application so as to put in the wireless settings but after a re boot xbmc would auto boot again .
If auto update was disabled that would be good too
Also if the image came with the thermal trip point tweak ( thermal psv=80) that would be good too.
I don't ask much I know lol
Any takers for the above project
Apply here :-)
Happy Joggling
ilovemyjoggler
Posts: 711
Joined: Sun May 13, 2012 4:42 pm

Re: XBMC dedicated Joggler

Post by ilovemyjoggler »

Oh oh, me too, me too please! However, i would need to have squeezeplay on there too. :)

@hawsey, why do you want auto update disabled?
User avatar
hawsey
Posts: 2069
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: XBMC dedicated Joggler

Post by hawsey »

Auto update on the Linux image I mean not on xbmc itself :-)
its just because its working in the background and tends to want to ask you to accept updates etc which you wouldn't see as Xbmc would be full screen on bootup and it just complicates things .
Happy Joggling
ilovemyjoggler
Posts: 711
Joined: Sun May 13, 2012 4:42 pm

Re: XBMC dedicated Joggler

Post by ilovemyjoggler »

Good thinking batman. just how long have you been compiling your wishlist? :D
User avatar
roobarb!
Posts: 1746
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

XBMC dedicated Joggler

Post by roobarb! »

Hehe. I made an XBMC-only image based on BuZz's PPA about six months ago when I was experimenting with the SqueezePlay OS. :)

I'm a real newbie to XBMC though, so I shelved it. Funnily enough, I have been playing with XBMC more recently, so I might return to it if there's demand. It could run from internal memory too, though space was tight.

No promises, but I could give it another try. It would be a very vanilla system, mind, but it should work.
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
ilovemyjoggler
Posts: 711
Joined: Sun May 13, 2012 4:42 pm

Re: XBMC dedicated Joggler

Post by ilovemyjoggler »

Roobarb! how many people constitute 'a demand'? What does 'a vanilla system' mean? Any way of getting squeezeplay too?

Can i already say yes please?
User avatar
hawsey
Posts: 2069
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: XBMC dedicated Joggler

Post by hawsey »

roobarb! wrote:Hehe. I made an XBMC-only image based on BuZz's PPA about six months ago when I was experimenting with the SqueezePlay OS. :)

I'm a real newbie to XBMC though, so I shelved it. Funnily enough, I have been playing with XBMC more recently, so I might return to it if there's demand. It could run from internal memory too, though space was tight.

No promises, but I could give it another try. It would be a very vanilla system, mind, but it should work.
Sounds great Roobarb , I for one would be a willing tester for XBMC vanilla for you
I love the simplicity of Squeezeplay for music however the sheer vastness that is XBMC is irresistable for a tinkerer like myself :-)
Happy Joggling
User avatar
iLLiac4
Posts: 48
Joined: Sat Aug 18, 2012 5:22 am

Re: XBMC dedicated Joggler (TUTORIAL)

Post by iLLiac4 »

Ok I have started to build XBMC on minimal image from BuZZ.

First step was to create SD from Ubuntu Base/Server 12.04 LTS (Precise) (Joggler Image v1.1 - 17/06/2012). I'm using Btrfs image.
In this image openssh-server installed. There is also DHCP enabled so use wired network. Next i have set thermal point like suggested in
http://joggler.exotica.org.uk/ubuntu/.
Ok now I have run some installation commands:
1.

Code: Select all

sudo apt-get update
2.

Code: Select all

sudo apt-get upgrade
3.

Code: Select all

sudo apt-get install xbmc xinit alsa-util x11vnc
4. Start

Code: Select all

sudo alsamixer
and unmute all devices (you can unmute them with space).

To start vnc use command:

Code: Select all

x11vnc -display :0 -bg -nopw -noxdamage -forever
To set timezone run:

Code: Select all

sudo dpkg-reconfigure tzdata
To start XBMC run:

Code: Select all

xinit /usr/bin/xbmc --standalone &
To make autostart of XBMC edit /etc/rc.local to:

Code: Select all

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
  dpkg-reconfigure openssh-server
fi
xinit /usr/bin/xbmc --standalone
clear
exit 0
Autostart VNC (dirty trick):
I have created autoexec.py file under /root/.xbmc/userdata with the following content:

Code: Select all

import os, sys
os.system('DISPLAY=:0.0 /usr/bin/x11vnc -display :0 -bg -nopw -noxdamage -forever > /dev/null 2>&1')
sys.exit()

Ok with those steps you will be able to start XBMC and use it with wired network.

Working is already:
- sound
- Touch screen
- XBMC with Touche skin (you have to install it manually)
- Remote controller for android
- Turn off display if set in XBMC
- Wired network
- VNC for easy management ower network
- Addons in XBMC throws python error. SOLVED read posts under.



Not working yet:
- Set display brightness under SSH (I will try http://askubuntu.com/questions/56155/ho ... h-terminal. If someone has a better solution... feel free to speak:) )
- Wireless network (ATM my priority, but I have enough for today :) )

Notes (Hints):
After this setup XBMC runs under root account so all the settings for XBMC are under /root/.xbmc and not /home/joggler/.xbmc.
I have enabled root account for easy manipulation of files. I'm using WinSCP and Putty to do the stuff.
I have a feeling that it works faster than under full loaded Ubuntu and also proc usage is lower. There is also more free memory and temperature runs cooler. So atm it is full success :)


The biggest credits goes to BuZZ who has made this nice base image.
Any help on this tutorial will be welcome :)
Last edited by iLLiac4 on Sun Aug 19, 2012 8:22 am, edited 5 times in total.
User avatar
roobarb!
Posts: 1746
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

XBMC dedicated Joggler

Post by roobarb! »

Looks like iLLiac4 has beaten me to it! ;)

Guess that's what happens when you go to sleep. :)
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
User avatar
iLLiac4
Posts: 48
Joined: Sat Aug 18, 2012 5:22 am

Re: XBMC dedicated Joggler

Post by iLLiac4 »

You can help me come further with wireless.

SOLVED python error, so it is history now :) I have not touched yet python error (addons in XBMC) and debugging in XBMC. Maybe Buzz will know the answer. But it is hard to troubleshoot xbmc if I have no option for debugging. (OK i have now debug logs. so now i have to solve the python error.) After looking into debug log I saw that one module was missing (ImportError: No module named xbmcswift). So I have took the module from omy ATVand bam no more script error.

If you need this module there it is:
http://ftp.heanet.ie/mirrors/xbmc/addon ... -0.2.0.zip
Extract them into /root/.xbmc/addons
After doing this you have to restart XBMC.


ATM my priority is wireless adapter. It is down by default. To bring it up at startup, you have to enter into /etc/rc.local
ifconfig wlan0 up
So my rc.local looks ATM like:

Code: Select all

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
  dpkg-reconfigure openssh-server
fi
ifconfig wlan0 up
xinit /usr/bin/xbmc --standalone
/usr/bin/x11vnc -display :0 -bg -nopw -noxdamage -forever
clear
exit 0
But it still does not get the IP. Hmmm.

Even if i do all the config stuff similar to the stuff i did to my AppleTV :) Of course in joggler the wifi network adapter is wlan0.
http://forum.stmlabs.com/showthread.php?tid=20
Last edited by iLLiac4 on Sun Aug 19, 2012 1:20 pm, edited 11 times in total.
User avatar
iLLiac4
Posts: 48
Joined: Sat Aug 18, 2012 5:22 am

Re: XBMC dedicated Joggler

Post by iLLiac4 »

Also note on XBMC and advanced settings. Well it is located under

Code: Select all

/root/.xbmc/userdata

the file name is advancedsettings.xml. You can create this file manually.
Till now the best option seems to be (also lowest CPU usage - it is because dirty regions):

Code: Select all

<advancedsettings>
<loglevel>0</loglevel>
<skiploopfilter>8</skiploopfilter>
<playlistasfolders>false</playlistasfolders>
<videoextensions>
  <add>.nsv|.part|.m4a|.flac|.aac|.strm|.pls|.rm|.mpa|.wav|.wma|.ogg|.mp3|.mp2|.m3u|.mod|.amf|.669|.dmf|.dsm|.far|.gdm|.imf|.it|.m15|.med|.okt|.s3m|.stm|.sfx|.ult|.uni|.xm|.sid|.ac3|.dts|.cue|.aif|.aiff|.wpl|.ape|.mac|.mpc|.mp+|.mpp|.shn|.zip|.rar|.wv|.nsf|.spc|.gym|.adplug|.adx|.dsp|.adp|.ymf|.ast|.afc|.hps|.xsp</add>
</videoextensions>
<useddsfanart>true</useddsfanart>
<videolibrary>
  <cleanonupdate>false</cleanonupdate>
</videolibrary>
<gui>    
  <algorithmdirtyregions>1</algorithmdirtyregions>
  <nofliptimeout>0</nofliptimeout>
</gui>
<network>
  <cachemembuffersize>2621440</cachemembuffersize>
  <curlclienttimeout>60</curlclienttimeout>
</network>
<video>
  <subsdelayrange>30</subsdelayrange>
</video>
<latency>
  <delay>0</delay>
</latency>
<samba>
  <clienttimeout>15</clienttimeout>
</samba>
</advancedsettings>

Also one tip:
To speed up access to network locations do not use names but use IPs.
Last edited by iLLiac4 on Sun Aug 19, 2012 11:41 am, edited 1 time in total.
kappa__2
Posts: 23
Joined: Fri Feb 03, 2012 10:22 pm

Re: XBMC dedicated Joggler

Post by kappa__2 »

What about using the XBMC-PVR version instead?

It can be installed from the yavdr ppa's, but the thouchscreen wont work well.
It has to be patched.

That would be a killer, for those who (like me) have VDR (or mythtv) running.
User avatar
iLLiac4
Posts: 48
Joined: Sat Aug 18, 2012 5:22 am

Re: XBMC dedicated Joggler

Post by iLLiac4 »

Well you can already call the myth backend but it is not PVR equivalent. The biggest problem is that there is no PVR touch skin and also I think Buzz has compiled this version so it is compatible with Joggler.

For those who are using joggler as nas (samba), torrent client (transmission) or. pvr backend (TVHeadend) and XMLTV parser it is also possible to do this on this build.


Maybe I can create an image of this installation and upload it somewhere so you can try it. I have made some additional tweaks to it so it runs now really ok. Wireless will not yet work in this edition. I have it on 8GB microSD card but will try to make 2gb compatible image.
Post Reply