v15 using an IR remote on kodi, needing help RPI2
#1
i am trying to use an IR remote control on kodi, I can use irrecord and it will say that a button as been recorded like KEY_PAUSE has been configured to button 1 but if I have KEY_UP set to a different button i sometimes get the same button 1 even they are different or when i want KEY_PLAY as the same button as KEY_PAUSE i get completely different button codes i think it is due to inconsistency but i am not sure, after i configure the buttons to my liking Kodi does not respond to button presses on the remote. Is there an easier way to configure kodi to use LIRC, maybe with an addon for key mapping or a more recent tutorial? i was following this tutorial https://www.youtube.com/watch?v=QV_QmDKx0kQ but it is out dated and I am using a RPI2..

in the video when he starts pressing buttons for the dot 2x80 i never had a chance to read the results of mine i think that is the issue because i will get the different button codes for the same button
Reply
#2
There's a key code KEY_PLAYPAUSE which is what you possibly want rather than assigning both KEY_PLAY and KEY_PAUSE to the same key.

I set one of these up a few days ago and it works fine, but it did take me a couple of goes to get it right. I'd recommend planning which key you're going to assign to which KEY_ code first (there's a list of them here ). Then take your time and make sure you do all the steps with it record.

If you delete the lirc.conf file you made first time you can start again fresh.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#3
I found that, by leaving the lircd.conf you created and re-running irrecord, it will create a modified version of the lircd.conf (look aftr for one like lircd.conf.conf) which has the same but needs to input all the key stuff again to get the key codes (it is also possible to edit the lircd.conf as a text file).
Derek
Reply
#4
ok so now i have a const length on 108307 but LIRC is not accepting data from the remote maybe i am not doing it right? here is the stuff i got from irrecord fixed that by useing -f instead of -d the new issue is after i do codes and reboot the pi will not do anything with the codes i press right on the remote and nothing is happening here are the signal lengths can some of the signals have the same lengths?

Code:
Press RETURN now to start recording.
................................................................................
Found const length: 108304
Please keep on pressing buttons like described above.
Creating config file in raw mode.
Now enter the names for the buttons.

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_UP

Now hold down button "KEY_UP".
Got it.
Signal length is 5

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_DOWN

Now hold down button "KEY_DOWN".
Got it.
Signal length is 15

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_VOLUMEDOWN

Now hold down button "KEY_VOLUMEDOWN".
Got it.
Signal length is 17

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_VOLUMEUP

Now hold down button "KEY_VOLUMEUP".
Got it.
Signal length is 15

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_PLAYPAUSE

Now hold down button "KEY_PLAYPAUSE".
Got it.
Signal length is 13

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_POWER

Now hold down button "KEY_POWER".
Got it.
Signal length is 1

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_SUBTITLE

Now hold down button "KEY_SUBTITLE".
Got it.
Signal length is 17

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_OK

Now hold down button "KEY_OK".
Got it.
Signal length is 11

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_0

Now hold down button "KEY_0".
Got it.
Signal length is 3

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_1

Now hold down button "KEY_1".
Got it.
Signal length is 17

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_2

Now hold down button "KEY_2".
Got it.
Signal length is 15

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_3

Now hold down button "KEY_3".
Got it.
Signal length is 3

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_4

Now hold down button "KEY_4".
Got it.
Signal length is 15

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_5

Now hold down button "KEY_5".
Got it.
Signal length is 13

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_6

Now hold down button "KEY_6".
Got it.
Signal length is 11

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_7

Now hold down button "KEY_7".
Got it.
Signal length is 9

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_8

Now hold down button "KEY_8".
Got it.
Signal length is 15

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_9

Now hold down button "KEY_9".
Got it.
Signal length is 1

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_SLOW

Now hold down button "KEY_SLOW".
Got it.
Signal length is 17

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_TIME

Now hold down button "KEY_TIME".
Got it.
Signal length is 15
i pressed different buttons for each KEY_code
is my remote not compatible with LIRC, the remote i am using is a audiovox RC-705N.
when i do mode2 -d /dev/lirc0 i get a response from the lirc with pluses and spaces

UPDATE: after getting some keys registered irw did see my KEY_UP
Reply

Logout Mark Read Team Forum Stats Members Help
using an IR remote on kodi, needing help RPI20