Ubuntu / Xubuntu for the O2 Joggler.

General discussion relating to the O2 Joggler, from the default O2 setup, to alternative operating systems and applications.
User avatar
pete
Posts: 2950
Joined: Mon Aug 01, 2011 6:33 am
Location: Time Traveler

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by pete »

Personally I would write a new USB stick because something happened to yours.

That said there is no root login as it is a typical Ubuntu installation.

Joggler is joggler and you can sudo su joggler.

You build is already messed up so I wouldn't bother.
- Pete
O2 Jogglers running EFI Ubuntu / Squeezeplayer
OpenPeak Voip Telephony / Zigbee tabletops hardware modded with Seabios / RTC / Ethernet ROM edits / SSD drives running XPe for automation screens

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

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by BuZz »

Kodi 16.1 is now on my joggler ppa. I will release updated images including this and kernel/package updates soon.
User avatar
hawsey
Posts: 2069
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by hawsey »

Cheers Buzz :-)

Sent by SlimKat FirePhone
Happy Joggling
User avatar
BuZz
Site Admin
Posts: 1460
Joined: Fri Mar 04, 2011 1:15 am

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by BuZz »

New images released - see first post in thread or visit - http://jwills.co.uk/projects/joggler-xubuntu/

Changes:
  • Kernel 3.2.80
  • Kodi 16.1
  • Package Rollups
User avatar
hawsey
Posts: 2069
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by hawsey »

Thank you kindly :-)

Sent from my Vodafone Smart ultra 6 using Tapatalk
Happy Joggling
User avatar
pete
Posts: 2950
Joined: Mon Aug 01, 2011 6:33 am
Location: Time Traveler

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by pete »

Thank-you Buzz.

Here filled up my 16Gb build and moving it to a 64Gb SSD build and instead just writing your new build to the 64gb SSD.
- Pete
O2 Jogglers running EFI Ubuntu / Squeezeplayer
OpenPeak Voip Telephony / Zigbee tabletops hardware modded with Seabios / RTC / Ethernet ROM edits / SSD drives running XPe for automation screens

Auto mater
User avatar
pete
Posts: 2950
Joined: Mon Aug 01, 2011 6:33 am
Location: Time Traveler

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by pete »

Noticed an issue today with a 64Gb MLC ZIF. Looks like the EFI bios doesn't see it. Seabios sees it for Wintel. USB to ZIF sees it.

I got a deal on a 64Gb ZIF thinking it was just an SSD ZIF. Looking at it closely it is a 1.3" MLC ZIF card.

Is there a way to change the image over to a standard Ubuntu MBR boot image such that I can use it on the 64Gb ZIF PATA MLC device?
- Pete
O2 Jogglers running EFI Ubuntu / Squeezeplayer
OpenPeak Voip Telephony / Zigbee tabletops hardware modded with Seabios / RTC / Ethernet ROM edits / SSD drives running XPe for automation screens

Auto mater
MattBennett
Posts: 5
Joined: Fri Jun 17, 2016 8:29 pm

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by MattBennett »

Hi every one, I am intending to use my joggler as a whole house audio controller/player, a digital photo frame and as a clock. I have tried LMS and have flashed the first joggler i bought with SqueezeOS which runs fantastically. I have however been wanting to try audio|acacia - http://plethra.com/ for some time. So i installed the latest version of joggler ubuntu to a usb stick and fired it up, installed the program but it seems the program requires at least kernel 3.9.

I have tried to upgrade the kernel using help from here http://askubuntu.com/questions/309874/h ... -in-ubuntu but to no avail.

So my question, is it possible to upgrade to 3.9 kernel?
User avatar
BuZz
Site Admin
Posts: 1460
Joined: Fri Mar 04, 2011 1:15 am

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by BuZz »

Would require custom changes to get the joggler drivers working.

So no, unless you are able to build a custom kernel.
monkeydogcat
Posts: 27
Joined: Sat Aug 27, 2011 6:39 pm

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by monkeydogcat »

Just dug out my Joggler to play with again and was really pleased to discover you're still doing Xubuntu builds. I downloaded the most recent which seems to work great, thanks.

I have a small feature request though. I ssh in to the Joggler so I can use a real keyboard and decent size screen to alter config files, install extra packages and such like. It'd be really nice if openssh-server was installed by default. It's really fiddly trying to type 'sudo apt-get install openssh-server' on the onscreen keyboard!
User avatar
pete
Posts: 2950
Joined: Mon Aug 01, 2011 6:33 am
Location: Time Traveler

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by pete »

Here I start by installing it with a keyboard / mouse right on the Joggler. I also create a root password and adjust the /etc/ssh/sshd_config to allow for root access.

It is just two lines to adjust:

Change the

PermitRootLogin without-password

line to

PermitRootLogin yes

and

StrictModes yes

to

# StrictModes yes

Save your changes and run service ssh restart and you will be good to go.

Takes 30 seconds to do the above.
- Pete
O2 Jogglers running EFI Ubuntu / Squeezeplayer
OpenPeak Voip Telephony / Zigbee tabletops hardware modded with Seabios / RTC / Ethernet ROM edits / SSD drives running XPe for automation screens

Auto mater
monkeydogcat
Posts: 27
Joined: Sat Aug 27, 2011 6:39 pm

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by monkeydogcat »

pete wrote:Here I start by installing it with a keyboard / mouse right on the Joggler.
Fine if you have a USB hub to plug in I guess. I don't. Maybe I should get one. Then I'd have to dig out another keyboard and mouse (unplugging the ones from my PC is out of the question due to the routing of the cables), and clear space on my desk for them and blah blah blah. Seems like almost as much effort as installing the ssh server using the touch screen keyboard.

Maybe it's just me but SSH enabled by default seems like a no-brainer for Linux running on a device like the Joggler.
monkeydogcat
Posts: 27
Joined: Sat Aug 27, 2011 6:39 pm

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by monkeydogcat »

Thought someone might find this info about using Joggler in portrait mode useful.

Sadly the emgd driver doesn't support on the fly rotation on the fly with xrandr but the driver does allow you to rotate the display using xorg.conf
Find the line

Code: Select all

    Option     "ALL/1/Port/4/General/Rotation"          "0"
change to

Code: Select all

    Option     "ALL/1/Port/4/General/Rotation"          "270"
This rotates the display 270 degrees clockwise, or if you prefer, 90 degrees anticlockwise. When you physically rotate the Joggler to match, the external USB port is on the top so you can still access it.

You also need to rotate the touch input to match, which can be done on the fly. I'm using a custom Xsession so I put it the command to relevant command in /home/joggler/.xsession I also wrap it in a conditional statement so it only gets run if the display is rotated 270 degrees.

Code: Select all

if [ $(grep "ALL/1/Port/4/General/Rotation" /etc/X11/xorg.conf | grep -v '#' | awk '{print $3}') = '"270"' ];then
   xinput set-prop  'AmSC OpenPeak Touchscreen Hyup05_3'   'Coordinate Transformation Matrix' 0.000000, 1.000000, 0.000000, -1.000000, 0.000000, 1.000000, 0.000000, 0.000000, 1.000000
fi 
For more info about rotating touch see https://wiki.ubuntu.com/X/InputCoordinateTransformation
monkeydogcat
Posts: 27
Joined: Sat Aug 27, 2011 6:39 pm

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by monkeydogcat »

I'm pretty sure that some years ago I used a specially built version of mplayer on Joggler that utilised hardware decoding for H.264. I can't find it in the latest Xubuntu build. Is it still around somewhere? Or is there something similar which will play H.264 using the hardware decoding?

I tried installing gstreamer1.0-vaapi to see if that would make parole use hardware decoding, but it doesn't. I tried installing mpv, and using

Code: Select all

mpv --vo=vaapi --hwdec=vaapi
but that gets me

Code: Select all

joggler@joggler:~$ mpv --vo=vaapi --hwdec=vaapi Hey_Duggee_-_10._The_Funny_Face_Badge.mp4 
mpv: /usr/lib/i386-linux-gnu/libva.so.1: no version information available (required by mpv)
Playing: Hey_Duggee_-_10._The_Funny_Face_Badge.mp4
[libav/demuxer] mov,mp4,m4a,3gp,3g2,mj2: multiple edit list entries, a/v desync might occur, patch welcome
Detected file format: QuickTime / MOV (libavformat)
Clip info:
 major_brand: isom
 minor_version: 512
 compatible_brands: isomiso2avc1mp41
 encoder: Lavf55.1.100
[stream] Video (+) --vid=1 (h264)
[stream] Audio (+) --aid=1 --alang=und (aac)
libva: VA-API version 0.32.1
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/i386-linux-gnu/dri/emgd_drv_video.so
Intel(R) Embedded Media and Graphics Driver 1.18 Build 3398
Using XCB based dispatch table.
libva: va_openDriver() returns 0
[vo/vaapi] OSD format not supported. Disabling OSD.
Trying to use hardware decoding.
Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [lavc:h264]
Selected audio codec: AAC (Advanced Audio Coding) [lavc:aac]
AO: [pulse] 48000Hz stereo 2ch float
[vaapi] vaCreateSurfaces(): invalid parameter
[vaapi] Could not allocate surfaces.
[vaapi] Could not allocate surfaces.
[libav/video] h264: get_buffer() failed (-1 0 (nil))
[libav/video] h264: decode_slice_header error
[libav/video] h264: no frame!
Error while decoding frame!
Error using hardware decoding, falling back to software decoding.
VO: [vaapi] 1280x720 => 1280x720 420p
[vaapi] vaCreateSurfaces(): invalid parameter

FATAL: Could not initialize video filters (-vf) or video output (-vo).
I found the included version of kodi and that uses hardware decoding, but I'm looking for something that I can invoke from script/command line and that has lots of options I can pass to it when I do that, which kodi doesn't.
User avatar
pete
Posts: 2950
Joined: Mon Aug 01, 2011 6:33 am
Location: Time Traveler

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by pete »

Here testing with Kodi live television streaming from my MythTV box it will stream OK on most of the 720 broadcasts. Not all though the source for MythTV is HDHomerun.

Using the MthTV client it seems to work a bit better. I am not sure why.

I also have another box running VOD using a broadcast HD Tuner and it uses VLC and it does fine.

That said I also utilize VLC command line to stream stuff from the HD IP CCTV cameras directly or indirectly from Zoneminder.

Try you luck with VLC and see if that works for you. GPU hardware use is an option in the GUI.
- Pete
O2 Jogglers running EFI Ubuntu / Squeezeplayer
OpenPeak Voip Telephony / Zigbee tabletops hardware modded with Seabios / RTC / Ethernet ROM edits / SSD drives running XPe for automation screens

Auto mater
User avatar
pete
Posts: 2950
Joined: Mon Aug 01, 2011 6:33 am
Location: Time Traveler

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by pete »

Checked VLC and it was using hardware acceleration.

IE: Input / Codecs ==> VA-API video decoder via DRM

Updated it anyways ...

sudo apt-get install i965-va-driver libva-intel-vaapi-driver vainfo

Testing it by typing:

vlc --ffmpeg-hw -v

Updated MPlayer with VA-API

sudo add-apt-repository ppa:sander-vangrieken/vaapi
sudo apt-get update
sudo apt-get install mplayer-vaapi

Installed SMPlayer to check and working fine.

For MPV VA-API support do this:

sudo add-apt-repository ppa:djcj/vapoursynth
sudo apt-get update
sudo apt-get install mpv

Well I wrote too soon as I get the same error plus one other.

joggler:~# mpv --version
mpv: /usr/lib/i386-linux-gnu/libva.so.1: no version information available (required by mpv)
mpv: symbol lookup error: mpv: undefined symbol: vaQueryVideoProcPipelineCaps

Referenced the following three pages for this stuff:

1 - https://mpv.io/installation/
2 - https://launchpad.net/~mc3man/+archive/ubuntu/mpv-tests
3 - https://launchpad.net/%7Edjcj/+archive/ ... apoursynth

Personally here like VLC and it is working for me today in embedded Wintel / Buzz's Ubuntu Linux automation screens
- Pete
O2 Jogglers running EFI Ubuntu / Squeezeplayer
OpenPeak Voip Telephony / Zigbee tabletops hardware modded with Seabios / RTC / Ethernet ROM edits / SSD drives running XPe for automation screens

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

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by BuZz »

The Kodi included supports hardware h264 decoding (up to 720p). I don't include the mplayer build anymore - I had it built/packaged for an older image and it's on the ppa, so could probably be rebuilt for 14.04 https://launchpad.net/~jools/+archive/ubuntu/joggler
monkeydogcat
Posts: 27
Joined: Sat Aug 27, 2011 6:39 pm

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by monkeydogcat »

pete wrote:Checked VLC and it was using hardware acceleration.

IE: Input / Codecs ==> VA-API video decoder via DRM
That means the option to use va-api is selected. Doesn't mean it's working.
pete wrote: Updated it anyways ...

sudo apt-get install i965-va-driver libva-intel-vaapi-driver vainfo

Testing it by typing:

vlc --ffmpeg-hw -v
Where did you install vlc from? I installed what's in the Xubuntu 14.04 repos, and that gets me this:

Code: Select all

joggler@joggler:~$  vlc --ffmpeg-hw -v 
VLC media player 2.1.6 Rincewind (revision 2.1.6-0-gea01d28)
Warning: option --ffmpeg-hw no longer exists.
The relevant option is now called --avcodec-hw and it requires a value. I tried using it, but it doesn't result in hardware acceleration being used.

Code: Select all

joggler@joggler:~$ vlc -f  --no-audio --avcodec-hw=vaapi Hey_Duggee_-_10._The_Funny_Face_Badge.mp4 
VLC media player 2.1.6 Rincewind (revision 2.1.6-0-gea01d28)
[0xa029928] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
libva: VA-API version 0.32.1
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/i386-linux-gnu/dri/emgd_drv_video.so
Intel(R) Embedded Media and Graphics Driver 1.18 Build 3398
Using XCB based dispatch table.
libva: va_openDriver() returns 0
[0xac9e3bf8] avcodec decoder error: acceleration setup failure
[0xac9e3bf8] avcodec decoder error: acceleration not available
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
[h264 @ 0xac9ee100] Cannot parallelize deblocking type 1, decoding such frames in sequential order
pete wrote: Updated MPlayer with VA-API

sudo add-apt-repository ppa:sander-vangrieken/vaapi
sudo apt-get update
sudo apt-get install mplayer-vaapi

Installed SMPlayer to check and working fine.

I installed mplayer-vaapi as you suggest. Doesn't work at all, no video, no sound.

Code: Select all

joggler@joggler:~$ mplayer -fs Hey_Duggee_-_10._The_Funny_Face_Badge.mp4
mplayer: /usr/lib/i386-linux-gnu/libva.so.1: no version information available (required by mplayer)
MPlayer SVN-r36265-4.8 (C) 2000-2013 MPlayer Team
Cannot test OS support for SSE, disabling to be safe.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing Hey_Duggee_-_10._The_Funny_Face_Badge.mp4.
libavformat version 55.7.100 (internal)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO:  [H264]  1280x720  24bpp  25.000 fps  2286.6 kbps (279.1 kbyte/s)
Clip info:
 major_brand: isom
 minor_version: 512
 compatible_brands: isomiso2avc1mp41
 encoder: Lavf55.1.100
Load subtitles in ./
libva: VA-API version 0.32.1
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/i386-linux-gnu/dri/emgd_drv_video.so
Intel(R) Embedded Media and Graphics Driver 1.18 Build 3398
Using XCB based dispatch table.
libva: va_openDriver() returns 0
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 55.9.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 93.4 kbit/3.04% (ratio: 11680->384000)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [pulse] 48000Hz 2ch floatle (4 bytes per sample)
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vaapi] 1280x720 => 1280x720 H.264 VA-API Acceleration  [fs]
[vo_vaapi] vaCreateSurfaces(): invalid parameter
FATAL: Cannot initialize video driver.
[VD_FFMPEG] Trying pixfmt=1.
Movie-Aspect is undefined - no prescaling applied.
VO: [vaapi] 1280x720 => 1280x720 Planar YV12  [fs]
[vo_vaapi] vaCreateSurfaces(): invalid parameter
FATAL: Cannot initialize video driver.
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
Movie-Aspect is undefined - no prescaling applied.
VO: [vaapi] 1280x720 => 1280x720 H.264 VA-API Acceleration  [fs]
[vo_vaapi] vaCreateSurfaces(): invalid parameter
FATAL: Cannot initialize video driver.

The errors go on and on until I hit ctrl-c.


I've download the mplayer-vaapi stuff from https://launchpad.net/~jools/+archive/u ... /+packages but there isn't enough free space in / to install all the dependencies required to do a build. Might have a look at that another day.
User avatar
pete
Posts: 2950
Joined: Mon Aug 01, 2011 6:33 am
Location: Time Traveler

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by pete »

You are right monkeydogcat. Just tried everything above via command line and see the same errors.

I wasn't paying attention. Note here recently did a new build to be able to test more stuff with Buzz's Ubuntu.

I went to 24Gb on base build using a 16Gb SSD and an 8Gb USB SSD.

Added MythTV viewer to test the live video/recorded video and it is working OK at 720.

Testing VLC via command see same errors and plays my test mp4 file.

Testing mplayer via command line and see (here Parole Gui works - SMPlayer did work and doesn't now) same as you.

Best you heed Jool's last post...Joggler Obi Wan extraordinaire

The Kodi included supports hardware h264 decoding (up to 720p). I don't include the mplayer build anymore - I had it built/packaged for an older image and it's on the ppa, so could probably be rebuilt for 14.04 hxxps://launchpad.net/~jools/+archive/ubuntu/joggler
- Pete
O2 Jogglers running EFI Ubuntu / Squeezeplayer
OpenPeak Voip Telephony / Zigbee tabletops hardware modded with Seabios / RTC / Ethernet ROM edits / SSD drives running XPe for automation screens

Auto mater
User avatar
pete
Posts: 2950
Joined: Mon Aug 01, 2011 6:33 am
Location: Time Traveler

Re: Ubuntu / Xubuntu for the O2 Joggler.

Post by pete »

Here still trying to break my updated / modded Joggler having started from scratch hitting that 16Gb point of no return. a month or two ago....so now it is 24 + 1 Gb of space and it may not be enough for me...

The basics are the RTC clock, an extra fused to the back of the Joggler 5 port hub, wireless etc....still playing with Wine here a bit...video for what I need is working.

You have shown me what I didn't know I didn't have working yet....
- Pete
O2 Jogglers running EFI Ubuntu / Squeezeplayer
OpenPeak Voip Telephony / Zigbee tabletops hardware modded with Seabios / RTC / Ethernet ROM edits / SSD drives running XPe for automation screens

Auto mater
Post Reply