Linux Need help disabling buttons on an MCE remote
#1
Hi guys

Does anyone know how to change the remote.xml config to disable buttons? I want to disable the channel down and mute buttons but I'm struggling to get it to work? I've set the remote up to do the volume on my Sonos but the channel down button duplicates the jump back to the start button and the mute does mute on XBMC and the Sonos, which is fine until they get out of sync.

My remote is one of those [URL="https://www.google.co.uk/search?hl=en&site=imghp&tbm=isch&source=hp&btnG=Search+by+image&q=VRC-1100%20MCE&gws_rd=ssl"]VRC-1100 MCE remote [/URL]type things.

I've tried adding;
Code:
<pageup>noop</pageup>
      <pagedown>noop</pagedown>
      <volume_mute>noop</volume_mute>
to the script for remote.xml but it's not made any difference. I've tried adding it under global and FullscreenVideo. I've also tried adding it to a keyboard.xml file and tried it with global and FullscreenVideo on that as well.

I can't find a code in there for channel up (but have also tried ChannelUp and ChanneDown in the above xml files).

I've turned on debugging and pressed channel up and down three times and then mute four times, and looked at the log files. The end of the log file which I think relates to these keypresses is the following;

Code:
12:00:28 T:140119749670784   DEBUG: LIRC: Update - NEW at 1798697:192 0 KEY_CHANNELUP devinput (KEY_CHANNELUP)
12:00:28 T:140119749670784   DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
12:00:28 T:140119749670784   DEBUG: started alarm with name: sssssscreensaver
12:00:28 T:140119749670784   DEBUG: ------ Window Deinit () ------
12:00:28 T:140119749670784   DEBUG: CGUIWindowManager::PreviousWindow: Activate new
12:00:28 T:140119749670784   DEBUG: ------ Window Init (Home.xml) ------
12:00:28 T:140119749670784   DEBUG: CAnnouncementManager - Announcement: OnScreensaverDeactivated from xbmc
12:00:28 T:140119749670784   DEBUG: GOT ANNOUNCEMENT, type: 4, from xbmc, message OnScreensaverDeactivated
12:00:28 T:140119749670784   DEBUG: OnKey: leftshift (0xd2) pressed, screen saver/dpms woken up
12:00:28 T:140119749670784   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/ImageLib-x86_64-linux.so)
12:00:28 T:140119749670784   DEBUG: Loading: /usr/lib/xbmc/system/ImageLib-x86_64-linux.so
12:00:28 T:140119749670784   DEBUG: ------ Window Deinit (/storage/.xbmc/addons/screensaver.xbmc.slideshow/resources/skins/default/720p/script-python-slideshow.xml) ------
12:00:28 T:140117603776256    INFO: CPythonInvoker(18, /storage/.xbmc/addons/screensaver.xbmc.slideshow/default.py): script successfully run
12:00:28 T:140117603776256   ERROR: CPythonInvoker(18, /storage/.xbmc/addons/screensaver.xbmc.slideshow/default.py): failed to run the gc to clean up after running prior to shutting down the Interpreter
12:00:28 T:140117603776256 WARNING: CPythonInvoker(18, /storage/.xbmc/addons/screensaver.xbmc.slideshow/default.py): the python script "/storage/.xbmc/addons/screensaver.xbmc.slideshow/default.py" has left several classes in memory that we couldn't clean up. The classes include: N14PythonBindings31XBMCAddon_xbmc_Monitor_DirectorE,N9XBMCAddon7xbmcgui6WindowE,N14PythonBindings42XBMCAddon_xbmcgui_WindowXMLDialog_DirectorE
12:00:28 T:140117603776256    INFO: Python script stopped
12:00:28 T:140117603776256   DEBUG: Thread LanguageInvoker 140117603776256 terminating
12:00:28 T:140119749670784   DEBUG: LIRC: Update - NEW at 1798895:192 0 KEY_CHANNELUP_UP devinput (KEY_CHANNELUP_UP)

12:00:29 T:140119749670784   DEBUG: LIRC: Update - NEW at 1799345:193 0 KEY_CHANNELDOWN devinput (KEY_CHANNELDOWN)
12:00:29 T:140119749670784   DEBUG: OnKey: rightshift (0xd3) pressed, action is PageDown
12:00:29 T:140119749670784   DEBUG: LIRC: Update - NEW at 1799562:193 0 KEY_CHANNELDOWN_UP devinput (KEY_CHANNELDOWN_UP)
12:00:29 T:140119749670784   DEBUG: LIRC: Update - NEW at 1799962:192 0 KEY_CHANNELUP devinput (KEY_CHANNELUP)
12:00:29 T:140119749670784   DEBUG: OnKey: leftshift (0xd2) pressed, action is PageUp
12:00:30 T:140119749670784   DEBUG: LIRC: Update - NEW at 1800162:192 0 KEY_CHANNELUP_UP devinput (KEY_CHANNELUP_UP)
12:00:30 T:140119749670784   DEBUG: LIRC: Update - NEW at 1800545:193 0 KEY_CHANNELDOWN devinput (KEY_CHANNELDOWN)
12:00:30 T:140119749670784   DEBUG: OnKey: rightshift (0xd3) pressed, action is PageDown
12:00:30 T:140119749670784   DEBUG: LIRC: Update - NEW at 1800729:193 0 KEY_CHANNELDOWN_UP devinput (KEY_CHANNELDOWN_UP)
12:00:31 T:140119749670784   DEBUG: LIRC: Update - NEW at 1801179:192 0 KEY_CHANNELUP devinput (KEY_CHANNELUP)
12:00:31 T:140119749670784   DEBUG: OnKey: leftshift (0xd2) pressed, action is PageUp
12:00:31 T:140119749670784   DEBUG: LIRC: Update - NEW at 1801379:192 0 KEY_CHANNELUP_UP devinput (KEY_CHANNELUP_UP)
12:00:31 T:140119749670784   DEBUG: LIRC: Update - NEW at 1801798:193 0 KEY_CHANNELDOWN devinput (KEY_CHANNELDOWN)
12:00:31 T:140119749670784   DEBUG: OnKey: rightshift (0xd3) pressed, action is PageDown
12:00:31 T:140119749670784   DEBUG: LIRC: Update - NEW at 1801998:193 0 KEY_CHANNELDOWN_UP devinput (KEY_CHANNELDOWN_UP)
12:00:32 T:140119749670784   DEBUG: LIRC: Update - NEW at 1802398:192 0 KEY_CHANNELUP devinput (KEY_CHANNELUP)
12:00:32 T:140119749670784   DEBUG: OnKey: leftshift (0xd2) pressed, action is PageUp
12:00:32 T:140119749670784   DEBUG: LIRC: Update - NEW at 1802532:192 0 KEY_CHANNELUP_UP devinput (KEY_CHANNELUP_UP)
12:00:32 T:140119749670784   DEBUG: LIRC: Update - NEW at 1802981:193 0 KEY_CHANNELDOWN devinput (KEY_CHANNELDOWN)
12:00:32 T:140119749670784   DEBUG: OnKey: rightshift (0xd3) pressed, action is PageDown
12:00:33 T:140119749670784   DEBUG: LIRC: Update - NEW at 1803182:193 0 KEY_CHANNELDOWN_UP devinput (KEY_CHANNELDOWN_UP)
12:00:34 T:140119749670784   DEBUG: LIRC: Update - NEW at 1804182:71 0 KEY_MUTE devinput (KEY_MUTE)
12:00:34 T:140119749670784   DEBUG: OnKey: launch_app1_pc_icon (0xc0) pressed, action is Mute
12:00:34 T:140119749670784   DEBUG: CAnnouncementManager - Announcement: OnVolumeChanged from xbmc
12:00:34 T:140119749670784   DEBUG: GOT ANNOUNCEMENT, type: 64, from xbmc, message OnVolumeChanged
12:00:34 T:140119749670784   DEBUG: ------ Window Init (DialogMuteBug.xml) ------
12:00:34 T:140119749670784   DEBUG: LIRC: Update - NEW at 1804198:71 0 KEY_MUTE_UP devinput (KEY_MUTE_UP)
12:00:35 T:140119749670784   DEBUG: LIRC: Update - NEW at 1805031:71 0 KEY_MUTE devinput (KEY_MUTE)
12:00:35 T:140119749670784   DEBUG: OnKey: launch_app1_pc_icon (0xc0) pressed, action is Mute
12:00:35 T:140119749670784   DEBUG: CAnnouncementManager - Announcement: OnVolumeChanged from xbmc
12:00:35 T:140119749670784   DEBUG: GOT ANNOUNCEMENT, type: 64, from xbmc, message OnVolumeChanged
12:00:35 T:140119749670784   DEBUG: LIRC: Update - NEW at 1805048:71 0 KEY_MUTE_UP devinput (KEY_MUTE_UP)
12:00:35 T:140119749670784   DEBUG: ------ Window Deinit (DialogMuteBug.xml) ------
12:00:35 T:140119749670784   DEBUG: LIRC: Update - NEW at 1805865:71 0 KEY_MUTE devinput (KEY_MUTE)
12:00:35 T:140119749670784   DEBUG: OnKey: launch_app1_pc_icon (0xc0) pressed, action is Mute
12:00:35 T:140119749670784   DEBUG: CAnnouncementManager - Announcement: OnVolumeChanged from xbmc
12:00:35 T:140119749670784   DEBUG: GOT ANNOUNCEMENT, type: 64, from xbmc, message OnVolumeChanged
12:00:35 T:140119749670784   DEBUG: ------ Window Init (DialogMuteBug.xml) ------
12:00:35 T:140119749670784   DEBUG: LIRC: Update - NEW at 1805882:71 0 KEY_MUTE_UP devinput (KEY_MUTE_UP)
12:00:36 T:140119749670784   DEBUG: LIRC: Update - NEW at 1806798:71 0 KEY_MUTE devinput (KEY_MUTE)
12:00:36 T:140119749670784   DEBUG: OnKey: launch_app1_pc_icon (0xc0) pressed, action is Mute
12:00:36 T:140119749670784   DEBUG: CAnnouncementManager - Announcement: OnVolumeChanged from xbmc
12:00:36 T:140119749670784   DEBUG: GOT ANNOUNCEMENT, type: 64, from xbmc, message OnVolumeChanged
12:00:36 T:140119749670784   DEBUG: LIRC: Update - NEW at 1806815:71 0 KEY_MUTE_UP devinput (KEY_MUTE_UP)
12:00:36 T:140119749670784   DEBUG: ------ Window Deinit (DialogMuteBug.xml) ------
12:00:48 T:140117301298944   DEBUG: Thread JobWorker 140117301298944 terminating (autodelete)
12:00:48 T:140117318084352   DEBUG: Thread JobWorker 140117318084352 terminating (autodelete)

I also just tried adding <KEY_CHANNELDOWN> to the script as well but that's not done it!

I have no idea how to interpret this, or how to work out what my XBMC thinks the button press codes are!

Can anyone help please?! Sad
Reply
#2
Try <PageDown>noop</PageDown> and so on Note the capital letters
If I have been of help, please add to my reputation as a way of saying thanks, it's free.
Reply
#3
Thanks for the reply.

No, nothing. I tried it between the global/remote tags and then between the fullscreenvideo/remote tages but it didn't work for either.

Confused:
Reply
#4
Copy remote.xml to userdata/keymaps and then edit it from there. In Linux I believe it will be /home/<username>/.xbmc/userdata/Keymaps
If I have been of help, please add to my reputation as a way of saying thanks, it's free.
Reply
#5
Yes, that's what I did, it's in the correct folder (userdata/keymaps). Here's the script for my remote.xml file;

Code:
<keymap>

  <global>
    <remote>
      <Btn_Right>ContextMenu</Btn_Right>
      <power>ActivateWindow(shutdownmenu)</power>
    </remote>
  </global>

  <FullscreenVideo>
    <remote>
      <left>SmallStepBack</left>
      <right>StepForward</right>
      <up>BigStepForward</up>
      <down>BigStepBack</down>
      <back>Back</back>
      <start>XBMC.ActivateWindow(Home)</start>
      <play>PlayerControl(Play)</play>
      <info>Info</info>
      <subtitle>ShowSubtitles</subtitle>
  <PageUp>noop</PageUp>
  <PageDown>noop</PageDown>
  <mute>noop</mute>
    </remote>
  </FullscreenVideo>

</keymap>

The page up, page down and mute all still work, they're not disabled. I've tried putting them in global as well (not at the same time obviously!) but that doesn't make any difference.

I do have a few user profiles set up. They're all listed under \Userdata\profiles and have their own keymaps folder, but I've copied over the same remote.xml file to each one to make sure they all have the same and that's not done it.

Really scratching my head now....!

Edit: I've deleted all the remote.xml files in the individual profile folders and now the mute is working, so that's progress. I suspect the PageUp and PageDown need to be something else, but I can't work out what.

On the remote control itself they're labelled Channel up and down, but the log files list them as CHANNELDOWN_UP (as shown above). I've tried adding that (and tried just channeldown) to the remote.xml but that doesn't do it.

So my remote.xml is now (with comments beside the two still not working);

Code:
<keymap>

  <global>
    <remote>
      <Btn_Right>ContextMenu</Btn_Right>
      <power>ActivateWindow(shutdownmenu)</power>
  <PageUp>noop</PageUp> - this doesn't work
  <ChannelDown_Up>noop</ChannelDown_Up> - this doesn't work
  <mute>noop</mute>
    </remote>
  </global>

  <FullscreenVideo>
    <remote>
      <left>SmallStepBack</left>
      <right>StepForward</right>
      <up>BigStepForward</up>
      <down>BigStepBack</down>
      <back>Back</back>
      <start>XBMC.ActivateWindow(Home)</start>
      <play>PlayerControl(Play)</play>
      <info>Info</info>
      <subtitle>ShowSubtitles</subtitle>
    </remote>
  </FullscreenVideo>

</keymap>
Reply
#6
12:00:32 T:140119749670784 DEBUG: LIRC: Update - NEW at 1802981:193 0 KEY_CHANNELDOWN devinput (KEY_CHANNELDOWN)
12:00:32 T:140119749670784 DEBUG: OnKey: rightshift (0xd3) pressed, action is PageDown

I believe it is seeing a keyboard, try changing the <remote> tags to <keyboard> tags
If I have been of help, please add to my reputation as a way of saying thanks, it's free.
Reply
#7
Like this?
Code:
<keymap>

  <global>
    <remote>
      <Btn_Right>ContextMenu</Btn_Right>
      <power>ActivateWindow(shutdownmenu)</power>
  <mute>noop</mute>
    </remote>
<keyboard>
      <PageUp>noop</PageUp>
      <PageDown>noop</PageDown>
</keyboard>
  </global>

  <FullscreenVideo>
    <remote>
      <left>SmallStepBack</left>
      <right>StepForward</right>
      <up>BigStepForward</up>
      <down>BigStepBack</down>
      <back>Back</back>
      <start>XBMC.ActivateWindow(Home)</start>
      <play>PlayerControl(Play)</play>
      <info>Info</info>
      <subtitle>ShowSubtitles</subtitle>
    </remote>
  </FullscreenVideo>

</keymap>

Still not disabling them! Sad
Reply

Logout Mark Read Team Forum Stats Members Help
Need help disabling buttons on an MCE remote0