[mythtv-users] Struggling with Lirc

Stephen Worthington stephen_agent at jsw.gen.nz
Sat Apr 25 17:09:51 UTC 2015


On Sat, 25 Apr 2015 17:53:06 +0200, you wrote:

>No, adding devinput didn't help.
>
>In the same lircrc file i also have these two entries, that do work (so i
>can select between running mythtv or xbmc):
>begin
>prog = irexec
>button = KEY_POWER2
>config = /usr/share/mythtv/restart_mythtv.sh &
>repeat = 0
>end
>
>begin
>prog = irexec
>button = KEY_SELECT
>config = /usr/share/mythtv/restart_xbmc.sh &
>repeat = 0
>end
>
>Even though i shouldn't have to, but it shouldn't really matter if prog is
>mythtv or irexec? Maybe i could use irexec to send keystrokes to mythtv?
>
>
>On Sat, Apr 25, 2015 at 5:41 PM, Stefan D <raptorjr08 at gmail.com> wrote:
>
>> I have a Hauppauge, grey remote. Using the receiver that is attached to my
>> PVR-250 card.
>>
>> I will try to add "remote = devinput" on each entry.
>>
>> On Sat, Apr 25, 2015 at 5:30 PM, Stephen Worthington <
>> stephen_agent at jsw.gen.nz> wrote:
>>
>>> On Sat, 25 Apr 2015 16:28:03 +0200, you wrote:
>>>
>>> >I'm having some problem to get MythTV work with LIRC again after a
>>> upgrade
>>> >to Ubuntu 14.04.
>>> >
>>> >irw is working, f.ex. gives me:
>>> >000000008001016d 01 KEY_EPG devinput
>>> >0000000080010067 00 KEY_UP devinput
>>> >0000000080010181 00 KEY_RADIO devinput
>>> >0000000080010069 00 KEY_LEFT devinput
>>> >000000008001006a 00 KEY_RIGHT devinput
>>> >00000000800100ae 00 KEY_EXIT devinput
>>> >000000008001006c 00 KEY_DOWN devinput
>>> >000000008001008b 00 KEY_MENU devinput
>>> >0000000080010073 00 KEY_VOLUMEUP devinput
>>> >0000000080010072 00 KEY_VOLUMEDOWN devinput
>>> >000000008001019c 00 KEY_PREVIOUS devinput
>>> >0000000080010071 00 KEY_MUTE devinput
>>> >0000000080010192 00 KEY_CHANNELUP devinput
>>> >0000000080010193 00 KEY_CHANNELDOWN devinput
>>> >
>>> >In the frontend log i see this:
>>> >LIRC: Successfully initialized '/var/run/lirc/lircd' using
>>> >'/home/stefan/.mythtv/lircrc' config
>>> >
>>> >Part of my lircrc file in .mythtv (which is a link to .lirc/mythtv) looks
>>> >like this:
>>> >begin
>>> >prog = mythtv
>>> >button = KEY_UP
>>> >config = Up
>>> >end
>>> >
>>> >begin
>>> >prog = mythtv
>>> >button = KEY_DOWN
>>> >config = Down
>>> >end
>>> >
>>> >begin
>>> >prog = mythtv
>>> >button = KEY_LEFT
>>> >config = Left
>>> >end
>>> >
>>> >begin
>>> >prog = mythtv
>>> >button = KEY_RIGHT
>>> >config = Right
>>> >end
>>> >
>>> >So i don't understand why it wont work? The frontend says that the
>>> >initialization is successful. The keynames from irw is the same as the
>>> >keynames in lircrc file. Shouldn't that be enough?
>>> >
>>> >Either i should never make a Ubuntu upgrade again, or i should make it
>>> more
>>> >often so i don't forget things =) Everything worked perfect before the
>>> >upgrade.
>>> >
>>> >Any help appreciated.
>>> >
>>> >/Stefan
>>>
>>> There were big changes in lirc between 12.04 and 14.04.  A lot of the
>>> drivers went into the kernel, so now things do work differently for
>>> many IR remotes.  What remote and IR receiver are you using?
>>>
>>> The obvious difference I can see between your .lirc/mythtv file and
>>> mine is that I have a line saying "remote = devinput" in each entry. I
>>> am not sure it is necessary, but I would suggest trying it.
>>> _______________________________________________
>>> mythtv-users mailing list
>>> mythtv-users at mythtv.org
>>> http://lists.mythtv.org/mailman/listinfo/mythtv-users
>>> http://wiki.mythtv.org/Mailing_List_etiquette
>>> MythTV Forums: https://forum.mythtv.org
>>>
>>
>>

Have you checked MythTV's settings for the keys?  It is looking like
mythfrontend is where the problem lies.

For example:

  Setup > Edit Keys > Global > LEFT

should have the value Left.  Here are the first few entries in my
keybindings table for comparison:

mysql> select * from keybindings limit 10;
+---------+----------+------------------+--------------------+----------+
| context | action   | description      | keylist            | hostname |
+---------+----------+------------------+--------------------+----------+
| Global  | UP       | Up Arrow         | Up                 | mypvr    |
| Global  | DOWN     | Down Arrow       | Down               | mypvr    |
| Global  | LEFT     | Left Arrow       | Left               | mypvr    |
| Global  | RIGHT    | Right Arrow      | Right              | mypvr    |
| Global  | SELECT   | Select           | Return,Enter,Space | mypvr    |
| Global  | ESCAPE   | Escape           | Esc                | mypvr    |
| Global  | MENU     | Pop-up menu      | M                  | mypvr    |
| Global  | INFO     | More information | I                  | mypvr    |
| Global  | PAGEUP   | Page Up          | PgUp               | mypvr    |
| Global  | PAGEDOWN | Page Down        | PgDown             | mypvr    |
+---------+----------+------------------+--------------------+----------+
10 rows in set (0.00 sec)


More information about the mythtv-users mailing list