[mythtv-users] IR control via evdev
Steve Greene
sgreene820 at gmail.com
Wed Aug 8 23:14:11 UTC 2018
Stephen,
"sudo ir-keytable -t" without the device specification worked for me on
18.04. Not sure why the device specification broke it.
Re making a keytable file, do I need to supply the hexadecimal code if I
want to use standard ascii mythtv keybindings for a remote key? Where do I
find those?
Steve
On Wed, Aug 8, 2018 at 1:47 PM, Stephen Worthington <
stephen_agent at jsw.gen.nz> wrote:
> On Wed, 8 Aug 2018 11:19:39 -0400, you wrote:
>
> >I'm building a new box with Ubuntu 18.04 and trying to get the remote
> >working, but ran into a snag. I'm following the instructions here:
> >
> >https://www.mythtv.org/wiki/User_Manual:IR_control_via_evdev
> >
> >This worked:
> >
> >don at andy:~$ sudo ir-keytable -t
> >Testing events. Please, press CTRL-C to abort.
> >182.735877: event type EV_MSC(0x04): scancode = 0x800f0401
> >182.735877: event type EV_KEY(0x01) key_down: KEY_NUMERIC_1(0x0201)
> >182.735877: event type EV_SYN(0x00).
> >182.869726: event type EV_MSC(0x04): scancode = 0x800f0401
> >182.869726: event type EV_SYN(0x00).
> >183.132071: event type EV_KEY(0x01) key_up: KEY_NUMERIC_1(0x0201)
> >183.132071: event type EV_SYN(0x00).
> >
> >, but this did not:
> >
> >don at andy:~$ sudo ir-keytable -t -d /dev/event/input3
> >/dev/event/input3: No such file or directory
> >
> >don at andy:~$ sudo ir-keytable -t -d /dev/event/input4
> >/dev/event/input4: No such file or directory
> >
> >My box has /dev/input/event*, but does not have /dev/event. Trying the
> >next command:
> >
> >don at andy:~$ sudo ir-keytable
> >Found /sys/class/rc/rc0/ (/dev/input/event10) with:
> > Name: Media Center Ed. eHome Infrared Remote Transceiver
> >(0471:0815)
> > Driver: mceusb, table: rc-rc6-mce
> > lirc device: /dev/lirc0
> > Supported protocols: lirc rc-5 rc-5-sz jvc sony nec sanyo
> >mce_kbd rc-6 sharp xmp
> > Enabled protocols: lirc rc-6
> > bus: 3, vendor/product: 0471:0815, version: 0x0000
> > Repeat delay = 500 ms, repeat period = 125 ms
> >
> >I have /dev/input/event10, so tried:
> >
> >don at andy:~$ sudo ir-keytable -t -d /dev/input/event10
> >Can't open lirc device: No such file or directory
> >
> >, so purged lirc, and tried it again; got the same results:
> >
> >don at andy:~$ sudo apt-get remove *lirc* --purge
> >don at andy:~$ sudo ir-keytable -t -d /dev/input/event10
> >Can't open lirc device: No such file or directory
> >
> >
> >Any suggestions?
> >
> >Don
>
> I do not see any problem there. You have ir-keytable working seeing
> an MCE remote on rc0 (/sys/class/rc/rc0/), and the setup shown seems
> fine. Just use that, and use "-s rc0" if you really need to select
> the remote. But it is defaulting to the correct device without any -s
> or -d options. I think you will find that "ls -al /sys/class/rc" will
> show only one remote.
>
> And be aware that lirc in 18.04 is a much later version (0.10.0) than
> in 16.04 (0.9.0). It uses different config files and programs
> (lirc-setup and irdb-get). So old configuration guides for lirc will
> likely lead you astray. See:
>
> http://www.lirc.org/html/configuration-guide.html
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20180808/d0b34c10/attachment.html>
More information about the mythtv-users
mailing list