Issue with keymap

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
ibanez77 Offline
Junior Member
Posts: 6
Joined: Mar 2012
Reputation: 0
Post: #1
Hi there,

I've recently updated to the new version. Everything works really well, except that I've got one problem with the keymapping that's been working fine in version 10. I've got a Hama MCE Remote, and want to be able to suspend my PC by pressing the power button on the remote. In version 10 this piece here in the keymap.xml worked fine:

Quote:<keymap>
<global>
<keyboard>
<key id="61599">XBMC.Suspend</key>
...

Unfortunately it seems the key ID thingy doesn't work anymore. When I'm pressing the power button, the xbmc.log gives me this:

Quote:20:29:20 T:140071994439520 DEBUG: OnKey: 0 (f200) pressed, action is
20:29:20 T:140071994439520 DEBUG: SDLKeyboard: scancode: 96, sym: 009f, unicode: 0000, modifier: 1000
20:29:20 T:140071994439520 DEBUG: GetActionCode: Trying Hardy keycode for 0xf200
20:29:20 T:140071994439520 DEBUG: Previous line repeats 3 times.

Anyone got a clue how I have to edit the keymap.xml to make this button work again? The key id is nowhere to be found in the log anymore. Btw, this would need to be changed in the wiki also.

Thanks in advance!

PS: Great new version! I'm especially happy about the jpeg decoding speed-up. Skipping through my picture collections was a painfully slow thing in version 10 (especially with big pics like 36MP stuff). Now it's fast and fluid. Nice!![/quote]
find quote
TapRackPull Offline
Senior Member
Posts: 177
Joined: Jun 2011
Reputation: 2
Location: Olympia, WA
Post: #2
If I'm reading this right, it's telling you that the keyid is no longer '61599' and that XBMC is perceiving your button press (I'm guessing that to be the power button) is keyid 0. As a simple test, try editing your keyboard.xml to <key id="0">XBMC.Suspend</key>

Report back about this if you would... Cuz, according to you, I'm going to have to change some of my keybaord.xml as well!!

XBMC 11.0 Eden Win7 MI-008 Case
Kingston 4GB DDR3 ZOTAC GF9300-K-E
Intel Celeron 2.6GHz MSI HD6450
unRAID
find quote
ibanez77 Offline
Junior Member
Posts: 6
Joined: Mar 2012
Reputation: 0
Post: #3
Thanks TapRackPull. Setting the key id to 0 didn't work. I've also tried adding mod="1000" and that didn't do anything either. Sad
find quote
TapRackPull Offline
Senior Member
Posts: 177
Joined: Jun 2011
Reputation: 2
Location: Olympia, WA
Post: #4
Check out this post. It's a bit old, but relevant.

From here you should be able to figure out what XBMC is perceiving your key press as and code it correctly in the keyboard.xml.

XBMC 11.0 Eden Win7 MI-008 Case
Kingston 4GB DDR3 ZOTAC GF9300-K-E
Intel Celeron 2.6GHz MSI HD6450
unRAID
find quote
ibanez77 Offline
Junior Member
Posts: 6
Joined: Mar 2012
Reputation: 0
Post: #5
Hmm... Not sure that this thread helps actually. The log file is not showing any key id, and I'm on Linux so I cannot use this showkey program. *shrugs*
find quote
DaMizZa Offline
Senior Member
Posts: 106
Joined: Dec 2010
Reputation: 2
Location: Saskatchewan, Canada
Post: #6
Maybe try dropping to a terminal run "irw" and press the button on your remote and it should output the code, then add that to your keymap?

XBMCbuntu {Frodo} - Ubuntu 12.04 (Main):
Intel Q6600 [2.4GHz Quad Core], 4GB DDR3, nVidia GT-210, Antec Fusion Case (iMon LCD), PS3 BD Remote

XBMC Live {Frodo} - Ubuntu 10.04 (Bedroom): Intel Atom D510 [1.66GHz Dual Core], ION Graphics, 2GB DDR2, PS3 BD Remote
find quote
artrafael Offline
Team-XBMC Forum Moderator
Posts: 4,424
Joined: Jul 2010
Reputation: 78
Location: USA
Post: #7
I have a similar remote control and, like you, my Power button (mapped to keyid="61599") stopped working after upgrading to Eden. By happenstance, I discovered that alt-numpadfive works for that button. So, in your case, try the following:
Code:
<alt-numpadfive>XBMC.Suspend</alt-numpadfive>


As an aside, my remote control number buttons also stopped working for JumpSMS. I had to remap my JumpSMS keys from:
Code:
<two>JumpSMS2</two>
:
<nine>JumpSMS9</nine>
to:
Code:
<numpadtwo>JumpSMS2</numpadtwo>
:
<numpadnine>JumpSMS9</numpadnine>

Hope that helps.
find quote
ibanez77 Offline
Junior Member
Posts: 6
Joined: Mar 2012
Reputation: 0
Post: #8
(2012-04-05 06:30)artrafael Wrote:  I have a similar remote control and, like you, my Power button (mapped to keyid="61599") stopped working after upgrading to Eden. By happenstance, I discovered that alt-numpadfive works for that button. So, in your case, try the following:
Code:
<alt-numpadfive>XBMC.Suspend</alt-numpadfive>

YAY, thanks buckets!! This worked perfectly. Smile

I also noticed that all my numbers on the remote now all of a sudden changed to numpadone instead of one...
find quote
ev0lsan Offline
Junior Member
Posts: 6
Joined: Apr 2012
Reputation: 0
Post: #9
Hi,

Which file do I have to put in the line: <alt-numpadfive>XBMC.Suspend</alt-numpadfive> ?

thanks
find quote
JiiJii Offline
Junior Member
Posts: 21
Joined: Apr 2011
Reputation: 0
Post: #10
Hi.

My keyboard.xml is this:

<keymap>
<global>
<keyboard>
<o mod="ctrl">info</o>
<g mod="ctrl">contextmenu</g>
<t mod="ctrl">osd</t>
<m mod="ctrl,shift">ActivateWindow(shutdownmenu)</m>
<t mod="ctrl,shift">ActivateWindow(home)</t>
<m mod="ctrl">delete</m>
<e mod="ctrl">ShowVideoMenu</e>
<numpadfive mod="alt">NextSubtitle</numpadfive>
</keyboard>
</global>
</keymap>

After upgrading to Eden, it doesn't work as it should.
Any ideas? What was changed in Eden?
find quote
Post Reply