NextPVR Forums

Full Version: Knewc not handling certain buttons on the Hauppauge remote
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have knewc autostart when I start kodi.  I have knewc use the Client UI, or is it now called Remote UI, so I get the same NPVR experience as on the server.  For the linked log file, I restarted Kodi & waited for NPVR to come up.  I pressed the following buttons on my remote: Right, Left, Blue, Back, Yellow, Back, Green, Back, Red, Back, Guide, TV, Videos, Music, Pictures, Radio, OK (at this point, I was in Kodi & navigated to the Log Uploader.)  When I pressed the color keys, it took me to Kodi screens for Videos, Pictures, Music, etc.  When I pressed the keys that are supposed to take me to specific NPVR screens, it did nothing.  I know that I can press the Menu button and use Martin's menus to get the color keys or go directly to Recordings & that works, but I would like to be able to use the ones on my remote.  Link to log file: https://paste.kodi.tv/tegufehufe  (Search for the string "devinput" in the log to find the key presses.  The fourth instance is where I pressed Right.)
[url=https://paste.kodi.tv/tegufehufe][/url]
Contents of my key mapping file, named Hauppauge:
Code:
# table Hauppauge, type: RC-5
0x1e01 KEY_1
0x1e02 KEY_2
0x1e03 KEY_3
0x1e04 KEY_4
0x1e05 KEY_5
0x1e06 KEY_6
0x1e07 KEY_7
0x1e08 KEY_8
0x1e09 KEY_9
0x1e00 KEY_0
0x1e0d KEY_MENU
0x1e20 KEY_CHANNELUP
0x1e21 KEY_CHANNELDOWN
0x1e10 KEY_VOLUMEUP
0x1e11 KEY_VOLUMEDOWN
0x1e3b KEY_HOME # Go
0x1e17 KEY_RIGHT
0x1e16 KEY_LEFT
0x1e14 KEY_UP
0x1e15 KEY_DOWN
0x1e25 KEY_ENTER
0x1e0f KEY_MUTE
0x1e1f KEY_BACK
0x1e0d KEY_INFO
0x1e36 KEY_STOP
0x1e24 KEY_PREVIOUSSONG
0x1e1e KEY_NEXTSONG
0x1e3d KEY_POWER
0x1e32 KEY_REWIND
0x1e34 KEY_FASTFORWARD
0x1e30 KEY_PLAYPAUSE
0x1e35 KEY_PLAY
0x1e1b KEY_F1 # Guide
0x1e0c KEY_F6 # Radio
0x1e1c KEY_F2 # TV
0x1e18 KEY_F3 # Video
0x1e19 KEY_F4 # Music
0x1e1a KEY_F5 # Pictures
0x1e37 KEY_RECORD
0x1e0b KEY_RED
0x1e2e KEY_GREEN
0x1e38 KEY_YELLOW
0x1e29 KEY_BLUE
0x1e0e KEY_SUBTITLE      # subtitle
0x1e0a KEY_TEXT # BROWSER
Going to those functions is how the global keys are defined. https://github.com/xbmc/xbmc/blob/master...remote.xml but I would have thought the Addon group would have overwritten them. Check to see what the coreelect on looks like in special://xbmc/system/keymaps/remote.xml It should somewhere under /storage/.kodi/userdata/

Martin
(2019-11-29, 01:19 AM)mvallevand Wrote: [ -> ]Going to those functions is how the global keys are defined. https://github.com/xbmc/xbmc/blob/master...remote.xml  but I would have thought the Addon group would have overwritten them.  Check to see what the coreelect on looks like in  special://xbmc/system/keymaps/remote.xml  It should somewhere under /storage/.kodi/userdata/

Martin

What I did to resolve it, based on Martin's advise:

cp /usr/share/kodi/system/keymaps/remote.xml /storage/.kodi/userdata/keymaps/remote.xml
cp /usr/share/kodi/system/Lircmap.xml /storage/.kodi/userdata/Lircmap.xml

Edit the new copies in userdata:

Lircmap.xml - added these in the devinput section:

Code:
<guide>KEY_F1</guide>
  <livetv>KEY_F2</livetv>
  <myvideo>KEY_F3</myvideo>
  <mymusic>KEY_F4</mymusic>
  <mypictures>KEY_F5</mypictures>
  <liveradio>KEY_F6</liveradio>


remote.xml - changed the following:
From:

Code:
<myvideo>ActivateWindow(Videos)</myvideo>
      <mymusic>ActivateWindow(Music)</mymusic>
      <mypictures>ActivateWindow(Pictures)</mypictures>
 ...
      <guide>ActivateWindow(TVGuide)</guide>
      <livetv>ActivateWindow(TVChannels)</livetv>
      <liveradio>ActivateWindow(RadioChannels)</liveradio>
      <recordedtv>ActivateWindow(TVRecordings)</recordedtv>
 ...
      <red>ActivateWindow(TVChannels)</red>
      <green>ActivateWindow(Videos)</green>
      <yellow>ActivateWindow(Music)</yellow>
      <blue>ActivateWindow(Pictures)</blue>

To:

Code:
<myvideo>ActivateWindow(AddOn, Videos)</myvideo>
      <mymusic>ActivateWindow(AddOn, Music)</mymusic>
      <mypictures>ActivateWindow(AddOn, Pictures)</mypictures>
 ...
      <guide>ActivateWindow(AddOn, TV Listings)</guide>
 ...
      <liveradio>ActivateWindow(AddOn, TV Recordings)</liveradio>
      <recordedtv>ActivateWindow(Weather)</recordedtv>
 ...
      <red>Red</red>
      <green>Green</green>
      <yellow>Yellow</yellow>
      <blue>Blue</blue>

Note that I use TV Listings and TV Recordings instead of TV Guide and Recordings, respectively.  Also, the directory structure is for CoreElec, it might be different for others.
Ok now i understand what you were trying to achieve. After changing lircd to the functions keys, I don't think you needed to change ActivateWindows since the FN key is what get passed to NextPVR.

Martin