Problem: LIRC repeats
|
4th Jan, 2016, 12:34 PM
Post: #16
|
|||
|
|||
RE: LIRC repeats
I tried for several days to fix this problem.
Finally came across a posting on Instructables Where a guy was putting a pi into an Altoid tin with Xbian installed for a home media center. (cause you can ) Find it here: http://www.instructables.com/id/Raspberry-Pi-2-Media-Center-Kodi-on-XBian/step6/Step-6-Optional-Install-and-configure-infrared-rem/ and also http://www.msldigital.com/pages/support-for-remote edit the file: /etc/lirc/hardware/lirc_rpi.conf nano /etc/lirc/hardware/lirc_rpi.conf Comment out the line: LIRCD_ARGS="-u" lircd -u, --uinput Enable automatic generation of Linux input events. lircd will open /dev/input/uinput and inject key events to the Linux kernel. The key code depends on the name that was given a button in the lircd config file, e.g. if the button is named KEY_1, the '1' key code will be generated. You will find a complete list of possible button names in /usr/include/linux/input.h. From the explanation it seems to me that when you press a key it injects another keypress via the kernel. Kinda like a feedback loop? I had tried everything before this delays, ir-keytables etc, etc. The mystifying thing was that the remote worked in every other raspberry linux I have. Cheers Hope this helps. |
|||
1st Feb, 2016, 07:36 AM
Post: #17
|
|||
|
|||
RE: LIRC repeats
(11th Aug, 2015 11:58 PM)Colin Burton Wrote: Did you ever find an answer to this? I just setup my remote and encountered the same issue. I had the same problem and solved it!! When you are recording keys or you are using a template for your remote, all remote buttons are assigned to a default name listed here: Terminal $ irrecord --list-namespace For example in this xbox.conf file I created for an XBOX remote, I replaced "KEY_" with "xbox_": Code: # Please make this file available to others Then in your KODI userdata folder create a Lircmap.xml file to map these buttons. Something like that: Code: <lircmap> Please note that these names like "volumeminus" are predifined by Kodi. You can find a list here: XBMC/Lircmap Finally, in your userdata/keymaps folder create a keymap.xml file to map those buttons to real KODI actions. Your keymap.xml should look something like this: Code: <keymap> More info about the above file can be found here: KODI/keymaps[/term][/quote] p.s. You don't need to create an advancedsettings.xml file, but if you create it anyway, it will function properly regarding repeat and delay times |
|||
2nd Feb, 2016, 07:00 PM
Post: #18
|
|||
|
|||
RE: LIRC repeats
@jvig
Nice info, well explained, thanks - maybe you could add it to the wiki page of xbian for all to find. Skywatch. |
|||
3rd Feb, 2016, 08:28 AM
Post: #19
|
|||
|
|||
RE: LIRC repeats
@jvig, perfect timing! Just today I sat down to try and figure out why the remote I was working with had doubled up button presses. This is my first time working with an IR receiver connected to the RPi GPIO. Your solution worked for me as well! I opted to go with "kodi_" instead of "xbox_" in the names as I think this is more working around a problem with the software (Kodi/Xbian/lirc, not sure where) than the remote itself. Good find! From previous attempts I still have the lirc_rpi.conf file edited to comment out "LIRCD_ARGS="-u"" and I haven't yet uncommented that to see if it breaks anything with your fix.
I'll note that I didn't need to do anything with keymap.xml. It seems all the mapping is picked up from remote.xml in /usr/local/share/kodi/system/keymaps. So just created the lircd.conf file with unique key names, then set up the Lircmap.xml file. Thanks for the detail on your discovery! |
|||
« Next Oldest | Next Newest »
|