Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[PROBLEM] LIRC repeats
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Problem: LIRC repeats
1st Feb, 2016, 07:36 AM
Post: #17
jvig Offline
Registered
Posts: 3
Joined: Jan 2016
Reputation: 0
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
These names after your remote.conf file is created have to be CHANGED in order to use them properly with KODI.
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
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.9.1-git(default) on Sun Jan 31 11:27:02 2016
#
# contributed by
#
# brand:                       /home/xbian/xboxtest2.conf
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

  name  XBOX
  bits           11
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  one           223  7469
  zero          223  5012
  ptrail        220
  gap          123513
  toggle_bit_mask 0x200

      begin codes
          xbox_UP                   0x568
          xbox_DOWN                 0x56A
          xbox_LEFT                 0x571
          xbox_RIGHT                0x561
          xbox_ENTER                0x569
          xbox_CONTEXT_MENU         0x567
          xbox_BACK                 0x557
          xbox_EXIT                 0x570
          xbox_VOLUMEUP             0x556
          xbox_VOLUMEDOWN           0x555
          xbox_PAGEUP               0x572
          xbox_PAGEDOWN             0x577
          xbox_TEXT                 0x550
          xbox_FORWARD              0x552
          xbox_REWIND               0x551
          xbox_PLAY                 0x559
          xbox_INFO                 0x55A
          xbox_STOP                 0x562
      end codes

end remote

Then in your KODI userdata folder create a Lircmap.xml file to map these buttons. Something like that:

Code:
<lircmap>
<remote device="XBOX">

    <Up>xbox_UP</Up>
    <Down>xbox_DOWN</Down>
    <Left>xbox_LEFT</Left>
    <Right>xbox_RIGHT</Right>
    <Select>xbox_ENTER</Select>
    <Back>xbox_BACK</Back>
    <menu>xbox_CONTEXT_MENU</menu>
    <Stop>xbox_STOP</Stop>
    <Play>xbox_PLAY</Play>
    <Pause>xbox_PAUSE</Pause>
    <Blue>xbox_BLUE</Blue>
    <Red>xbox_RED</Red>
    <reverse>xbox_REWIND</reverse>
    <forward>xbox_FORWARD</forward>
    <subtitle>xbox_TEXT</subtitle>
    <title>xbox_INFO</title>
    <info>xbox_GUIDE</info>    
    <mute>xbox_MUTE</mute>
    <power>xbox_POWER</power>
    <myvideo>xbox_FAV</myvideo>
    <volumeplus>xbox_VOLUMEUP</volumeplus>
    <volumeminus>xbox_VOLUMEDOWN</volumeminus>
    
</remote>
</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>
  
  <fullscreenvideo>
    <remote>
    <subtitle>ActivateWindow(subtitlesearch)</subtitle>
        <Select>PlayPause</Select>
    <reverse>SubtitleDelayMinus</reverse>
    <forward>SubtitleDelayPlus</forward>
    </remote>
  </fullscreenvideo>

  <global>
    <remote>
    <Up>Up</Up>
    <Down>Down</Down>
    <Left>Left</Left>
    <Right>Right</Right>
    <Select>Select</Select>
    <Back>Back</Back>
    <menu>contextmenu</menu>
    <Stop>Stop</Stop>
    <Play>Play</Play>
    <Pause>Pause</Pause>
    <Blue>FullScreen</Blue>
    <Red>ActivateWindow(weather)</Red>
    <title>Info</title>
    <info>Info</info>    
    <mute>Mute</mute>
    <power>noop</power>
    <myvideo>ActivateWindow(favourites)</myvideo>
    <skipminus>noop</skipminus>
    <volumeplus>VolumeUp</volumeplus>
    <volumeminus>VolumeDown</volumeminus>
    </remote>
  </global>

  <slideshow>
    <remote>
    <forward>ZoomIn</forward>
        <reverse>ZoomOut</reverse>
    </remote>
  </slideshow>

  <weather>
    <remote>
    <Red>Back</Red>
    </remote>
  </weather>

</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 Wink
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
LIRC repeats - makon - 28th Apr, 2015, 11:12 PM
RE: LIRC repeats - zurdar - 10th May, 2015, 03:37 PM
RE: LIRC repeats - CurlyMo - 11th May, 2015, 06:34 AM
RE: LIRC repeats - zurdar - 11th May, 2015, 02:08 PM
RE: LIRC repeats - CurlyMo - 11th May, 2015, 08:13 PM
RE: LIRC repeats - zurdar - 14th May, 2015, 10:50 PM
RE: LIRC repeats - CurlyMo - 15th May, 2015, 12:00 AM
RE: LIRC repeats - zurdar - 15th May, 2015, 05:20 AM
RE: LIRC repeats - CurlyMo - 16th May, 2015, 12:41 AM
RE: LIRC repeats - zurdar - 16th May, 2015, 12:43 AM
RE: LIRC repeats - CurlyMo - 16th May, 2015, 04:08 AM
RE: LIRC repeats - zurdar - 16th May, 2015, 05:05 AM
RE: LIRC repeats - Colin Burton - 11th Aug, 2015, 11:58 PM
RE: LIRC repeats - jvig - 1st Feb, 2016 07:36 AM
RE: LIRC repeats - zurdar - 12th Aug, 2015, 12:25 AM
RE: LIRC repeats - eauland - 26th Aug, 2015, 03:13 AM
RE: LIRC repeats - Bignumbas - 4th Jan, 2016, 12:34 PM
RE: LIRC repeats - Skywatch - 2nd Feb, 2016, 07:00 PM
RE: LIRC repeats - Pow_2k - 3rd Feb, 2016, 08:28 AM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 30th May, 2025, 08:34 PM Powered By MyBB, © 2002-2025 MyBB Group.