Bug CECToggleState will not map to a key
#1
I am trying to map CECToggleState to a key so that I can, on my raspberry pi, turn the tv etc on and off without exiting xbmc.

This is what I have in userdata/keymaps/keyboard.xml
Code:
<keymap>
  <global>
    <keyboard>
      <s>CECToggleState</s>
    </keyboard>
  </global>
</keymap>

I'm 98% sure that it should work - but I get the following message

Code:
18:48:07 T:5576   ERROR: Keymapping error: no such action 'cectogglestate' defined

If I do the following:
Code:
<keymap>
  <global>
    <keyboard>
      <s>Shutdown</s>
    </keyboard>
  </global>
</keymap>
it shuts down as I would expect. So I don't think it's malformed/wrong XML - but for some reason none of the CEC commands are recognised. This is with or without the XBMC. prefix.

I am using version XBMC (12.3 Git:20131212-9ed3e58) on my windows machine to test this, and I can provide the full log if required.
Reply
#2
had you considered case-sensitivity as a cause?
You've defined CECToggleState, whereas the message you get is cectogglestate.

Another thing is the list of defined actions (which i never remember where to find) - is it named there?
Derek
Reply
#3
it doesn't exist in Frodo, you need Gotham to use this.

compare https://github.com/xbmc/xbmc/blob/Frodo/...iltins.cpp
with https://github.com/xbmc/xbmc/blob/master...iltins.cpp

I have modified the wiki to properly reflect this: List_of_built-in_functions (wiki)
Reply
#4
...
Reply
#5
Tongue at teeedubb for looking in the wrong spot







i saw what you did there
Reply
#6
haha I guess I learnt something today Smile

I couldnt delete my post.
Reply
#7
And that would explain a lot.

Thank a heap Smile - especially for updating the doco.
I look forward to Gotham's release... actually I can't wait that long. TO BETA LAND! Tongue
Reply
#8
I actually ended up redoing half the page... Checked every setting and added a few missing.
Reply
#9
Haha nice. I'm sure I'm not the only person that will appreciate that....
Reply

Logout Mark Read Team Forum Stats Members Help
CECToggleState will not map to a key0