Jump to content
Flirc Forums
castalla

[XBMC] Mapping a Shutdown key ?

Recommended Posts

Hi again!

It's some time since I needed to reconfigure my flirc ... and I'm a bit rusty.

I want to program a remote key to Shutdown XBMC - I tried mapping to the xbmc keyboard 'shutdown' key (the power off button).. When I try this with Xbian (raspberry pi) I just get an onscreen popup saying 'not available'.

Can anyone help on how to get 'Shutdown' with one key press?

For example, say I want f4 assigned to Shutdown .... ?

Thanks

Edit:

I created a keyboard.xml file containing


<keymap>

<global>

	 <keyboard>

		 <f4>XBMC.ShutDown()</f4>		

	 </keyboard>

</global>

</keymap>

I put this in /system/keymaps/ within xbmc folder

Assigned f4 to a remote key.

This has no effect when in xbmc.

Stumped.

Share this post


Link to post
Share on other sites

Hmm, how odd. I think the first thing we should try is checking XBMC can shutdown the computer by using the menu options (skin dependant )

Let's get to the bottom of this :)

Share this post


Link to post
Share on other sites

Just to check I meant on the home screen of XBMC go into the option which presents you with either: shutdown, suspend or restart. Press shutdown on the onscreen options. Does it shut it down?

(Sorry I'd you already tried this, I just wanted to check)

Share this post


Link to post
Share on other sites

Yes .... normal menu items all work ..... BUT

Solved!

The trick was to move the keyboard.xml file to the /keymaps folder - xbian now shuts down on key press.

Maybe it's something specific to the xbian distro?

Share this post


Link to post
Share on other sites

In all versions of XBMC i tried out, you never put your keyboard.xml to system folders but to user folders

where ever they might be.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...