[HOWTO]Controlling MMS with Lirc and keyboard simultaneously

problems with keyboard, lirc or evdev

Moderator: Moderator

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

[HOWTO]Controlling MMS with Lirc and keyboard simultaneously

Postby acmelabs » Fri Nov 17, 2006 10:34 pm

Using MMS with keyboard and Lirc at the same time

As a workaround for being able to control MMS with Lirc and keyboard at the same time, I've found a easy solution. This solution isn't really complete and the navigation with Lirc is lagging a bit, but on my development system it's enough for me.
All one need to control MMS both ways is a started mms session with "-i keyboard" and a appropriate .lircrc config file with a running irxevent daemon.

Here's my preliminary ~/.lircrc: (see explanation below)

Code: Select all

begin
   remote = DVD_XMMS2
   prog = irxevent
   button = down
   config = Key Down mms
   delay = 1
   repeat=1
end

begin
   remote = DVD_XMMS2
   prog = irxevent
   button = up
   config = Key Up mms
   delay = 1
   repeat=1
end
begin
   remote = DVD_XMMS2
   prog = irxevent
   button = left
   config = Key Left mms
   delay = 1
   repeat=1
end
begin
   remote = DVD_XMMS2
   prog = irxevent
   button = right
   config = Key Right mms
   delay = 1
   repeat=1
end
begin
   remote = DVD_XMMS2
   prog = irxevent
   button = ok
   config = Key Return mms
end
begin
   remote = DVD_XMMS2
   prog = irxevent
   button = exit
   config = Key End mms
end
begin
   remote = DVD_XMMS2
   prog = irxevent
   button = 0
   config = Key Home mms
end
begin
   remote = DVD_XMMS2
   prog = irxevent
   button = menu
   config = Key space mms
end

Here's a short explanation of how to set up the whole stuff:
    1) copy or paste the config into .lircrc in the home directory of the user who's starting lirc.
    2) replace the name for your remote= control from your /etc/lircd.conf
    3) replace button= with the key you've defined in your /etc/lircd.conf
    4) start irxevent
    5) start mms with keyboard as input (-i keyboard)


Restriction: I've added only the most needed keys, to keep this little docu short. Feel free to add more mapping to the lircrc.

Regards,

Andreas
Last edited by acmelabs on Thu Nov 23, 2006 12:46 pm, edited 2 times in total.

User avatar
arj
Site Admin
Posts: 2316
Joined: Thu Dec 01, 2005 8:51 pm
Location: Denmark
Contact:

Postby arj » Sun Nov 19, 2006 12:17 am

Ahh nice trick. Thanks Andreas!

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

Postby acmelabs » Thu Nov 23, 2006 8:50 am

Hi,
I've used this lirc workaround now a few days, and must say it works for me very well.
And I wouldn't call it a workaround at all, because this is how lirc is actually ment to work. I would call it an additional setup.
If I'll get at least one positive feedback, I'll add it to the wiki into the Tips&Tricks section.

Any objections?

Regards,

Andreas

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

Postby Uatschitchun » Tue Dec 12, 2006 10:21 am

acmelabs wrote:Any objections?

No :wink:

Lg
Roman

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

Postby acmelabs » Tue Dec 12, 2006 10:39 am

Uatschitchun wrote:
acmelabs wrote:Any objections?

No :wink:

Lg
Roman

It's already in the Wiki ;-)

egalus
Posts: 4
Joined: Tue Nov 20, 2007 8:25 pm

Postby egalus » Tue Nov 20, 2007 8:30 pm

Hi,

I am using this method to be able to use lirc and keyboard and it works nicely for audio, but when I start a video (mplayer) I can only control it via the keyboard and not via the remote.

I tiread chaning /etc/mms/lirc.conf to reflect my lirc settings but that does not work either.
Maybe I just misinterpret the lirc.conf file. I tired

begin
button = up
prog = mplayer
config = play
end

As the upward button is mapped to up in lirc.

Any ideas how to fix this?

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

Postby acmelabs » Fri Nov 23, 2007 12:37 pm

egalus wrote:Hi,

I am using this method to be able to use lirc and keyboard and it works nicely for audio, but when I start a video (mplayer) I can only control it via the keyboard and not via the remote.

I tiread chaning /etc/mms/lirc.conf to reflect my lirc settings but that does not work either.
Maybe I just misinterpret the lirc.conf file. I tired

begin
button = up
prog = mplayer
config = play
end

As the upward button is mapped to up in lirc.

Any ideas how to fix this?

Does this problem still exist, or did you solve it?

Regards,
Andreas

egalus
Posts: 4
Joined: Tue Nov 20, 2007 8:25 pm

Postby egalus » Sun Nov 25, 2007 11:47 am

It existed until I switched to use Lirc instead as I did not find a solution for the problem.
But it would be nicer to be able to use keyboard and lirc simultaniously as the output is shown in two seperate rooms I would be able to use the keyboard in one room and the remote in the other.


Return to “input”

Who is online

Users browsing this forum: No registered users and 2 guests