[How-to] VDR on Joggler + X10 Remote Control for vdr & xbmc

General discussion relating to the O2 Joggler, from the default O2 setup, to alternative operating systems and applications.
Post Reply
User avatar
Tommes
Posts: 36
Joined: Wed Dec 14, 2011 6:40 am
Location: Peine | Germany

[How-to] VDR on Joggler + X10 Remote Control for vdr & xbmc

Post by Tommes »

Hi there,

Edit:
Go to the How-to here:

Install VDR:
http://www.jogglerwiki.com/forum/viewto ... 747&#p5747

Install X10 remote control:
http://www.jogglerwiki.com/forum/viewto ... 351&#p6855

Has anyone tried to run VDR on the Joggler ?

VDR is a great TV - Reciever & PVR software
It's free & linux-based. Partly, depending on the distrie, it comes with XBMC onBoard.
With one DVB-Device you can watch/record all programms of one tranponder/bonquett,
you can stream the recordings or live-signal in all directions, up to xbmc, too.

Links:
http://en.wikipedia.org/wiki/Video_Disk_Recorder
http://www.easyvdr-forum.de
http://www.yavdr.org/
http://www.vdr-portal.de/
http://www.vdr-wiki.de


Greets, Tommes
Last edited by Tommes on Mon Feb 06, 2012 9:27 pm, edited 4 times in total.
Hardware: O2 Joggler/Patriot XPorter XT Rage 8GB/Medion X10 rc
Software: Xubuntu 11.10 / XBMC + YaVDR
Streaming: Seagate Dockstar/Afatech DVB-T/2xUSB-HD (incl. rsync-backup) - Debian Squeeze + YaVDR (streamdev)
User avatar
Mevi
Posts: 774
Joined: Tue Oct 25, 2011 4:39 pm

Re: VDR on the Joggler ?

Post by Mevi »

Joggler should be capable of doing anything a 7 year old P4 can do. So say the benchmarks. :)
I've Got The Moves Like Joggler

Windows XP Professional SP3 plus Tablet PC for O2 Joggler
http://www.jogglerwiki.com/forum/viewto ... ?f=2&t=305

How to build your own Windows XP for the Joggler
http://www.jogglerwiki.com/wiki/WindowsXP
User avatar
hawsey
Posts: 2077
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: VDR on the Joggler ?

Post by hawsey »

@Tommes this would be a cool little project, like the idea of this working ;) let us know your progress if you try it.
Happy Joggling
swifty
Posts: 8
Joined: Thu Apr 28, 2011 7:33 pm

Re: VDR on the Joggler ?

Post by swifty »

This is certainly possible, I used one of my joggler's as a TVHeadend server for around 6 months - two USB tuners connected (one DVB-T, one DVB-S2) and then streamed the liveTV to several clients around the house.

They make perfect little boxes for this sort of thing as they are so low power so can just be left on all the time.

You will run into issues if you try to use it as a frontend too though, as the graphics chip is so pedantic you'll end up with really wierd issues and stuttering if it's on all the time.

I'm now working on trying to get Android 3/4 working on the joggler so that it will hopefully be a little more robust as a frontend - then *simply* use TVHGuide to stream liveTV from TVHeadend to Android on the joggler :)
User avatar
Tommes
Posts: 36
Joined: Wed Dec 14, 2011 6:40 am
Location: Peine | Germany

Re: VDR on the Joggler !

Post by Tommes »

Problem solved 8-)

ok, here we go:

# Did you took the 4GB Buzz image ?
# How much space is available on your medium ?
sudo df -h

# if not enough space free, resize the main-partition
# i've took a desktop-ubuntu (live CD for example)
# gparted -> dismount ext4 partition
# -> resize to rest of the 8gb stick

# Get root-access

Code: Select all

sudo -s
# I must install the firmware for my DVB-T stick AFATECH ...

Code: Select all

apt-get install linux-firmware-nonfree
# Install the yavdr ppa launchpad

Code: Select all

add-apt-repository ppa:yavdr/main
add-apt-repository ppa:yavdr/unstable-vdr
# Update the packet-infos & upgrade system

Code: Select all

apt-get update
apt-get dist-upgrade
# Install VDR + xineliboutput

Code: Select all

apt-get install vdr vdr-plugin-xineliboutput libxineliboutput-sxfe xineliboutput-sxfe
# Edit the xineliboutput settings like the following

Code: Select all

gedit /etc/vdr/plugins/plugin.xineliboutput.conf

Code: Select all

--local=sxfe
--primary
--display=0.0
# if you want fullscreen add the following too

Code: Select all

--fullscreen
--width=your screen width eg 800
--height=your screen height eg 600
# Don't know, if be a must ???
# edit the Xwrapper.config

Code: Select all

gedit /etc/X11/Xwrapper.config

Code: Select all

allowed_users=anybody
# Allow vdr to connect to audio
# -> add vdr to group audio

Code: Select all

gpasswd -a vdr audio
# Don't know, if be a must ???
# -> add vdr to group joggler

Code: Select all

gpasswd -a vdr joggler
# Allow/Disallow VDR to shutdown the system
# Should VDR start at bootup ?

Code: Select all

gedit /etc/default/vdr

Code: Select all

# Change to 1 to enable vdr's init-script
ENABLED=1

#!!! THIS MUST BE '1', otherwise VDR don't starts from Terminal
#!!! the side effect is, that VDR starts at boot up :-(
#!!! I don't know, why this must be enabled for Terminal-Start ???




# Change this to 1 if you want vdr to be able to shutdown the
# computer
ENABLE_SHUTDOWN=0
# Allow VDR to connect to the running X-Server

Code: Select all

gedit ~/.profile
# scroll to the end of the file and add a new line:

Code: Select all

xhost + local:
# edit the channels.conf for your DVB-method/location

Code: Select all

gedit /etc/vdr/channels.conf
# Start VDR

Code: Select all

/etc/init.d/vdr start
# Stop VDR

Code: Select all

/etc/init.d/vdr stop
# Stop & Start VDR

Code: Select all

/etc/init.d/vdr restart

# Problems or trouble ?
Take a look at

Code: Select all

/var/log/syslog
EDIT2:

Optimize settings:

- Menu -> Settings -> Plugins -> xineliboutput -> video ->
# for a better screenquality
...-> Deinterlacing: TvTime
...-> Methode -> Greedy 2-frame

# Kill the borders
# cause the most TV-Stuff is in 16:9, not 4:3
- Menu -> Settings -> Plugins -> xineliboutput -> video
...-> Software Scaling -> yes
...-> change aspect ratio -> no
...-> change video size -> yes -> 800 x 600

Edit 3:

# Keep the aspect ratio at IMHO all tv-broadcasts:

- Menu -> Settings -> DVB -> 16:9
- Menu -> Settings -> Plugins -> xineliboutput -> video
...-> Aspect ratio: automatic
...-> crop letterbox 4:3 to 16:9 -> yes
...-> Use driver crop -> no
...-> Autodetect letterbox -> yes
...-> Crop to -> 14:9/16:9
...-> Allow downscaling -> yes (scroll down for this option)
- Menu -> Settings -> Plugins -> xineliboutput -> osd
...-> Resolution -> automatic
...-> Scaling method -> bilinear

Edit 4:
I forget this one:
# The Joggler screen is not 16:9 and not 16:10, it's 16:9.6, tell it to the VDR here:

- Menu -> Settings -> Plugins -> xineliboutput -> Local Frontend -> Window aspect -> default

but centering the osd i couldn't get this yet :(

P.S.: Very Thanks to swifty for helping to install VDR 8-) :-)

Greets, Tommes
Last edited by Tommes on Tue Jan 31, 2012 11:59 pm, edited 5 times in total.
Hardware: O2 Joggler/Patriot XPorter XT Rage 8GB/Medion X10 rc
Software: Xubuntu 11.10 / XBMC + YaVDR
Streaming: Seagate Dockstar/Afatech DVB-T/2xUSB-HD (incl. rsync-backup) - Debian Squeeze + YaVDR (streamdev)
User avatar
Tommes
Posts: 36
Joined: Wed Dec 14, 2011 6:40 am
Location: Peine | Germany

Re: [How-to] VDR on the Joggler

Post by Tommes »

solved !
Hardware: O2 Joggler/Patriot XPorter XT Rage 8GB/Medion X10 rc
Software: Xubuntu 11.10 / XBMC + YaVDR
Streaming: Seagate Dockstar/Afatech DVB-T/2xUSB-HD (incl. rsync-backup) - Debian Squeeze + YaVDR (streamdev)
User avatar
hawsey
Posts: 2077
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: [How-to] VDR on the Joggler

Post by hawsey »

Great Tommes good work .
So are you using the joggler Vdr with tv tuner cards ? If so which ones ?
What else have you got in your set up Tommes ?
Any chance of a you tube video to see it all up and running .
Sounds sweet :-)


Happy Joggling
Happy Joggling
User avatar
Tommes
Posts: 36
Joined: Wed Dec 14, 2011 6:40 am
Location: Peine | Germany

Re: [How-to] VDR on the Joggler

Post by Tommes »

hawsey wrote: So are you using the joggler Vdr with tv tuner cards ? If so which ones ?
What else have you got in your set up Tommes ?

Any chance of a you tube video to see it all up and running .
Sounds sweet :-)
i'm using an USB DVB-T Stick Afatech AF9015, a low budget tuner from dealextreme,
a mouse & keyboard for setuping & an 8 GB USB Stick.
But you can go without a DVB Device on the joggler, then you must stream it
take a look at vdr plugin streamdev.
A video wouldn't be a problem, can i send a video to youtube anonymously ?

P.S.: i want to go to work an X10 remote control for VDR & XBMC.
The reciever (USB) will be is recognized by the jogg., it's one of the next steps.
Also i'll try to get the 'easyVDR'-ppa, instead the yavdr, cause easyvdr is at home
on my tvs ...
Hardware: O2 Joggler/Patriot XPorter XT Rage 8GB/Medion X10 rc
Software: Xubuntu 11.10 / XBMC + YaVDR
Streaming: Seagate Dockstar/Afatech DVB-T/2xUSB-HD (incl. rsync-backup) - Debian Squeeze + YaVDR (streamdev)
User avatar
Tommes
Posts: 36
Joined: Wed Dec 14, 2011 6:40 am
Location: Peine | Germany

Re: [How-to] VDR on the Joggler

Post by Tommes »

a first preview video at
http://www.vidup.de/v/LSAvc/

Sorry, but not the best quality & incorrect aspect ratio :(

Greets, Tommes
Hardware: O2 Joggler/Patriot XPorter XT Rage 8GB/Medion X10 rc
Software: Xubuntu 11.10 / XBMC + YaVDR
Streaming: Seagate Dockstar/Afatech DVB-T/2xUSB-HD (incl. rsync-backup) - Debian Squeeze + YaVDR (streamdev)
User avatar
hawsey
Posts: 2077
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: [How-to] VDR on the Joggler

Post by hawsey »

Just had a quick look at the video Tommes thanks for sharing this with us :-)
There are quite a few xbmc type android remotes out there but not for the TV stuff, any ideas anyone?
I use a HP mce R6 remote and that has TV and record buttons .
I wonder if xbmc with TV would work as well ;-)
Good work Tommes
Happy Joggling
User avatar
Tommes
Posts: 36
Joined: Wed Dec 14, 2011 6:40 am
Location: Peine | Germany

Re: [How-to] VDR on the Joggler

Post by Tommes »

What do you want to control with your remote control ?
xbmc or vdr ?
You can go to runs both, you must only have an USB-Remote-Reciever
suitable for your IR- or X10-remote control.
Take a look at LIRC & google your remote model + vdr and/or xbmc
If you've luck, some config files for your remote exists already
Hardware: O2 Joggler/Patriot XPorter XT Rage 8GB/Medion X10 rc
Software: Xubuntu 11.10 / XBMC + YaVDR
Streaming: Seagate Dockstar/Afatech DVB-T/2xUSB-HD (incl. rsync-backup) - Debian Squeeze + YaVDR (streamdev)
User avatar
Tommes
Posts: 36
Joined: Wed Dec 14, 2011 6:40 am
Location: Peine | Germany

X10 remote control + VDR

Post by Tommes »

Hi there,

to install an X10 Medion remote control:

- LIRC should be installed automaticly by installing VDR ...
lirc 0.9 from the yavdr-repo ...

- be shure, that /etc/modprobe.d/lirc-blacklist exists with this line:

Code: Select all

blacklist ati_remote

Code: Select all

sudo gedit /etc/modprobe.d/lirc-blacklist
- edit the /etc/lirc/hardware.conf:

Code: Select all

sudo gedit /etc/lirc/hardware.conf
edit these lines:

Code: Select all

REMOTE_MODULES="lirc_atiusb"
REMOTE_DRIVER=""
to this:

Code: Select all

REMOTE_MODULES=""
REMOTE_DRIVER="atilibusb"
- restart lirc:

Code: Select all

sudo /etc/init.d/lirc restart
- restart VDR & teach in the buttons of your remote

- for xbmc create a lircmap, that's the next step for me ...

EDIT:
Here are the config-files for my constellation of hardware -> Medion X10

hardware.conf

Code: Select all

# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="ATI/NVidia/X10 I REMOTE="None" II RF Remote"
REMOTE_MODULES=""   # ehemals "lirc_dev lirc_atiusb"
REMOTE_DRIVER="atilibusb"
REMOTE_DEVICE="/dev/lirc0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="atiusb/lircd.conf.atiusb"
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""
lircd.conf

Code: Select all

#This configuration has been automatically generated via
#the Ubuntu LIRC package maintainer scripts.
#
#It includes the default configuration for the remote and/or
#transmitter that you have selected during package installation.
#
#Feel free to add any custom remotes to the configuration
#via additional include directives or below the existing
#Ubuntu include directives from your selected remote and/or
#transmitter.

#Configuration for the ATI/NVidia/X10 I & II RF Remote remote:
include "/usr/share/lirc/extras/more_remotes/atiusb/lircd.conf.atiusb"
remote.conf

Code: Select all

XKeySym.Up         Up
XKeySym.Down       Down
XKeySym.Menu       m
XKeySym.Ok         Return
XKeySym.Back       BackSpace
XKeySym.Left       Left
XKeySym.Right      Right
XKeySym.Red        F1
XKeySym.Green      F2
XKeySym.Yellow     F3
XKeySym.Blue       F4
XKeySym.0          0
XKeySym.1          1
XKeySym.2          2
XKeySym.3          3
XKeySym.4          4
XKeySym.5          5
XKeySym.6          6
XKeySym.7          7
XKeySym.8          8
XKeySym.9          9
XKeySym.Pause      space
XKeySym.Stop       Escape
XKeySym.FastFwd    KP_Right
XKeySym.FastRew    KP_Left
XKeySym.Next       KP_Up
XKeySym.Prev       KP_Down
XKeySym.Power      p
XKeySym.Channel+   KP_Add
XKeySym.Channel-   KP_Subtract
XKeySym.PrevChannel KP_Insert
XKeySym.Volume+    Prior
XKeySym.Volume-    Next
XKeySym.Mute       End
LIRC.Up         up
LIRC.Down       down
LIRC.Menu       ACQ_IMAGE
LIRC.Ok         ok
LIRC.Back       max_window
LIRC.Left       left
LIRC.Right      right
LIRC.Red        RED
LIRC.Green      GREEN
LIRC.Yellow     YELLOW
LIRC.Blue       BLUE
LIRC.0          0
LIRC.1          1
LIRC.2          2
LIRC.3          3
LIRC.4          4
LIRC.5          5
LIRC.6          6
LIRC.7          7
LIRC.8          8
LIRC.9          9
LIRC.Info       launch_setup
LIRC.Play       play
LIRC.Pause      pause
LIRC.Stop       stop
LIRC.Record     record
LIRC.FastFwd    forward
LIRC.FastRew    rewind
LIRC.Next       f
LIRC.Prev       e
LIRC.Power      power
LIRC.Channel+   chan-up
LIRC.Channel-   chan-down
LIRC.Volume+    vol-down
LIRC.Volume-    vol-up
LIRC.Mute       a
LIRC.Audio      media_library
LIRC.Subtitles  VIDEO_DESKTOP
LIRC.Schedule   TV_PREVIEW
LIRC.Channels   CHANNEL_LIST
LIRC.Timers     tv_on_demand
LIRC.Recordings VCR
LIRC.Setup      c
LIRC.Commands   DVD_AUDIO
Lircmap.xml

Code: Select all

<lircmap>
       <remote device="ATIUSB_5000015900A">
           <red>RED</red>
           <menu>ACQ_IMAGE</menu>
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <zero>0</zero>
           <mytv>CHANNEL_LIST</mytv>
       </remote>
       <remote device="ATIUSB_5000022000">
           <mute>a</mute>
           <power>power</power>
           <volumeminus>vol-up</volumeminus>
           <volumeplus>vol-down</volumeplus>
           <pageplus>chan-up</pageplus>
           <pageminus>chan-down</pageminus>
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <zero>0</zero>
           <record>record</record>
           <back>max_window</back>
           <select>ok</select>
           <pause>pause</pause>
           <skipplus>f</skipplus>
           <reverse>rewind</reverse>
           <play>play</play>
           <record>record</record>
           <stop>stop</stop>
           <pause>pause</pause>
       </remote>
       <remote device="ATIUSB_5000023600">
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <mute>a</mute>
           <power>power</power>
           <zero>0</zero>
           <record>record</record>
           <back>max_window</back>
           <pause>pause</pause>
           <skipplus>f</skipplus>
           <select>ok</select>
           <left>left</left>
           <right>right</right>
           <up>up</up>
           <down>down</down>
           <reverse>rewind</reverse>
           <play>play</play>
           <forward>forward</forward>
           <record>record</record>
           <stop>stop</stop>
           <pause>pause</pause>
           <volumeplus>vol-down</volumeplus>
           <volumeminus>vol-up</volumeminus>
           <pageminus>chan-down</pageminus>
           <pageplus>chan-up</pageplus>
       </remote>
       <remote device="SAPPHIRE_ATIUSB_5000023600">
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <mute>a</mute>
           <power>power</power>
           <zero>0</zero>
           <record>record</record>
           <back>max_window</back>
           <pause>pause</pause>
           <skipplus>f</skipplus>
           <select>ok</select>
           <left>left</left>
           <right>right</right>
           <up>up</up>
           <down>down</down>
           <reverse>rewind</reverse>
           <play>play</play>
           <forward>forward</forward>
           <record>record</record>
           <stop>stop</stop>
           <pause>pause</pause>
           <volumeplus>vol-down</volumeplus>
           <volumeminus>vol-up</volumeminus>
           <pageminus>chan-down</pageminus>
           <pageplus>chan-up</pageplus>
       </remote>
       <remote device="X-10_Lola">
           <up>up</up>
           <down>down</down>
           <left>left</left>
           <right>right</right>
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <zero>0</zero>
           <mytv>CHANNEL_LIST</mytv>
           <menu>ACQ_IMAGE</menu>
           <play>play</play>
           <stop>stop</stop>
           <pause>pause</pause>
           <power>power</power>
       </remote>
       <remote device="microapp6in1">
           <select>ok</select>
           <up>up</up>
           <left>left</left>
           <right>right</right>
           <down>down</down>
           <play>play</play>
           <forward>forward</forward>
           <pause>pause</pause>
           <stop>stop</stop>
           <record>record</record>
           <power>power</power>
           <up>up</up>
       </remote>
       <remote device="atiusb_ch1">
           <red>RED</red>
           <menu>ACQ_IMAGE</menu>
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <zero>0</zero>
           <mytv>CHANNEL_LIST</mytv>
       </remote>
       <remote device="ATIUSB_UR88A">
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <zero>0</zero>
           <stop>stop</stop>
           <play>play</play>
           <reverse>rewind</reverse>
           <pause>pause</pause>
           <record>record</record>
           <up>up</up>
           <down>down</down>
           <right>right</right>
           <left>left</left>
           <select>ok</select>
       </remote>
       <remote device="Medion">
           <myvideo>VCR</myvideo>
           <title>TV_PREVIEW</title>
           <mytv>CHANNEL_LIST</mytv>
           <red>RED</red>
           <green>GREEN</green>
           <yellow>YELLOW</yellow>
           <blue>BLUE</blue>
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <zero>0</zero>
           <menu>ACQ_IMAGE</menu>
       </remote>
       <remote device="5000024400">
           <mute>a</mute>
           <power>power</power>
           <volumeminus>vol-up</volumeminus>
           <volumeplus>vol-down</volumeplus>
           <pageplus>chan-up</pageplus>
           <pageminus>chan-down</pageminus>
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <zero>0</zero>
           <up>up</up>
           <left>left</left>
           <right>right</right>
           <down>down</down>
           <select>ok</select>
           <record>record</record>
           <play>play</play>
           <pause>pause</pause>
           <skipplus>f</skipplus>
           <reverse>rewind</reverse>
           <stop>stop</stop>
           <pause>pause</pause>
       </remote>
       <remote device="Niveus_X10">
           <power>power</power>
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <zero>0</zero>
           <mute>a</mute>
           <record>record</record>
           <up>up</up>
           <down>down</down>
           <left>left</left>
           <right>right</right>
           <select>ok</select>
           <play>play</play>
           <stop>stop</stop>
           <pause>pause</pause>
       </remote>
       <remote device="ATIUSB_MEDION_MD95700">
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <zero>0</zero>
           <left>left</left>
           <right>right</right>
           <up>up</up>
       </remote>
       <remote device="MEDION_X10_RF">
           <zero>0</zero>
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <up>up</up>
           <down>down</down>
           <left>left</left>
           <right>right</right>
           <select>ok</select>
           <play>play</play>
           <pause>pause</pause>
           <stop>stop</stop>
           <forward>forward</forward>
           <reverse>rewind</reverse>
           <record>record</record>
           <power>power</power>
       </remote>
       <remote device="MEDION_40005927">
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <zero>0</zero>
       </remote>
       <remote device="Medion_X10">
           <select>ok</select>
           <power>power</power>
           <up>up</up>
           <down>down</down>
           <left>left</left>
           <right>right</right>
           <stop>stop</stop>
           <pause>pause</pause>
           <play>play</play>
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <zero>0</zero>
       </remote>
       <remote device="Medion_8802">
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <zero>0</zero>
       </remote>
       <remote device="Medion_OR24E">
           <up>up</up>
           <down>down</down>
           <left>left</left>
           <right>right</right>
           <select>ok</select>
           <forward>forward</forward>
           <play>play</play>
           <stop>stop</stop>
           <record>record</record>
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <zero>0</zero>
       </remote>
       <remote device="Q-Sonic_Master_Remote">
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <zero>0</zero>
       </remote>
       <remote device="AR_Remote_Control_MCE">
           <red>RED</red>
           <yellow>YELLOW</yellow>
           <green>GREEN</green>
           <blue>BLUE</blue>
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <zero>0</zero>
       </remote>
       <remote device="Toshiba_X10">
           <power>power</power>
           <up>up</up>
           <down>down</down>
           <left>left</left>
           <right>right</right>
           <select>ok</select>
           <reverse>rewind</reverse>
           <forward>forward</forward>
           <play>play</play>
           <record>record</record>
           <stop>stop</stop>
           <pause>pause</pause>
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <zero>0</zero>
       </remote>
       <remote device="ATI_REMOTE_2_2_1">
           <red>RED</red>
           <green>GREEN</green>
           <yellow>YELLOW</yellow>
           <blue>BLUE</blue>
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <zero>0</zero>
       </remote>
       <remote device="Medion_X10">
           <power>power</power>
           <select>ok</select>
           <record>record</record>
           <pause>pause</pause>
           <stop>stop</stop>
           <play>play</play>
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <zero>0</zero>
       </remote>
       <remote device="Medion_X10">
           <power>power</power>
           <up>up</up>
           <down>down</down>
           <left>left</left>
           <right>right</right>
           <select>ok</select>
           <play>play</play>
           <pause>pause</pause>
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <zero>0</zero>
       </remote>
       <remote device="Jasco_97685T">
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <zero>0</zero>
           <red>RED</red>
           <up>up</up>
           <down>down</down>
           <left>left</left>
           <right>right</right>
           <select>ok</select>
           <play>play</play>
           <pause>pause</pause>
           <stop>stop</stop>
       </remote>
       <remote device="Toshiba_PX1246E-1ETC">
           <up>up</up>
           <red>RED</red>
           <yellow>YELLOW</yellow>
           <green>GREEN</green>
           <blue>BLUE</blue>
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <zero>0</zero>
           <up>up</up>
       </remote>
       <remote device="Snapstream_Firefly_R1000">
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <zero>0</zero>
           <up>up</up>
           <down>down</down>
           <left>left</left>
           <right>right</right>
           <select>ok</select>
           <play>play</play>
           <stop>stop</stop>
           <pause>pause</pause>
           <mute>a</mute>
           <record>record</record>
       </remote>
       <remote device="Medion_MD1_NBC_Remote">
           <one>1</one>
           <two>2</two>
           <three>3</three>
           <four>4</four>
           <five>5</five>
           <six>6</six>
           <seven>7</seven>
           <eight>8</eight>
           <nine>9</nine>
           <zero>0</zero>
       </remote>
       <remote device="Snapstream">
           <one>1</one>
           <one>1</one>
           <two>2</two>
           <two>2</two>
           <three>3</three>
           <three>3</three>
           <four>4</four>
           <four>4</four>
           <five>5</five>
           <five>5</five>
           <six>6</six>
           <six>6</six>
           <seven>7</seven>
           <seven>7</seven>
           <eight>8</eight>
           <eight>8</eight>
           <nine>9</nine>
           <nine>9</nine>
           <zero>0</zero>
           <zero>0</zero>
           <red>RED</red>
           <red>RED</red>
       </remote>
</lircmap>
Greets, Tommes
Last edited by Tommes on Sun Feb 26, 2012 9:53 pm, edited 2 times in total.
Hardware: O2 Joggler/Patriot XPorter XT Rage 8GB/Medion X10 rc
Software: Xubuntu 11.10 / XBMC + YaVDR
Streaming: Seagate Dockstar/Afatech DVB-T/2xUSB-HD (incl. rsync-backup) - Debian Squeeze + YaVDR (streamdev)
User avatar
hawsey
Posts: 2077
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: [How-to] VDR on the Joggler + X10 Remote Control

Post by hawsey »

Hi Tommes,
i have a RC6 (MCE) standard HP Remote and reciever which i use with XBMC , i set it up using this guide http://xbmccustomregis.sourceforge.net/remote_manu.html i have tried using the ipod touch and my android phone ZTE San Fran as well but i allways end up back with the HP remote , love the way you can use text search on it :D
Good luck with your X10 set up .
I found a video on you tube of xbmc pvr using VDR , this was what i was talking about , so you have everything under one programme , i'm thinking the XBMC pvr must use VDR ?
http://www.youtube.com/watch?v=Q-mPW-QcP2c

Cheers
Gary
Happy Joggling
User avatar
Tommes
Posts: 36
Joined: Wed Dec 14, 2011 6:40 am
Location: Peine | Germany

Re: [How-to] VDR on the Joggler + X10 Remote Control

Post by Tommes »

for MCE RC6 remote you could look at this, if needed, which helped me for X10 (sorry, but german ;-) ):
http://www.loggn.de/tag/hardware-conf/

For xbmc pvr, the VDR is not a must, it could be any other supported tv-backend, like
HTS Tvheadend, VDR, MythTV, MediaPortal or ForTheRecord
Take a look at words like 'Backend' (the pvr-soft in background) and 'Frontend' (is what you see)
http://wiki.xbmc.org/index.php?title=HO ... TV_in_XBMC
Hardware: O2 Joggler/Patriot XPorter XT Rage 8GB/Medion X10 rc
Software: Xubuntu 11.10 / XBMC + YaVDR
Streaming: Seagate Dockstar/Afatech DVB-T/2xUSB-HD (incl. rsync-backup) - Debian Squeeze + YaVDR (streamdev)
User avatar
hawsey
Posts: 2077
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: [How-to] VDR on the Joggler + X10 Remote Control

Post by hawsey »

Tommes,
That link for xbmc clears a lot of stuff up for me , thanks again :-)
Good luck with getting it all running how you want it

Cheers
Gary
Happy Joggling
User avatar
Tommes
Posts: 36
Joined: Wed Dec 14, 2011 6:40 am
Location: Peine | Germany

Re: [How-to] VDR on the Joggler + X10 Remote Control

Post by Tommes »

Hi there,

ok, here i go the next step:

-- create a lircmap.xml to control XBMC by your remote control:
Note, the VDR must be installed with a working remote control

you need 2 files:
- lircd.conf (the LIRC file for your remote control (X10 for example)) - located in /etc/lirc
- remote.conf (it was created by 1st Start VDR, by teaching in your remote control) - located in /etc/vdr/

create a new file in /usr/bin/ & make it executable:

Code: Select all

sudo -s
leafpad /usr/bin/create-lircmapxml.sh
or
gedit /usr/bin/create-lircmapxml.sh
chmod 755 /usr/bin/create-lircmapxml.sh
create-lircmapxml.sh with this inside:

Code: Select all

#!/bin/bash
#
# Set the Location of the needed files lircd.conf & remote.conf
#

lircd_conf=/etc/lirc/lircd.conf
remote_conf=/etc/vdr/remote.conf

# --------------------
function generate_lircmap() {
   ISREMOTE=false
   ISRAW=false
   CODES=false
   RCODES=false
   NAMEFOUND=false
   echo "<lircmap>"
   grep -v "^#" $lircd_conf | \
   while read line
    do
     case $line
      in
     *begin*raw_codes*)
	               if $ISREMOTE 
		         then
			  CODES=true
			  ISRAW=true
		       fi
	               continue
		      ;;
       *end*raw_codes*)
	               CODES=false
		       ISRAW=false
	               continue
		      ;;
         *begin*codes*)
	               $ISREMOTE && CODES=true
	               continue
		      ;;
	   *end*codes*)
	               CODES=false
	               continue
		      ;;
	*begin*remote*)
	               ISREMOTE=true
	               continue
	              ;;
	  *end*remote*)
   	               echo "       </remote>"
	               ISREMOTE=false
		       NAMEFOUND=false
		       CODES=false
	               continue
	              ;;
		*name*)
		       $ISREMOTE || continue
		       if ! $NAMEFOUND
		         then
  		          NAMEFOUND=true
	                  device=$(echo $line | awk '{print $2}')
                          echo "       <remote device=\"$device\">"
      	                  continue
                       fi  
    	              ;;
     esac
     $CODES || continue 
     if $ISRAW
       then
        if echo $line | grep name > /dev/null
	  then
           key=$(echo $line | awk '{print $2}')
          else
	   continue
        fi
       else
        key=$(echo $line | awk '{print $1}')
     fi
     VDR=$(cat $remote_conf | grep "^LIRC\..*$key$")
     if ! [ "$VDR" =  "" ]
       then
        VDR_KEY=$(echo $VDR |awk '{print $1}' | cut -d"." -f2)
        LIRC_KEY=$(echo $VDR |awk '{print $2}')
        case $VDR_KEY
         in
                           Up)
   	                      echo "           <up>$LIRC_KEY</up>"
			     ;;
                         Down)
			      echo "           <down>$LIRC_KEY</down>"
			     ;;
          	         Menu)
			      echo "           <menu>$LIRC_KEY</menu>"
			     ;;
	                   Ok)
			      echo "           <select>$LIRC_KEY</select>"
			     ;;
		         Back)
			      echo "           <back>$LIRC_KEY</back>"
			     ;;
		         Left)
			      echo "           <left>$LIRC_KEY</left>"
			     ;;
			Right)
		              echo "           <right>$LIRC_KEY</right>"
			     ;;
		          Red)
			      echo "           <red>$LIRC_KEY</red>"
			     ;;
			Green)
			      echo "           <green>$LIRC_KEY</green>"
			     ;;
		       Yellow)
			      echo "           <yellow>$LIRC_KEY</yellow>"
			     ;;
		         Blue)
			      echo "           <blue>$LIRC_KEY</blue>"
			     ;;
			    0)
			      echo "           <zero>$LIRC_KEY</zero>"
			     ;;
			    1)
			      echo "           <one>$LIRC_KEY</one>"
			     ;;
			    2)
			      echo "           <two>$LIRC_KEY</two>"
			     ;;
			    3)
			      echo "           <three>$LIRC_KEY</three>"
			     ;;
			    4)
			      echo "           <four>$LIRC_KEY</four>"
			     ;;
			    5)
			      echo "           <five>$LIRC_KEY</five>"
			     ;;
			    6)
			      echo "           <six>$LIRC_KEY</six>"
			     ;;
			    7)
			      echo "           <seven>$LIRC_KEY</seven>"
			     ;;
			    8)
			      echo "           <eight>$LIRC_KEY</eight>"
			     ;;
			    9)
			      echo "           <nine>$LIRC_KEY</nine>"
			     ;;
			 Info)
			      echo "           <info>$LIRC_KEY</info>"
			     ;;
			 Play)
                              echo "           <play>$LIRC_KEY</play>"
			     ;;
			Pause)
		              echo "           <pause>$LIRC_KEY</pause>"
			     ;;
			 Stop)
			      echo "           <stop>$LIRC_KEY</stop>"
			     ;;
		       Record)
		              echo "           <record>$LIRC_KEY</record>"
			     ;;
		      FastFwd)
                              echo "           <forward>$LIRC_KEY</forward>"
			     ;;
		      FastRew)
			      echo "           <reverse>$LIRC_KEY</reverse>"
			     ;;
		         Next)
			      echo "           <skipplus>$LIRC_KEY</skipplus>"
			     ;;
		         Prev)
			      echo "           <skipminus>$LIRC_KEY</skipminus>"
			     ;;
		        Power)
			      echo "           <power>$LIRC_KEY</power>"
			     ;;
		     Channel+)
		              echo "           <pageplus>$LIRC_KEY</pageplus>"
			     ;;
		     Channel-)
		              echo "           <pageminus>$LIRC_KEY</pageminus>"
			     ;;
		  PrevChannel)
			     ;;
		      Volume+)
		              echo "           <volumeplus>$LIRC_KEY</volumeplus>"
			     ;;
		      Volume-)
		              echo "           <volumeminus>$LIRC_KEY</volumeminus>" 
			     ;;
		         Mute)
			      echo "           <mute>$LIRC_KEY</mute>"
			     ;;
		        Audio)
			     ;;
		     Schedule)
		              echo "           <title>$LIRC_KEY</title>"
			     ;;
		     Channels)
		              echo "           <mytv>$LIRC_KEY</mytv>"
			     ;;
		       Timers)
			     ;;
		   Recordings)
		              echo "           <myvideo>$LIRC_KEY</myvideo>"
			     ;;
		        Setup)
			     ;;
		     Commands)
			     ;;
        esac
     fi
   done
   echo "</lircmap>"
}

generate_lircmap 
- Run the script & copy the results to .xbmc/userdata/Lircmap.xml

Code: Select all

./usr/bin/create-lircmapxml.sh > .xbmc/userdata/Lircmap.xml
or
/usr/bin/create-lircmapxml.sh > .xbmc/userdata/Lircmap.xml
Cause i've had some problems, i've created the Lircmap.xml by my HTPC with running easyVDR on it ...

- Note: You don't have every keypress of your remote now activated in xbmc, only some basics-keys
like 1, 2, 3 ... menu ... at least it was for me so, but at first it's better than nothing ;)

Edit:
Sorry, i forgot:
*** Double Keypress Problem in XBMC ***
- One keypress on remote control xbmc get's this like two keypresses:

Create a new file

Code: Select all

leafpad ~/.xbmc/userdata/advancedsettings.xml
and try with the values, I could get nearly good values: 9/400

Code: Select all

<advancedsettings>
    <remotedelay>9</remotedelay>
    <remoterepeat>400</remoterepeat>
</advancedsettings>

- If you feel, xbmc would 'hooked' a bit, try to convert the background-pics to 800x480,
the joggler must render all 720p Backgrounds down to 800x480, this takes it's time,
take a look at /usr/share/xbmc/addons/skin.confluence/backgrounds
Perhaps could provide someone the backgrounds files ?


--------------------------------------------------------------------------------

- OK, the next step would be:
I'm thinking about a thoughtful use, run & cooperating of VDR & XBMC :roll:

I think one way could be like this

- start VDR at boot up in background - headless without any frontend
- create a 'Start-VDR' Button on Desktop -> Starting xineliboutput frontend to look TV or recordings
- bending the function 'VDR exit' to close the frontend & VDR backend should continue running
- exchange the joggler's xbmc by xbmc pvr of the yavdr-repo.
- integrate VDR in XBMC -> Using XBMC as frontend.

- some points are still in need of clarification
-> Using rc on desktop ? What should do what at start/stop vdr/xbmc front-/backend ... ...

Do you have an idea ?


--------------------------------------------------------------------------------

Some examples:
sudo -s

a better osd for vdr:

Code: Select all

apt-get install text2skin
apt-get install vdr-skin-anthra-sd
VDR -> settings -> osd -> skin(?)

changing xbmc by xbmc-pvr of yavdr-repo

Code: Select all

add-apt-repository ppa:yavdr/unstable-xbmc
leafpad /etc/apt/preferneces.d/joggler.pref

add this lines:
Package: *
Pin: release o=LP-PPA-yavdr-unstable-xbmc
Pin-Priority: 1012

apt-get update
apt-get dist-upgrade

Run VDR headless:

Code: Select all

gedit /etc/vdr/plugins/plugin.xineliboutput.conf
edit 'local' to this

Code: Select all

--local=none
Starting frontend manualy:

Code: Select all

vdr-sxfe xvdr://localhost
Which plugins for VDR are available ?

Code: Select all

apt-cache search vdr-plugin*
Which Version of VDR/XBMC is/will be installed from which repository
by apt-get install ... ?

Code: Select all

apt-cache policy vdr xbmc
The highest priority is the favorit to install, "1010" for example ...


Greets, Tommes
Hardware: O2 Joggler/Patriot XPorter XT Rage 8GB/Medion X10 rc
Software: Xubuntu 11.10 / XBMC + YaVDR
Streaming: Seagate Dockstar/Afatech DVB-T/2xUSB-HD (incl. rsync-backup) - Debian Squeeze + YaVDR (streamdev)
User avatar
Tommes
Posts: 36
Joined: Wed Dec 14, 2011 6:40 am
Location: Peine | Germany

Some Tuning Tips + CENTER OSD

Post by Tommes »

Thread-Update:

Placing configfiles in the X10-Installing-Posting above

- Installing VDR-Skin Anthra, it fits well to xbmc skin confluence + installing VDR-symbols-font

Code: Select all

apt-get install text2skin
apt-get install vdr-skin-anthra-sd
apt-get install vdr-symbols-ttf
- Installing the channellogos
Note, that it's only for private use, all copyrights are at the tv-stations

Code: Select all

cd /tmp
wget http://justlinux.de/vdr/liquid-logos4anthra_HD-1.0.tar.gz
tar -xvzf liquid-logos4anthra_HD-1.0.tar.gz -C /var/lib/vdr
ln -s /var/lib/vdr/liquid-logos4anthra_HD /var/lib/vdr/channellogos
- activate the new skin & font & CENTER the OSD:
Menu -> settings -> OSD ->
skin -> anthra_SD
Theme -> light
WarEagle icons -> yes
Left -> 5
Top -> 0
Width -> 100
Height -> 100
message time -> 1
use small font -> skin dependent
Anti-alias -> yes
Default font -> VDRSymbols Sans:Book
Small font -> VDRSymbols Sans:Book
Fixed font -> Courier:Bold
Hardware: O2 Joggler/Patriot XPorter XT Rage 8GB/Medion X10 rc
Software: Xubuntu 11.10 / XBMC + YaVDR
Streaming: Seagate Dockstar/Afatech DVB-T/2xUSB-HD (incl. rsync-backup) - Debian Squeeze + YaVDR (streamdev)
User avatar
Tommes
Posts: 36
Joined: Wed Dec 14, 2011 6:40 am
Location: Peine | Germany

Post by Tommes »

- Stop VDR without shutdown -> Press Power-Button should Stop VDR

edit the /etc/vdr/remote.conf
edit these lines:

Code: Select all

XKeySym.Power     p
LIRC.Power            power
to this

Code: Select all

XKeySym.User1      p
LIRC.User1             p
edit the /etc/vdr/keymacros.conf
add following line:

Code: Select all

User1     Menu 7 1 4 OK
Hardware: O2 Joggler/Patriot XPorter XT Rage 8GB/Medion X10 rc
Software: Xubuntu 11.10 / XBMC + YaVDR
Streaming: Seagate Dockstar/Afatech DVB-T/2xUSB-HD (incl. rsync-backup) - Debian Squeeze + YaVDR (streamdev)
User avatar
hawsey
Posts: 2077
Joined: Sun May 22, 2011 11:23 pm
Location: Northumberland

Re: [How-to] VDR on Joggler + X10 Remote Control for vdr & x

Post by hawsey »

Hi Tommes ,
nice to see your progress on this one :D
I found this article on the Automated home forums which includes a VDR setup also , thought it might be of interest

http://www.automatedhome.co.uk/Reviews/ ... House.html
Happy Joggling
User avatar
Tommes
Posts: 36
Joined: Wed Dec 14, 2011 6:40 am
Location: Peine | Germany

Re: [How-to] VDR on Joggler + X10 Remote Control for vdr & x

Post by Tommes »

Thanks, i've found it, too.
One of the next steps i want to go to run vdr on a seagate dockstar
headless as stream-dev server with the dvb-device (dvb-t stick) for the joggler
http://www.dermute.de/132-dockstar-debi ... eze-kernel
On the joggler (vdr) input-device plugin stream-dev client ...

EDIT:
Full Working !!! :D
I've plugged the dvb-t stick to the dockstar, also 2 usb-hd's for nas-access (with backup-function)...)
installing kernel 2.6.38, cause it has fully support for this dvb-device, installing a minimal-vdr with
vdr-plugin-streamdev-server, now on the joggler is plugged only the memory-stick & the X10-receiver,
the device is streaming via vdr-plugin-streamdev-client (on joggler) from the dockstar 8-)
Hardware: O2 Joggler/Patriot XPorter XT Rage 8GB/Medion X10 rc
Software: Xubuntu 11.10 / XBMC + YaVDR
Streaming: Seagate Dockstar/Afatech DVB-T/2xUSB-HD (incl. rsync-backup) - Debian Squeeze + YaVDR (streamdev)
Post Reply