VDR-SXFE + MMS: How is it working?

problems with keyboard, lirc or evdev

Moderator: Moderator

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

VDR-SXFE + MMS: How is it working?

Postby Uatschitchun » Wed Feb 28, 2007 4:59 pm

Hi there ..

Let's make cooperation between MMS and VDR as easy as possible!

From given cause I like to know who is using VDR together with MMS? What solutions have you chosen?
Xineliboutput?
softdevice?

How is Lirc working with vdr-sxfe and MMS? Does MMS stops accepting Lirc-Input after TV is started, so that lirc.conf can be used for accessing VDR?

I really would like to know as much as possible!

Pls, don't hesitate and post what ever could be of any help!

Big thx and LG

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Thu Mar 01, 2007 7:35 am

So at least ...

Does MMS releases lirc if one starts up TV from main menu?

Lg
Roman

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Thu Mar 01, 2007 8:07 am

Uatschitchun wrote:So at least ...

Does MMS releases lirc if one starts up TV from main menu?

Lg
Roman

I thought you know that:
http://mms.kicks-ass.org/wiki/index.php ... cations.3F
But: No - not without a patch for VDR.

Regards,
Andreas

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Thu Mar 01, 2007 11:48 am

Let's start different:

How is a lirc network setup correctly configured?

The one listening is stared with:

Code: Select all

/usr/sbin/lircd -n -l


The one connecting to this:

Code: Select all

lircd -n -c willi


Starting the listener -> starting sender =>
mms# lircd -n -c willi
lircd-0.8.0[18724]: lircd(userspace) ready
lircd-0.8.0[18724]: connected to willi
lircd-0.8.0[18724]: failure connecting to willi
lircd-0.8.0[18724]: Connection refused
lircd-0.8.0[18724]: caught signal

on listener side ... !?

ll /dev/lirc*
crw-rw-rw- 1 root root 61, 0 2007-03-01 11:54 /dev/lirc
srw-rw-rw- 1 root root 0 2007-03-01 12:43 /dev/lircd
prw-rw-rw- 1 root root 0 2007-03-01 11:54 /dev/lircm


both, listener and sender are using lirc_atiusb, lirc_dev.
Using lirc on sender side without '-c willi' (lokal usage) works fine ..

hostnake lookup works correctly

What am I doing wrong?

Lg
Roman

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Thu Mar 01, 2007 11:53 am

acmelabs wrote:I thought you know that:
http://mms.kicks-ass.org/wiki/index.php ... cations.3F


Now I remember!

Is this one restricted to only lokal running vdr and mms? Or is it neccessary in network (vdr server, mms client), too?

Anyway ... this patch _has_ to go into 1.0.8.2 ... cause of article!

Lg
Roman

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Thu Mar 01, 2007 12:02 pm

Uatschitchun wrote:
acmelabs wrote:I thought you know that:
http://mms.kicks-ass.org/wiki/index.php ... cations.3F


Now I remember!

Is this one restricted to only lokal running vdr and mms? Or is it neccessary in network (vdr server, mms client), too?

Anyway ... this patch _has_ to go into 1.0.8.2 ... cause of article!

Lg
Roman

As long as VDR is connected to your lirc (local/remote doesn't matter), you can't connect with MMS.
Solution #1: Two different definitions in one lircd.conf (I have four of them)
Solution #2: Use this VDR-Pacht metioned in the link. Perform a netcat to let VDR release the lirc-connection and connect with MMS.

And it's a patch for VDR, so there's nothing for us to let go into 1.0.8.2.

Regards,
Andreas

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Thu Mar 01, 2007 12:13 pm

I have no VDR attached to my Lirc
On Client (MMS) side Lirc is configured to work with MMS

On Server (VDR) side I was using VDR with just keyboard.

If I would like to use xineliboutput (server side) and vdr-sxfe (client side) I'll need the vdr-patch, although vdr is running remote?

Problem 2
how do I solve using lirc in two ways: one lokaly with MMS and the other connecting to remote lirc to deliver to VDR?

Lg
Roman

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Thu Mar 01, 2007 12:26 pm

Uatschitchun wrote:I have no VDR attached to my Lirc
On Client (MMS) side Lirc is configured to work with MMS

On Server (VDR) side I was using VDR with just keyboard.

If I would like to use xineliboutput (server side) and vdr-sxfe (client side) I'll need the vdr-patch, although vdr is running remote?

Problem 2
how do I solve using lirc in two ways: one lokaly with MMS and the other connecting to remote lirc to deliver to VDR?

Lg
Roman

It doesn't matter whether lircd get connection locally or remote, for lircd it's always a socket connection. So - Yes, you have to detach VDR from Lirc, no matter where the lirc-server is running.
I've solved this dilemma by having one definition for VDR and one for MMS in one lircd.conf. But that means also there are two remote controls (well - one multi-remote).

If you like to use one lircd-definition for VDR and MMS simultaniously (either/or), you have to patch VDR. Each time you want to fall back on MMS you have to trigger a script that let VDR release the lircd connection. The other way round MMS is smart enough ro release lircd, if TV is triggert.

Regards,

Andreas

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Thu Mar 01, 2007 4:30 pm

Got the solution!!

Constellation: VDR (Server) + MMS (Client) = 2 pc's

Client with MMS and lirc correctly configured. Server is running VDR without lirc ... but VDR is configured for using lirc within remote.conf (according to lircd.conf used for MMS on client-side).

starting vdr-sxfe with lirc:

Code: Select all

vdr-sxfe --lirc

vdr-sxfe emulates lirc-client on VDR-Server and passes lirc-inputs coming from client to VDR correctly ... and only as long as vdr-sxfe is running!

Second possibility is using lirc on client and lirc on server (connected over network) ... this needs a patched VDR cause it will listen to lirc itself

That's Client-Server ...

Are both (MMS + VDR) running local we do have the same problem cause of both listening to lirc because remote.conf is configiured to do so

Thx 'skrzyp' ;)
we have a patch for VDR
http://mms.kicks-ass.org/forum/viewtopic.php?t=526&start=0&postdays=0&postorder=asc&highlight=

This patch adds a svdr-command to deactivate VDR's lirc part. Together with the posted scripts (Scripte s.Thread) one my en-/disable lirc part for VDR

Ergo:
VDR + MMS local => needs patched VDR
VDR + MMS client-serer (lirc only on client side) => works without patching
VDR + MMS client-server (lirc running on both, client and server - lirc-network mode) => needs patched VDR

Lg
Roman

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Thu Mar 01, 2007 6:35 pm

God job!

Did you patch VDR, and have you been using MMS and VDR with one remote-definition? I mean, did you start TV from inside MMS, used the remote for VDR, closed it the frontend, and used MMS again?

Regards,
Andreas

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Thu Mar 01, 2007 6:54 pm

acmelabs wrote:I mean, did you start TV from inside MMS, used the remote for VDR, closed it the frontend, and used MMS again?


In this setup:
VDR + MMS client-serer (lirc only on client side) => works without patching


Yes .. works fine!

Have not patched VDR until now ...
I started a request on pkg-vdr-dvb-devel (Tobi) if it qould be possible to add the patch ...

Lg
Roman

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Thu Mar 01, 2007 7:20 pm

Uatschitchun wrote:
acmelabs wrote:I mean, did you start TV from inside MMS, used the remote for VDR, closed it the frontend, and used MMS again?


In this setup:
VDR + MMS client-serer (lirc only on client side) => works without patching


Yes .. works fine!

Have not patched VDR until now ...
I started a request on pkg-vdr-dvb-devel (Tobi) if it qould be possible to add the patch ...

Lg
Roman

Yep, this patch is a must, VDR is not the only application in the world!!

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Thu Mar 01, 2007 8:13 pm

acmelabs wrote:this patch is a must


Maybe not!!

What about this:

I tried using two lircd.conf's ... both using same key-hexs but different key-names

Code: Select all

lircd.conf.1
aba                     0xD1B609


Code: Select all

lircd.conf.2
menu                     0xD1B609


MMS is using lircd.conf.2's settings and VDR is using lircd.conf.1's setting.

lircd.conf -> lircd.conf.1

Starting the TV-App (vdr-sxfe) + doing

lircd.conf -> lircd.conf.2
+
kill -HUP pid_of_lircd

make lirc use the new lircd.conf (as far as I have tested). So one could define complete different key-sets for MMS and VDR with just _one_ remote.

copying/linking to the needed lircd.conf + kill -HUP does all we need for changing lircd.conf at runtime

I tried copying over the working lircd.conf MMS is configured with, with a completely renamed one (keynames) doing kill -HUP ... all this back and forth .. all this with MMS running!
If it is using MMS's lircd.conf, MMS is working!
If it is using the other one, MMS does not react - but irw gives correct names
If it is switched back agin, MMS is working again!

What do you think!? :twisted:

LG
Roman

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Thu Mar 01, 2007 8:25 pm

Uatschitchun wrote:What do you think!? :twisted:

Pretty smart.
Must think about it, and check for possible side-effects.
Not bad, not bad!
Your own idea?

Regards,
Andreas

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Thu Mar 01, 2007 8:50 pm

Jepp, my idea! Thought about if it would be possible to change lircd.conf at runtime ...

I tested with two identical configs with just different names.

configured MMS to use the one names and VDR to use the other names.

Works like a charme ...

There must be a drawback somewhere!?

Question:
How do I substitute the PID for 'kill -HUP' within a script?

Code: Select all

kill -HUP 'pidof lircd'

?
How would such a line have to look like?

Is this correct?

Code: Select all

kill -HUP $(pidof lircd)


and if I use a script for starting vdr-sxfe I can't use 'tvopts' in config anymore, right?

Or is there a way to still use this variable?

Lg
Roman


Return to “input”

Who is online

Users browsing this forum: No registered users and 1 guest