Linux Remote Logitech Harmony 350 not working
#1
Hello,

I'm trying to get my remote command working but no success. I'm trying for a few days now and read a lot on the Internet but couldn't slove my problem.

My config is as follows :
Computer : Intel NUC DN2820FYKH
Remote : Logitech Harmony 350
OS : Debian Jessy
Version of XBMC : 13.2


Intel NUC comes with an IR receiver integrated.

I choose to keep XBMC 13.2 because it's the one from Debian's package.

So in order to get my remote working, I first activated the buttons in Logitech software.
Then some of them were working and some not.
So I tried to configure ir-keytables.
Here is a copy of my remonte config :
Code:
# table rc6_mce, type: RC-6
scancode 0x800f0400 KEY_KP0
scancode 0x800f0401 KEY_KP1
scancode 0x800f0402 KEY_KP2
scancode 0x800f0403 KEY_KP3
scancode 0x800f0404 KEY_KP4
scancode 0x800f0405 KEY_KP5
scancode 0x800f0406 KEY_KP6
scancode 0x800f0407 KEY_KP7
scancode 0x800f0408 KEY_KP8
scancode 0x800f0409 KEY_KP9
scancode 0x800f041d = KEY_ENTER (0x1c) #E(nter)
scancode 0x800f040e = KEY_MUTE (0x71) #Mute
scancode 0x800f040f = KEY_I #Info
scancode 0x800f0410 = KEY_VOLUMEUP (0x73)
scancode 0x800f0411 = KEY_VOLUMEDOWN (0x72)
scancode 0x800f0414 = KEY_FASTFORWARD (0xd0)
scancode 0x800f0415 = KEY_REWIND (0xa8)
scancode 0x800f0416 = KEY_PLAY (0xcf)
scancode 0x800f0418 = KEY_PLAYPAUSE (0x77)
scancode 0x800f0419 = KEY_STOP
scancode 0x800f0423 = KEY_BACKSPACE
scancode 0x800f041e = c
scancode 0x800f0424 = KEY_C #Menu
scancode 0x800f045b = KEY_RED (0x18e)
scancode 0x800f045c = KEY_GREEN (0x18f)
scancode 0x800f045d = KEY_YELLOW (0x190)
scancode 0x800f045e = KEY_BLUE (0x191)

So for the moment the working keys are : KEY_ENTER, KEY_VOLUMEUP/DOWN, KEY_MUTE, KEY_FASTFORWARD, KEY_REWIND, KEY_PLAY, KEY_PLAYPAUSE, KEY_STOP, KEY_UP, KEY_DOWN, KEY_LEFT, KEY_RIGHT, KEY_ENTER
The ones not working and really annoying me are : KEY_C (for the context menu) and KEY_BACKSPACE (for going back in the menus).

The thing is that if I try :
Code:
sudo ir-keytable -t
and try buttons OK, MENU, EXIT, INFO, here is the result :
Code:
Testing events. Please, press CTRL-C to abort.
1431780960.115472: event type EV_MSC(0x04): scancode = 0x800f0422
1431780960.115472: event type EV_KEY(0x01) key_down: KEY_ENTER(0x0001)
1431780960.115472: event type EV_SYN(0x00).
1431780960.352413: event type EV_MSC(0x04): scancode = 0x800f0422
1431780960.352413: event type EV_SYN(0x00).
1431780960.604137: event type EV_KEY(0x01) key_up: KEY_ENTER(0x0001)
1431780960.604137: event type EV_SYN(0x00).
1431780963.133347: event type EV_MSC(0x04): scancode = 0x800f0424
1431780963.133347: event type EV_KEY(0x01) key_down: KEY_C(0x0001)
1431780963.133347: event type EV_SYN(0x00).
1431780963.370236: event type EV_MSC(0x04): scancode = 0x800f0424
1431780963.370236: event type EV_SYN(0x00).
1431780963.620159: event type EV_KEY(0x01) key_up: KEY_C(0x0001)
1431780963.620159: event type EV_SYN(0x00).
1431780965.561291: event type EV_MSC(0x04): scancode = 0x800f0423
1431780965.561291: event type EV_KEY(0x01) key_down: KEY_BACKSPACE(0x0001)
1431780965.561291: event type EV_SYN(0x00).
1431780965.798176: event type EV_MSC(0x04): scancode = 0x800f0423
1431780965.798176: event type EV_SYN(0x00).
1431780966.048161: event type EV_KEY(0x01) key_up: KEY_BACKSPACE(0x0001)
1431780966.048161: event type EV_SYN(0x00).
1431780971.050954: event type EV_MSC(0x04): scancode = 0x800f040f
1431780971.050954: event type EV_KEY(0x01) key_down: KEY_I(0x0001)
1431780971.050954: event type EV_SYN(0x00).
1431780971.287873: event type EV_MSC(0x04): scancode = 0x800f040f
1431780971.287873: event type EV_SYN(0x00).
1431780971.536155: event type EV_KEY(0x01) key_up: KEY_I(0x0001)
1431780971.536155: event type EV_SYN(0x00).

So if I understand well, it means that the system received all commands and understood them.
So the problem comes after.

An other test I made is in XBMC : When I press "C" or "backspace" or "Escape" or "I" on the keyboard, it works.
So the commands are working in XBMC.

My conclusion is that XBMC does not receive or does not understand some keys coming from the remote.

Last test I made was trying the remote command on a text file in debian. When I press "OK", it passes a line in the text file. I can navigate using the arrow keys on the remote, but pressing "Menu" (associated to KEY_C) does not make a "c" and pressing "Exit" (associated to backspace) doesn't do anything neither.

Now I'm lost. It looks like debian gets all the keys correctly (cfr ir-keytable -t) but then some of them are lost for some reasons.

Any help ? Blush

Thanks a lot in advance,
Heydrickx

PS : Forgot to mention : I had LIRC installed at first but finally removed it because I thought it might interfere. In addition to that it looked really complicated to use. Removing it didn't change anything.
Reply
#2
Up
Still not working... still no clue why Sad
Reply
#3
Hi,

I have a very similar setup but with a harmony 515 remote. I had many issues and detailed my experiences here: http://forum.kodi.tv/showthread.php?tid=225356.

If you follow the guide then I am sure you will get somewhere. To recap the main points. Upgrade the Bios and then use the logitec software to reprogram some keys as the IR in kodi cant recognise keypresses over 255.

Goodluck,
Luddite
Reply
#4
Thanks for the answer luddite Smile

The BIOS was already up to date.
I also already used logitech software to reconfigure some keys. However, they were detected by ir-keytable -t so the remote is working.
I still don't understand why some keys are working and some are not.
Definitely, if the Keycode is over 255, it won't work. Some a lot of other keys are not working neither : all letters and numbers, rightalt (keycode = 100), home (102), insert (110), space (57) .......
I managed to create a list of working keys so I re-assigned the working codes to keys on the remote.
Example : KEY_SLEEP is detected by XBMC, so I assigned it to the key "Menu" on the remote, then used the Keymap editor in XBMC to assign the key to the "Menu" functions.
It works like that so that's good enough for me Smile
Reply

Logout Mark Read Team Forum Stats Members Help
Remote Logitech Harmony 350 not working0