RE: Help with harmony remote

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





De: Sean Young <sean@xxxxxxxx>
Enviado: viernes, 18 de diciembre de 2020 10:07
Para: Jesus <observer1@xxxxxxxxxx>
Cc: linux-media@xxxxxxxxxxxxxxx <linux-media@xxxxxxxxxxxxxxx>
Asunto: Re: Help with harmony remote 
 
Hi,

On Fri, Dec 18, 2020 at 05:21:36AM +0000, Jesus wrote:
> 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:

The mce_keyboard is for a very specific keyboard:

https://www.trustedreviews.com/reviews/microsoft-media-center-2005-keyboard

I suspect this is not the right IR decoder. What model is this exactly
and what buttons does it have, etc. What buttons do already work?

It's a Universal Harmony 350

This one:
https://support.myharmony.com/en-us/350
https://assets.logitech.com/assets/54199/gallery-1.png

It's programable, the remote selected for the mouse is named Media Center PC SE i believe is the mce, and for the other functions of the pc part I use a remote named Intel Media Player I believe is mce too but diferent set of keys selectable
I've managed to make work every button I use in the intel media player remote, for the Media Center PC SE, I only use the mouse part thats what I have tested, the mouse movement works, the left and right click are the ones not working


Some recording of the ir using "ir-ctl -r" would be useful too.

this is the output for the left click:

+2800 -200 +300 -300 +300 -250 +300 -300 +600 -600 +300 -400 +200 -350 +300 -200 +350 -300 +300 -300 +600 -300 +300 -600 +300 -250 +400 -200 +400 -200 +400 -250 +350 -300 +300 -400 +200 -300 +300 -300 +300 -300 +300 -300 +300 -300 +300 -300 +350 -250 +350 -300 +600 -250 +350 -350 +250 -300 +300 -600 +350 -250 +350 -75800 +2800 -200 +350 -200 +400 -250 +350 -300 +650 -600 +300 -300 +300 -300 +300 -250 +300 -300 +300 -300 +600 -250 +400 -600 +350 -200 +350 -250 +350 -250 +350 -250 +350 -250 +400 -200 +350 -250 +350 -250 +350 -250 +350 -300 +300 -300 +300 -250 +350 -300 +300 -300 +600 -250 +350 -200 +400 -250 +350 -600 +300 -250 +400 -75800 +2800 -200 +350 -200 +400 -250 +300 -250 +700 -550 +350 -200 +350 -250 +350 -250 +350 -250 +300 -350 +550 -250 +400 -600 +300 -300 +250 -300 +300 -300 +300 -350 +300 -250 +400 -250 +350 -250 +350 -400 +200 -350 +300 -300 +300 -300 +300 -250 +350 -200 +400 -250 +650 -200 +400 -250 +350 -250 +350 -600 +300 -300 +300 # timeout 101600


> 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"

Unfortunately this IR decoder doesn't work very well if you set keycodes
for the scancodes. It doesn't generate the necessary key-up events.

I suppose thats the problem I didn't know there where more than one type of value you can set, I only noticed the ones I saw where shorter than in the examples.

> 
> 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

Sean

Thanks for your help Sean



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux