Linux How to disable a key on the remote?
#1
Running on ubuntu 12.04, AMD fusion platform, installed from minimal as described in the thread somewhere here on the forum.
Using some cheap MCE clone remote and one of the keys makes XBMC go into windowed mode.
The problem is, i can only get to full screen via the menu and XBMC is very slow until i restart X.

In debug mode i got this:
Code:
18:47:33 T:139789379725184   DEBUG: OnKey: alt-leftalt (4f0d4) pressed, action is
18:47:33 T:139789379725184   DEBUG: OnLostDevice - notify display change event
18:47:34 T:139789379725184   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/ImageLib-x86_64-linux.so)
18:47:34 T:139789379725184   DEBUG: Loading: /usr/lib/xbmc/system/ImageLib-x86_64-linux.so
18:47:34 T:139789379725184   DEBUG: CWinSystemX11::RefreshGlxContext: refreshing context
18:47:34 T:139789379725184    INFO: GL: Maximum texture width: 8192
18:47:34 T:139789379725184   DEBUG: CRenderManager::UpdateDisplayLatency - Latency set to 0 msec
18:47:34 T:139789379725184    INFO: GL: Enabling VSYNC
18:47:34 T:139789379725184    INFO: GL: Selected vsync mode 2

Tried to override that key via user keyboard.xml file:
Code:
<keymap>
  <global>
    <keyboard>
      <alt-leftalt>noop</alt-leftalt>
    </keyboard>
  </global>
</keymap>

It didn't work. How do I disable this key?
Reply
#2
From your log snippet, it looks like alt-leftalt is doing nothing, which is what you desire, isn't it?
Code:
18:47:33 T:139789379725184   DEBUG: OnKey: alt-leftalt (4f0d4) pressed, action is
Reply
#3
What happens is that XBMC switches to windowed mode. so it is doing something.
Reply
#4
Are you positive that remote button is sending the alt-leftalt key press? By default, the key used to toggle fullscreen/windowed mode is the backslash key ( \ ).
Reply
#5
Or is it doing something like alt-tab and switching from xbmc to whatever is running in the background?
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#6
Do you have the option 'remote control sends keyboard presses' enabled - I believe you should for a MCE remote.

Try binding a notification to the key id code and see if that works:

Code:
<keymap>
  <global>
    <keyboard>
      <key id=323796>Notification(Keypress,You pressed the key, 3)</key>
    </keyboard>
  </global>
</keymap>
Reply
#7
@artrafael
tried disabling backslah via keyboard.xml, no luck, suppose it's not the case

@Kibje
yes, 'remote control sends keyboard presses' is enabled, but the remote works the same without that option.

@nickr
You could be on to something here...
Installed evtest, gives more info on the key presses than debug from XBMC, here is the short version:

Code:
Testing ... (interrupt to exit)
Event: time 1365938854.339042, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e2
Event: time 1365938854.339056, type 1 (EV_KEY), code 56 (KEY_LEFTALT), value 1
Event: time 1365938854.339084, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7002b
Event: time 1365938854.339088, type 1 (EV_KEY), code 15 (KEY_TAB), value 1
Event: time 1365938854.339091, -------------- SYN_REPORT ------------
Event: time 1365938854.355041, type 4 (EV_MSC), code 4 (MSC_SCAN), value 700e2
Event: time 1365938854.355054, type 1 (EV_KEY), code 56 (KEY_LEFTALT), value 0
Event: time 1365938854.355078, type 4 (EV_MSC), code 4 (MSC_SCAN), value 7002b
Event: time 1365938854.355082, type 1 (EV_KEY), code 15 (KEY_TAB), value 0
Event: time 1365938854.355088, -------------- SYN_REPORT ------------

Seems to be alt-tab, and twice?
I don't have anything else running, no window manager, just lightdm.
Is there any way to disable alt-tab, googling around didn't prove useful.
Reply

Logout Mark Read Team Forum Stats Members Help
How to disable a key on the remote?0