linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jesus <observer1@hotmail.es>
To: "linux-media@vger.kernel.org" <linux-media@vger.kernel.org>
Subject: Help with harmony remote
Date: Fri, 18 Dec 2020 05:21:36 +0000	[thread overview]
Message-ID: <VI1P193MB0160CDD11C1487D57A4B795081C30@VI1P193MB0160.EURP193.PROD.OUTLOOK.COM> (raw)

Hi
I have an ir harmony remote which I have configured to use as a mouse with a Intel nuc D54250WYK, I have tested un Windows 10 and it works as expected but in linux the mouse buttons don't work.
I'm using the keymap /lib/udev/rc_keymaps/mce_keyboard.toml, this happens when I press the left button:

688888.335099: lirc protocol(mcir2-mse): scancode = 0x3c
688888.335117: event type EV_MSC(0x04): scancode = 0x3c
688888.335117: event type EV_SYN(0x00).
688888.475123: lirc protocol(mcir2-mse): scancode = 0x3c
688888.475142: event type EV_MSC(0x04): scancode = 0x3c
688888.475142: event type EV_SYN(0x00).

So I added this to the file and reloaded:


[[protocols]]
protocol = "mce_kbd"
[protocols.scancodes]
0x3c = "BTN_LEFT"
0x5a = "BTN_RIGHT"

The output now is:


689080.444492: lirc protocol(mcir2-mse): scancode = 0x3c
689080.444510: event type EV_KEY(0x01) key_down: BTN_MOUSE(0x0110)
689080.444510: event type EV_MSC(0x04): scancode = 0x3c
689080.444510: event type EV_SYN(0x00).
689080.542540: lirc protocol(mcir2-mse): scancode = 0x3c
689080.542564: event type EV_MSC(0x04): scancode = 0x3c
689080.542564: event type EV_SYN(0x00).
689080.682743: lirc protocol(mcir2-mse): scancode = 0x3c
689080.682760: event type EV_MSC(0x04): scancode = 0x3c
689080.682760: event type EV_SYN(0x00).
689080.945699: event type EV_KEY(0x01) key_down: BTN_MOUSE(0x0110)
689080.945699: event type EV_SYN(0x00).
689081.073768: event type EV_KEY(0x01) key_down: BTN_MOUSE(0x0110)
689081.073768: event type EV_SYN(0x00).
689081.201773: event type EV_KEY(0x01) key_down: BTN_MOUSE(0x0110)
689081.201773: event type EV_SYN(0x00).
689081.329767: event type EV_KEY(0x01) key_down: BTN_MOUSE(0x0110)
689081.329767: event type EV_SYN(0x00).
689081.457773: event type EV_KEY(0x01) key_down: BTN_MOUSE(0x0110)
689081.457773: event type EV_SYN(0x00).

The last two lines keep repeating and the left click don't happens

Please help me with this

Thanks for your attention

             reply	other threads:[~2020-12-18  5:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-18  5:21 Jesus [this message]
2020-12-18 10:07 ` Help with harmony remote Sean Young
2020-12-19  1:56   ` Jesus
2020-12-19  9:27     ` Sean Young
     [not found]       ` <VI1P193MB0160CD42CE45DFEC2361043081C10@VI1P193MB0160.EURP193.PROD.OUTLOOK.COM>
2020-12-21 12:40         ` Sean Young
2020-12-21 19:33           ` Juan
2021-01-05 15:33             ` Sean Young
2021-02-09  4:52           ` Jesus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=VI1P193MB0160CDD11C1487D57A4B795081C30@VI1P193MB0160.EURP193.PROD.OUTLOOK.COM \
    --to=observer1@hotmail.es \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).