Toggling fullscreen causes supend...?
#1
Hi everyone, I've configured my XBMC 11.0 on Ubuntu 12.04 (from "official" PPA) to supend on power button events. I've created ~/.xbmc/userdata/keymaps/keyboard.xml with the following content:

Code:
<keymap>
  <global>
    <keyboard>
      <key id='61952'>XBMC.Suspend()</key>
      <power>XBMC.Suspend()</power>
    </keyboard>
  </global>
</keymap>

However, XBMC now also suspends when I press backslash to toggle between fullscreen and windowed mode...? The debug log shows:

Code:
23:09:40 T:2984593216  NOTICE: Enabled debug logging due to GUI setting. Level 2.
23:09:40 T:2984593216   DEBUG: ------ Window Init () ------
23:09:44 T:2984593216   DEBUG: SDLKeyboard: scancode: 6c, sym: 0139, unicode: 0000, modifier: 0
23:09:44 T:2984593216   DEBUG: GetActionCode: Trying Hardy keycode for 0xf200
23:09:44 T:2984593216   DEBUG: Previous line repeats 1 times.
23:09:44 T:2984593216   DEBUG: OnKey: 0 (f200) pressed, action is XBMC.Suspend()
23:09:44 T:2984593216   DEBUG: DBus: Creating message to org.freedesktop.UPower on /org/freedesktop/UPower with interface org.freedesktop.U
23:09:44 T:2984593216   DEBUG: DBus: Creating message to org.freedesktop.UPower on /org/freedesktop/UPower with interface org.freedesktop.U
23:09:44 T:2984593216   DEBUG: SDLKeyboard: scancode: 14, sym: 00df, unicode: 005c, modifier: 4000
23:09:44 T:2984593216   DEBUG: OnKey: backslash (f05c) pressed, action is ToggleFullScreen
23:09:44 T:2984593216   ERROR: GLX: Same window as before, refreshing context
23:09:44 T:2984593216    INFO: GL: Maximum texture width: 8192
23:09:44 T:2984593216   DEBUG: CRenderManager::UpdateDisplayLatency - Latency set to 0 msec
23:09:45 T:2984593216   DEBUG: CAnnouncementManager - Announcement: OnSleep from xbmc
23:09:45 T:2984593216   DEBUG: GOT ANNOUNCEMENT, type: 4, from xbmc, message OnSleep
23:09:45 T:2984593216  NOTICE: OnSleep: Running sleep jobs
23:09:45 T:2984593216  NOTICE: OnSleep: Stopping lirc
23:09:45 T:2984593216    INFO: LIRC setUsed: disabled
23:09:45 T:2984593216   DEBUG: UPower: Recieved an unknown signal NotifySleep

Does anybody have an idea why this happens?

Many thanks,
Floe
Reply
#2
SDL is outdated and not maintained anymore. It uses depreciated functions for keysym lookup. In your case the key modifier you need for backslash is wrongly interpreted. I am sorry, I think there's not much you con do about this.
The good news is that I have already re-written this code and phased out SDL.
Reply
#3
OK, thanks... as a workaround, will it work if I just remap fullscreen to something different (e.g. "#") or whatever?
EDIT: yes, that worked. Setting ToggleFullscreen to "hash" in the main keyboard.xml did the trick, thanks for your help.
Reply

Logout Mark Read Team Forum Stats Members Help
Toggling fullscreen causes supend...?0