Kodi Community Forum
How to get a seamless remote experience - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: How to get a seamless remote experience (/showthread.php?tid=104541)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16


RE: How to get a seamless remote experience - jody - 2017-06-19

nevermind just tried post #191 from electricc0wb0y and that worked, kodi -l /var/run/lirc/lircd


RE: How to get a seamless remote experience - johnnyzg - 2017-06-20

Hello!

I just wanted to share my setup of Logitech Harmony One remote setup on Ubuntu 17.04 since it took me some time to figure out how it is done with ir-keytable. Had to do this since Ubuntu 17.04 doesn't support LIRC any more.
Receiver is some Phillips compatible from eBay: OVU412000/00.

Harmony One setup:

First add new device Windows Media Center SE. To do this select Add device in Logitech Harmony Remote software and then Computer -> Media Center PC -> Microsoft -> Media Center SE

Then customize buttons for your Activity, for each select added device however you named it e.g. mine is called WMC SE:
Menu -> Media
Exit -> Green
Up Arrow -> ChannelUp
Down Arrow -> ChannelDown
Info -> Info
Guide -> Guide
Up -> DirectionUp
Down -> DirectionDown
Left -> DirectionLeft
Right -> DirectionRight
OK -> OK
Channel Up -> ChannelUp
Channel Down -> ChannelDown
Prev -> Back
Rewind -> Rewind
Skip Back -> Replay
Play -> Play
Pause -> Pause
Fast Forward -> FastForward
Skip Forward -> Skip
Stop -> Stop
1 -> 1 etc for rest of the numbers
Plus -> #
E -> *
Also added additional buttons:
Subtitle -> Subtitle
Codec Info -> Red

Ir-keytable setup:

Install ir-keytable
Code:
sudo apt-get install ir-keytable

Copy remote keymaps file:
Code:
sudo cp /lib/udev/rc_keymaps/rc6_mce /etc/rc_keymaps/

Edit new file:
Code:
sudo nano /etc/rc_keymaps/rc6_mce

Change the following key entries:
KEY_NUMERIC_0 -> KEY_0 etc. for rest of the numbers
KEY_MEDIA -> KEY_M
KEY_INFO -> KEY_I
KEY_CHANNELUP -> KEY_PAGEUP
KEY_CHANNELDOWN -> KEY_PAGEDOWN
KEY_FASTFORWARD -> KEY_F
KEY_REWIND -> KEY_R
KEY_PLAY -> KEY_P
KEY_PAUSE -> KEY_SPACE
KEY_STOP -> KEY_X
KEY_NEXT -> KEY_DOT
KEY_PREVIOUS -> KEY_COMMA
KEY_NUMERIC_POUND -> KEY_Q
KEY_NUMERIC_STAR -> KEY_TAB
KEY_OK -> KEY_ENTER
KEY_EXIT -> KEY_BACKSPACE
KEY_EPG -> KEY_C
KEY_TITLE -> KEY_L
KEY_RED -> KEY_O
KEY_GREEN -> KEY_ESC
KEY_PLAYPAUSE -> KEY_SPACE

Load keycodes:
Code:
sudo ir-keytable -c -w /etc/rc_keymaps/rc6_mce

Test keycodes:
Code:
sudo ir-keytable -t

Finally I had to reboot for all changes to apply.


RE: How to get a seamless remote experience - thekow - 2017-08-17

Thanks heaps for that info!!!!!!!!!!!
I was struggling getting it running as i come from ubuntu 14 with lirc and new ubuntu liking ir-kt


RE: How to get a seamless remote experience - mcerem - 2017-10-31

Hello, did a person can help me?

I use Lubuntu 16.04 (systemd) with Kodi 17.5.

https://forum.kodi.tv/showthread.php?tid=323289

Thank you.


RE: How to get a seamless remote experience - Endeavour79 - 2017-11-24

Have you seen a behaviour where ir-keytable maps only every second button press, although the same scan code is received?
I'm struggling to get my remote work, without having to press each button twice every time. Any ideas?

More info here:
https://askubuntu.com/questions/979789/ir-remote-control-ir-keytable-recognizes-only-every-second-button-press


RE: How to get a seamless remote experience - itm1960 - 2017-12-08

I'm running Ubuntu 17.10 with an MCR Remote. The remote works fine for basic keypresses, but I'd also like to configure it to run commands when I press certain keys - e.g. to launch Kodi when I press the big green Media Centre button. I have inputlirc installed (although I'm not using the LIRC package), if that helps?


RE: How to get a seamless remote experience - teeedubb - 2017-12-09

You need to use irexec


RE: How to get a seamless remote experience - itm1960 - 2017-12-09

Is there an idiot's guide to using irexec that someone could point me to? And will this work if I don't have the LIRC package installed? (I using the kernel IR support)


RE: How to get a seamless remote experience - Usafle - 2017-12-10

Forgive my overall ignorance.  I'm using Librelec on my kodi box and have one of those "Air mouse" remotes with a USB dongle.  It used to work fine when I booted into Android, but now that I am running LibreELEC, it doesn't work anymore.  Do I need to follow these directions to get it up and running again or should I be looking elsewhere?


RE: How to get a seamless remote experience - Metra - 2018-07-09

Hi everyone,
I have a question on the same topic.

So I updated my AMD system to Ryzen processor and Ubuntu 18, and most recent Kodi build.
My remote is Logitech One taught by original mce.

However, after upgrade remote stopped working (I used to use Lirc custom set up), and here I found the info that they actually moved everything to kernel.

So now I've set it up in the way I receive proper keycodes when I press remote buttons, like
Code:

sudo ir-keytable -t
3141.538648: event type EV_MSC(0x04): scancode = 0x800f0416
3141.538648: event type EV_KEY(0x01) key_down: KEY_P(0x0019)
3141.538648: event type EV_SYN(0x00).
3141.644822: event type EV_MSC(0x04): scancode = 0x800f0416
3141.644822: event type EV_SYN(0x00).
3141.920336: event type EV_KEY(0x01) key_up: KEY_P(0x0019)
3141.920336: event type EV_SYN(0x00).
I was using instructions from post #1 to make it work.

However, Kodi doesn't see these key presses, there is no reaction at all.
Maybe anyone has ideas about what should I do in order to make it work?

Thank you!


RE: How to get a seamless remote experience - UbuntuUser - 2018-07-15

(2018-07-09, 21:11)Metra Wrote: Hi everyone,
I have a question on the same topic.

So I updated my AMD system to Ryzen processor and Ubuntu 18, and most recent Kodi build.
My remote is Logitech One taught by original mce.

However, after upgrade remote stopped working (I used to use Lirc custom set up), and here I found the info that they actually moved everything to kernel.

So now I've set it up in the way I receive proper keycodes when I press remote buttons, like
Code:

sudo ir-keytable -t
3141.538648: event type EV_MSC(0x04): scancode = 0x800f0416
3141.538648: event type EV_KEY(0x01) key_down: KEY_P(0x0019)
3141.538648: event type EV_SYN(0x00).
3141.644822: event type EV_MSC(0x04): scancode = 0x800f0416
3141.644822: event type EV_SYN(0x00).
3141.920336: event type EV_KEY(0x01) key_up: KEY_P(0x0019)
3141.920336: event type EV_SYN(0x00).
I was using instructions from post #1 to make it work.

However, Kodi doesn't see these key presses, there is no reaction at all.
Maybe anyone has ideas about what should I do in order to make it work?

Thank you!
 I too had a similar issue with Ubuntu 18.04, I did get a few buttons to work but the only worked some of the time and some did not work at all.  Sometimes it would move twice for one button push.  Has anyone actually got a MCE remote fully functional in Ubuntu 18.04, and if so can you please tell how you did it.  I have batted my head again the wall for 3 solid days at this point with no luck.


RE: How to get a seamless remote experience - teeedubb - 2018-07-15

Have you guys configured kodis lircmap.xml to translate the lirc/devinput keypresses into commands kodis can interpret?


RE: How to get a seamless remote experience - UbuntuUser - 2018-07-15

(2018-07-15, 06:42)teeedubb Wrote: Have you guys configured kodis lircmap.xml to translate the lirc/devinput keypresses into commands kodis can interpret?
 How do you do that?


RE: How to get a seamless remote experience - Metra - 2018-07-15

I do have keyboard.xml, but not lircmap.xml since I don't use Lirc in my set up.


RE: How to get a seamless remote experience - UbuntuUser - 2018-07-16

Well If I am understanding correctly you can't even use LIRC in 18.04, I know when I tried it went crazy.